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.003101/0.0031, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.252/3.252, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001903/0.001903, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006733/0.0006734, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1469, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.03165/0.1786, allocations: 11.44 MB / 386 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4389/0.6176, allocations: 13.13 MB / 399.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.6179, allocations: 1.344 kB / 399.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005901/0.6185, allocations: 67.56 kB / 399.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005816/0.6191, allocations: 104 kB / 399.3 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0343/0.6535, allocations: 4.608 MB / 403.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008926/0.6544, allocations: 213.4 kB / 404.1 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.6545, allocations: 23.94 kB / 404.1 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.6558, allocations: 230.5 kB / 404.3 MB, free: 7.684 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.6563, allocations: 92.17 kB / 404.4 MB, free: 7.648 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.6565, allocations: 7.688 kB / 404.4 MB, free: 7.648 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03162/0.6881, allocations: 6.654 MB / 411.1 MB, free: 4.922 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.6884, allocations: 32.14 kB / 411.1 MB, free: 4.898 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.6886, allocations: 70.33 kB / 411.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.7001, allocations: 2.62 MB / 413.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.7002, allocations: 0 / 413.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.848e-06/0.7002, allocations: 0 / 413.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.7003, allocations: 0 / 413.8 MB, free: 3.352 MB / 282.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.006007/0.7063, allocations: 0.945 MB / 414.8 MB, free: 2.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.7064, allocations: 11.81 kB / 414.8 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003384/0.7098, allocations: 185.7 kB / 414.9 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.7104, allocations: 250.5 kB / 415.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.919e-05/0.7106, allocations: 17.81 kB / 415.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.823e-05/0.7107, allocations: 16.69 kB / 415.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007412/0.7181, allocations: 0.9155 MB / 416.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.7182, allocations: 0 / 416.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.7183, allocations: 10.19 kB / 416.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/0.7183, allocations: 7.281 kB / 416.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007956/0.7263, allocations: 0.983 MB / 417.1 MB, free: 1.137 MB / 282.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.00335/0.7297, allocations: 1.344 MB / 418.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006282/0.736, allocations: 0.7303 MB / 419.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2062/0.9423, allocations: 37.77 MB / 457 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/0.9424, allocations: 30.84 kB / 457 MB, free: 5.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 4.168e-06/0.9424, allocations: 0 / 457 MB, free: 5.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01354/0.956, allocations: 1.382 MB / 458.4 MB, free: 4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.9561, allocations: 59.34 kB / 458.5 MB, free: 3.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.9564, allocations: 117.9 kB / 458.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002121/0.9566, allocations: 29.7 kB / 458.6 MB, free: 3.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.9568, allocations: 183.1 kB / 458.8 MB, free: 3.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.9571, allocations: 122.3 kB / 458.9 MB, free: 3.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.9573, allocations: 4 kB / 458.9 MB, free: 3.465 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.9575, allocations: 326.8 kB / 459.2 MB, free: 3.137 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.9594, allocations: 335.8 kB / 459.5 MB, free: 2.809 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.9614, allocations: 415.3 kB / 459.9 MB, free: 2.375 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.9634, allocations: 335.9 kB / 460.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.9635, allocations: 4 kB / 460.3 MB, free: 2.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00515/0.9687, allocations: 0.8756 MB / 461.2 MB, free: 1.164 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.55e-05/0.9688, allocations: 8 kB / 461.2 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.9688, allocations: 3.984 kB / 461.2 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.9688, allocations: 4 kB / 461.2 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.9708, allocations: 179.8 kB / 461.3 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.167e-05/0.9709, allocations: 11.94 kB / 461.4 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.972, allocations: 43.86 kB / 461.4 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003258/0.9724, allocations: 59.94 kB / 461.5 MB, free: 0.8594 MB / 330.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.000535/0.9729, allocations: 137.7 kB / 461.6 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/0.9732, allocations: 15.91 kB / 461.6 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02008/0.9933, allocations: 7.99 MB / 469.6 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.916e-05/0.9934, allocations: 27.95 kB / 469.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.9935, allocations: 0 / 469.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/0.9935, allocations: 7.938 kB / 469.6 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007674/1.001, allocations: 3.592 MB / 473.2 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/1.001, allocations: 4 kB / 473.2 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/1.003, allocations: 111.8 kB / 473.3 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.178e-05/1.003, allocations: 4 kB / 473.3 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/1.003, allocations: 11.98 kB / 473.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/1.003, allocations: 0 / 473.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.003, allocations: 0 / 473.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006711/1.01, allocations: 1.858 MB / 475.2 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/1.01, allocations: 144.1 kB / 475.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/1.011, allocations: 15.98 kB / 475.4 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008894/1.012, allocations: 20.06 kB / 475.4 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/1.012, allocations: 27.95 kB / 475.4 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/1.012, allocations: 15.98 kB / 475.4 MB, free: 2.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000138/1.012, allocations: 91.27 kB / 475.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.012, allocations: 0 / 475.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007053/1.019, allocations: 0.9799 MB / 476.5 MB, free: 1.492 MB / 346.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.01279/1.032, allocations: 1.137 MB / 477.6 MB, free: 356 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00433/1.037, allocations: 0.9042 MB / 478.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.037, allocations: 0 / 478.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/1.039, allocations: 0.5952 MB / 479.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/1.04, allocations: 75.92 kB / 479.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00509/1.046, allocations: 1.633 MB / 480.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008636/1.046, allocations: 0.8692 MB / 481.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009729/1.048, allocations: 87.3 kB / 481.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.854e-06/1.048, allocations: 0 / 481.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of Templates: time 0.1019/1.149, allocations: 26.98 MB / 0.4969 GB, free: 1.062 MB / 378.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