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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 117.8 kB / 17.7 MB, free: 5.305 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.00109/0.00109, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009704/0.0009705, allocations: 51.39 kB / 302.1 MB, free: 5.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08764, allocations: 49.44 MB / 351.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01425/0.1019, allocations: 13.32 MB / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1602/0.2622, allocations: 15.55 MB / 380.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2623, allocations: 1.406 kB / 380.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.2627, allocations: 88.28 kB / 380.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.263, allocations: 108.1 kB / 380.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01829/0.2813, allocations: 5.963 MB / 386.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000631/0.2819, allocations: 339.5 kB / 386.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.435e-05/0.282, allocations: 11.22 kB / 386.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005523/0.2826, allocations: 229.6 kB / 387.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.2828, allocations: 102 kB / 387.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.2829, allocations: 17.47 kB / 387.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01799/0.3009, allocations: 6.767 MB / 394 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.301, allocations: 45.62 kB / 394 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.3013, allocations: 110.7 kB / 394.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.3125, allocations: 3.892 MB / 398 MB, free: 3.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3126, allocations: 4 kB / 398 MB, free: 3.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3126, allocations: 0 / 398 MB, free: 3.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3126, allocations: 2.938 kB / 398 MB, free: 3.539 MB / 302.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.00368/0.3163, allocations: 0.9854 MB / 399 MB, free: 2.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3164, allocations: 8.469 kB / 399 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002313/0.3187, allocations: 175.7 kB / 399.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.3191, allocations: 266.6 kB / 399.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/0.3191, allocations: 22.73 kB / 399.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.3192, allocations: 17.72 kB / 399.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00413/0.3233, allocations: 0.9073 MB / 400.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3234, allocations: 0 / 400.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.982e-05/0.3234, allocations: 15.94 kB / 400.4 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.3234, allocations: 8.312 kB / 400.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/0.3277, allocations: 0.9673 MB / 401.4 MB, free: 1.293 MB / 302.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.001603/0.3293, allocations: 1.34 MB / 402.7 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003628/0.333, allocations: 0.736 MB / 403.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.3333, allocations: 155.9 kB / 403.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07489/0.4082, allocations: 37.54 MB / 441.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.4083, allocations: 42.55 kB / 441.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.003e-06/0.4083, allocations: 0 / 441.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005601/0.4139, allocations: 1.355 MB / 442.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.414, allocations: 63.34 kB / 442.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.4141, allocations: 129.8 kB / 442.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.522e-05/0.4142, allocations: 29.7 kB / 442.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.857e-05/0.4143, allocations: 116.6 kB / 442.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.4144, allocations: 114.2 kB / 443 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.4148, allocations: 173.5 kB / 443.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.4149, allocations: 322.8 kB / 443.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.4155, allocations: 335.8 kB / 443.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007402/0.4163, allocations: 411.3 kB / 444.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.4176, allocations: 0.7075 MB / 444.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4176, allocations: 7.938 kB / 444.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001838/0.4194, allocations: 0.8641 MB / 445.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4195, allocations: 8 kB / 445.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4195, allocations: 0 / 445.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.4195, allocations: 7.938 kB / 445.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/0.4202, allocations: 188.8 kB / 446 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.4202, allocations: 4 kB / 446 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.4206, allocations: 27.73 kB / 446 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.4207, allocations: 67.92 kB / 446.1 MB, free: 0.5078 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.4209, allocations: 141.7 kB / 446.2 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.4211, allocations: 15.81 kB / 446.2 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007362/0.4284, allocations: 7.968 MB / 454.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.62e-05/0.4285, allocations: 31.89 kB / 454.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4285, allocations: 0 / 454.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4285, allocations: 3.938 kB / 454.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.4321, allocations: 3.602 MB / 457.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4322, allocations: 0 / 457.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006798/0.4328, allocations: 111.8 kB / 458 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.4329, allocations: 4 kB / 458 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.682e-05/0.4329, allocations: 19.92 kB / 458 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4329, allocations: 3.938 kB / 458 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4329, allocations: 0 / 458 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.4355, allocations: 1.839 MB / 459.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.4357, allocations: 144.2 kB / 460 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.455e-05/0.4357, allocations: 4 kB / 460 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.4361, allocations: 27.86 kB / 460 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.4362, allocations: 26.08 kB / 460 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.4362, allocations: 15.98 kB / 460 MB, free: 2.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.809e-05/0.4363, allocations: 95.2 kB / 460.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4363, allocations: 0 / 460.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003102/0.4394, allocations: 0.9877 MB / 461.1 MB, free: 1.176 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005117/0.4446, allocations: 1.125 MB / 462.2 MB, free: 136 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.4462, allocations: 0.9029 MB / 463.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4462, allocations: 0 / 463.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007886/0.447, allocations: 0.5915 MB / 463.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.4476, allocations: 86.62 kB / 463.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.4495, allocations: 1.309 MB / 465.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.4499, allocations: 0.8614 MB / 466 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001868/0.4518, allocations: 1.784 MB / 467.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003284/0.4521, allocations: 87.36 kB / 467.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4521, allocations: 0 / 467.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of Templates: time 0.05283/0.505, allocations: 40.77 MB / 0.4967 GB, free: 1.672 MB / 414.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches