Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 115.4 kB / 16.43 MB, free: 6.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 183.2 kB / 17.35 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01095/0.01095, allocations: 2.787 MB / 294 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.355e-05, allocations: 6.219 kB / 406.6 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.0372/0.03723, allocations: 50.69 MB / 457.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02429/0.06155, allocations: 29.1 MB / 486.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006374/0.06223, allocations: 4 kB / 486.4 MB, free: 13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.0638, allocations: 0.6136 MB / 487 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006841/0.07072, allocations: 2.246 MB / 489.2 MB, free: 10.12 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.009306/0.08006, allocations: 2.928 MB / 492.1 MB, free: 7.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.08166, allocations: 1.064 MB / 493.2 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.72e-05/0.08175, allocations: 28.73 kB / 493.2 MB, free: 6.082 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.5492/0.6309, allocations: 51.21 MB / 0.5317 GB, free: 22.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006092/0.6316, allocations: 302 kB / 0.532 GB, free: 22.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.845e-05/0.6317, allocations: 26.38 kB / 0.532 GB, free: 22.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.146/0.7777, allocations: 27 MB / 0.5584 GB, free: 2.328 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.002076/0.7798, allocations: 1.011 MB / 0.5594 GB, free: 1.508 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006343/0.7804, allocations: 0.6894 MB / 0.56 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.7807, allocations: 91.56 kB / 0.5601 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.0001491/0.7809, allocations: 7.938 kB / 0.5601 GB, free: 0.7812 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 (90) * Number of variables: 198 (198) Notification: Performance of Bindings: time 0.004387/0.7853, allocations: 4.093 MB / 0.5641 GB, free: 13.48 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0003171/0.7856, allocations: 191.1 kB / 0.5643 GB, free: 13.41 MB / 398.1 MB Notification: Performance of Early Inline: time 0.004051/0.7897, allocations: 2.773 MB / 0.567 GB, free: 12 MB / 398.1 MB Notification: Performance of simplify1: time 0.0004562/0.7901, allocations: 253 kB / 0.5673 GB, free: 11.79 MB / 398.1 MB Notification: Performance of Alias: time 0.002933/0.7931, allocations: 2.16 MB / 0.5694 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simplify2: time 0.000444/0.7935, allocations: 246.1 kB / 0.5696 GB, free: 9.977 MB / 398.1 MB Notification: Performance of Detect States: time 0.0006739/0.7942, allocations: 0.5675 MB / 0.5701 GB, free: 9.691 MB / 398.1 MB Notification: Performance of Events: time 0.0004012/0.7946, allocations: 185.9 kB / 0.5703 GB, free: 9.602 MB / 398.1 MB Notification: Performance of Partitioning: time 0.00136/0.796, allocations: 1.086 MB / 0.5714 GB, free: 8.781 MB / 398.1 MB Notification: Performance of Causalize: time 0.01082/0.8068, allocations: 5.504 MB / 0.5768 GB, free: 4.539 MB / 398.1 MB Notification: Performance of After Index Reduction Inline: time 0.002064/0.8089, allocations: 1.513 MB / 0.5782 GB, free: 3.871 MB / 398.1 MB Notification: Performance of Inline: time 0.00345/0.8124, allocations: 2.247 MB / 0.5804 GB, free: 2.219 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0002838/0.8127, allocations: 195.5 kB / 0.5806 GB, free: 2.012 MB / 398.1 MB Notification: Performance of Cleanup: time 0.0006047/0.8133, allocations: 363.2 kB / 0.581 GB, free: 1.672 MB / 398.1 MB Notification: Performance of Causalize: time 0.009172/0.8225, allocations: 5.655 MB / 0.5865 GB, free: 12.05 MB / 414.1 MB Notification: Performance of Tearing: time 2.531e-05/0.8226, allocations: 4 kB / 0.5865 GB, free: 12.04 MB / 414.1 MB Notification: Performance of Initialization: time 1.032e-06/0.8226, allocations: 0 / 0.5865 GB, free: 12.04 MB / 414.1 MB Notification: Performance of Tearing: time 2.262e-05/0.8226, allocations: 3.938 kB / 0.5865 GB, free: 12.04 MB / 414.1 MB Notification: Performance of Categorize: time 5.867e-05/0.8227, allocations: 8 kB / 0.5865 GB, free: 12.03 MB / 414.1 MB Notification: Performance of Solve: time 0.001178/0.8239, allocations: 0.549 MB / 0.587 GB, free: 11.5 MB / 414.1 MB Notification: Performance of Jacobian: time 6.252e-06/0.8239, allocations: 0 / 0.587 GB, free: 11.5 MB / 414.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 8 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 6 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 12 (12) {medium1.baseProperties.state.phase, medium1.baseProperties.phaseOutput, medium1.completeState.state.phase, medium2.baseProperties.state.phase, medium2.baseProperties.phaseOutput, medium2.completeState.state.phase, $SEV_5, $SEV_4[$i1], $SEV_3, $SEV_2, $SEV_1[$i1], $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 120 (scalar:118, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:4) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 120 (scalar:118, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:4) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 0.0001316/0.824, allocations: 51.25 kB / 0.5871 GB, free: 11.46 MB / 414.1 MB Notification: Performance of SimCode: time 0.01594/0.84, allocations: 6.238 MB / 0.5932 GB, free: 6.129 MB / 414.1 MB Notification: Performance of Templates: time 0.04017/0.8802, allocations: 24.28 MB / 0.6169 GB, free: 13.92 MB / 446.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.o ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:317:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:320:135: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[84] /* medium2.baseProperties.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:323:22: error: use of undeclared identifier 'i' switch(i) ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:331:107: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"CO2\"}", (long) i); ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:468:59: error: use of undeclared identifier 'i' tmp59 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:471:134: error: use of undeclared identifier 'i' tmp63 = modelica_real_to_modelica_string((&data->localData[0]->realVars[1] /* medium1.baseProperties.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:474:22: error: use of undeclared identifier 'i' switch(i) ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.c:482:107: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"CO2\"}", (long) i); ^ 8 errors generated. make: *** [: ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.o] Error 1