Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009849/0.0009848, allocations: 179.5 kB / 16.41 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.3/1.3, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007085/0.0007085, allocations: 96.78 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003105, allocations: 11.98 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01063/0.2213, allocations: 12.35 MB / 386.9 MB, free: 35.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.2328, allocations: 14.36 MB / 401.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.2331, allocations: 4 kB / 401.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003653/0.2334, allocations: 59.67 kB / 401.3 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.2338, allocations: 103.3 kB / 401.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01166/0.2455, allocations: 4.53 MB / 406 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.2458, allocations: 330.5 kB / 406.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.906e-05/0.2459, allocations: 21.69 kB / 406.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003756/0.2463, allocations: 203.1 kB / 406.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.2464, allocations: 95.67 kB / 406.6 MB, free: 16.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.2464, allocations: 8 kB / 406.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009387/0.2558, allocations: 6.473 MB / 413.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.2559, allocations: 39.81 kB / 413.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.256, allocations: 65.64 kB / 413.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003709/0.2597, allocations: 2.616 MB / 415.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2597, allocations: 0 / 415.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2597, allocations: 0 / 415.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2597, allocations: 0 / 415.8 MB, free: 7.52 MB / 298.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.002529/0.2623, allocations: 0.9516 MB / 416.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2623, allocations: 12.03 kB / 416.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001271/0.2636, allocations: 179.6 kB / 416.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.2638, allocations: 258.7 kB / 417.2 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.2639, allocations: 20.44 kB / 417.2 MB, free: 6.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.325e-05/0.2639, allocations: 20 kB / 417.2 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002735/0.2667, allocations: 0.909 MB / 418.1 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2667, allocations: 0 / 418.1 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.2667, allocations: 8 kB / 418.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-06/0.2667, allocations: 11.95 kB / 418.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002858/0.2696, allocations: 0.989 MB / 419.1 MB, free: 4.059 MB / 298.7 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.001276/0.2709, allocations: 1.343 MB / 420.5 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.2732, allocations: 0.7253 MB / 421.2 MB, free: 1.848 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.2734, allocations: 157.4 kB / 421.4 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07144/0.3449, allocations: 37.76 MB / 459.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.345, allocations: 46.8 kB / 459.2 MB, free: 7.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.235e-06/0.345, allocations: 3.938 kB / 459.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004982/0.35, allocations: 1.373 MB / 460.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.35, allocations: 59.41 kB / 460.6 MB, free: 5.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3501, allocations: 117.9 kB / 460.7 MB, free: 5.844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-05/0.3502, allocations: 33.7 kB / 460.8 MB, free: 5.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.3503, allocations: 116.7 kB / 460.9 MB, free: 5.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.3504, allocations: 118.3 kB / 461 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.3505, allocations: 8 kB / 461 MB, free: 5.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3506, allocations: 322.8 kB / 461.3 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006123/0.3512, allocations: 343.8 kB / 461.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006373/0.3519, allocations: 415.2 kB / 462 MB, free: 4.465 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006203/0.3525, allocations: 331.9 kB / 462.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3525, allocations: 0 / 462.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001616/0.3541, allocations: 0.8769 MB / 463.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3542, allocations: 4 kB / 463.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3542, allocations: 8.203 kB / 463.3 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.3542, allocations: 8 kB / 463.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006348/0.3549, allocations: 183.7 kB / 463.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.3549, allocations: 7.984 kB / 463.5 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003902/0.3553, allocations: 35.73 kB / 463.5 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.3554, allocations: 59.94 kB / 463.6 MB, free: 2.957 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002255/0.3556, allocations: 137.8 kB / 463.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.294e-05/0.3557, allocations: 11.91 kB / 463.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007572/0.3633, allocations: 7.99 MB / 471.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-05/0.3633, allocations: 27.91 kB / 471.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3634, allocations: 7.938 kB / 471.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3634, allocations: 3.984 kB / 471.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.3663, allocations: 3.596 MB / 475.3 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3663, allocations: 0 / 475.3 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006361/0.367, allocations: 111.8 kB / 475.4 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.367, allocations: 4 kB / 475.4 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.367, allocations: 15.98 kB / 475.4 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.367, allocations: 3.953 kB / 475.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.367, allocations: 0 / 475.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.3694, allocations: 1.85 MB / 477.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-05/0.3695, allocations: 140.2 kB / 477.4 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.3695, allocations: 11.98 kB / 477.5 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.3699, allocations: 20 kB / 477.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.37, allocations: 31.91 kB / 477.5 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.37, allocations: 16.05 kB / 477.5 MB, free: 4.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.182e-05/0.3701, allocations: 95.27 kB / 477.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3701, allocations: 0 / 477.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002886/0.373, allocations: 0.9799 MB / 478.6 MB, free: 3.586 MB / 362.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 () * 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 (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.003406/0.3764, allocations: 1.143 MB / 479.7 MB, free: 2.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3778, allocations: 0.912 MB / 480.6 MB, free: 1.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3778, allocations: 0 / 480.6 MB, free: 1.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007216/0.3786, allocations: 0.5947 MB / 481.2 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006056/0.3792, allocations: 83.98 kB / 481.3 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.3812, allocations: 1.624 MB / 482.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.3816, allocations: 0.8497 MB / 483.8 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003342/0.382, allocations: 95.34 kB / 483.9 MB, free: 14.21 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.382, allocations: 0 / 483.9 MB, free: 14.21 MB / 378.7 MB Notification: Performance of Templates: time 0.03251/0.4145, allocations: 23.91 MB / 0.4959 GB, free: 6.234 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches