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.001479/0.001479, allocations: 188.9 kB / 16.41 MB, free: 5.723 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.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001118/0.001117, allocations: 96.34 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003956, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3265, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.816/9.143, allocations: 3.021 GB / 3.386 GB, free: 91.08 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03324/9.176, allocations: 11.06 MB / 3.397 GB, free: 82.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7871/9.963, allocations: 113 MB / 3.508 GB, free: 75.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.434e-06/9.963, allocations: 0 / 3.508 GB, free: 75.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/9.963, allocations: 3.938 kB / 3.508 GB, free: 75.45 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.005426/9.969, allocations: 1.141 MB / 3.509 GB, free: 74.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/9.969, allocations: 11.62 kB / 3.509 GB, free: 74.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002009/9.971, allocations: 180.2 kB / 3.509 GB, free: 74.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/9.971, allocations: 266.1 kB / 3.509 GB, free: 74.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/9.971, allocations: 15.69 kB / 3.509 GB, free: 74.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/9.971, allocations: 23.41 kB / 3.509 GB, free: 74.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004777/9.976, allocations: 0.8804 MB / 3.51 GB, free: 74.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/9.976, allocations: 0 / 3.51 GB, free: 74.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/9.976, allocations: 9.344 kB / 3.51 GB, free: 74.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/9.976, allocations: 7.812 kB / 3.51 GB, free: 74.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005063/9.981, allocations: 0.9615 MB / 3.511 GB, free: 74.47 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.002076/9.984, allocations: 1.346 MB / 3.512 GB, free: 73.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00402/9.988, allocations: 0.7068 MB / 3.513 GB, free: 73.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1157/10.1, allocations: 37.23 MB / 3.549 GB, free: 50.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/10.1, allocations: 38.25 kB / 3.549 GB, free: 50.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.765e-06/10.1, allocations: 0 / 3.549 GB, free: 50.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.008177/10.11, allocations: 1.326 MB / 3.551 GB, free: 50.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/10.11, allocations: 55.03 kB / 3.551 GB, free: 50.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/10.11, allocations: 121.7 kB / 3.551 GB, free: 50.01 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/10.11, allocations: 37.55 kB / 3.551 GB, free: 49.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.271e-05/10.11, allocations: 178.5 kB / 3.551 GB, free: 49.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/10.11, allocations: 115.4 kB / 3.551 GB, free: 49.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/10.11, allocations: 7.438 kB / 3.551 GB, free: 49.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.316e-05/10.11, allocations: 325.9 kB / 3.551 GB, free: 49.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/10.11, allocations: 336.8 kB / 3.552 GB, free: 49.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/10.11, allocations: 406.3 kB / 3.552 GB, free: 49.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000994/10.12, allocations: 334.3 kB / 3.552 GB, free: 49.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/10.12, allocations: 0 / 3.552 GB, free: 49.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002911/10.12, allocations: 0.8625 MB / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/10.12, allocations: 7 kB / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/10.12, allocations: 0 / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/10.12, allocations: 7.75 kB / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/10.12, allocations: 178 kB / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/10.12, allocations: 7.531 kB / 3.553 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008153/10.12, allocations: 41.59 kB / 3.554 GB, free: 49.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/10.12, allocations: 67.31 kB / 3.554 GB, free: 49.27 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.0003182/10.12, allocations: 143 kB / 3.554 GB, free: 49.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/10.12, allocations: 11.69 kB / 3.554 GB, free: 49.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009778/10.13, allocations: 7.813 MB / 3.561 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/10.13, allocations: 29.83 kB / 3.561 GB, free: 46.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/10.13, allocations: 0 / 3.561 GB, free: 46.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/10.13, allocations: 7.938 kB / 3.561 GB, free: 46.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/10.14, allocations: 3.503 MB / 3.565 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/10.14, allocations: 3.969 kB / 3.565 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/10.14, allocations: 107.2 kB / 3.565 GB, free: 44.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/10.14, allocations: 3.594 kB / 3.565 GB, free: 44.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-05/10.14, allocations: 11.8 kB / 3.565 GB, free: 44.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/10.14, allocations: 5.094 kB / 3.565 GB, free: 44.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/10.14, allocations: 0 / 3.565 GB, free: 44.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003569/10.14, allocations: 1.848 MB / 3.567 GB, free: 43.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/10.14, allocations: 145.7 kB / 3.567 GB, free: 43.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.65e-05/10.14, allocations: 14.16 kB / 3.567 GB, free: 43.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006154/10.14, allocations: 23.39 kB / 3.567 GB, free: 43.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/10.14, allocations: 25.98 kB / 3.567 GB, free: 43.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.631e-05/10.14, allocations: 19.44 kB / 3.567 GB, free: 43.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.15e-05/10.14, allocations: 93.66 kB / 3.567 GB, free: 43.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/10.14, allocations: 0 / 3.567 GB, free: 43.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004878/10.15, allocations: 0.9975 MB / 3.568 GB, free: 42.97 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.009119/10.16, allocations: 1.257 MB / 3.569 GB, free: 42.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002429/10.16, allocations: 0.8986 MB / 3.57 GB, free: 42.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/10.16, allocations: 0.5 kB / 3.57 GB, free: 42.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/10.16, allocations: 0.591 MB / 3.571 GB, free: 42.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008931/10.16, allocations: 85.41 kB / 3.571 GB, free: 41.99 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/10.16, allocations: 1.624 MB / 3.572 GB, free: 41.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/10.16, allocations: 0.8652 MB / 3.573 GB, free: 40.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006173/10.16, allocations: 86.06 kB / 3.573 GB, free: 40.28 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/10.16, allocations: 0 / 3.573 GB, free: 40.28 MB / 426.7 MB Notification: Performance of Templates: time 0.05405/10.22, allocations: 25.84 MB / 3.599 GB, free: 30.29 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