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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009858/0.0009858, allocations: 96.58 kB / 16.93 MB, free: 5.984 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.0009801/0.0009802, allocations: 180 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.0004448, allocations: 8 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08317/0.08362, allocations: 47.59 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01258/0.09625, allocations: 11.43 MB / 339.8 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.1103, allocations: 13.12 MB / 352.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.1105, allocations: 4 kB / 352.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.1108, allocations: 67.72 kB / 353 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.1111, allocations: 107.6 kB / 353.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01214/0.1233, allocations: 4.593 MB / 357.7 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.1237, allocations: 219.5 kB / 357.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.943e-05/0.1238, allocations: 13.69 kB / 357.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005202/0.1243, allocations: 235.1 kB / 358.1 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.1245, allocations: 95.66 kB / 358.2 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.1245, allocations: 8 kB / 358.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01163/0.1361, allocations: 6.641 MB / 364.9 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.365e-05/0.1363, allocations: 43.83 kB / 364.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.922e-05/0.1364, allocations: 65.58 kB / 365 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004488/0.1409, allocations: 2.608 MB / 367.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1409, allocations: 0 / 367.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1409, allocations: 4 kB / 367.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1409, allocations: 4 kB / 367.6 MB, free: 12.76 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.002194/0.1431, allocations: 0.9477 MB / 368.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1431, allocations: 8.031 kB / 368.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.1445, allocations: 183.6 kB / 368.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.1447, allocations: 266.6 kB / 369 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.151e-05/0.1448, allocations: 16.44 kB / 369 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.1448, allocations: 27.91 kB / 369 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.1477, allocations: 0.9051 MB / 369.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1477, allocations: 0 / 369.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.1478, allocations: 12 kB / 369.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1478, allocations: 7.953 kB / 369.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002941/0.1507, allocations: 0.9851 MB / 370.9 MB, free: 9.297 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.001523/0.1523, allocations: 1.339 MB / 372.3 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002345/0.1546, allocations: 0.7292 MB / 373 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2202/0.3748, allocations: 37.75 MB / 410.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.3749, allocations: 42.31 kB / 410.8 MB, free: 8.125 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.3749, allocations: 0 / 410.8 MB, free: 8.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004626/0.3795, allocations: 1.374 MB / 412.2 MB, free: 7.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.3796, allocations: 59.09 kB / 412.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.088e-05/0.3797, allocations: 125.8 kB / 412.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.598e-05/0.3798, allocations: 32.02 kB / 412.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/0.3798, allocations: 113.5 kB / 412.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.3799, allocations: 118.6 kB / 412.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.38, allocations: 6.438 kB / 412.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.443e-05/0.38, allocations: 325.2 kB / 412.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.3806, allocations: 342.8 kB / 413.3 MB, free: 7.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005264/0.3811, allocations: 420.2 kB / 413.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.3816, allocations: 333.7 kB / 414 MB, free: 6.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3816, allocations: 0 / 414 MB, free: 6.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001371/0.383, allocations: 0.8782 MB / 414.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.383, allocations: 5.719 kB / 414.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.383, allocations: 1.281 kB / 414.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.3831, allocations: 11.52 kB / 414.9 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/0.3837, allocations: 183.3 kB / 415.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.3837, allocations: 2.219 kB / 415.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.384, allocations: 41.39 kB / 415.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.226e-05/0.3841, allocations: 62.38 kB / 415.2 MB, free: 6.633 MB / 318.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.0001885/0.3843, allocations: 144.1 kB / 415.3 MB, free: 6.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.444e-05/0.3844, allocations: 15 kB / 415.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005452/0.3899, allocations: 7.981 MB / 423.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/0.3899, allocations: 26.77 kB / 423.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3899, allocations: 3.953 kB / 423.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.39, allocations: 3.984 kB / 423.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.3923, allocations: 3.592 MB / 426.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3923, allocations: 4.641 kB / 426.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006339/0.3929, allocations: 113.2 kB / 427.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.3929, allocations: 4 kB / 427.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.393, allocations: 13.86 kB / 427.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.393, allocations: 4 kB / 427.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.393, allocations: 3.953 kB / 427.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.3953, allocations: 1.853 MB / 428.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3954, allocations: 148.1 kB / 429.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.3954, allocations: 7.25 kB / 429.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.3958, allocations: 19.48 kB / 429.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/0.3959, allocations: 26.97 kB / 429.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.3959, allocations: 19.06 kB / 429.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.573e-05/0.396, allocations: 94.58 kB / 429.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.396, allocations: 4 kB / 429.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002692/0.3987, allocations: 0.9776 MB / 430.2 MB, free: 13.11 MB / 334.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.003725/0.4024, allocations: 1.139 MB / 431.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.4039, allocations: 0.9036 MB / 432.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4039, allocations: 0 / 432.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000678/0.4046, allocations: 0.6019 MB / 432.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.4051, allocations: 74.31 kB / 432.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.4071, allocations: 1.591 MB / 434.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.4075, allocations: 0.8679 MB / 435.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001934/0.4094, allocations: 1.792 MB / 437.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.4098, allocations: 88.89 kB / 437.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4098, allocations: 0 / 437.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of Templates: time 0.05354/0.4633, allocations: 40.74 MB / 478 MB, free: 14.5 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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