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.002279/0.002284, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.969/1.969, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001113/0.001113, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.697e-05, allocations: 7.969 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.006/9.107, allocations: 3.021 GB / 3.381 GB, free: 58.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03433/9.142, allocations: 10.99 MB / 3.392 GB, free: 52.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7827/9.925, allocations: 112.9 MB / 3.502 GB, free: 88.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/9.925, allocations: 0 / 3.502 GB, free: 88.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/9.925, allocations: 3.625 kB / 3.502 GB, free: 88.49 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.005907/9.931, allocations: 1.141 MB / 3.503 GB, free: 87.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/9.931, allocations: 9.625 kB / 3.503 GB, free: 87.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002019/9.933, allocations: 175.6 kB / 3.503 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/9.933, allocations: 262 kB / 3.503 GB, free: 87.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/9.933, allocations: 14.97 kB / 3.503 GB, free: 87.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/9.933, allocations: 26.86 kB / 3.503 GB, free: 87.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004578/9.938, allocations: 0.905 MB / 3.504 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.696e-05/9.938, allocations: 2.156 kB / 3.504 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.004e-05/9.938, allocations: 6.25 kB / 3.504 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/9.938, allocations: 6.312 kB / 3.504 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/9.943, allocations: 0.9501 MB / 3.505 GB, free: 87.47 MB / 426.7 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.002113/9.945, allocations: 1.351 MB / 3.507 GB, free: 86.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003962/9.949, allocations: 0.7324 MB / 3.507 GB, free: 86.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/9.949, allocations: 141.3 kB / 3.507 GB, free: 86.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1157/10.06, allocations: 37.36 MB / 3.544 GB, free: 59.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/10.07, allocations: 34.84 kB / 3.544 GB, free: 59.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.915e-06/10.07, allocations: 3.562 kB / 3.544 GB, free: 59.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.00724/10.07, allocations: 1.233 MB / 3.545 GB, free: 58.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/10.07, allocations: 59.36 kB / 3.545 GB, free: 58.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/10.07, allocations: 116.2 kB / 3.545 GB, free: 58.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/10.07, allocations: 29.7 kB / 3.545 GB, free: 58.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.715e-05/10.07, allocations: 192.2 kB / 3.546 GB, free: 58.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/10.07, allocations: 114 kB / 3.546 GB, free: 58.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/10.07, allocations: 4 kB / 3.546 GB, free: 58.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.008e-05/10.07, allocations: 330.4 kB / 3.546 GB, free: 57.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008166/10.07, allocations: 309.3 kB / 3.546 GB, free: 57.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008268/10.07, allocations: 387.5 kB / 3.547 GB, free: 57.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/10.08, allocations: 317.6 kB / 3.547 GB, free: 56.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/10.08, allocations: 0 / 3.547 GB, free: 56.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002471/10.08, allocations: 0.8099 MB / 3.548 GB, free: 56.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/10.08, allocations: 4 kB / 3.548 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/10.08, allocations: 4 kB / 3.548 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/10.08, allocations: 4 kB / 3.548 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/10.08, allocations: 188 kB / 3.548 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/10.08, allocations: 6.391 kB / 3.548 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007824/10.08, allocations: 42.88 kB / 3.548 GB, free: 55.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/10.08, allocations: 68.77 kB / 3.548 GB, free: 55.91 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 () * 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.0002569/10.08, allocations: 119.5 kB / 3.548 GB, free: 55.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/10.08, allocations: 23.06 kB / 3.548 GB, free: 55.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008092/10.09, allocations: 6.498 MB / 3.555 GB, free: 50 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.13e-05/10.09, allocations: 26.64 kB / 3.555 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/10.09, allocations: 0 / 3.555 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/10.09, allocations: 3.516 kB / 3.555 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/10.09, allocations: 2.891 MB / 3.557 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/10.09, allocations: 0 / 3.557 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/10.09, allocations: 131.2 kB / 3.558 GB, free: 47.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/10.09, allocations: 0 / 3.558 GB, free: 47.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.872e-05/10.09, allocations: 24.03 kB / 3.558 GB, free: 47.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/10.09, allocations: 7.984 kB / 3.558 GB, free: 47.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/10.09, allocations: 3.703 kB / 3.558 GB, free: 47.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/10.1, allocations: 1.745 MB / 3.559 GB, free: 45.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/10.1, allocations: 140.2 kB / 3.559 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/10.1, allocations: 4 kB / 3.559 GB, free: 45.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007529/10.1, allocations: 35.55 kB / 3.559 GB, free: 45.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/10.1, allocations: 42.69 kB / 3.559 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-05/10.1, allocations: 23.75 kB / 3.559 GB, free: 45.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.304e-05/10.1, allocations: 91.17 kB / 3.56 GB, free: 45.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/10.1, allocations: 0 / 3.56 GB, free: 45.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005235/10.1, allocations: 1.001 MB / 3.561 GB, free: 44.12 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: 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.00889/10.11, allocations: 1.26 MB / 3.562 GB, free: 42.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002011/10.11, allocations: 0.8551 MB / 3.563 GB, free: 42.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/10.11, allocations: 0 / 3.563 GB, free: 42.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009344/10.12, allocations: 0.5579 MB / 3.563 GB, free: 41.63 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008924/10.12, allocations: 76.91 kB / 3.563 GB, free: 41.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/10.12, allocations: 1.048 MB / 3.564 GB, free: 40.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/10.12, allocations: 0.8483 MB / 3.565 GB, free: 39.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006585/10.12, allocations: 117.8 kB / 3.565 GB, free: 39.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/10.12, allocations: 0 / 3.565 GB, free: 39.7 MB / 426.7 MB Notification: Performance of Templates: time 0.05173/10.17, allocations: 26.05 MB / 3.591 GB, free: 16.87 MB / 426.7 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