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.001013/0.001013, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.646/1.646, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008015/0.0008015, allocations: 86.69 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.076e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1279, allocations: 47.58 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.276/8.404, allocations: 3.02 GB / 3.382 GB, free: 59.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02007/8.424, allocations: 11 MB / 3.393 GB, free: 53.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6215/9.045, allocations: 112.9 MB / 3.503 GB, free: 87.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/9.045, allocations: 0 / 3.503 GB, free: 87.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.526e-05/9.045, allocations: 3.656 kB / 3.503 GB, free: 87.61 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.006329/9.052, allocations: 1.132 MB / 3.504 GB, free: 86.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/9.052, allocations: 7.75 kB / 3.504 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/9.053, allocations: 182.5 kB / 3.504 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/9.054, allocations: 260.2 kB / 3.504 GB, free: 86.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/9.054, allocations: 18.72 kB / 3.504 GB, free: 86.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/9.054, allocations: 17.5 kB / 3.504 GB, free: 86.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002802/9.057, allocations: 0.9084 MB / 3.505 GB, free: 86.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/9.057, allocations: 3.938 kB / 3.505 GB, free: 86.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/9.057, allocations: 12.75 kB / 3.505 GB, free: 86.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/9.057, allocations: 7.156 kB / 3.505 GB, free: 86.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/9.059, allocations: 0.9478 MB / 3.506 GB, free: 86.59 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.001626/9.061, allocations: 1.349 MB / 3.508 GB, free: 85.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003224/9.064, allocations: 0.731 MB / 3.508 GB, free: 85.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/9.065, allocations: 145.2 kB / 3.508 GB, free: 85.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1052/9.17, allocations: 37.35 MB / 3.545 GB, free: 59.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.273e-05/9.17, allocations: 41.41 kB / 3.545 GB, free: 59.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 5.54e-06/9.17, allocations: 0 / 3.545 GB, free: 59.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.007622/9.178, allocations: 1.239 MB / 3.546 GB, free: 58.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/9.178, allocations: 59.36 kB / 3.546 GB, free: 58.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/9.178, allocations: 108.9 kB / 3.546 GB, free: 58.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/9.178, allocations: 33.7 kB / 3.546 GB, free: 58.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.116e-05/9.178, allocations: 120.1 kB / 3.546 GB, free: 58.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/9.178, allocations: 121.3 kB / 3.547 GB, free: 58.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.263e-05/9.179, allocations: 7.75 kB / 3.547 GB, free: 58.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/9.179, allocations: 330.5 kB / 3.547 GB, free: 58.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008211/9.18, allocations: 310.5 kB / 3.547 GB, free: 57.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008919/9.18, allocations: 385.3 kB / 3.547 GB, free: 57.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008406/9.181, allocations: 307.8 kB / 3.548 GB, free: 57.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/9.181, allocations: 3.234 kB / 3.548 GB, free: 57.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002634/9.184, allocations: 0.8237 MB / 3.549 GB, free: 56.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/9.184, allocations: 4 kB / 3.549 GB, free: 56.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/9.184, allocations: 7.812 kB / 3.549 GB, free: 56.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.29e-05/9.184, allocations: 4 kB / 3.549 GB, free: 56.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/9.185, allocations: 178.2 kB / 3.549 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.643e-05/9.185, allocations: 6.438 kB / 3.549 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/9.186, allocations: 43.23 kB / 3.549 GB, free: 56.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001956/9.186, allocations: 68.72 kB / 3.549 GB, free: 56.3 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.0003022/9.187, allocations: 120.2 kB / 3.549 GB, free: 56.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/9.187, allocations: 15.81 kB / 3.549 GB, free: 56.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0095/9.196, allocations: 6.501 MB / 3.555 GB, free: 50.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.092e-05/9.196, allocations: 26.97 kB / 3.555 GB, free: 50.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/9.196, allocations: 0 / 3.555 GB, free: 50.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/9.196, allocations: 0 / 3.555 GB, free: 50.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/9.2, allocations: 2.905 MB / 3.558 GB, free: 47.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/9.2, allocations: 384 / 3.558 GB, free: 47.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/9.201, allocations: 130.2 kB / 3.558 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/9.201, allocations: 0 / 3.558 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/9.201, allocations: 23.36 kB / 3.558 GB, free: 47.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.794e-06/9.201, allocations: 7.938 kB / 3.558 GB, free: 47.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/9.201, allocations: 0 / 3.558 GB, free: 47.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003721/9.205, allocations: 1.751 MB / 3.56 GB, free: 45.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/9.205, allocations: 135 kB / 3.56 GB, free: 45.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.676e-05/9.205, allocations: 8 kB / 3.56 GB, free: 45.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/9.206, allocations: 27.55 kB / 3.56 GB, free: 45.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/9.206, allocations: 46.44 kB / 3.56 GB, free: 45.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/9.206, allocations: 19.7 kB / 3.56 GB, free: 45.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.153e-05/9.206, allocations: 91.05 kB / 3.56 GB, free: 45.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/9.206, allocations: 8 kB / 3.56 GB, free: 45.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007505/9.214, allocations: 0.9938 MB / 3.561 GB, free: 44.51 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.01252/9.227, allocations: 1.264 MB / 3.563 GB, free: 43.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002482/9.229, allocations: 0.8513 MB / 3.563 GB, free: 42.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/9.229, allocations: 0 / 3.563 GB, free: 42.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/9.23, allocations: 0.5537 MB / 3.564 GB, free: 42.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/9.232, allocations: 83.34 kB / 3.564 GB, free: 41.97 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/9.235, allocations: 1.024 MB / 3.565 GB, free: 41.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/9.235, allocations: 0.8494 MB / 3.566 GB, free: 40.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005229/9.241, allocations: 2.735 MB / 3.569 GB, free: 38.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006159/9.241, allocations: 101.5 kB / 3.569 GB, free: 38.5 MB / 426.7 MB Notification: Performance of SimCode: time 3.617e-06/9.241, allocations: 3.938 kB / 3.569 GB, free: 38.5 MB / 426.7 MB Notification: Performance of Templates: time 0.07392/9.315, allocations: 31.6 MB / 3.6 GB, free: 9.652 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/jenkins/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