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.0008946/0.0008946, allocations: 172.1 kB / 17.39 MB, free: 4.164 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.274/1.274, allocations: 223.3 MB / 241.4 MB, free: 9.934 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.0007599/0.0007599, allocations: 89.03 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002794, allocations: 11.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2064, allocations: 50.4 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.008/5.214, allocations: 3.026 GB / 3.42 GB, free: 143.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01871/5.233, allocations: 11.28 MB / 3.431 GB, free: 134.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2573/5.49, allocations: 114.1 MB / 3.542 GB, free: 20.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.734e-06/5.49, allocations: 4 kB / 3.542 GB, free: 20.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/5.49, allocations: 4 kB / 3.542 GB, free: 20.01 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.003908/5.494, allocations: 1.15 MB / 3.543 GB, free: 18.81 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/5.494, allocations: 8.031 kB / 3.543 GB, free: 18.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/5.495, allocations: 176.6 kB / 3.543 GB, free: 18.63 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/5.496, allocations: 260 kB / 3.544 GB, free: 18.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/5.496, allocations: 16.81 kB / 3.544 GB, free: 18.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.847e-05/5.496, allocations: 28.28 kB / 3.544 GB, free: 18.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/5.498, allocations: 0.8823 MB / 3.545 GB, free: 17.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/5.498, allocations: 4.125 kB / 3.545 GB, free: 17.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/5.498, allocations: 15.94 kB / 3.545 GB, free: 17.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/5.498, allocations: 8 kB / 3.545 GB, free: 17.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002607/5.501, allocations: 0.9657 MB / 3.546 GB, free: 16.39 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.001128/5.502, allocations: 1.339 MB / 3.547 GB, free: 14.92 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/5.504, allocations: 0.7097 MB / 3.548 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/5.504, allocations: 162.2 kB / 3.548 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2403/5.745, allocations: 37.23 MB / 3.584 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/5.745, allocations: 39.06 kB / 3.584 GB, free: 67.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.805e-06/5.745, allocations: 0 / 3.584 GB, free: 67.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004627/5.749, allocations: 1.325 MB / 3.585 GB, free: 67.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/5.749, allocations: 60.16 kB / 3.585 GB, free: 67.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.915e-05/5.749, allocations: 120.3 kB / 3.586 GB, free: 67.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/5.75, allocations: 33.95 kB / 3.586 GB, free: 67.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/5.75, allocations: 116.8 kB / 3.586 GB, free: 67.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/5.75, allocations: 119.8 kB / 3.586 GB, free: 67.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/5.75, allocations: 6.5 kB / 3.586 GB, free: 67.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/5.75, allocations: 329.7 kB / 3.586 GB, free: 66.72 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005073/5.75, allocations: 337 kB / 3.586 GB, free: 66.72 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/5.751, allocations: 406.8 kB / 3.587 GB, free: 66.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/5.752, allocations: 0.7041 MB / 3.588 GB, free: 66.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/5.752, allocations: 0 / 3.588 GB, free: 66.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001499/5.753, allocations: 0.8605 MB / 3.588 GB, free: 66.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/5.753, allocations: 3.969 kB / 3.588 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/5.753, allocations: 3.906 kB / 3.588 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/5.753, allocations: 3.938 kB / 3.588 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/5.754, allocations: 183.8 kB / 3.589 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/5.754, allocations: 5.312 kB / 3.589 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/5.755, allocations: 44.88 kB / 3.589 GB, free: 66.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/5.755, allocations: 67.44 kB / 3.589 GB, free: 66.52 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.0001781/5.755, allocations: 138.7 kB / 3.589 GB, free: 66.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.766e-05/5.755, allocations: 15.88 kB / 3.589 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005713/5.761, allocations: 7.815 MB / 3.596 GB, free: 66.22 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/5.761, allocations: 25.44 kB / 3.596 GB, free: 66.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/5.761, allocations: 0 / 3.596 GB, free: 66.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/5.761, allocations: 12.94 kB / 3.596 GB, free: 66.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/5.763, allocations: 3.506 MB / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/5.763, allocations: 0 / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006415/5.764, allocations: 118.6 kB / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/5.764, allocations: 0 / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/5.764, allocations: 13.89 kB / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/5.764, allocations: 5 kB / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/5.764, allocations: 0 / 3.6 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/5.765, allocations: 1.845 MB / 3.602 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/5.766, allocations: 146.5 kB / 3.602 GB, free: 64.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.485e-05/5.766, allocations: 7.938 kB / 3.602 GB, free: 64.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/5.766, allocations: 24.73 kB / 3.602 GB, free: 64.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/5.766, allocations: 30.11 kB / 3.602 GB, free: 64.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/5.766, allocations: 18.28 kB / 3.602 GB, free: 64.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.11e-05/5.766, allocations: 97.78 kB / 3.602 GB, free: 64.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/5.766, allocations: 0 / 3.602 GB, free: 64.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003571/5.77, allocations: 1.003 MB / 3.603 GB, free: 64.55 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.004147/5.774, allocations: 1.266 MB / 3.604 GB, free: 64.45 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001292/5.775, allocations: 0.8895 MB / 3.605 GB, free: 64.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/5.775, allocations: 0.9375 kB / 3.605 GB, free: 64.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/5.776, allocations: 0.5969 MB / 3.606 GB, free: 63.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/5.776, allocations: 88.14 kB / 3.606 GB, free: 63.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/5.778, allocations: 1.618 MB / 3.607 GB, free: 62.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002047/5.778, allocations: 0.8584 MB / 3.608 GB, free: 62.23 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001457/5.78, allocations: 1.74 MB / 3.61 GB, free: 62.19 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/5.78, allocations: 89.39 kB / 3.61 GB, free: 62.17 MB / 458.7 MB Notification: Performance of SimCode: time 2.7e-07/5.78, allocations: 2.031 kB / 3.61 GB, free: 62.17 MB / 458.7 MB Notification: Performance of Templates: time 0.03571/5.816, allocations: 33.15 MB / 3.642 GB, free: 60.9 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/jenkins1/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