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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002032/0.002032, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 97.72 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008353/0.0008355, allocations: 40.08 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2456, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01909/0.2647, allocations: 14.14 MB / 413.6 MB, free: 19.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02158/0.2863, allocations: 16.62 MB / 430.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.2865, allocations: 0 / 430.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004152/0.287, allocations: 75.61 kB / 430.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.2874, allocations: 99.33 kB / 430.4 MB, free: 2.348 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01978/0.3072, allocations: 4.719 MB / 435.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.3079, allocations: 370.5 kB / 435.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.275e-05/0.3079, allocations: 13.69 kB / 435.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006069/0.3086, allocations: 219 kB / 435.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.3088, allocations: 111.5 kB / 435.8 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.478e-05/0.3088, allocations: 8 kB / 435.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01726/0.3261, allocations: 6.673 MB / 442.5 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3263, allocations: 35.89 kB / 442.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.3265, allocations: 107.5 kB / 442.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3367, allocations: 3.918 MB / 446.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3367, allocations: 0 / 446.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3368, allocations: 0 / 446.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3368, allocations: 0 / 446.6 MB, free: 2.184 MB / 314.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.002623/0.3394, allocations: 0.9869 MB / 447.5 MB, free: 1.148 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3394, allocations: 8.031 kB / 447.5 MB, free: 1.141 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.341, allocations: 176.6 kB / 447.7 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.3413, allocations: 263.9 kB / 448 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.3414, allocations: 20.81 kB / 448 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.3414, allocations: 28.25 kB / 448 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003318/0.3447, allocations: 0.909 MB / 448.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3448, allocations: 4 kB / 448.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.3448, allocations: 8 kB / 448.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3448, allocations: 4 kB / 448.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/0.3479, allocations: 0.9734 MB / 449.9 MB, free: 14.7 MB / 330.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.001716/0.3497, allocations: 1.35 MB / 451.3 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.3521, allocations: 0.7245 MB / 452 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.3524, allocations: 157.6 kB / 452.2 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07578/0.4282, allocations: 37.39 MB / 489.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.4283, allocations: 30.56 kB / 489.6 MB, free: 2.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.963e-06/0.4283, allocations: 0 / 489.6 MB, free: 2.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.005075/0.4334, allocations: 1.372 MB / 490.9 MB, free: 1.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.4335, allocations: 59.41 kB / 491 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.4336, allocations: 113.8 kB / 491.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.946e-05/0.4336, allocations: 33.7 kB / 491.1 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.309e-05/0.4337, allocations: 116.6 kB / 491.3 MB, free: 0.707 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.4338, allocations: 118.3 kB / 491.4 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002638/0.4341, allocations: 161.6 kB / 491.5 MB, free: 436 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4342, allocations: 326.8 kB / 491.9 MB, free: 100 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006297/0.4349, allocations: 343.9 kB / 492.2 MB, free: 15.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007065/0.4356, allocations: 407.5 kB / 492.6 MB, free: 15.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.4368, allocations: 0.7037 MB / 493.3 MB, free: 14.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4369, allocations: 8 kB / 493.3 MB, free: 14.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001743/0.4386, allocations: 0.8679 MB / 494.2 MB, free: 13.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.4386, allocations: 8.375 kB / 494.2 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.4386, allocations: 3.984 kB / 494.2 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.4387, allocations: 8.188 kB / 494.2 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/0.4393, allocations: 175.8 kB / 494.4 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4393, allocations: 7.938 kB / 494.4 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.4397, allocations: 35.77 kB / 494.4 MB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4398, allocations: 67.92 kB / 494.5 MB, free: 13.42 MB / 378.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.0002165/0.44, allocations: 141.7 kB / 494.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4402, allocations: 19.81 kB / 494.6 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006923/0.4471, allocations: 7.978 MB / 0.4908 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.4471, allocations: 27.95 kB / 0.4908 GB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4472, allocations: 0 / 0.4908 GB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4472, allocations: 0 / 0.4908 GB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.4501, allocations: 3.604 MB / 0.4944 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4501, allocations: 3.938 kB / 0.4944 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/0.4507, allocations: 111.8 kB / 0.4945 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.4507, allocations: 0 / 0.4945 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.05e-05/0.4508, allocations: 15.92 kB / 0.4945 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.4508, allocations: 4 kB / 0.4945 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4508, allocations: 0 / 0.4945 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1728/0.6236, allocations: 3.281 MB / 0.4977 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.643e-05/0.6237, allocations: 140.4 kB / 0.4978 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.6237, allocations: 6.5 kB / 0.4978 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.624, allocations: 22 kB / 0.4979 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.6241, allocations: 34.48 kB / 0.4979 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.6242, allocations: 17.16 kB / 0.4979 GB, free: 103.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.118e-05/0.6242, allocations: 95.62 kB / 0.498 GB, free: 103 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6242, allocations: 1.156 kB / 0.498 GB, free: 103 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002342/0.6266, allocations: 1.009 MB / 0.499 GB, free: 102.9 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.003496/0.6301, allocations: 1.133 MB / 0.5001 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.6316, allocations: 0.9025 MB / 0.501 GB, free: 102.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6316, allocations: 0 / 0.501 GB, free: 102.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007096/0.6323, allocations: 0.5947 MB / 0.5016 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006851/0.633, allocations: 82.88 kB / 0.5016 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.6354, allocations: 2.223 MB / 0.5038 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.6357, allocations: 0.891 MB / 0.5047 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00184/0.6376, allocations: 1.783 MB / 0.5064 GB, free: 99.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.6379, allocations: 93.97 kB / 0.5065 GB, free: 99.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6379, allocations: 0 / 0.5065 GB, free: 99.77 MB / 378.7 MB Notification: Performance of Templates: time 0.0397/0.6776, allocations: 41.07 MB / 0.5466 GB, free: 58.93 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches