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.001548/0.001548, allocations: 109.9 kB / 17.17 MB, free: 6.309 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.001893/0.001893, allocations: 194.9 kB / 18.08 MB, free: 5.414 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.417/1.417, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 48.27 kB / 300.6 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09993, allocations: 49.44 MB / 350 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01894/0.1189, allocations: 14.15 MB / 364.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1816/0.3006, allocations: 16.61 MB / 380.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.3008, allocations: 0 / 380.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.3012, allocations: 76.62 kB / 380.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003456/0.3016, allocations: 102.3 kB / 381 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01572/0.3173, allocations: 4.72 MB / 385.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.3178, allocations: 374.9 kB / 386.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.727e-05/0.3179, allocations: 12.28 kB / 386.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004406/0.3183, allocations: 208.8 kB / 386.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.3185, allocations: 100.6 kB / 386.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.3185, allocations: 7.562 kB / 386.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01361/0.3321, allocations: 6.695 MB / 393.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3323, allocations: 35.56 kB / 393.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.3325, allocations: 100.8 kB / 393.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006775/0.3393, allocations: 2.645 MB / 395.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3393, allocations: 0 / 395.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3393, allocations: 0 / 395.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.3394, allocations: 4 kB / 395.9 MB, free: 5.148 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.00321/0.3426, allocations: 0.9938 MB / 396.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3426, allocations: 7.719 kB / 396.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.3441, allocations: 178 kB / 397 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.3443, allocations: 261.9 kB / 397.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.721e-05/0.3443, allocations: 13.09 kB / 397.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.3444, allocations: 26.75 kB / 397.3 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003048/0.3475, allocations: 0.908 MB / 398.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3475, allocations: 0 / 398.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.3475, allocations: 10.59 kB / 398.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3475, allocations: 9.859 kB / 398.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.3507, allocations: 0.9755 MB / 399.2 MB, free: 2.898 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.001319/0.3521, allocations: 1.333 MB / 400.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002526/0.3546, allocations: 0.7379 MB / 401.3 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.3549, allocations: 161.1 kB / 401.5 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0714/0.4263, allocations: 37.4 MB / 438.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/0.4264, allocations: 42.56 kB / 438.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.274e-06/0.4264, allocations: 0 / 438.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005154/0.4315, allocations: 1.352 MB / 440.3 MB, free: 6.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.4316, allocations: 59.34 kB / 440.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.4317, allocations: 125.7 kB / 440.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.471e-05/0.4318, allocations: 29.7 kB / 440.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.4319, allocations: 116.7 kB / 440.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.432, allocations: 117.5 kB / 440.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002941/0.4323, allocations: 169.5 kB / 440.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4324, allocations: 318.8 kB / 441.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/0.433, allocations: 343.6 kB / 441.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/0.4337, allocations: 407.5 kB / 441.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.435, allocations: 0.7075 MB / 442.6 MB, free: 4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.435, allocations: 0 / 442.6 MB, free: 4 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00175/0.4367, allocations: 0.8718 MB / 443.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4368, allocations: 8 kB / 443.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.4368, allocations: 3.938 kB / 443.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.4368, allocations: 11.92 kB / 443.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/0.4375, allocations: 175.8 kB / 443.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.4375, allocations: 7.938 kB / 443.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.4379, allocations: 39.98 kB / 443.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.4381, allocations: 63.92 kB / 443.8 MB, free: 2.82 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.0002447/0.4383, allocations: 141.7 kB / 443.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.4385, allocations: 15.81 kB / 443.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007218/0.4457, allocations: 7.973 MB / 451.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.421e-05/0.4458, allocations: 27.89 kB / 451.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4458, allocations: 384 / 451.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.4458, allocations: 7.922 kB / 451.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.4489, allocations: 3.603 MB / 455.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4489, allocations: 0 / 455.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/0.4496, allocations: 111.8 kB / 455.7 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.4496, allocations: 0 / 455.7 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.4497, allocations: 19.98 kB / 455.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.4497, allocations: 7.875 kB / 455.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4497, allocations: 0 / 455.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.452, allocations: 1.839 MB / 457.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.4521, allocations: 140.1 kB / 457.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.4522, allocations: 8.062 kB / 457.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.4525, allocations: 31.86 kB / 457.7 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.4526, allocations: 27.95 kB / 457.7 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.4527, allocations: 15.94 kB / 457.7 MB, free: 4.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.868e-05/0.4527, allocations: 91.27 kB / 457.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4527, allocations: 0 / 457.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003942/0.4567, allocations: 0.9799 MB / 458.8 MB, free: 3.484 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.004691/0.4614, allocations: 1.135 MB / 459.9 MB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.463, allocations: 0.9107 MB / 460.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.463, allocations: 0 / 460.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007224/0.4638, allocations: 0.5876 MB / 461.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006514/0.4644, allocations: 76.42 kB / 461.5 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.4664, allocations: 1.617 MB / 463.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.4669, allocations: 0.8614 MB / 464 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/0.4672, allocations: 91.36 kB / 464.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4673, allocations: 0 / 464.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of Templates: time 0.03721/0.5045, allocations: 23.99 MB / 488.1 MB, free: 6.184 MB / 398.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 -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