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.001054/0.001054, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001003/0.001003, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.282/1.282, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001234/0.001234, allocations: 51.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07966/0.0809, allocations: 46.63 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01452/0.09546, allocations: 13.33 MB / 342 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.1111, allocations: 15.54 MB / 357.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.1113, allocations: 0 / 357.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003117/0.1117, allocations: 83.47 kB / 357.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.112, allocations: 115.2 kB / 357.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01397/0.126, allocations: 5.948 MB / 363.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1264, allocations: 338.6 kB / 364.1 MB, free: 304 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.871e-05/0.1265, allocations: 13.69 kB / 364.1 MB, free: 292 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004256/0.1269, allocations: 231 kB / 364.3 MB, free: 60 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.1271, allocations: 103.6 kB / 364.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.1271, allocations: 12 kB / 364.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01111/0.1383, allocations: 6.751 MB / 371.2 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.665e-05/0.1384, allocations: 47.83 kB / 371.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.1385, allocations: 103.6 kB / 371.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006306/0.1448, allocations: 3.887 MB / 375.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1449, allocations: 0 / 375.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1449, allocations: 0 / 375.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1449, allocations: 0 / 375.2 MB, free: 5.145 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.001963/0.1469, allocations: 0.9868 MB / 376.2 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.1469, allocations: 12.03 kB / 376.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.1483, allocations: 180.5 kB / 376.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.1486, allocations: 263.9 kB / 376.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.1486, allocations: 12.81 kB / 376.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.1487, allocations: 20.38 kB / 376.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003085/0.1518, allocations: 0.909 MB / 377.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1518, allocations: 7.922 kB / 377.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.1518, allocations: 12 kB / 377.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1519, allocations: 4 kB / 377.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00315/0.155, allocations: 0.9657 MB / 378.6 MB, free: 1.672 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.001461/0.1565, allocations: 1.354 MB / 379.9 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1438/0.3002, allocations: 0.7207 MB / 380.6 MB, free: 54.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/0.3007, allocations: 155.5 kB / 380.8 MB, free: 54.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09874/0.3995, allocations: 37.54 MB / 418.3 MB, free: 23.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.3996, allocations: 44.23 kB / 418.4 MB, free: 23.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.876e-06/0.3996, allocations: 0 / 418.4 MB, free: 23.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.007882/0.4075, allocations: 1.359 MB / 419.7 MB, free: 21.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.4075, allocations: 55.41 kB / 419.8 MB, free: 21.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4076, allocations: 121.9 kB / 419.9 MB, free: 21.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.999e-05/0.4077, allocations: 33.55 kB / 419.9 MB, free: 21.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.917e-05/0.4078, allocations: 121.6 kB / 420.1 MB, free: 21.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.4079, allocations: 111.6 kB / 420.2 MB, free: 21.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003732/0.4083, allocations: 169.5 kB / 420.3 MB, free: 21.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.301e-05/0.4084, allocations: 330.6 kB / 420.7 MB, free: 20.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008328/0.4092, allocations: 335.8 kB / 421 MB, free: 20.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009417/0.4102, allocations: 411.3 kB / 421.4 MB, free: 20.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.4121, allocations: 0.7051 MB / 422.1 MB, free: 19.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4121, allocations: 0 / 422.1 MB, free: 19.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002682/0.4148, allocations: 0.8688 MB / 423 MB, free: 18.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.4148, allocations: 8 kB / 423 MB, free: 18.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4148, allocations: 3.938 kB / 423 MB, free: 18.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.4149, allocations: 4 kB / 423 MB, free: 18.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009623/0.4158, allocations: 175.8 kB / 423.1 MB, free: 18.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4159, allocations: 4 kB / 423.2 MB, free: 18.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/0.4164, allocations: 33.08 kB / 423.2 MB, free: 18.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.4166, allocations: 67.92 kB / 423.2 MB, free: 18.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003043/0.4169, allocations: 141.7 kB / 423.4 MB, free: 18.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.4172, allocations: 15.81 kB / 423.4 MB, free: 18.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006662/0.4238, allocations: 7.972 MB / 431.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-05/0.4239, allocations: 23.97 kB / 431.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4239, allocations: 9.062 kB / 431.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4239, allocations: 0 / 431.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.426, allocations: 3.599 MB / 435 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.426, allocations: 0 / 435 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006202/0.4266, allocations: 107.8 kB / 435.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4266, allocations: 4 kB / 435.1 MB, free: 6.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.4267, allocations: 16.8 kB / 435.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.4267, allocations: 0 / 435.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4267, allocations: 5.781 kB / 435.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.4286, allocations: 1.839 MB / 437 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.802e-05/0.4287, allocations: 144.1 kB / 437.1 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.4287, allocations: 7.938 kB / 437.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.429, allocations: 16.05 kB / 437.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.861e-05/0.4291, allocations: 34.84 kB / 437.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.4292, allocations: 15.98 kB / 437.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.4292, allocations: 91.27 kB / 437.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4292, allocations: 0 / 437.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002469/0.4317, allocations: 0.9828 MB / 438.3 MB, free: 3.031 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 (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.00329/0.435, allocations: 1.127 MB / 439.4 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.4363, allocations: 0.9039 MB / 440.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4363, allocations: 4 kB / 440.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.4369, allocations: 0.5869 MB / 440.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005773/0.4375, allocations: 82.8 kB / 441 MB, free: 492 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.4392, allocations: 1.307 MB / 442.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.4396, allocations: 0.8575 MB / 443.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00185/0.4414, allocations: 1.783 MB / 444.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.4417, allocations: 83.36 kB / 445 MB, free: 12.41 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4418, allocations: 0 / 445 MB, free: 12.41 MB / 334.1 MB Notification: Performance of Templates: time 0.05064/0.4924, allocations: 40.72 MB / 485.7 MB, free: 3.629 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches