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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000879/0.0008791, allocations: 94.56 kB / 16.3 MB, free: 5.996 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.0008962/0.0008961, allocations: 184.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002393, allocations: 9.438 kB / 300.7 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08182/0.08207, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01139/0.0935, allocations: 11.45 MB / 362.6 MB, free: 268 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01342/0.107, allocations: 13.14 MB / 375.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1071, allocations: 0 / 375.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.1074, allocations: 71.66 kB / 375.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.1077, allocations: 103.8 kB / 375.9 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01223/0.1199, allocations: 4.61 MB / 380.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.1203, allocations: 211.5 kB / 380.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.286e-05/0.1204, allocations: 17.69 kB / 380.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004844/0.1208, allocations: 239.2 kB / 381 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.121, allocations: 91.67 kB / 381.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.121, allocations: 4 kB / 381.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/0.133, allocations: 6.664 MB / 387.7 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.239e-05/0.1331, allocations: 35.89 kB / 387.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.313e-05/0.1332, allocations: 65.58 kB / 387.8 MB, free: 7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005402/0.1386, allocations: 2.624 MB / 390.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1387, allocations: 0 / 390.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1387, allocations: 0 / 390.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1387, allocations: 0 / 390.4 MB, free: 4.371 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.002721/0.1414, allocations: 0.9555 MB / 391.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1415, allocations: 8.031 kB / 391.4 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.1428, allocations: 175.6 kB / 391.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.1431, allocations: 258.7 kB / 391.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.216e-05/0.1431, allocations: 16.44 kB / 391.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.1432, allocations: 27.89 kB / 391.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/0.146, allocations: 0.909 MB / 392.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.146, allocations: 0 / 392.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.146, allocations: 12 kB / 392.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.146, allocations: 4 kB / 392.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.149, allocations: 0.9851 MB / 393.8 MB, free: 0.918 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.001405/0.1504, allocations: 1.347 MB / 395.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.1528, allocations: 0.733 MB / 395.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2276/0.3804, allocations: 37.76 MB / 433.6 MB, free: 60.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.3805, allocations: 37.86 kB / 433.7 MB, free: 60.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.3805, allocations: 0 / 433.7 MB, free: 60.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005242/0.3857, allocations: 1.372 MB / 435 MB, free: 60.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.3858, allocations: 56.03 kB / 435.1 MB, free: 60.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.3859, allocations: 117.7 kB / 435.2 MB, free: 59.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.19e-05/0.386, allocations: 33.42 kB / 435.2 MB, free: 59.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.386, allocations: 119.8 kB / 435.4 MB, free: 59.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.3862, allocations: 118.6 kB / 435.5 MB, free: 59.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.3862, allocations: 4.406 kB / 435.5 MB, free: 59.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.859e-05/0.3863, allocations: 330.1 kB / 435.8 MB, free: 59.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006229/0.387, allocations: 338.2 kB / 436.1 MB, free: 59.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006233/0.3876, allocations: 414.8 kB / 436.5 MB, free: 59.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005515/0.3881, allocations: 338.6 kB / 436.9 MB, free: 59.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3882, allocations: 0 / 436.9 MB, free: 59.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001575/0.3897, allocations: 0.8787 MB / 437.7 MB, free: 59.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3898, allocations: 6.844 kB / 437.7 MB, free: 59.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3898, allocations: 2.125 kB / 437.7 MB, free: 59.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.3898, allocations: 4.281 kB / 437.8 MB, free: 59.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006503/0.3905, allocations: 180.7 kB / 437.9 MB, free: 59.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3905, allocations: 4.5 kB / 437.9 MB, free: 59.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3909, allocations: 47.64 kB / 438 MB, free: 59.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.391, allocations: 62.03 kB / 438 MB, free: 59.26 MB / 350.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.0001894/0.3912, allocations: 142.5 kB / 438.2 MB, free: 59.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.3913, allocations: 15.39 kB / 438.2 MB, free: 59.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006496/0.3978, allocations: 7.99 MB / 446.2 MB, free: 56.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.3978, allocations: 31.73 kB / 446.2 MB, free: 56.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3978, allocations: 0 / 446.2 MB, free: 56.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3978, allocations: 7.984 kB / 446.2 MB, free: 56.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.3998, allocations: 3.589 MB / 449.8 MB, free: 54.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.3999, allocations: 0.75 kB / 449.8 MB, free: 54.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.4004, allocations: 113.3 kB / 449.9 MB, free: 54.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.4004, allocations: 3.953 kB / 449.9 MB, free: 54.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.4005, allocations: 11.91 kB / 449.9 MB, free: 54.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.4005, allocations: 3.844 kB / 449.9 MB, free: 54.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4005, allocations: 7.359 kB / 450 MB, free: 54.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.4022, allocations: 1.852 MB / 451.8 MB, free: 52.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.4023, allocations: 147.7 kB / 451.9 MB, free: 52.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.11e-05/0.4024, allocations: 12.02 kB / 452 MB, free: 52.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.4027, allocations: 27.28 kB / 452 MB, free: 52.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.4027, allocations: 31.95 kB / 452 MB, free: 52.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.4028, allocations: 15.98 kB / 452 MB, free: 52.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.277e-05/0.4028, allocations: 91.27 kB / 452.1 MB, free: 52.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4028, allocations: 0 / 452.1 MB, free: 52.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00213/0.405, allocations: 0.9816 MB / 453.1 MB, free: 51.39 MB / 350.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.003074/0.408, allocations: 1.128 MB / 454.2 MB, free: 50.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.4092, allocations: 0.9044 MB / 455.1 MB, free: 49.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4092, allocations: 4 kB / 455.1 MB, free: 49.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005384/0.4097, allocations: 0.5959 MB / 455.7 MB, free: 48.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.4102, allocations: 82.36 kB / 455.8 MB, free: 48.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.4117, allocations: 1.615 MB / 457.4 MB, free: 47.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.4119, allocations: 0.8692 MB / 458.3 MB, free: 46.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001347/0.4132, allocations: 1.784 MB / 460.1 MB, free: 44.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.4135, allocations: 99.19 kB / 460.2 MB, free: 44.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4135, allocations: 0 / 460.2 MB, free: 44.46 MB / 350.1 MB Notification: Performance of Templates: time 0.03857/0.4521, allocations: 40.79 MB / 0.4892 GB, free: 3.668 MB / 350.1 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/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