I get the following error when trying to compile the 'Simple example' in the NcDataReader2. Any suggestions on how to resolve this?
CcodeCompilationError Traceback (most recent call last)
<ipython-input-3-dad1ff26f4d2> in <module>()
----> 1 netCD = compile_fmu('NcDataReader2.Examples.Simple',r'H:\Modelica\Modelica Libraries\NcDataReader2')
2 model = load_fmu(netCD)
C:\JModelica.org-2.1\install\Python\pymodelica\compiler.pyc in compile_fmu(class_name, file_name, compiler, target, version, platform, compiler_options, compile_to, compiler_log_level, separate_process, jvm_args)
139 return _compile_unit(class_name, file_name, compiler, target, version,
140 platform, compiler_options, compile_to, compiler_log_level,
--> 141 separate_process, jvm_args)
142
143 def compile_fmux(class_name, file_name=[], compiler='auto', compiler_options={},
C:\JModelica.org-2.1\install\Python\pymodelica\compiler.pyc in _compile_unit(class_name, file_name, compiler, target, version, platform, compiler_options, compile_to, compiler_log_level, separate_process, jvm_args)
246 else:
247 return compile_separate_process(class_name, file_name, compiler, target, version, platform,
--> 248 compiler_options, compile_to, compiler_log_level, jvm_args)
249
250 def compile_separate_process(class_name, file_name=[], compiler='auto', target='me', version='1.0',
C:\JModelica.org-2.1\install\Python\pymodelica\compiler.pyc in compile_separate_process(class_name, file_name, compiler, target, version, platform, compiler_options, compile_to, compiler_log_level, jvm_args)
360 process.wait();
361 finally:
--> 362 return log.end();
363
364 def _gen_compiler_options(compiler_options):
C:\JModelica.org-2.1\install\Python\pymodelica\compiler_logging.pyc in end(self)
321
322 if exception.kind == 'org.jmodelica.util.exceptions.CcodeCompilationException':
--> 323 raise CcodeCompilationError(exception.message)
324
325 if exception.kind == 'org.jmodelica.util.exceptions.PackingFailedException':