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.001039/0.001039, allocations: 106.8 kB / 17.15 MB, free: 6.305 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.001014/0.001014, allocations: 198 kB / 18.07 MB, free: 5.41 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 / 223.9 MB, free: 12.37 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.001811/0.001811, allocations: 51.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.09, allocations: 46.63 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01562/0.1057, allocations: 14.16 MB / 340.7 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01783/0.1235, allocations: 16.6 MB / 357.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.1237, allocations: 4 kB / 357.4 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.1242, allocations: 83.59 kB / 357.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.1245, allocations: 91.34 kB / 357.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01248/0.137, allocations: 4.712 MB / 362.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.1374, allocations: 366.5 kB / 362.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.1375, allocations: 9.688 kB / 362.6 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004064/0.1379, allocations: 207.2 kB / 362.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.1381, allocations: 111.5 kB / 362.9 MB, free: 444 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.1381, allocations: 12 kB / 362.9 MB, free: 432 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.149, allocations: 6.673 MB / 369.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.655e-05/0.1491, allocations: 39.83 kB / 369.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1493, allocations: 103.6 kB / 369.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006898/0.1562, allocations: 3.899 MB / 373.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1562, allocations: 0 / 373.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1562, allocations: 4 kB / 373.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1562, allocations: 0 / 373.6 MB, free: 5.691 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.002097/0.1583, allocations: 0.9908 MB / 374.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1584, allocations: 12.03 kB / 374.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.1598, allocations: 168.6 kB / 374.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.16, allocations: 256 kB / 375.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.1601, allocations: 24.81 kB / 375.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.1601, allocations: 24.31 kB / 375.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003177/0.1633, allocations: 0.905 MB / 376 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1633, allocations: 0 / 376 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.846e-05/0.1634, allocations: 11.98 kB / 376 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1634, allocations: 4 kB / 376 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00328/0.1667, allocations: 0.9695 MB / 377 MB, free: 2.227 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.001509/0.1682, allocations: 1.354 MB / 378.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.1709, allocations: 0.7245 MB / 379.1 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1267/0.2976, allocations: 154.3 kB / 379.2 MB, free: 54.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06161/0.3593, allocations: 37.4 MB / 416.6 MB, free: 24.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3593, allocations: 42.28 kB / 416.7 MB, free: 24.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.214e-06/0.3593, allocations: 0 / 416.7 MB, free: 24.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004822/0.3642, allocations: 1.363 MB / 418 MB, free: 22.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.3642, allocations: 55.41 kB / 418.1 MB, free: 22.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.57e-05/0.3643, allocations: 124 kB / 418.2 MB, free: 22.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.3644, allocations: 29.7 kB / 418.2 MB, free: 22.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.976e-05/0.3645, allocations: 118.9 kB / 418.3 MB, free: 22.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.3646, allocations: 118.9 kB / 418.5 MB, free: 22.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002467/0.3649, allocations: 161.5 kB / 418.6 MB, free: 22.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.3649, allocations: 330.8 kB / 418.9 MB, free: 21.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005461/0.3655, allocations: 340.7 kB / 419.3 MB, free: 21.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.3661, allocations: 407.2 kB / 419.7 MB, free: 21.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.3672, allocations: 0.7059 MB / 420.4 MB, free: 20.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3672, allocations: 4 kB / 420.4 MB, free: 20.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001608/0.3688, allocations: 0.8662 MB / 421.3 MB, free: 19.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3689, allocations: 4.25 kB / 421.3 MB, free: 19.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3689, allocations: 15.92 kB / 421.3 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3689, allocations: 4 kB / 421.3 MB, free: 19.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006274/0.3695, allocations: 175.2 kB / 421.4 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3696, allocations: 4 kB / 421.5 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.37, allocations: 41.48 kB / 421.5 MB, free: 19.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.432e-05/0.3701, allocations: 63.92 kB / 421.6 MB, free: 19.13 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.0001906/0.3703, allocations: 145.7 kB / 421.7 MB, free: 18.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.3704, allocations: 15.81 kB / 421.7 MB, free: 18.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005084/0.3755, allocations: 7.968 MB / 429.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.3755, allocations: 23.97 kB / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.3755, allocations: 7.984 kB / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3756, allocations: 0 / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.3775, allocations: 3.601 MB / 433.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3775, allocations: 0 / 433.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006472/0.3782, allocations: 111.8 kB / 433.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3782, allocations: 0 / 433.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.3782, allocations: 15.92 kB / 433.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3782, allocations: 4 kB / 433.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3782, allocations: 0 / 433.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.3801, allocations: 1.842 MB / 435.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.3801, allocations: 145.2 kB / 435.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.273e-05/0.3802, allocations: 11.94 kB / 435.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/0.3805, allocations: 19.98 kB / 435.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/0.3806, allocations: 32.02 kB / 435.5 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.3807, allocations: 16 kB / 435.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.3807, allocations: 91.27 kB / 435.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3807, allocations: 0 / 435.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002189/0.3829, allocations: 0.9764 MB / 436.6 MB, free: 3.91 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.00403/0.3869, allocations: 1.134 MB / 437.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.3882, allocations: 0.9001 MB / 438.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3882, allocations: 0 / 438.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005952/0.3889, allocations: 0.5908 MB / 439.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006012/0.3895, allocations: 83.45 kB / 439.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.391, allocations: 1.561 MB / 440.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.3914, allocations: 0.8575 MB / 441.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001825/0.3932, allocations: 1.786 MB / 443.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003502/0.3936, allocations: 91.34 kB / 443.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3936, allocations: 0 / 443.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Templates: time 0.04875/0.4423, allocations: 40.53 MB / 484.1 MB, free: 4.418 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