Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008978/0.0008979, allocations: 89.98 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.000287, allocations: 7.938 kB / 351.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.24, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.549/5.789, allocations: 3.026 GB / 3.418 GB, free: 155.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01915/5.808, allocations: 11.29 MB / 3.429 GB, free: 149.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.266/6.074, allocations: 114.1 MB / 3.541 GB, free: 36.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.513e-06/6.074, allocations: 0 / 3.541 GB, free: 36.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.167e-05/6.074, allocations: 4 kB / 3.541 GB, free: 36.96 MB / 458.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.004555/6.079, allocations: 1.142 MB / 3.542 GB, free: 35.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/6.079, allocations: 16.03 kB / 3.542 GB, free: 35.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/6.08, allocations: 175.6 kB / 3.542 GB, free: 35.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/6.08, allocations: 262.7 kB / 3.542 GB, free: 35.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/6.08, allocations: 16.44 kB / 3.542 GB, free: 35.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/6.08, allocations: 23.95 kB / 3.542 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/6.083, allocations: 0.8856 MB / 3.543 GB, free: 34.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/6.083, allocations: 0 / 3.543 GB, free: 34.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/6.083, allocations: 12 kB / 3.543 GB, free: 34.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/6.083, allocations: 4 kB / 3.543 GB, free: 34.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/6.086, allocations: 0.9617 MB / 3.544 GB, free: 33.36 MB / 458.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.001295/6.087, allocations: 1.358 MB / 3.545 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/6.089, allocations: 0.7064 MB / 3.546 GB, free: 31.14 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2547/6.344, allocations: 37.22 MB / 3.582 GB, free: 85.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/6.344, allocations: 46.47 kB / 3.582 GB, free: 85.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.305e-06/6.344, allocations: 0 / 3.582 GB, free: 85.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004512/6.349, allocations: 1.332 MB / 3.584 GB, free: 85.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/6.349, allocations: 55.12 kB / 3.584 GB, free: 85.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.45e-05/6.349, allocations: 108.6 kB / 3.584 GB, free: 84.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.637e-05/6.349, allocations: 28.52 kB / 3.584 GB, free: 84.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/6.349, allocations: 127.4 kB / 3.584 GB, free: 84.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/6.349, allocations: 107.6 kB / 3.584 GB, free: 84.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/6.349, allocations: 5.984 kB / 3.584 GB, free: 84.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/6.349, allocations: 332 kB / 3.584 GB, free: 84.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/6.35, allocations: 331.6 kB / 3.585 GB, free: 84.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005721/6.35, allocations: 407.7 kB / 3.585 GB, free: 84.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005322/6.351, allocations: 331.3 kB / 3.585 GB, free: 84.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/6.351, allocations: 0 / 3.585 GB, free: 84.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001519/6.352, allocations: 0.8657 MB / 3.586 GB, free: 84.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/6.352, allocations: 13.25 kB / 3.586 GB, free: 84.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/6.352, allocations: 0 / 3.586 GB, free: 84.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/6.352, allocations: 3.656 kB / 3.586 GB, free: 84.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/6.353, allocations: 178.2 kB / 3.587 GB, free: 84.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/6.353, allocations: 5.156 kB / 3.587 GB, free: 84.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/6.354, allocations: 42.98 kB / 3.587 GB, free: 84.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/6.354, allocations: 64.95 kB / 3.587 GB, free: 84.32 MB / 458.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.0002169/6.354, allocations: 144.9 kB / 3.587 GB, free: 84.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.972e-05/6.354, allocations: 23.28 kB / 3.587 GB, free: 84.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00597/6.36, allocations: 7.809 MB / 3.594 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/6.36, allocations: 26.12 kB / 3.594 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/6.36, allocations: 3.781 kB / 3.594 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/6.36, allocations: 3.562 kB / 3.594 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/6.363, allocations: 3.514 MB / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/6.363, allocations: 0 / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/6.363, allocations: 114.7 kB / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/6.363, allocations: 0 / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/6.363, allocations: 17.95 kB / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/6.363, allocations: 0 / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/6.363, allocations: 0 / 3.598 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/6.365, allocations: 1.844 MB / 3.6 GB, free: 82.72 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.806e-05/6.365, allocations: 145.4 kB / 3.6 GB, free: 82.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/6.365, allocations: 11.41 kB / 3.6 GB, free: 82.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/6.366, allocations: 23.55 kB / 3.6 GB, free: 82.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.249e-05/6.366, allocations: 27.5 kB / 3.6 GB, free: 82.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/6.366, allocations: 16.16 kB / 3.6 GB, free: 82.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.462e-05/6.366, allocations: 94.62 kB / 3.6 GB, free: 82.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.31e-07/6.366, allocations: 3.844 kB / 3.6 GB, free: 82.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003852/6.37, allocations: 1.004 MB / 3.601 GB, free: 82.46 MB / 458.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.004699/6.375, allocations: 1.26 MB / 3.602 GB, free: 82.35 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/6.376, allocations: 0.8954 MB / 3.603 GB, free: 82.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/6.376, allocations: 0 / 3.603 GB, free: 82.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006063/6.377, allocations: 0.5903 MB / 3.604 GB, free: 81.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/6.377, allocations: 90.39 kB / 3.604 GB, free: 81.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/6.379, allocations: 1.618 MB / 3.605 GB, free: 80.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/6.379, allocations: 0.8694 MB / 3.606 GB, free: 80.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001424/6.38, allocations: 1.745 MB / 3.608 GB, free: 80.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/6.381, allocations: 93.23 kB / 3.608 GB, free: 80.07 MB / 458.7 MB Notification: Performance of SimCode: time 8.12e-07/6.381, allocations: 0 / 3.608 GB, free: 80.07 MB / 458.7 MB Notification: Performance of Templates: time 0.03433/6.415, allocations: 31.19 MB / 3.639 GB, free: 79.41 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches