Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 178.4 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.233/1.233, allocations: 205.6 MB / 223.7 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007085/0.0007085, allocations: 86.62 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002316, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1904, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01239/0.2029, allocations: 15.95 MB / 392.5 MB, free: 31.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.2164, allocations: 23.01 MB / 415.6 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.2166, allocations: 0 / 415.6 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.2169, allocations: 75.66 kB / 415.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.2172, allocations: 103.3 kB / 415.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0119/0.2291, allocations: 4.701 MB / 420.4 MB, free: 2.148 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003238/0.2295, allocations: 370.5 kB / 420.8 MB, free: 1.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.791e-05/0.2295, allocations: 13.62 kB / 420.8 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004068/0.23, allocations: 215.1 kB / 421 MB, free: 1.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2301, allocations: 111.5 kB / 421.1 MB, free: 1.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.2301, allocations: 8 kB / 421.1 MB, free: 1.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01045/0.2406, allocations: 6.442 MB / 427.6 MB, free: 11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.816e-05/0.2407, allocations: 35.83 kB / 427.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.2408, allocations: 129.3 kB / 427.7 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007399/0.2482, allocations: 3.883 MB / 431.6 MB, free: 6.938 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2483, allocations: 0 / 431.6 MB, free: 6.938 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2483, allocations: 0 / 431.6 MB, free: 6.938 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2483, allocations: 0 / 431.6 MB, free: 6.938 MB / 314.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.002062/0.2504, allocations: 0.9478 MB / 432.6 MB, free: 5.941 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2504, allocations: 12.03 kB / 432.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.2516, allocations: 184.5 kB / 432.8 MB, free: 5.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.2519, allocations: 260 kB / 433 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.252, allocations: 20.81 kB / 433 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.252, allocations: 20.28 kB / 433.1 MB, free: 5.414 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.2548, allocations: 0.9167 MB / 434 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2548, allocations: 0 / 434 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.2549, allocations: 12 kB / 434 MB, free: 4.465 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.2549, allocations: 4 kB / 434 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002919/0.2578, allocations: 0.989 MB / 435 MB, free: 3.473 MB / 314.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.001552/0.2594, allocations: 1.346 MB / 436.3 MB, free: 1.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.2616, allocations: 0.7283 MB / 437 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.2619, allocations: 160.8 kB / 437.2 MB, free: 1.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06702/0.3289, allocations: 37.75 MB / 475 MB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.329, allocations: 34.56 kB / 475 MB, free: 6.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.329, allocations: 4 kB / 475 MB, free: 6.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.004629/0.3337, allocations: 1.372 MB / 476.4 MB, free: 5.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.3337, allocations: 59.34 kB / 476.4 MB, free: 5.395 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.3338, allocations: 125.7 kB / 476.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.085e-05/0.3339, allocations: 29.7 kB / 476.6 MB, free: 5.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.139e-05/0.334, allocations: 116.7 kB / 476.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.3341, allocations: 110.4 kB / 476.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.3341, allocations: 4 kB / 476.8 MB, free: 4.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3343, allocations: 326.8 kB / 477.1 MB, free: 4.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005936/0.3349, allocations: 343.6 kB / 477.5 MB, free: 4.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006106/0.3355, allocations: 415.3 kB / 477.9 MB, free: 3.895 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.3367, allocations: 0.7193 MB / 478.6 MB, free: 3.148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3367, allocations: 384 / 478.6 MB, free: 3.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001574/0.3382, allocations: 0.8836 MB / 479.5 MB, free: 2.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3383, allocations: 4 kB / 479.5 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3383, allocations: 7.984 kB / 479.5 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.3383, allocations: 11.88 kB / 479.5 MB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.339, allocations: 179.7 kB / 479.7 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.339, allocations: 7.984 kB / 479.7 MB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.3393, allocations: 47.86 kB / 479.7 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.3394, allocations: 63.88 kB / 479.8 MB, free: 1.941 MB / 362.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.3396, allocations: 137.8 kB / 479.9 MB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.3397, allocations: 15.81 kB / 479.9 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006834/0.3466, allocations: 7.982 MB / 487.9 MB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.3466, allocations: 27.95 kB / 487.9 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.3466, allocations: 4 kB / 487.9 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3466, allocations: 3.984 kB / 487.9 MB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.3494, allocations: 3.588 MB / 491.5 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3494, allocations: 4 kB / 491.5 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006176/0.3501, allocations: 115.8 kB / 491.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.3501, allocations: 0 / 491.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.3501, allocations: 15.92 kB / 491.7 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.3501, allocations: 4 kB / 491.7 MB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3502, allocations: 0 / 491.7 MB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3524, allocations: 1.846 MB / 493.5 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.226e-05/0.3525, allocations: 148.1 kB / 493.7 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/0.3525, allocations: 11.92 kB / 493.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.3528, allocations: 24.06 kB / 493.7 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.819e-05/0.3529, allocations: 27.95 kB / 493.7 MB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.871e-05/0.353, allocations: 15.98 kB / 493.7 MB, free: 3.652 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.054e-05/0.353, allocations: 95.2 kB / 493.8 MB, free: 3.559 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.353, allocations: 0 / 493.8 MB, free: 3.559 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002368/0.3554, allocations: 0.9877 MB / 494.8 MB, free: 2.57 MB / 378.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 (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.003988/0.3594, allocations: 1.144 MB / 496 MB, free: 1.418 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3608, allocations: 0.9075 MB / 496.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3608, allocations: 0 / 496.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007156/0.3616, allocations: 0.5953 MB / 497.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.3621, allocations: 86.67 kB / 497.6 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.364, allocations: 1.599 MB / 499.2 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3644, allocations: 0.8536 MB / 0.4883 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001796/0.3662, allocations: 1.78 MB / 0.49 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.3665, allocations: 87.36 kB / 0.4901 GB, free: 11.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3665, allocations: 0 / 0.4901 GB, free: 11.46 MB / 394.7 MB Notification: Performance of Templates: time 0.175/0.5415, allocations: 40.44 MB / 0.5296 GB, free: 110.2 MB / 394.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