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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009219/0.000922, allocations: 95.88 kB / 16.95 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000903/0.0009031, allocations: 182.5 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004582/0.0004583, allocations: 8 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08124, allocations: 47.59 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01339/0.09468, allocations: 12.35 MB / 340.7 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.1102, allocations: 14.36 MB / 355.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1104, allocations: 0 / 355.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.1107, allocations: 67.61 kB / 355.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.111, allocations: 99.33 kB / 355.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01189/0.1229, allocations: 4.523 MB / 359.7 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.1233, allocations: 330.6 kB / 360.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.529e-05/0.1234, allocations: 13.67 kB / 360.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004022/0.1238, allocations: 211.1 kB / 360.3 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.124, allocations: 99.59 kB / 360.4 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.124, allocations: 8 kB / 360.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.1352, allocations: 6.477 MB / 366.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.1353, allocations: 31.89 kB / 366.9 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.444e-05/0.1354, allocations: 65.64 kB / 367 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004625/0.1401, allocations: 2.623 MB / 369.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1401, allocations: 0 / 369.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1401, allocations: 0 / 369.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.1401, allocations: 3.938 kB / 369.6 MB, free: 10.73 MB / 318.1 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.00251/0.1426, allocations: 0.9438 MB / 370.5 MB, free: 9.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1427, allocations: 16.03 kB / 370.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.144, allocations: 183.6 kB / 370.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.1444, allocations: 250.8 kB / 371 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.1444, allocations: 20.44 kB / 371 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.1445, allocations: 19.91 kB / 371 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002848/0.1473, allocations: 0.9129 MB / 371.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1473, allocations: 0 / 371.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.1474, allocations: 12 kB / 371.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1474, allocations: 7.953 kB / 371.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.1504, allocations: 0.989 MB / 372.9 MB, free: 7.27 MB / 318.1 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.001568/0.152, allocations: 1.343 MB / 374.3 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.1543, allocations: 0.7331 MB / 375 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.1546, allocations: 157.4 kB / 375.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1997/0.3543, allocations: 37.74 MB / 412.9 MB, free: 27.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.3544, allocations: 41.28 kB / 412.9 MB, free: 27.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.195e-06/0.3544, allocations: 4.766 kB / 412.9 MB, free: 27.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004124/0.3585, allocations: 1.36 MB / 414.3 MB, free: 26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.3586, allocations: 63.39 kB / 414.4 MB, free: 25.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.425e-05/0.3586, allocations: 126.5 kB / 414.5 MB, free: 25.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.981e-05/0.3587, allocations: 33.7 kB / 414.5 MB, free: 25.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.3587, allocations: 116 kB / 414.6 MB, free: 25.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.604e-05/0.3588, allocations: 111.8 kB / 414.8 MB, free: 25.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.3589, allocations: 8 kB / 414.8 MB, free: 25.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.3589, allocations: 326.8 kB / 415.1 MB, free: 25.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.3594, allocations: 347.6 kB / 415.4 MB, free: 24.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.3599, allocations: 409.3 kB / 415.8 MB, free: 24.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.3604, allocations: 347.8 kB / 416.2 MB, free: 24.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3604, allocations: 3.094 kB / 416.2 MB, free: 24.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001296/0.3617, allocations: 0.8762 MB / 417 MB, free: 23.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3617, allocations: 4 kB / 417 MB, free: 23.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3617, allocations: 4 kB / 417 MB, free: 23.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3617, allocations: 4 kB / 417 MB, free: 23.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005329/0.3623, allocations: 180 kB / 417.2 MB, free: 23.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.3623, allocations: 4 kB / 417.2 MB, free: 23.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.3626, allocations: 46.19 kB / 417.3 MB, free: 23.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.493e-05/0.3627, allocations: 63.92 kB / 417.3 MB, free: 22.95 MB / 318.1 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.0001571/0.3629, allocations: 147.4 kB / 417.5 MB, free: 22.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.013e-05/0.3629, allocations: 19.44 kB / 417.5 MB, free: 22.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00497/0.3679, allocations: 7.984 MB / 425.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.368, allocations: 23.95 kB / 425.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.368, allocations: 0 / 425.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.368, allocations: 0 / 425.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.3699, allocations: 3.596 MB / 429.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.3699, allocations: 0 / 429.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.3705, allocations: 115.8 kB / 429.2 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.309e-06/0.3705, allocations: 4 kB / 429.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.3705, allocations: 8 kB / 429.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3705, allocations: 0 / 429.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3705, allocations: 4 kB / 429.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.3723, allocations: 1.867 MB / 431.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.3724, allocations: 144.1 kB / 431.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.3724, allocations: 8 kB / 431.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.3727, allocations: 27.81 kB / 431.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.414e-05/0.3728, allocations: 27.95 kB / 431.3 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.3728, allocations: 15.98 kB / 431.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.3729, allocations: 91.27 kB / 431.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3729, allocations: 4.062 kB / 431.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002208/0.3751, allocations: 0.9765 MB / 432.4 MB, free: 7.691 MB / 318.1 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.003311/0.3784, allocations: 1.133 MB / 433.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3797, allocations: 0.8962 MB / 434.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.3798, allocations: 4.125 kB / 434.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005919/0.3803, allocations: 0.5986 MB / 435 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.381, allocations: 85.84 kB / 435.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3825, allocations: 1.616 MB / 436.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.3827, allocations: 0.8536 MB / 437.6 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001402/0.3841, allocations: 1.78 MB / 439.3 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.3844, allocations: 87.36 kB / 439.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3844, allocations: 0 / 439.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of Templates: time 0.0508/0.4352, allocations: 40.76 MB / 480.2 MB, free: 7.918 MB / 366.1 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