Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 183.3 kB / 18.04 MB, free: 3.781 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.385/1.385, allocations: 205.4 MB / 224.2 MB, free: 9.043 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.0007744/0.0007741, allocations: 97.02 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002995, allocations: 16 kB / 329.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.217, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.105/5.322, allocations: 3.021 GB / 3.389 GB, free: 20.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02021/5.342, allocations: 11.06 MB / 3.4 GB, free: 9.238 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4398/5.782, allocations: 113 MB / 3.51 GB, free: 67.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/5.782, allocations: 0 / 3.51 GB, free: 67.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/5.782, allocations: 4 kB / 3.51 GB, free: 67.53 MB / 426.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.004921/5.787, allocations: 1.134 MB / 3.511 GB, free: 66.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/5.787, allocations: 12.03 kB / 3.511 GB, free: 66.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/5.788, allocations: 184.5 kB / 3.512 GB, free: 66.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/5.788, allocations: 264 kB / 3.512 GB, free: 65.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/5.789, allocations: 16.81 kB / 3.512 GB, free: 65.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/5.789, allocations: 20.31 kB / 3.512 GB, free: 65.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002576/5.791, allocations: 0.8875 MB / 3.513 GB, free: 64.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/5.791, allocations: 4.172 kB / 3.513 GB, free: 64.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/5.791, allocations: 15.94 kB / 3.513 GB, free: 64.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/5.791, allocations: 4 kB / 3.513 GB, free: 64.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/5.794, allocations: 0.9657 MB / 3.514 GB, free: 63.92 MB / 426.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.00119/5.795, allocations: 1.343 MB / 3.515 GB, free: 62.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/5.797, allocations: 0.702 MB / 3.516 GB, free: 61.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/5.797, allocations: 165.3 kB / 3.516 GB, free: 61.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05599/5.853, allocations: 37.22 MB / 3.552 GB, free: 19.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.971e-05/5.853, allocations: 46.58 kB / 3.552 GB, free: 19.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.845e-06/5.853, allocations: 0 / 3.552 GB, free: 19.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004781/5.858, allocations: 1.319 MB / 3.554 GB, free: 18.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/5.858, allocations: 63.34 kB / 3.554 GB, free: 18.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/5.858, allocations: 121.7 kB / 3.554 GB, free: 18.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.427e-05/5.859, allocations: 33.7 kB / 3.554 GB, free: 18.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/5.859, allocations: 120.6 kB / 3.554 GB, free: 18.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/5.859, allocations: 110.4 kB / 3.554 GB, free: 18.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/5.859, allocations: 8 kB / 3.554 GB, free: 18.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.97e-05/5.859, allocations: 326.8 kB / 3.554 GB, free: 17.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/5.859, allocations: 335.8 kB / 3.555 GB, free: 17.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/5.86, allocations: 407.3 kB / 3.555 GB, free: 16.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/5.861, allocations: 0.7037 MB / 3.556 GB, free: 16.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/5.861, allocations: 0 / 3.556 GB, free: 16.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001495/5.862, allocations: 0.864 MB / 3.557 GB, free: 15.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/5.863, allocations: 4 kB / 3.557 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/5.863, allocations: 4 kB / 3.557 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/5.863, allocations: 4 kB / 3.557 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/5.863, allocations: 183.8 kB / 3.557 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/5.863, allocations: 11.94 kB / 3.557 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003908/5.864, allocations: 40.02 kB / 3.557 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.114e-05/5.864, allocations: 67.92 kB / 3.557 GB, free: 15.05 MB / 426.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.0002036/5.864, allocations: 141.7 kB / 3.557 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.18e-05/5.864, allocations: 15.81 kB / 3.557 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/5.87, allocations: 7.814 MB / 3.565 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/5.87, allocations: 35.88 kB / 3.565 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/5.87, allocations: 3.938 kB / 3.565 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/5.87, allocations: 7.984 kB / 3.565 GB, free: 7.016 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/5.872, allocations: 3.502 MB / 3.568 GB, free: 3.258 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/5.872, allocations: 0 / 3.568 GB, free: 3.258 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000645/5.873, allocations: 119.8 kB / 3.568 GB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/5.873, allocations: 0 / 3.568 GB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/5.873, allocations: 11.98 kB / 3.568 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/5.873, allocations: 4 kB / 3.568 GB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/5.873, allocations: 3.938 kB / 3.568 GB, free: 3.121 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/5.875, allocations: 1.842 MB / 3.57 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.28e-05/5.875, allocations: 144.2 kB / 3.57 GB, free: 1.102 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/5.875, allocations: 7.984 kB / 3.57 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/5.875, allocations: 31.98 kB / 3.57 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.934e-05/5.875, allocations: 31.89 kB / 3.57 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/5.875, allocations: 16 kB / 3.57 GB, free: 1.016 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.629e-05/5.875, allocations: 91.27 kB / 3.57 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/5.875, allocations: 0 / 3.57 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.1958/6.071, allocations: 0.9908 MB / 3.571 GB, free: 86.5 MB / 426.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.007641/6.079, allocations: 1.256 MB / 3.572 GB, free: 86.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/6.081, allocations: 0.8973 MB / 3.573 GB, free: 86.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/6.081, allocations: 3.406 kB / 3.573 GB, free: 86.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006947/6.082, allocations: 0.5883 MB / 3.574 GB, free: 86.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/6.082, allocations: 83.94 kB / 3.574 GB, free: 86.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/6.084, allocations: 1.597 MB / 3.576 GB, free: 85.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/6.084, allocations: 0.8542 MB / 3.576 GB, free: 85.11 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001622/6.086, allocations: 1.749 MB / 3.578 GB, free: 85.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/6.086, allocations: 89.62 kB / 3.578 GB, free: 85.06 MB / 426.7 MB Notification: Performance of SimCode: time 7.52e-07/6.086, allocations: 0 / 3.578 GB, free: 85.06 MB / 426.7 MB Notification: Performance of Templates: time 0.04099/6.127, allocations: 33.11 MB / 3.611 GB, free: 84.43 MB / 426.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/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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches