Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.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.Pentane.Pentane_hs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs") translateModel(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 109.9 kB / 16.42 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.001744/0.001744, allocations: 182 kB / 17.36 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.591/1.591, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01351/0.01351, allocations: 2.78 MB / 294 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.589e-05/2.589e-05, allocations: 2.281 kB / 406.5 MB, free: 29.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.00771/0.007745, allocations: 8.809 MB / 415.3 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.01265, allocations: 8.451 MB / 423.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.928e-05/0.01278, allocations: 0 / 423.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005161/0.01331, allocations: 163 kB / 423.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.01371, allocations: 95.34 kB / 424 MB, free: 11.66 MB / 302.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.Pentane.Pentane_hs.wf.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.wf.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.003383/0.0171, allocations: 1.432 MB / 425.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.01743, allocations: 262.9 kB / 425.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.135e-05/0.01749, allocations: 15.92 kB / 425.7 MB, free: 9.949 MB / 302.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.09146/0.109, allocations: 13.69 MB / 439.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.1093, allocations: 67.64 kB / 439.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.1093, allocations: 8 kB / 439.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.1115, allocations: 312 kB / 439.8 MB, free: 13.1 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002692/0.1118, allocations: 237.2 kB / 440 MB, free: 12.87 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001347/0.1119, allocations: 169.6 kB / 440.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.989e-05/0.112, allocations: 19.94 kB / 440.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.998e-05/0.1121, allocations: 0 / 440.2 MB, free: 12.68 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 (20) * Number of variables: 47 (47) Notification: Performance of Bindings: time 0.001241/0.1133, allocations: 0.9903 MB / 441.2 MB, free: 11.58 MB / 318.1 MB Notification: Performance of FunctionAlias: time 7.789e-05/0.1134, allocations: 43.86 kB / 441.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0009903/0.1144, allocations: 0.8187 MB / 442.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simplify1: time 6.5e-05/0.1145, allocations: 47.94 kB / 442.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Alias: time 0.001011/0.1155, allocations: 0.5736 MB / 442.7 MB, free: 9.984 MB / 318.1 MB Notification: Performance of simplify2: time 6.804e-05/0.1156, allocations: 43.94 kB / 442.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001884/0.1158, allocations: 154.2 kB / 442.9 MB, free: 9.773 MB / 318.1 MB Notification: Performance of Events: time 0.0001575/0.116, allocations: 67.88 kB / 443 MB, free: 9.707 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0004232/0.1164, allocations: 382 kB / 443.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of Causalize: time 0.001302/0.1177, allocations: 1.057 MB / 444.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.000442/0.1182, allocations: 411.8 kB / 444.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of Inline: time 0.0008094/0.119, allocations: 0.6901 MB / 445.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of Partitioning: time 5.115e-05/0.119, allocations: 42.38 kB / 445.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of Cleanup: time 6.431e-05/0.1191, allocations: 43.88 kB / 445.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of Causalize: time 0.001241/0.1204, allocations: 0.9216 MB / 446.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of Tearing: time 1.359e-05/0.1204, allocations: 0 / 446.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of Initialization: time 2.524e-06/0.1204, allocations: 8 kB / 446.5 MB, free: 5.836 MB / 318.1 MB Notification: Performance of Tearing: time 1.954e-05/0.1204, allocations: 3.938 kB / 446.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of Categorize: time 2.375e-05/0.1204, allocations: 7.938 kB / 446.5 MB, free: 5.824 MB / 318.1 MB Notification: Performance of Solve: time 0.0002848/0.1207, allocations: 129.5 kB / 446.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Jacobian: time 4.468e-06/0.1207, allocations: 0 / 446.6 MB, free: 5.699 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 13 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 4 * 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: ................. 5 (5) {fluid.state.phase, fluid.phaseOutput, $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: ........... 41 (scalar:40, array:1, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * 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: ........... 41 (scalar:40, array:1, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * 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 5.358e-05/0.1208, allocations: 33.55 kB / 446.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of SimCode: time 0.002148/0.1229, allocations: 1.555 MB / 448.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of Templates: time 0.01023/0.1332, allocations: 5.607 MB / 453.8 MB, free: 14.48 MB / 334.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.makefile make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.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_Pentane_Pentane_hs -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.Pentane.Pentane_hs.o ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.c ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.c:281:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.c:284:117: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[1] /* fluid.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.c:287:22: error: use of undeclared identifier 'i' switch(i) ^ ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.c:295:113: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"n-Pentane\"}", (long) i); ^ 4 errors generated. make: *** [: ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.o] Error 1