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.001092/0.001092, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001075/0.001075, allocations: 192 kB / 18 MB, free: 4.977 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.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009095/0.0009096, allocations: 47.92 kB / 353.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2422, allocations: 49.44 MB / 403 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01472/0.2569, allocations: 13.33 MB / 416.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.2733, allocations: 15.56 MB / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2735, allocations: 0 / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003383/0.2738, allocations: 87.47 kB / 432 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003145/0.2742, allocations: 111.3 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01411/0.2883, allocations: 5.963 MB / 438.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.2887, allocations: 334.6 kB / 438.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.983e-05/0.2888, allocations: 17.67 kB / 438.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004395/0.2893, allocations: 235 kB / 438.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.2894, allocations: 103.5 kB / 438.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.2894, allocations: 16 kB / 438.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.3007, allocations: 6.755 MB / 445.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.71e-05/0.3008, allocations: 43.88 kB / 445.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.3009, allocations: 111.5 kB / 445.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006453/0.3074, allocations: 3.891 MB / 449.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3074, allocations: 0 / 449.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3074, allocations: 0 / 449.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3074, allocations: 8 kB / 449.6 MB, free: 9.223 MB / 366.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.002151/0.3096, allocations: 0.9907 MB / 450.6 MB, free: 8.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.3096, allocations: 11.89 kB / 450.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.3111, allocations: 176.6 kB / 450.7 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.3114, allocations: 263.9 kB / 451 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.3114, allocations: 16.81 kB / 451 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.866e-05/0.3115, allocations: 28.12 kB / 451.1 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003309/0.3148, allocations: 0.909 MB / 452 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3148, allocations: 0 / 452 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.3149, allocations: 8 kB / 452 MB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3149, allocations: 11.94 kB / 452 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003479/0.3184, allocations: 0.9657 MB / 452.9 MB, free: 5.742 MB / 366.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.001585/0.32, allocations: 1.343 MB / 454.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.3228, allocations: 0.7247 MB / 455 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.3231, allocations: 164.8 kB / 455.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07826/0.4013, allocations: 37.54 MB / 492.7 MB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.4014, allocations: 38.56 kB / 492.8 MB, free: 9.328 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.364e-06/0.4014, allocations: 0 / 492.8 MB, free: 9.328 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005816/0.4072, allocations: 1.361 MB / 494.1 MB, free: 7.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.4073, allocations: 51.41 kB / 494.2 MB, free: 7.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.4074, allocations: 121.8 kB / 494.3 MB, free: 7.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/0.4075, allocations: 29.7 kB / 494.3 MB, free: 7.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.4076, allocations: 120.7 kB / 494.4 MB, free: 7.613 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.4078, allocations: 114.3 kB / 494.5 MB, free: 7.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.4081, allocations: 173.2 kB / 494.7 MB, free: 7.324 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4082, allocations: 322.8 kB / 495 MB, free: 7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/0.4088, allocations: 339.8 kB / 495.4 MB, free: 6.668 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007439/0.4096, allocations: 411.7 kB / 495.8 MB, free: 6.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.411, allocations: 0.7114 MB / 496.5 MB, free: 5.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.411, allocations: 0 / 496.5 MB, free: 5.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001906/0.4129, allocations: 0.8719 MB / 497.3 MB, free: 4.621 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.4129, allocations: 7.938 kB / 497.4 MB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4129, allocations: 7.938 kB / 497.4 MB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.413, allocations: 7.984 kB / 497.4 MB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.4137, allocations: 171.8 kB / 497.5 MB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.4137, allocations: 4.25 kB / 497.5 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.4141, allocations: 39.67 kB / 497.6 MB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4142, allocations: 59.94 kB / 497.6 MB, free: 4.328 MB / 414.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.0002289/0.4144, allocations: 141.7 kB / 497.8 MB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.4146, allocations: 15.81 kB / 497.8 MB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007363/0.422, allocations: 7.974 MB / 0.4939 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.422, allocations: 23.95 kB / 0.4939 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.422, allocations: 0 / 0.4939 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.422, allocations: 3.984 kB / 0.4939 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.425, allocations: 3.604 MB / 0.4975 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.425, allocations: 0 / 0.4975 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006663/0.4257, allocations: 111.8 kB / 0.4976 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.4257, allocations: 4 kB / 0.4976 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-05/0.4257, allocations: 19.86 kB / 0.4976 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.4257, allocations: 4 kB / 0.4976 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4257, allocations: 0 / 0.4976 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.4281, allocations: 1.838 MB / 0.4994 GB, free: 6.285 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.643e-05/0.4282, allocations: 144.1 kB / 0.4995 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.4283, allocations: 11.92 kB / 0.4995 GB, free: 6.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.4286, allocations: 20.06 kB / 0.4996 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4287, allocations: 31.95 kB / 0.4996 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.4287, allocations: 11.98 kB / 0.4996 GB, free: 6.051 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.457e-05/0.4288, allocations: 91.22 kB / 0.4997 GB, free: 5.961 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4288, allocations: 0 / 0.4997 GB, free: 5.961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002433/0.4312, allocations: 0.9799 MB / 0.5006 GB, free: 4.98 MB / 430.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.003635/0.4349, allocations: 1.14 MB / 0.5018 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.4365, allocations: 0.899 MB / 0.5026 GB, free: 2.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4365, allocations: 4 kB / 0.5026 GB, free: 2.926 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007461/0.4372, allocations: 0.5876 MB / 0.5032 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.4379, allocations: 80.62 kB / 0.5033 GB, free: 2.262 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.4397, allocations: 1.314 MB / 0.5046 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.44, allocations: 0.8652 MB / 0.5054 GB, free: 28 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001807/0.4419, allocations: 1.78 MB / 0.5072 GB, free: 14.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003472/0.4422, allocations: 87.36 kB / 0.5072 GB, free: 14.16 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.4422, allocations: 0 / 0.5072 GB, free: 14.16 MB / 446.1 MB Notification: Performance of Templates: time 0.2212/0.6634, allocations: 40.89 MB / 0.5472 GB, free: 136.8 MB / 462.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches