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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001369/0.001369, allocations: 199.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001056, allocations: 92.83 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.807e-06/8.897e-06, allocations: 0 / 343.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 51.47 MB / 394.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.046/8.158, allocations: 3.026 GB / 3.411 GB, free: 98.42 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02212/8.18, allocations: 11.24 MB / 3.422 GB, free: 97.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.3095/8.49, allocations: 110.3 MB / 3.53 GB, free: 36.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.157e-05/8.49, allocations: 4 kB / 3.53 GB, free: 36.25 MB / 442.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.007476/8.497, allocations: 1.152 MB / 3.531 GB, free: 35.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/8.497, allocations: 8.031 kB / 3.531 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00175/8.499, allocations: 195.6 kB / 3.531 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004638/8.499, allocations: 262.6 kB / 3.532 GB, free: 34.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.584e-05/8.499, allocations: 11.94 kB / 3.532 GB, free: 34.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.596e-05/8.5, allocations: 12 kB / 3.532 GB, free: 34.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006067/8.5, allocations: 344.7 kB / 3.532 GB, free: 34.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/8.501, allocations: 278.6 kB / 3.532 GB, free: 33.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/8.501, allocations: 4 kB / 3.532 GB, free: 33.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/8.501, allocations: 0 / 3.532 GB, free: 33.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/8.501, allocations: 8 kB / 3.532 GB, free: 33.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/8.503, allocations: 1.314 MB / 3.534 GB, free: 32.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/8.503, allocations: 227.1 kB / 3.534 GB, free: 32.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/8.503, allocations: 133.4 kB / 3.534 GB, free: 32.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3196/8.823, allocations: 43.4 MB / 3.576 GB, free: 90.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/8.823, allocations: 36.78 kB / 3.576 GB, free: 90.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 4.589e-06/8.823, allocations: 0 / 3.576 GB, free: 90.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.002132/8.825, allocations: 0.5257 MB / 3.577 GB, free: 90.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/8.825, allocations: 66.06 kB / 3.577 GB, free: 90.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/8.825, allocations: 113.2 kB / 3.577 GB, free: 90.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/8.825, allocations: 25.7 kB / 3.577 GB, free: 90.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.176e-05/8.825, allocations: 114 kB / 3.577 GB, free: 90.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.825e-05/8.825, allocations: 108.8 kB / 3.577 GB, free: 90.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/8.825, allocations: 0 / 3.577 GB, free: 90.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.471e-05/8.826, allocations: 331.2 kB / 3.578 GB, free: 90 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/8.826, allocations: 101.6 kB / 3.578 GB, free: 90 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/8.826, allocations: 179.8 kB / 3.578 GB, free: 89.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005397/8.826, allocations: 144.1 kB / 3.578 GB, free: 89.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/8.826, allocations: 0 / 3.578 GB, free: 89.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001599/8.828, allocations: 0.5646 MB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/8.828, allocations: 7.594 kB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/8.828, allocations: 3.594 kB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/8.828, allocations: 3.875 kB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/8.828, allocations: 90.84 kB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/8.828, allocations: 7.141 kB / 3.579 GB, free: 89.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/8.829, allocations: 35.48 kB / 3.579 GB, free: 89.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/8.829, allocations: 17.55 kB / 3.579 GB, free: 89.88 MB / 442.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.0001103/8.829, allocations: 115.6 kB / 3.579 GB, free: 89.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007293/8.83, allocations: 236.3 kB / 3.579 GB, free: 89.76 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/8.832, allocations: 2.261 MB / 3.581 GB, free: 89.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/8.832, allocations: 28.45 kB / 3.581 GB, free: 89.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/8.832, allocations: 0 / 3.581 GB, free: 89.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/8.832, allocations: 3.422 kB / 3.581 GB, free: 89.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008938/8.833, allocations: 0.8359 MB / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/8.833, allocations: 0 / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/8.834, allocations: 83.52 kB / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/8.834, allocations: 3.562 kB / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/8.834, allocations: 3.594 kB / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/8.834, allocations: 5.094 kB / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/8.834, allocations: 0 / 3.582 GB, free: 89.43 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003975/8.838, allocations: 2.523 MB / 3.585 GB, free: 89.17 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/8.838, allocations: 120.3 kB / 3.585 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/8.838, allocations: 0 / 3.585 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/8.838, allocations: 17.64 kB / 3.585 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/8.838, allocations: 33.89 kB / 3.585 GB, free: 89.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/8.838, allocations: 19.56 kB / 3.585 GB, free: 89.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.472e-05/8.838, allocations: 92.02 kB / 3.585 GB, free: 88.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00683/8.845, allocations: 1.012 MB / 3.586 GB, free: 88.97 MB / 442.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.01175/8.857, allocations: 1.43 MB / 3.587 GB, free: 88.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001602/8.858, allocations: 0.994 MB / 3.588 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/8.859, allocations: 0 / 3.588 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/8.86, allocations: 1.022 MB / 3.589 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007623/8.861, allocations: 70.31 kB / 3.589 GB, free: 88.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/8.863, allocations: 1.321 MB / 3.591 GB, free: 88.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005233/8.863, allocations: 0.9196 MB / 3.592 GB, free: 87.97 MB / 442.7 MB Notification: Performance of SimCode: time 1.824e-06/8.863, allocations: 0 / 3.592 GB, free: 87.97 MB / 442.7 MB Notification: Performance of Templates: time 0.05648/8.92, allocations: 29.55 MB / 3.62 GB, free: 87.42 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches