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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.154/1.154, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.001029/0.001029, allocations: 102 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008274/0.0008276, allocations: 39.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1991, allocations: 46.62 MB / 373.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01302/0.2122, allocations: 14.15 MB / 388 MB, free: 34.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.2248, allocations: 16.61 MB / 404.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.225, allocations: 0 / 404.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.2254, allocations: 75.61 kB / 404.6 MB, free: 18.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.2256, allocations: 99.33 kB / 404.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01167/0.2373, allocations: 4.711 MB / 409.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.2376, allocations: 370.5 kB / 409.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.161e-05/0.2377, allocations: 17.62 kB / 409.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.2381, allocations: 203.2 kB / 410 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.2382, allocations: 111.5 kB / 410.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.2383, allocations: 8 kB / 410.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009045/0.2473, allocations: 6.669 MB / 416.8 MB, free: 6.434 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.2474, allocations: 43.83 kB / 416.9 MB, free: 6.391 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.2475, allocations: 95.59 kB / 417 MB, free: 6.297 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006331/0.2539, allocations: 3.907 MB / 420.9 MB, free: 2.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2539, allocations: 12 kB / 420.9 MB, free: 2.371 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2539, allocations: 0 / 420.9 MB, free: 2.371 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2539, allocations: 0 / 420.9 MB, free: 2.371 MB / 298.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.001798/0.2557, allocations: 0.983 MB / 421.9 MB, free: 1.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2558, allocations: 8.031 kB / 421.9 MB, free: 1.332 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001195/0.257, allocations: 176.5 kB / 422 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.2572, allocations: 256 kB / 422.3 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.2572, allocations: 24.75 kB / 422.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.2572, allocations: 24.38 kB / 422.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.2597, allocations: 0.9011 MB / 423.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2598, allocations: 3.938 kB / 423.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.2598, allocations: 8 kB / 423.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.2598, allocations: 8 kB / 423.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002841/0.2627, allocations: 0.9734 MB / 424.2 MB, free: 14.91 MB / 314.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.00138/0.2641, allocations: 1.354 MB / 425.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.2663, allocations: 0.7245 MB / 426.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.2666, allocations: 152.8 kB / 426.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06823/0.3348, allocations: 37.4 MB / 463.9 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.3349, allocations: 34.56 kB / 463.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/0.3349, allocations: 0 / 463.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004626/0.3395, allocations: 1.368 MB / 465.3 MB, free: 1.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.3396, allocations: 55.41 kB / 465.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.959e-05/0.3397, allocations: 125.8 kB / 465.4 MB, free: 1.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.3397, allocations: 29.7 kB / 465.5 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.3398, allocations: 116.7 kB / 465.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3399, allocations: 106.4 kB / 465.7 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002475/0.3401, allocations: 169.5 kB / 465.8 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.3402, allocations: 322.8 kB / 466.2 MB, free: 312 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.3408, allocations: 339.6 kB / 466.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.3415, allocations: 419.2 kB / 466.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.3426, allocations: 0.7076 MB / 467.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3427, allocations: 0 / 467.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001612/0.3443, allocations: 0.8719 MB / 468.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3443, allocations: 8 kB / 468.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3443, allocations: 0 / 468.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3443, allocations: 8.312 kB / 468.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005679/0.3449, allocations: 175.8 kB / 468.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3449, allocations: 8.234 kB / 468.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.3453, allocations: 47.61 kB / 468.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.3454, allocations: 67.88 kB / 468.8 MB, free: 13.61 MB / 362.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001728/0.3455, allocations: 137.8 kB / 468.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.3457, allocations: 15.81 kB / 468.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006489/0.3522, allocations: 7.974 MB / 476.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.3522, allocations: 27.95 kB / 476.9 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3522, allocations: 8 kB / 476.9 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3522, allocations: 3.984 kB / 477 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/0.3548, allocations: 3.592 MB / 480.5 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3548, allocations: 0 / 480.5 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005702/0.3554, allocations: 111.8 kB / 480.7 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.3554, allocations: 4 kB / 480.7 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.3555, allocations: 19.92 kB / 480.7 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3555, allocations: 0 / 480.7 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3555, allocations: 0 / 480.7 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.3589, allocations: 3.282 MB / 484 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-05/0.3589, allocations: 140.2 kB / 484.1 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.359, allocations: 12 kB / 484.1 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/0.3593, allocations: 24.02 kB / 484.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.601e-05/0.3594, allocations: 35.91 kB / 484.2 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/0.3594, allocations: 12 kB / 484.2 MB, free: 13.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.315e-05/0.3595, allocations: 91.27 kB / 484.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3595, allocations: 0 / 484.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002298/0.3618, allocations: 0.9998 MB / 485.3 MB, free: 12.68 MB / 378.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 (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.003241/0.365, allocations: 1.135 MB / 486.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.3664, allocations: 0.9029 MB / 487.3 MB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3664, allocations: 7.938 kB / 487.3 MB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.3671, allocations: 0.5869 MB / 487.9 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005972/0.3677, allocations: 88.3 kB / 488 MB, free: 9.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3698, allocations: 2.21 MB / 490.2 MB, free: 7.707 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.3701, allocations: 0.8848 MB / 491.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00157/0.3717, allocations: 1.784 MB / 492.9 MB, free: 5.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.372, allocations: 91.3 kB / 493 MB, free: 4.914 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.372, allocations: 0 / 493 MB, free: 4.914 MB / 378.7 MB Notification: Performance of Templates: time 0.1739/0.5459, allocations: 41.02 MB / 0.5215 GB, free: 118.8 MB / 394.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches