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.001313/0.001313, allocations: 106.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 209.7 kB / 18.14 MB, free: 5.344 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.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 60.08 kB / 306.3 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0788/0.07991, allocations: 50.52 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1561/0.2361, allocations: 14.27 MB / 371.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01562/0.2517, allocations: 16.61 MB / 387.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.2519, allocations: 5.156 kB / 387.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.2523, allocations: 71.27 kB / 387.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.2526, allocations: 111 kB / 387.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0139/0.2665, allocations: 4.727 MB / 392.6 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004736/0.267, allocations: 368.6 kB / 392.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.809e-05/0.2671, allocations: 19.58 kB / 393 MB, free: 2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.2675, allocations: 206.3 kB / 393.2 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.2677, allocations: 108.8 kB / 393.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/0.2678, allocations: 7.781 kB / 393.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01215/0.2799, allocations: 6.697 MB / 400 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.2801, allocations: 41.39 kB / 400 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.2803, allocations: 92.75 kB / 400.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008696/0.289, allocations: 3.94 MB / 404 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.289, allocations: 0 / 404 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.289, allocations: 0 / 404 MB, free: 11.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.2891, allocations: 0 / 404 MB, free: 11.95 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.003227/0.2923, allocations: 0.987 MB / 405 MB, free: 11.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2923, allocations: 10.19 kB / 405 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.2938, allocations: 178.7 kB / 405.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.2941, allocations: 270.5 kB / 405.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.2942, allocations: 16.12 kB / 405.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.2942, allocations: 18.5 kB / 405.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/0.2976, allocations: 0.9082 MB / 406.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.2976, allocations: 0 / 406.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.2976, allocations: 11.38 kB / 406.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2976, allocations: 8.281 kB / 406.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003476/0.3011, allocations: 0.9695 MB / 407.4 MB, free: 9.254 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.001594/0.3027, allocations: 1.342 MB / 408.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/0.3058, allocations: 0.7283 MB / 409.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.3061, allocations: 153.6 kB / 409.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07429/0.3804, allocations: 42 MB / 451.6 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.3804, allocations: 42.56 kB / 451.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.276e-06/0.3805, allocations: 0 / 451.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005718/0.3862, allocations: 1.368 MB / 453 MB, free: 6.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.3862, allocations: 55.34 kB / 453.1 MB, free: 6.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.3864, allocations: 125.8 kB / 453.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.603e-05/0.3864, allocations: 29.7 kB / 453.2 MB, free: 5.852 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.522e-05/0.3865, allocations: 124.7 kB / 453.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3867, allocations: 106.4 kB / 453.5 MB, free: 5.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003328/0.387, allocations: 169.5 kB / 453.6 MB, free: 5.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3871, allocations: 326.8 kB / 454 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006545/0.3878, allocations: 331.8 kB / 454.3 MB, free: 4.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007237/0.3885, allocations: 415.2 kB / 454.7 MB, free: 4.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.3899, allocations: 0.7115 MB / 455.4 MB, free: 3.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3899, allocations: 0 / 455.4 MB, free: 3.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001886/0.3918, allocations: 0.8757 MB / 456.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3918, allocations: 4 kB / 456.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3919, allocations: 9.375 kB / 456.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3919, allocations: 7.938 kB / 456.3 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/0.3926, allocations: 175.8 kB / 456.5 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.3926, allocations: 4 kB / 456.5 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.3931, allocations: 40.02 kB / 456.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.3932, allocations: 59.92 kB / 456.6 MB, free: 2.449 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.3934, allocations: 145.7 kB / 456.7 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.3936, allocations: 15.81 kB / 456.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007108/0.4007, allocations: 7.97 MB / 464.7 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-05/0.4008, allocations: 32.27 kB / 464.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4008, allocations: 0 / 464.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.4008, allocations: 0 / 464.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00281/0.4036, allocations: 3.604 MB / 468.3 MB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4036, allocations: 7.875 kB / 468.3 MB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/0.4043, allocations: 107.8 kB / 468.4 MB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.4043, allocations: 8 kB / 468.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.318e-05/0.4044, allocations: 8 kB / 468.5 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.4044, allocations: 3.938 kB / 468.5 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4044, allocations: 0 / 468.5 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.4067, allocations: 1.842 MB / 470.3 MB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.4068, allocations: 148.2 kB / 470.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.4069, allocations: 8 kB / 470.5 MB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.4073, allocations: 23.92 kB / 470.5 MB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.474e-05/0.4074, allocations: 31.95 kB / 470.5 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.4074, allocations: 15.92 kB / 470.5 MB, free: 4.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.15e-05/0.4075, allocations: 87.28 kB / 470.6 MB, free: 4.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4075, allocations: 0 / 470.6 MB, free: 4.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002791/0.4103, allocations: 0.9955 MB / 471.6 MB, free: 3.082 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 (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.004733/0.415, allocations: 1.147 MB / 472.8 MB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.4166, allocations: 0.9029 MB / 473.7 MB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4166, allocations: 0 / 473.7 MB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007595/0.4174, allocations: 0.5915 MB / 474.2 MB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006492/0.418, allocations: 82.94 kB / 474.3 MB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.42, allocations: 1.57 MB / 475.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.4204, allocations: 0.8575 MB / 476.8 MB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001844/0.4222, allocations: 1.783 MB / 478.5 MB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.4226, allocations: 91.34 kB / 478.6 MB, free: 12.01 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4226, allocations: 0 / 478.6 MB, free: 12.01 MB / 398.1 MB Notification: Performance of Templates: time 0.05452/0.4771, allocations: 40.71 MB / 0.5072 GB, free: 3.25 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