Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 94.89 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 195 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001902/0.0001902, allocations: 7.984 kB / 307.1 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.08129, allocations: 51.51 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01282/0.09415, allocations: 12.48 MB / 371.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1597/0.2539, allocations: 14.36 MB / 385.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.2541, allocations: 5.156 kB / 385.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.2544, allocations: 58.19 kB / 385.5 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.2547, allocations: 99.66 kB / 385.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01332/0.268, allocations: 4.549 MB / 390.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.2684, allocations: 334.1 kB / 390.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.375e-05/0.2685, allocations: 15.89 kB / 390.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003864/0.2689, allocations: 201.6 kB / 390.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.269, allocations: 106.3 kB / 390.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.269, allocations: 6.812 kB / 390.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.281, allocations: 6.495 MB / 397.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.2811, allocations: 33.52 kB / 397.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2812, allocations: 64.95 kB / 397.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.2859, allocations: 2.635 MB / 400 MB, free: 228 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2859, allocations: 0 / 400 MB, free: 228 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2859, allocations: 0 / 400 MB, free: 228 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2859, allocations: 3.938 kB / 400 MB, free: 224 kB / 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.002197/0.2881, allocations: 0.9563 MB / 401 MB, free: 15.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2882, allocations: 8.781 kB / 401 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001339/0.2895, allocations: 186.7 kB / 401.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.2898, allocations: 255 kB / 401.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.2898, allocations: 14.56 kB / 401.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.2899, allocations: 21.66 kB / 401.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/0.2926, allocations: 0.9125 MB / 402.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2927, allocations: 3.938 kB / 402.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.2927, allocations: 11.22 kB / 402.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2927, allocations: 5.25 kB / 402.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.2956, allocations: 0.9865 MB / 403.4 MB, free: 13.99 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.001463/0.2971, allocations: 1.346 MB / 404.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.2994, allocations: 0.7309 MB / 405.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.2997, allocations: 160.1 kB / 405.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06997/0.3696, allocations: 42.38 MB / 448 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3697, allocations: 39.97 kB / 448.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.964e-06/0.3697, allocations: 0 / 448.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004779/0.3745, allocations: 1.376 MB / 449.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.3746, allocations: 59.34 kB / 449.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.3747, allocations: 125.9 kB / 449.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.472e-05/0.3747, allocations: 29.7 kB / 449.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.3748, allocations: 112.7 kB / 449.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.375, allocations: 110.4 kB / 449.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.624e-05/0.375, allocations: 4 kB / 449.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.3751, allocations: 330.8 kB / 450.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005906/0.3757, allocations: 340.2 kB / 450.5 MB, free: 9.965 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006358/0.3764, allocations: 415.4 kB / 450.9 MB, free: 9.531 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.377, allocations: 331.9 kB / 451.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.377, allocations: 7.938 kB / 451.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001607/0.3786, allocations: 0.8758 MB / 452.1 MB, free: 8.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.3786, allocations: 8.25 kB / 452.1 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3787, allocations: 4 kB / 452.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3787, allocations: 7.984 kB / 452.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/0.3793, allocations: 175.8 kB / 452.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3793, allocations: 7.891 kB / 452.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.3797, allocations: 43.67 kB / 452.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.3798, allocations: 71.92 kB / 452.4 MB, free: 8.004 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001945/0.38, allocations: 134.5 kB / 452.6 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.3801, allocations: 15.81 kB / 452.6 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00718/0.3873, allocations: 7.978 MB / 460.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-05/0.3873, allocations: 27.95 kB / 460.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3873, allocations: 0.8125 kB / 460.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3874, allocations: 3.953 kB / 460.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.3902, allocations: 3.6 MB / 464.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3903, allocations: 3.938 kB / 464.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005976/0.3909, allocations: 107.9 kB / 464.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.3909, allocations: 7.938 kB / 464.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.3909, allocations: 11.98 kB / 464.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.391, allocations: 4 kB / 464.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.391, allocations: 3.938 kB / 464.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.3932, allocations: 1.858 MB / 466.2 MB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.735e-05/0.3934, allocations: 148 kB / 466.3 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.183e-05/0.3934, allocations: 4 kB / 466.3 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.3937, allocations: 19.98 kB / 466.4 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.007e-05/0.3938, allocations: 36.02 kB / 466.4 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.814e-05/0.3939, allocations: 15.98 kB / 466.4 MB, free: 9.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.128e-05/0.3939, allocations: 91.22 kB / 466.5 MB, free: 9.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3939, allocations: 0 / 466.5 MB, free: 9.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00311/0.397, allocations: 0.9954 MB / 467.5 MB, free: 8.625 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005422/0.4025, allocations: 1.136 MB / 468.6 MB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.404, allocations: 0.9194 MB / 469.5 MB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.404, allocations: 0 / 469.5 MB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.4047, allocations: 0.5954 MB / 470.1 MB, free: 5.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006066/0.4053, allocations: 86.25 kB / 470.2 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.4072, allocations: 1.624 MB / 471.9 MB, free: 4.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4075, allocations: 0.8497 MB / 472.7 MB, free: 3.363 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.4094, allocations: 1.787 MB / 474.5 MB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003152/0.4097, allocations: 83.36 kB / 474.6 MB, free: 1.492 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4097, allocations: 0 / 474.6 MB, free: 1.492 MB / 382.1 MB Notification: Performance of Templates: time 0.05145/0.4612, allocations: 40.93 MB / 0.5034 GB, free: 8.512 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches