Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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.TestMedium.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 113.1 kB / 16.42 MB, free: 6.484 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.001652/0.001652, allocations: 190 kB / 17.36 MB, free: 5.703 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.47/1.47, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01208/0.01208, allocations: 2.782 MB / 294 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.301e-05, allocations: 2.281 kB / 406.5 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.0862/0.08623, allocations: 97.14 MB / 0.4918 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3291/0.4154, allocations: 59.33 MB / 0.5498 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.417, allocations: 5.406 kB / 0.5498 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003998/0.421, allocations: 1.374 MB / 0.5511 GB, free: 2.891 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setState_ph'. Notification: Performance of NFTyping.typeBindings: time 0.02514/0.4462, allocations: 7.357 MB / 0.5583 GB, free: 1.371 MB / 382.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.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setState_ph'. [/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.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.01061/0.4569, allocations: 2.911 MB / 0.5612 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003932/0.4608, allocations: 2.086 MB / 0.5632 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.4611, allocations: 66.75 kB / 0.5633 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007751/0.4688, allocations: 0.7883 MB / 0.564 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001837/0.4707, allocations: 0.5942 MB / 0.5646 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002109/0.4709, allocations: 52.56 kB / 0.5647 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02524/0.4962, allocations: 3.838 MB / 0.5684 GB, free: 12.93 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.003754/0.4999, allocations: 2.147 MB / 0.5705 GB, free: 11 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.002178/0.5021, allocations: 1.503 MB / 0.572 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008453/0.503, allocations: 211.6 kB / 0.5722 GB, free: 9.426 MB / 398.1 MB Notification: Performance of FrontEnd: time 0.0001963/0.5032, allocations: 12 kB / 0.5722 GB, free: 9.414 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 438 (192) * Number of variables: 438 (438) Notification: Performance of Bindings: time 0.01129/0.5145, allocations: 9.156 MB / 0.5811 GB, free: 2.199 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0008818/0.5154, allocations: 454.9 kB / 0.5816 GB, free: 2.035 MB / 398.1 MB Notification: Performance of Early Inline: time 0.01108/0.5265, allocations: 8.186 MB / 0.5896 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simplify1: time 0.0004287/0.5269, allocations: 383 kB / 0.5899 GB, free: 10.94 MB / 414.1 MB Notification: Performance of Alias: time 0.006016/0.533, allocations: 4.919 MB / 0.5947 GB, free: 5.746 MB / 414.1 MB Notification: Performance of simplify2: time 0.0005807/0.5336, allocations: 391.6 kB / 0.5951 GB, free: 5.379 MB / 414.1 MB Notification: Performance of Detect States: time 0.001761/0.5353, allocations: 1.56 MB / 0.5966 GB, free: 3.82 MB / 414.1 MB Notification: Performance of Events: time 0.00136/0.5367, allocations: 1.155 MB / 0.5977 GB, free: 2.664 MB / 414.1 MB Notification: Performance of Partitioning: time 0.003225/0.5399, allocations: 2.803 MB / 0.6005 GB, free: 15.75 MB / 430.1 MB Notification: Performance of Causalize: time 0.01672/0.5567, allocations: 13.51 MB / 0.6137 GB, free: 2.27 MB / 430.1 MB Notification: Performance of After Index Reduction Inline: time 0.005425/0.5621, allocations: 4.989 MB / 0.6186 GB, free: 13.32 MB / 446.1 MB Notification: Performance of Inline: time 0.008085/0.5702, allocations: 7.556 MB / 0.6259 GB, free: 5.785 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0006989/0.571, allocations: 0.507 MB / 0.6264 GB, free: 5.25 MB / 446.1 MB Notification: Performance of Cleanup: time 0.0005402/0.5715, allocations: 366.2 kB / 0.6268 GB, free: 4.906 MB / 446.1 MB Notification: Performance of Causalize: time 0.02186/0.5934, allocations: 14.34 MB / 0.6408 GB, free: 6.477 MB / 462.1 MB Notification: Performance of Tearing: time 3.535e-05/0.5935, allocations: 4 kB / 0.6408 GB, free: 6.473 MB / 462.1 MB Notification: Performance of Initialization: time 2.865e-06/0.5935, allocations: 0 / 0.6408 GB, free: 6.473 MB / 462.1 MB Notification: Performance of Tearing: time 3.363e-05/0.5935, allocations: 7.875 kB / 0.6408 GB, free: 6.465 MB / 462.1 MB Notification: Performance of Categorize: time 0.0001148/0.5936, allocations: 16 kB / 0.6408 GB, free: 6.449 MB / 462.1 MB Notification: Performance of Solve: time 0.002718/0.5964, allocations: 1.144 MB / 0.6419 GB, free: 5.297 MB / 462.1 MB Notification: Performance of Jacobian: time 4.368e-06/0.5964, allocations: 0 / 0.6419 GB, free: 5.297 MB / 462.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: ................. 20 (20) {medium1.baseProperties.state.phase, medium1.baseProperties.phaseOutput, medium1.completeState.state.phase, medium1.completeBubbleDewStates.dewStateOnePhase.state.phase, medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase, medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase, medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase, medium2.baseProperties.state.phase, medium2.baseProperties.phaseOutput, medium2.completeState.state.phase, medium2.completeBubbleDewStates.dewStateOnePhase.state.phase, medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase, medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase, medium2.completeBubbleDewStates.bubbleStateTwoPhase.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: ........... 328 (scalar:326, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:6) * 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: ........... 328 (scalar:326, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:6) * 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.0001538/0.5965, allocations: 112.4 kB / 0.642 GB, free: 5.195 MB / 462.1 MB Notification: Performance of SimCode: time 0.01569/0.6122, allocations: 9.204 MB / 0.651 GB, free: 12.83 MB / 478.1 MB Notification: Performance of Templates: time 0.4252/1.038, allocations: 53.35 MB / 0.7031 GB, free: 115.7 MB / 0.4981 GB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.makefile make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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_TestMedium_TestBasePropertiesExplicit -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.TestMedium.TestBasePropertiesExplicit.o ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:281:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:284:136: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[198] /* medium2.baseProperties.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:287:22: error: use of undeclared identifier 'i' switch(i) ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:295:114: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"TestMedium\"}", (long) i); ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:432:59: error: use of undeclared identifier 'i' tmp59 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:435: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.TestMedium.TestBasePropertiesExplicit.c:438:22: error: use of undeclared identifier 'i' switch(i) ^ ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.c:446:114: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"TestMedium\"}", (long) i); ^ 8 errors generated. make: *** [: ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.o] Error 1