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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001064, allocations: 118.6 kB / 17.28 MB, free: 6.219 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.001086/0.001086, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 51.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07617/0.07739, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01544/0.09288, allocations: 13.45 MB / 340.2 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.1094, allocations: 15.59 MB / 355.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.1096, allocations: 0 / 355.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.11, allocations: 71.66 kB / 355.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.1103, allocations: 103.4 kB / 356 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01411/0.1244, allocations: 5.251 MB / 361.2 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.125, allocations: 338.6 kB / 361.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.684e-05/0.125, allocations: 21.62 kB / 361.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004302/0.1255, allocations: 219.1 kB / 361.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1256, allocations: 107.6 kB / 361.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1257, allocations: 16 kB / 361.9 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01299/0.1387, allocations: 6.649 MB / 368.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1388, allocations: 47.84 kB / 368.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000216/0.139, allocations: 107.6 kB / 368.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008549/0.1476, allocations: 3.914 MB / 372.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1477, allocations: 0 / 372.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1477, allocations: 0 / 372.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1477, allocations: 0 / 372.6 MB, free: 6.801 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 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002178/0.1499, allocations: 0.9869 MB / 373.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1499, allocations: 8.031 kB / 373.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002198/0.1521, allocations: 180.6 kB / 373.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.1525, allocations: 267.9 kB / 374.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.1525, allocations: 12.81 kB / 374.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.075e-05/0.1526, allocations: 28.31 kB / 374.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004634/0.1573, allocations: 0.9011 MB / 375 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1573, allocations: 4 kB / 375 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.1574, allocations: 12 kB / 375 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.1574, allocations: 4 kB / 375 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004954/0.1623, allocations: 0.9734 MB / 376 MB, free: 3.324 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.1645, allocations: 1.35 MB / 377.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003518/0.1681, allocations: 0.7245 MB / 378.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.1683, allocations: 156.8 kB / 378.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1875/0.3559, allocations: 37.39 MB / 415.6 MB, free: 25.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3559, allocations: 32.25 kB / 415.7 MB, free: 25.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.863e-06/0.3559, allocations: 0 / 415.7 MB, free: 25.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004958/0.3609, allocations: 1.363 MB / 417 MB, free: 23.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.361, allocations: 55.41 kB / 417.1 MB, free: 23.6 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.851e-05/0.361, allocations: 121.1 kB / 417.2 MB, free: 23.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.255e-05/0.3611, allocations: 33.7 kB / 417.2 MB, free: 23.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.022e-05/0.3612, allocations: 115.1 kB / 417.3 MB, free: 23.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3613, allocations: 109.9 kB / 417.4 MB, free: 23.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.3615, allocations: 172.9 kB / 417.6 MB, free: 23.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.019e-05/0.3616, allocations: 326.8 kB / 417.9 MB, free: 22.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005229/0.3621, allocations: 339.8 kB / 418.3 MB, free: 22.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.3627, allocations: 407.3 kB / 418.7 MB, free: 21.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.3638, allocations: 0.7057 MB / 419.4 MB, free: 21.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3638, allocations: 0 / 419.4 MB, free: 21.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001553/0.3654, allocations: 0.8798 MB / 420.3 MB, free: 20.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3654, allocations: 6.062 kB / 420.3 MB, free: 20.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3654, allocations: 4.562 kB / 420.3 MB, free: 20.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3654, allocations: 5.078 kB / 420.3 MB, free: 20.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/0.3661, allocations: 180.3 kB / 420.4 MB, free: 20.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3661, allocations: 7.984 kB / 420.5 MB, free: 20.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003867/0.3665, allocations: 32.83 kB / 420.5 MB, free: 20.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.3666, allocations: 68 kB / 420.5 MB, free: 20.07 MB / 318.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.3668, allocations: 141.7 kB / 420.7 MB, free: 19.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.367, allocations: 15.81 kB / 420.7 MB, free: 19.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005205/0.3722, allocations: 7.969 MB / 428.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/0.3722, allocations: 31.89 kB / 428.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3722, allocations: 3.656 kB / 428.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3723, allocations: 7.812 kB / 428.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.3742, allocations: 3.591 MB / 432.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3742, allocations: 0 / 432.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000683/0.3749, allocations: 116.5 kB / 432.4 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.375, allocations: 2.016 kB / 432.4 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.375, allocations: 11.98 kB / 432.4 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.375, allocations: 3.938 kB / 432.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.375, allocations: 10.5 kB / 432.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.3769, allocations: 1.838 MB / 434.3 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.377, allocations: 144.1 kB / 434.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.377, allocations: 11.98 kB / 434.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.3774, allocations: 20 kB / 434.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-05/0.3775, allocations: 31.95 kB / 434.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.3775, allocations: 15.98 kB / 434.5 MB, free: 5.824 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.3776, allocations: 95.2 kB / 434.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3776, allocations: 0 / 434.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002172/0.3797, allocations: 0.9762 MB / 435.6 MB, free: 4.836 MB / 318.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004017/0.3838, allocations: 1.129 MB / 436.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.3854, allocations: 0.9231 MB / 437.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3854, allocations: 0 / 437.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005661/0.386, allocations: 0.5908 MB / 438.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.3866, allocations: 83.27 kB / 438.3 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3881, allocations: 1.558 MB / 439.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.3883, allocations: 0.8575 MB / 440.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001841/0.3902, allocations: 1.785 MB / 442.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/0.3905, allocations: 87.36 kB / 442.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3905, allocations: 0 / 442.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of Templates: time 0.05194/0.4425, allocations: 41.06 MB / 483.6 MB, free: 4.797 MB / 366.1 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