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.00104/0.00104, allocations: 107.2 kB / 18.34 MB, free: 4.699 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.001074/0.001074, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.336/1.336, 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.001321/0.001321, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08586, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01622/0.1021, allocations: 13.34 MB / 342 MB, free: 6.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.1197, allocations: 15.54 MB / 357.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.1199, allocations: 0 / 357.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.1203, allocations: 79.47 kB / 357.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.1206, allocations: 107.3 kB / 357.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01553/0.1361, allocations: 5.948 MB / 363.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.1366, allocations: 338.6 kB / 364.1 MB, free: 280 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.404e-05/0.1367, allocations: 17.69 kB / 364.1 MB, free: 264 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004154/0.1371, allocations: 227 kB / 364.3 MB, free: 36 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.1374, allocations: 99.66 kB / 364.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.1374, allocations: 12 kB / 364.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01281/0.1502, allocations: 6.766 MB / 371.2 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.1504, allocations: 47.83 kB / 371.2 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.1506, allocations: 103.6 kB / 371.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.1607, allocations: 3.887 MB / 375.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1608, allocations: 0 / 375.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1608, allocations: 0 / 375.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.1608, allocations: 0 / 375.2 MB, free: 5.109 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.002563/0.1634, allocations: 0.9908 MB / 376.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1634, allocations: 12.03 kB / 376.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.1648, allocations: 172.6 kB / 376.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.1652, allocations: 260 kB / 376.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.1652, allocations: 16.81 kB / 376.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.1653, allocations: 32.3 kB / 376.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003164/0.1685, allocations: 0.9011 MB / 377.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1685, allocations: 0 / 377.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.1685, allocations: 12 kB / 377.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1685, allocations: 4 kB / 377.6 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003266/0.1718, allocations: 0.9734 MB / 378.6 MB, free: 1.637 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.001629/0.1735, allocations: 1.35 MB / 379.9 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1447/0.3182, allocations: 0.7211 MB / 380.6 MB, free: 54.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.3187, allocations: 157.4 kB / 380.8 MB, free: 54.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06375/0.3824, allocations: 37.55 MB / 418.3 MB, free: 23.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3825, allocations: 30.56 kB / 418.4 MB, free: 23.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/0.3825, allocations: 0 / 418.4 MB, free: 23.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004762/0.3873, allocations: 1.37 MB / 419.7 MB, free: 21.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.3873, allocations: 55.41 kB / 419.8 MB, free: 21.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.205e-05/0.3874, allocations: 119.2 kB / 419.9 MB, free: 21.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/0.3875, allocations: 33.7 kB / 419.9 MB, free: 21.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.981e-05/0.3875, allocations: 115.7 kB / 420.1 MB, free: 21.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.957e-05/0.3876, allocations: 115.7 kB / 420.2 MB, free: 21.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002637/0.3879, allocations: 165.5 kB / 420.3 MB, free: 21.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.3879, allocations: 326.8 kB / 420.7 MB, free: 20.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.3885, allocations: 339.8 kB / 421 MB, free: 20.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.3891, allocations: 410.4 kB / 421.4 MB, free: 20.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.3901, allocations: 0.6984 MB / 422.1 MB, free: 19.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3902, allocations: 0 / 422.1 MB, free: 19.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001524/0.3917, allocations: 0.8758 MB / 423 MB, free: 18.44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3917, allocations: 8.75 kB / 423 MB, free: 18.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3917, allocations: 11.41 kB / 423 MB, free: 18.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3917, allocations: 7.938 kB / 423 MB, free: 18.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.3924, allocations: 172.8 kB / 423.2 MB, free: 18.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.3924, allocations: 8 kB / 423.2 MB, free: 18.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.3927, allocations: 28.94 kB / 423.2 MB, free: 18.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3928, allocations: 63.94 kB / 423.3 MB, free: 18.15 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.0001637/0.393, allocations: 141.7 kB / 423.4 MB, free: 18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3931, allocations: 19.8 kB / 423.4 MB, free: 17.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00521/0.3983, allocations: 7.965 MB / 431.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.3984, allocations: 27.95 kB / 431.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3984, allocations: 1.656 kB / 431.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.3984, allocations: 3.984 kB / 431.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.4004, allocations: 3.595 MB / 435 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4004, allocations: 0 / 435 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.401, allocations: 112.9 kB / 435.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.401, allocations: 4 kB / 435.1 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.4011, allocations: 19.92 kB / 435.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4011, allocations: 1.75 kB / 435.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4011, allocations: 4 kB / 435.1 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.4029, allocations: 1.827 MB / 437 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.4029, allocations: 144.1 kB / 437.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.403, allocations: 19.98 kB / 437.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.4033, allocations: 10 kB / 437.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.4034, allocations: 31.95 kB / 437.2 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.4034, allocations: 15.98 kB / 437.2 MB, free: 3.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.433e-05/0.4034, allocations: 95.06 kB / 437.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4034, allocations: 0 / 437.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002257/0.4057, allocations: 0.9802 MB / 438.3 MB, free: 2.934 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.003141/0.4089, allocations: 1.126 MB / 439.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.4101, allocations: 0.9036 MB / 440.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4101, allocations: 0 / 440.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005577/0.4107, allocations: 0.5908 MB / 440.9 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.4113, allocations: 84.44 kB / 441 MB, free: 392 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.4129, allocations: 1.305 MB / 442.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.4133, allocations: 0.8575 MB / 443.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001813/0.4152, allocations: 1.782 MB / 444.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/0.4155, allocations: 95.28 kB / 445 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4155, allocations: 0 / 445 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Templates: time 0.0504/0.4659, allocations: 40.72 MB / 485.7 MB, free: 3.52 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 cvode -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