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.001802/0.001802, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 91.42 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.49e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.346, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.039/9.386, allocations: 3.02 GB / 3.374 GB, free: 29.86 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03281/9.418, allocations: 10.9 MB / 3.384 GB, free: 21.7 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7956/10.21, allocations: 110.5 MB / 3.492 GB, free: 86.14 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.552e-06/10.21, allocations: 0 / 3.492 GB, free: 86.14 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/10.21, allocations: 4 kB / 3.492 GB, free: 86.13 MB / 427.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.005811/10.22, allocations: 1.14 MB / 3.493 GB, free: 85.02 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/10.22, allocations: 11.64 kB / 3.493 GB, free: 85.01 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/10.22, allocations: 180.9 kB / 3.494 GB, free: 84.88 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/10.22, allocations: 270.2 kB / 3.494 GB, free: 84.61 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/10.22, allocations: 12 kB / 3.494 GB, free: 84.6 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/10.22, allocations: 12 kB / 3.494 GB, free: 84.59 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007715/10.22, allocations: 342.8 kB / 3.494 GB, free: 84.29 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005708/10.22, allocations: 276.8 kB / 3.494 GB, free: 84.04 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/10.22, allocations: 0 / 3.494 GB, free: 84.04 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/10.22, allocations: 0 / 3.494 GB, free: 84.04 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/10.22, allocations: 4 kB / 3.494 GB, free: 84.03 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or 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.00196/10.23, allocations: 1.308 MB / 3.496 GB, free: 82.75 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005311/10.23, allocations: 243.7 kB / 3.496 GB, free: 82.52 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/10.23, allocations: 129 kB / 3.496 GB, free: 82.39 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1155/10.34, allocations: 37.36 MB / 3.533 GB, free: 41.37 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/10.34, allocations: 30.84 kB / 3.533 GB, free: 41.33 MB / 427.1 MB Notification: Performance of pre-optimization done (n=33): time 3.857e-06/10.34, allocations: 0 / 3.533 GB, free: 41.33 MB / 427.1 MB Notification: Performance of matching and sorting (n=33): time 0.004391/10.35, allocations: 0.7885 MB / 3.533 GB, free: 40.54 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/10.35, allocations: 57.47 kB / 3.533 GB, free: 40.47 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/10.35, allocations: 113.1 kB / 3.534 GB, free: 40.35 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 9.842e-05/10.35, allocations: 29.7 kB / 3.534 GB, free: 40.32 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/10.35, allocations: 190.8 kB / 3.534 GB, free: 40.13 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/10.35, allocations: 114.3 kB / 3.534 GB, free: 40.02 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.229e-05/10.35, allocations: 0 / 3.534 GB, free: 40.02 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 6.882e-05/10.35, allocations: 326.8 kB / 3.534 GB, free: 39.69 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/10.35, allocations: 303.9 kB / 3.534 GB, free: 39.39 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000679/10.35, allocations: 371.6 kB / 3.535 GB, free: 39 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003303/10.35, allocations: 423.9 kB / 3.535 GB, free: 38.59 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/10.35, allocations: 4 kB / 3.535 GB, free: 38.58 MB / 427.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004423/10.36, allocations: 0.8965 MB / 3.536 GB, free: 37.68 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/10.36, allocations: 7.984 kB / 3.536 GB, free: 37.67 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/10.36, allocations: 4 kB / 3.536 GB, free: 37.67 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-05/10.36, allocations: 4 kB / 3.536 GB, free: 37.66 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/10.36, allocations: 171.8 kB / 3.536 GB, free: 37.5 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/10.36, allocations: 8.188 kB / 3.536 GB, free: 37.49 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000767/10.36, allocations: 47.72 kB / 3.536 GB, free: 37.44 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/10.36, allocations: 63.92 kB / 3.536 GB, free: 37.38 MB / 427.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 () * 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.0002557/10.36, allocations: 114.5 kB / 3.537 GB, free: 37.26 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/10.36, allocations: 15.81 kB / 3.537 GB, free: 37.25 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008698/10.37, allocations: 6.517 MB / 3.543 GB, free: 30.72 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.98e-05/10.37, allocations: 24.34 kB / 3.543 GB, free: 30.7 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/10.37, allocations: 0 / 3.543 GB, free: 30.7 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/10.37, allocations: 3.984 kB / 3.543 GB, free: 30.7 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/10.37, allocations: 2.831 MB / 3.546 GB, free: 27.69 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/10.37, allocations: 3.938 kB / 3.546 GB, free: 27.68 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/10.37, allocations: 127.8 kB / 3.546 GB, free: 27.56 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/10.37, allocations: 0 / 3.546 GB, free: 27.56 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.119e-05/10.37, allocations: 15.98 kB / 3.546 GB, free: 27.54 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/10.37, allocations: 7.984 kB / 3.546 GB, free: 27.54 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/10.37, allocations: 4 kB / 3.546 GB, free: 27.53 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003585/10.38, allocations: 1.747 MB / 3.548 GB, free: 25.77 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.243e-05/10.38, allocations: 144.2 kB / 3.548 GB, free: 25.61 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.581e-05/10.38, allocations: 0 / 3.548 GB, free: 25.61 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/10.38, allocations: 19.98 kB / 3.548 GB, free: 25.59 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/10.38, allocations: 39.94 kB / 3.548 GB, free: 25.55 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/10.38, allocations: 23.98 kB / 3.548 GB, free: 25.52 MB / 427.1 MB Notification: Performance of sorting global known variables: time 5.47e-05/10.38, allocations: 91.27 kB / 3.548 GB, free: 25.43 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.51e-07/10.38, allocations: 0 / 3.548 GB, free: 25.43 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.005016/10.38, allocations: 0.9794 MB / 3.549 GB, free: 24.45 MB / 427.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.008769/10.39, allocations: 1.27 MB / 3.55 GB, free: 23.24 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/10.39, allocations: 0.8328 MB / 3.551 GB, free: 22.41 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/10.39, allocations: 4.062 kB / 3.551 GB, free: 22.4 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008521/10.39, allocations: 0.5557 MB / 3.551 GB, free: 21.85 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009036/10.4, allocations: 74.5 kB / 3.551 GB, free: 21.78 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/10.4, allocations: 1.033 MB / 3.552 GB, free: 20.71 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/10.4, allocations: 0.8464 MB / 3.553 GB, free: 19.84 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006382/10.4, allocations: 115.3 kB / 3.553 GB, free: 19.72 MB / 427.1 MB Notification: Performance of SimCode: time 9.22e-07/10.4, allocations: 0 / 3.553 GB, free: 19.72 MB / 427.1 MB Notification: Performance of Templates: time 0.3459/10.74, allocations: 26.74 MB / 3.58 GB, free: 75.75 MB / 427.1 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/jenkins1/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