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.001563/0.001563, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 90.69 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.228e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1371, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.286/8.423, allocations: 3.02 GB / 3.375 GB, free: 8.645 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3325/8.755, allocations: 10.89 MB / 3.385 GB, free: 121.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2964/9.052, allocations: 110.5 MB / 3.493 GB, free: 63.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.404e-06/9.052, allocations: 0 / 3.493 GB, free: 63.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.64e-05/9.052, allocations: 0 / 3.493 GB, free: 63.7 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.006325/9.058, allocations: 1.138 MB / 3.494 GB, free: 62.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/9.058, allocations: 12.03 kB / 3.494 GB, free: 62.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/9.06, allocations: 179.6 kB / 3.495 GB, free: 62.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/9.06, allocations: 258.3 kB / 3.495 GB, free: 62.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/9.06, allocations: 12.75 kB / 3.495 GB, free: 62.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/9.06, allocations: 19.92 kB / 3.495 GB, free: 62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004929/9.061, allocations: 352.7 kB / 3.495 GB, free: 61.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/9.061, allocations: 274.7 kB / 3.495 GB, free: 61.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/9.061, allocations: 0 / 3.495 GB, free: 61.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/9.061, allocations: 0 / 3.495 GB, free: 61.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/9.061, allocations: 11.94 kB / 3.495 GB, free: 61.36 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.001307/9.062, allocations: 1.299 MB / 3.497 GB, free: 59.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/9.063, allocations: 255 kB / 3.497 GB, free: 59.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/9.063, allocations: 133.4 kB / 3.497 GB, free: 59.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06448/9.127, allocations: 37.34 MB / 3.534 GB, free: 17.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/9.127, allocations: 38.84 kB / 3.534 GB, free: 17.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.145e-06/9.127, allocations: 4 kB / 3.534 GB, free: 17.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.002762/9.13, allocations: 0.7845 MB / 3.534 GB, free: 16.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/9.13, allocations: 55.41 kB / 3.534 GB, free: 16.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/9.13, allocations: 105.2 kB / 3.534 GB, free: 16.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.279e-05/9.13, allocations: 29.64 kB / 3.535 GB, free: 16.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/9.13, allocations: 120.4 kB / 3.535 GB, free: 16.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/9.131, allocations: 110.3 kB / 3.535 GB, free: 16.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/9.131, allocations: 0 / 3.535 GB, free: 16.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.594e-05/9.131, allocations: 334.8 kB / 3.535 GB, free: 16.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/9.131, allocations: 307.9 kB / 3.535 GB, free: 15.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/9.132, allocations: 364 kB / 3.536 GB, free: 15.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00195/9.133, allocations: 424 kB / 3.536 GB, free: 15.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/9.133, allocations: 3.938 kB / 3.536 GB, free: 15.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002684/9.136, allocations: 0.9032 MB / 3.537 GB, free: 14.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/9.136, allocations: 8 kB / 3.537 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/9.136, allocations: 4.25 kB / 3.537 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/9.136, allocations: 4 kB / 3.537 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006898/9.137, allocations: 179.8 kB / 3.537 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/9.137, allocations: 4 kB / 3.537 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004281/9.137, allocations: 35.77 kB / 3.537 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.537e-05/9.138, allocations: 63.92 kB / 3.537 GB, free: 13.86 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.0001796/9.138, allocations: 120.8 kB / 3.537 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.658e-05/9.138, allocations: 15.81 kB / 3.537 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005429/9.143, allocations: 6.515 MB / 3.544 GB, free: 7.191 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-05/9.143, allocations: 27.95 kB / 3.544 GB, free: 7.164 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/9.143, allocations: 0 / 3.544 GB, free: 7.164 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/9.143, allocations: 3.984 kB / 3.544 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002037/9.145, allocations: 2.832 MB / 3.547 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/9.145, allocations: 0 / 3.547 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006458/9.146, allocations: 131.8 kB / 3.547 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/9.146, allocations: 4 kB / 3.547 GB, free: 4.016 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.227e-05/9.146, allocations: 15.98 kB / 3.547 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/9.146, allocations: 0 / 3.547 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/9.146, allocations: 4 kB / 3.547 GB, free: 3.996 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/9.148, allocations: 1.751 MB / 3.548 GB, free: 2.227 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.797e-05/9.148, allocations: 136.3 kB / 3.549 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/9.148, allocations: 4.062 kB / 3.549 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/9.149, allocations: 23.91 kB / 3.549 GB, free: 2.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.796e-05/9.149, allocations: 39.73 kB / 3.549 GB, free: 2.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.918e-05/9.149, allocations: 23.97 kB / 3.549 GB, free: 1.984 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.549e-05/9.149, allocations: 87.28 kB / 3.549 GB, free: 1.898 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/9.149, allocations: 0 / 3.549 GB, free: 1.898 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005671/9.155, allocations: 0.9911 MB / 3.55 GB, free: 0.9062 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.2888/9.444, allocations: 1.26 MB / 3.551 GB, free: 85.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002096/9.446, allocations: 0.8282 MB / 3.552 GB, free: 85.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/9.446, allocations: 2.656 kB / 3.552 GB, free: 85.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008432/9.447, allocations: 0.552 MB / 3.552 GB, free: 85.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007065/9.447, allocations: 73.86 kB / 3.552 GB, free: 85.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/9.449, allocations: 0.9934 MB / 3.553 GB, free: 85.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/9.45, allocations: 0.8517 MB / 3.554 GB, free: 85.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005299/9.455, allocations: 2.732 MB / 3.557 GB, free: 85.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004528/9.456, allocations: 96.84 kB / 3.557 GB, free: 85 MB / 426.7 MB Notification: Performance of SimCode: time 1.643e-06/9.456, allocations: 0 / 3.557 GB, free: 85 MB / 426.7 MB Notification: Performance of Templates: time 0.04894/9.505, allocations: 29.39 MB / 3.586 GB, free: 84.51 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