Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 111.8 kB / 18.47 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 218.2 kB / 19.43 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.198e-05, allocations: 6.219 kB / 361.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.188/0.188, allocations: 13.44 MB / 375.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.203, allocations: 15.56 MB / 390.7 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.2034, allocations: 1.469 kB / 390.7 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005053/0.2039, allocations: 84.17 kB / 390.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.2045, allocations: 107.2 kB / 390.9 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01716/0.2217, allocations: 5.978 MB / 396.8 MB, free: 28 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006754/0.2224, allocations: 370.7 kB / 397.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.183e-05/0.2224, allocations: 13.81 kB / 397.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005277/0.223, allocations: 239.6 kB / 397.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.2232, allocations: 103.8 kB / 397.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.2232, allocations: 14.72 kB / 397.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.2366, allocations: 6.26 MB / 403.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0004301/0.237, allocations: 315.9 kB / 404.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001489/0.2372, allocations: 199.3 kB / 404.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.455e-05/0.2373, allocations: 35.88 kB / 404.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.091e-05/0.2373, allocations: 2.656 kB / 404.4 MB, free: 12.05 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: 53 (41) * Number of variables: 53 (53) Notification: Performance of Bindings: time 0.001282/0.2386, allocations: 1.174 MB / 405.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FunctionAlias: time 7.479e-05/0.2387, allocations: 62.19 kB / 405.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001204/0.2399, allocations: 1.17 MB / 406.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simplify1: time 6.024e-05/0.24, allocations: 62.7 kB / 406.8 MB, free: 10.18 MB / 318.1 MB Notification: Performance of Alias: time 0.0007973/0.2408, allocations: 0.6298 MB / 407.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of simplify2: time 5.447e-05/0.2409, allocations: 61.89 kB / 407.5 MB, free: 9.633 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002673/0.2411, allocations: 227.1 kB / 407.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Events: time 0.0001704/0.2413, allocations: 127.6 kB / 407.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of Partitioning: time 0.00037/0.2417, allocations: 350.5 kB / 408.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of Causalize: time 0.001964/0.2437, allocations: 1.774 MB / 410 MB, free: 7.703 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.00176/0.2454, allocations: 1.879 MB / 411.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of Inline: time 0.001848/0.2473, allocations: 2.031 MB / 413.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of Partitioning: time 5.805e-05/0.2474, allocations: 50.38 kB / 413.9 MB, free: 3.672 MB / 318.1 MB Notification: Performance of Cleanup: time 8.553e-05/0.2475, allocations: 87.89 kB / 414 MB, free: 3.586 MB / 318.1 MB Notification: Performance of Causalize: time 0.001661/0.2491, allocations: 1.521 MB / 415.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of Tearing: time 1.586e-05/0.2492, allocations: 4 kB / 415.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of Initialization: time 4.31e-07/0.2492, allocations: 0 / 415.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of Tearing: time 3.647e-06/0.2492, allocations: 0 / 415.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of Categorize: time 1.129e-05/0.2492, allocations: 0 / 415.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of Solve: time 0.0003583/0.2495, allocations: 250.5 kB / 415.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of Jacobian: time 0.0005308/0.2501, allocations: 0.6036 MB / 416.4 MB, free: 1.168 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 5.243e-05/0.2501, allocations: 36.66 kB / 416.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of SimCode: time 0.01201/0.2622, allocations: 5.209 MB / 421.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of Templates: time 0.03776/0.3, allocations: 30.44 MB / 452.1 MB, free: 13.43 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile make -j1 -f Modelica_trunk_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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c Modelica_trunk_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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:251:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1