Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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) 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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 109.1 kB / 17.75 MB, free: 5.352 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.00105/0.00105, allocations: 188.6 kB / 18.68 MB, free: 4.43 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.166/1.166, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.668e-05/1.668e-05, allocations: 5.656 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01278/0.0128, allocations: 13.33 MB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1498/0.1627, allocations: 15.54 MB / 383.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1628, allocations: 1.344 kB / 383.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1631, allocations: 84.55 kB / 383.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.1635, allocations: 108.7 kB / 383.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01333/0.1768, allocations: 5.959 MB / 389.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.1772, allocations: 375.1 kB / 389.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.1772, allocations: 13.38 kB / 389.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003685/0.1776, allocations: 247.3 kB / 389.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.1778, allocations: 104.3 kB / 390 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.1778, allocations: 14.41 kB / 390 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009001/0.1868, allocations: 6.237 MB / 396.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002478/0.1871, allocations: 315.7 kB / 396.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 8.666e-05/0.1872, allocations: 200.4 kB / 396.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.879e-05/0.1872, allocations: 35 kB / 396.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.744e-05/0.1872, allocations: 7.562 kB / 396.8 MB, free: 4.355 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 (41) * Number of variables: 53 (53) Notification: Performance of Bindings: time 0.0008619/0.1881, allocations: 1.174 MB / 397.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of FunctionAlias: time 4.599e-05/0.1882, allocations: 57.47 kB / 398 MB, free: 3.395 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008831/0.1891, allocations: 1.173 MB / 399.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simplify1: time 4.519e-05/0.1891, allocations: 66.44 kB / 399.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of Alias: time 0.000572/0.1897, allocations: 0.6132 MB / 399.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simplify2: time 3.934e-05/0.1897, allocations: 64.84 kB / 399.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of Events: time 0.0001217/0.1899, allocations: 121.1 kB / 400 MB, free: 1.867 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001831/0.1901, allocations: 247.1 kB / 400.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002669/0.1903, allocations: 352.4 kB / 400.6 MB, free: 1.457 MB / 302.1 MB Notification: Performance of Causalize: time 0.001475/0.1918, allocations: 1.773 MB / 402.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001334/0.1932, allocations: 1.884 MB / 404.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of Inline: time 0.001684/0.1948, allocations: 2.022 MB / 406.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of Partitioning: time 5.886e-05/0.1949, allocations: 62.36 kB / 406.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Cleanup: time 8.078e-05/0.195, allocations: 83.91 kB / 406.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of Causalize: time 0.001636/0.1966, allocations: 1.515 MB / 408 MB, free: 11.6 MB / 318.1 MB Notification: Performance of Tearing: time 7.233e-06/0.1967, allocations: 0 / 408 MB, free: 11.6 MB / 318.1 MB Notification: Performance of Initialization: time 1.075e-05/0.1967, allocations: 4 kB / 408 MB, free: 11.59 MB / 318.1 MB Notification: Performance of Tearing: time 2.405e-06/0.1967, allocations: 4 kB / 408 MB, free: 11.59 MB / 318.1 MB Notification: Performance of Categorize: time 8.886e-06/0.1967, allocations: 0 / 408 MB, free: 11.59 MB / 318.1 MB Notification: Performance of Solve: time 0.0003366/0.197, allocations: 246.5 kB / 408.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0005572/0.1976, allocations: 0.5958 MB / 408.8 MB, free: 10.72 MB / 318.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 1 * 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: ............................. 2 (2) {medium.p, medium.h} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {medium.state.phase, medium.phase, medium.dew.phase, medium.bubble.phase, medium.bubble2.phase, $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: ........... 53 (scalar:52, 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: ........... 55 (scalar:54, 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 4.903e-05/0.1977, allocations: 39.28 kB / 408.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of SimCode: time 0.00826/0.2059, allocations: 5.154 MB / 414 MB, free: 5.492 MB / 318.1 MB Notification: Performance of Templates: time 0.03305/0.239, allocations: 30.37 MB / 444.4 MB, free: 7.086 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -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=Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates -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 Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:245:59: error: use of undeclared identifier 'i' tmp20 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:248:118: error: use of undeclared identifier 'i' tmp24 = modelica_real_to_modelica_string((&data->localData[0]->realVars[5] /* medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:259:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ 4 errors generated. make: *** [: Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1