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.001309/0.001309, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008779/0.0008779, allocations: 94.03 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.532e-05/1.534e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.336/8.442, allocations: 3.025 GB / 3.404 GB, free: 100.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02002/8.462, allocations: 11.11 MB / 3.415 GB, free: 99.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2832/8.745, allocations: 111.6 MB / 3.524 GB, free: 30.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.613e-06/8.745, allocations: 3.938 kB / 3.524 GB, free: 30.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/8.745, allocations: 4 kB / 3.524 GB, free: 30.53 MB / 442.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.005742/8.751, allocations: 1.13 MB / 3.525 GB, free: 29.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/8.751, allocations: 12.02 kB / 3.525 GB, free: 29.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001367/8.752, allocations: 191.5 kB / 3.525 GB, free: 29.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/8.753, allocations: 250.8 kB / 3.525 GB, free: 28.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/8.753, allocations: 12 kB / 3.525 GB, free: 28.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/8.753, allocations: 15.95 kB / 3.525 GB, free: 28.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005442/8.753, allocations: 344.7 kB / 3.525 GB, free: 28.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/8.754, allocations: 282.6 kB / 3.526 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/8.754, allocations: 0 / 3.526 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/8.754, allocations: 0 / 3.526 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/8.754, allocations: 8 kB / 3.526 GB, free: 28.2 MB / 442.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.001638/8.755, allocations: 1.307 MB / 3.527 GB, free: 26.78 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003469/8.756, allocations: 255 kB / 3.527 GB, free: 26.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/8.756, allocations: 133.4 kB / 3.527 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3463/9.102, allocations: 37.35 MB / 3.564 GB, free: 65.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/9.102, allocations: 33.67 kB / 3.564 GB, free: 65.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 3.046e-06/9.102, allocations: 0 / 3.564 GB, free: 65.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.003415/9.106, allocations: 0.7878 MB / 3.565 GB, free: 65.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/9.106, allocations: 57.97 kB / 3.565 GB, free: 65.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/9.106, allocations: 109.2 kB / 3.565 GB, free: 65.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.233e-05/9.106, allocations: 29.92 kB / 3.565 GB, free: 65.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.599e-05/9.106, allocations: 117.3 kB / 3.565 GB, free: 65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/9.106, allocations: 109.5 kB / 3.565 GB, free: 64.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/9.106, allocations: 0 / 3.565 GB, free: 64.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.818e-05/9.106, allocations: 326.9 kB / 3.565 GB, free: 64.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005431/9.107, allocations: 303.8 kB / 3.566 GB, free: 64.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/9.108, allocations: 375.5 kB / 3.566 GB, free: 64.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/9.11, allocations: 418 kB / 3.566 GB, free: 64.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/9.11, allocations: 1.062 kB / 3.566 GB, free: 64.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003269/9.113, allocations: 0.9115 MB / 3.567 GB, free: 64.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/9.113, allocations: 5.438 kB / 3.567 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/9.113, allocations: 2.344 kB / 3.567 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/9.113, allocations: 4.094 kB / 3.567 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007953/9.114, allocations: 182.2 kB / 3.568 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/9.114, allocations: 6.125 kB / 3.568 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00044/9.114, allocations: 34.09 kB / 3.568 GB, free: 64.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/9.114, allocations: 67.02 kB / 3.568 GB, free: 64.51 MB / 442.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.0001832/9.115, allocations: 117.9 kB / 3.568 GB, free: 64.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.862e-05/9.115, allocations: 18.22 kB / 3.568 GB, free: 64.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009019/9.124, allocations: 6.514 MB / 3.574 GB, free: 64.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/9.124, allocations: 25.2 kB / 3.574 GB, free: 64.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/9.124, allocations: 0 / 3.574 GB, free: 64.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/9.124, allocations: 5.578 kB / 3.574 GB, free: 64.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003845/9.128, allocations: 2.812 MB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/9.128, allocations: 4.656 kB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007875/9.129, allocations: 123.7 kB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.925e-05/9.129, allocations: 1.906 kB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.979e-05/9.129, allocations: 23.22 kB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/9.129, allocations: 2.25 kB / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/9.129, allocations: 0 / 3.577 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003234/9.132, allocations: 1.761 MB / 3.579 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003086/9.132, allocations: 141.9 kB / 3.579 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.842e-05/9.133, allocations: 0 / 3.579 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/9.133, allocations: 17.56 kB / 3.579 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/9.133, allocations: 40.09 kB / 3.579 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.26e-05/9.133, allocations: 27.38 kB / 3.579 GB, free: 63.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.453e-05/9.133, allocations: 94.38 kB / 3.579 GB, free: 62.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/9.133, allocations: 0 / 3.579 GB, free: 62.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005693/9.139, allocations: 0.98 MB / 3.58 GB, free: 62.99 MB / 442.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.00862/9.148, allocations: 1.288 MB / 3.581 GB, free: 62.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/9.149, allocations: 0.8322 MB / 3.582 GB, free: 62.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/9.149, allocations: 0 / 3.582 GB, free: 62.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007045/9.15, allocations: 0.5537 MB / 3.583 GB, free: 62.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/9.151, allocations: 77.75 kB / 3.583 GB, free: 62.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/9.152, allocations: 0.9975 MB / 3.584 GB, free: 62.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/9.153, allocations: 0.8552 MB / 3.585 GB, free: 62.01 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002415/9.155, allocations: 2.742 MB / 3.587 GB, free: 61.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/9.155, allocations: 101.4 kB / 3.587 GB, free: 61.95 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/9.155, allocations: 0 / 3.587 GB, free: 61.95 MB / 442.7 MB Notification: Performance of Templates: time 0.04109/9.197, allocations: 29.42 MB / 3.616 GB, free: 61.04 MB / 442.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/jenkins/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