Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001487, allocations: 176.1 kB / 8.478 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.2 MB / 214.1 MB, free: 5.5 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009337/0.0009337, allocations: 87.28 kB / 262.1 MB, free: 5.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.558e-06/9.578e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.599/6.726, allocations: 3.02 GB / 3.374 GB, free: 23.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02015/6.746, allocations: 10.97 MB / 3.385 GB, free: 12.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4923/7.238, allocations: 109.5 MB / 3.491 GB, free: 76.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/7.238, allocations: 0 / 3.491 GB, free: 76.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.007134/7.246, allocations: 1.141 MB / 3.493 GB, free: 75.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/7.246, allocations: 11.97 kB / 3.493 GB, free: 75.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/7.247, allocations: 191.5 kB / 3.493 GB, free: 75.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/7.248, allocations: 254.8 kB / 3.493 GB, free: 75.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/7.248, allocations: 11.91 kB / 3.493 GB, free: 75.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.42e-05/7.248, allocations: 12 kB / 3.493 GB, free: 75 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005289/7.248, allocations: 348.7 kB / 3.493 GB, free: 74.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003856/7.249, allocations: 278.6 kB / 3.494 GB, free: 74.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/7.249, allocations: 0 / 3.494 GB, free: 74.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/7.249, allocations: 0 / 3.494 GB, free: 74.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/7.249, allocations: 4 kB / 3.494 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/7.25, allocations: 1.309 MB / 3.495 GB, free: 72.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/7.251, allocations: 232.2 kB / 3.495 GB, free: 72.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/7.251, allocations: 129.4 kB / 3.495 GB, free: 72.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06896/7.32, allocations: 37.45 MB / 3.532 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.539e-05/7.32, allocations: 46.78 kB / 3.532 GB, free: 30.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.816e-06/7.32, allocations: 0 / 3.532 GB, free: 30.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.00194/7.322, allocations: 0.5191 MB / 3.532 GB, free: 30.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/7.322, allocations: 55.41 kB / 3.532 GB, free: 30.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/7.322, allocations: 113 kB / 3.533 GB, free: 29.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/7.322, allocations: 25.7 kB / 3.533 GB, free: 29.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/7.322, allocations: 112.5 kB / 3.533 GB, free: 29.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.201e-05/7.322, allocations: 110.4 kB / 3.533 GB, free: 29.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/7.322, allocations: 0 / 3.533 GB, free: 29.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/7.322, allocations: 330.8 kB / 3.533 GB, free: 29.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/7.323, allocations: 104 kB / 3.533 GB, free: 29.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/7.323, allocations: 176 kB / 3.533 GB, free: 29.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/7.323, allocations: 140.2 kB / 3.533 GB, free: 28.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/7.323, allocations: 3.906 kB / 3.533 GB, free: 28.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001471/7.325, allocations: 0.5634 MB / 3.534 GB, free: 28.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/7.325, allocations: 12.09 kB / 3.534 GB, free: 28.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/7.325, allocations: 8 kB / 3.534 GB, free: 28.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/7.325, allocations: 4 kB / 3.534 GB, free: 28.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002966/7.325, allocations: 91.83 kB / 3.534 GB, free: 28.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/7.325, allocations: 4 kB / 3.534 GB, free: 28.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/7.325, allocations: 39.61 kB / 3.534 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/7.325, allocations: 19.98 kB / 3.534 GB, free: 28.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001086/7.325, allocations: 108.9 kB / 3.534 GB, free: 28.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006735/7.326, allocations: 235.5 kB / 3.535 GB, free: 27.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/7.329, allocations: 2.266 MB / 3.537 GB, free: 25.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/7.329, allocations: 27.95 kB / 3.537 GB, free: 25.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/7.329, allocations: 0 / 3.537 GB, free: 25.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/7.329, allocations: 3.938 kB / 3.537 GB, free: 25.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008664/7.329, allocations: 0.8431 MB / 3.538 GB, free: 24.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/7.33, allocations: 0 / 3.538 GB, free: 24.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/7.33, allocations: 71.91 kB / 3.538 GB, free: 24.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/7.33, allocations: 4 kB / 3.538 GB, free: 24.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/7.33, allocations: 7.984 kB / 3.538 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/7.33, allocations: 4 kB / 3.538 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/7.33, allocations: 0 / 3.538 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003476/7.333, allocations: 2.511 MB / 3.54 GB, free: 22.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/7.333, allocations: 124.4 kB / 3.54 GB, free: 21.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/7.333, allocations: 0 / 3.54 GB, free: 21.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/7.334, allocations: 23.89 kB / 3.54 GB, free: 21.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.47e-05/7.334, allocations: 31.95 kB / 3.54 GB, free: 21.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/7.334, allocations: 8 kB / 3.54 GB, free: 21.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.637e-05/7.334, allocations: 91.27 kB / 3.54 GB, free: 21.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006313/7.34, allocations: 0.995 MB / 3.541 GB, free: 20.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006331/7.346, allocations: 1.417 MB / 3.543 GB, free: 19.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/7.348, allocations: 0.9972 MB / 3.544 GB, free: 18.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/7.348, allocations: 0 / 3.544 GB, free: 18.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007461/7.348, allocations: 1.017 MB / 3.545 GB, free: 17.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/7.349, allocations: 72.09 kB / 3.545 GB, free: 17.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/7.351, allocations: 1.314 MB / 3.546 GB, free: 15.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/7.351, allocations: 0.9078 MB / 3.547 GB, free: 15.01 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/7.351, allocations: 4 kB / 3.547 GB, free: 15 MB / 426.7 MB Notification: Performance of Templates: time 0.299/7.65, allocations: 29.38 MB / 3.576 GB, free: 123 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches