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.001412/0.001412, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001667/0.001667, allocations: 191 kB / 17.99 MB, free: 5.109 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 43.92 kB / 353.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2491, allocations: 49.43 MB / 403 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01483/0.2639, allocations: 13.33 MB / 416.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.2797, allocations: 15.56 MB / 431.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2799, allocations: 0 / 431.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.2802, allocations: 83.48 kB / 432 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003191/0.2806, allocations: 115.2 kB / 432.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01493/0.2955, allocations: 5.964 MB / 438.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004449/0.296, allocations: 346.5 kB / 438.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.876e-05/0.2961, allocations: 9.688 kB / 438.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004305/0.2965, allocations: 231 kB / 438.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.2967, allocations: 107.5 kB / 438.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.2967, allocations: 16 kB / 438.8 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.013/0.3097, allocations: 6.755 MB / 445.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.682e-05/0.3098, allocations: 39.89 kB / 445.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.31, allocations: 111.5 kB / 445.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008063/0.3181, allocations: 3.895 MB / 449.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3181, allocations: 0 / 449.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3181, allocations: 0 / 449.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.3182, allocations: 4 kB / 449.6 MB, free: 9.254 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.002547/0.3207, allocations: 0.9907 MB / 450.6 MB, free: 8.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3208, allocations: 12.03 kB / 450.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.3221, allocations: 172.6 kB / 450.7 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.3224, allocations: 263.9 kB / 451 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.3225, allocations: 24.8 kB / 451 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.3225, allocations: 24.12 kB / 451 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.3255, allocations: 0.909 MB / 452 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3255, allocations: 3.938 kB / 452 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.3256, allocations: 8 kB / 452 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.3256, allocations: 8 kB / 452 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003161/0.3288, allocations: 0.9695 MB / 452.9 MB, free: 5.77 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.001522/0.3303, allocations: 1.343 MB / 454.3 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3329, allocations: 0.7247 MB / 455 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.3331, allocations: 160.8 kB / 455.2 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0696/0.4027, allocations: 37.54 MB / 492.7 MB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.4028, allocations: 38.56 kB / 492.8 MB, free: 9.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.214e-06/0.4028, allocations: 0 / 492.8 MB, free: 9.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005237/0.4081, allocations: 1.365 MB / 494.1 MB, free: 7.988 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.4082, allocations: 51.41 kB / 494.2 MB, free: 7.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.4083, allocations: 117.8 kB / 494.3 MB, free: 7.801 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.439e-05/0.4084, allocations: 33.64 kB / 494.3 MB, free: 7.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.4084, allocations: 116.7 kB / 494.4 MB, free: 7.645 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.4086, allocations: 118.7 kB / 494.5 MB, free: 7.527 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.4089, allocations: 173.2 kB / 494.7 MB, free: 7.352 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.409, allocations: 326.8 kB / 495 MB, free: 7.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.4096, allocations: 335.8 kB / 495.4 MB, free: 6.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006924/0.4103, allocations: 415.2 kB / 495.8 MB, free: 6.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.4117, allocations: 0.7114 MB / 496.5 MB, free: 5.523 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4117, allocations: 0 / 496.5 MB, free: 5.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001795/0.4135, allocations: 0.876 MB / 497.4 MB, free: 4.641 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.4135, allocations: 7.984 kB / 497.4 MB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4135, allocations: 7.938 kB / 497.4 MB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.4136, allocations: 4 kB / 497.4 MB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006606/0.4142, allocations: 171.8 kB / 497.5 MB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.4143, allocations: 7.938 kB / 497.5 MB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.4146, allocations: 35.67 kB / 497.6 MB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4147, allocations: 59.94 kB / 497.6 MB, free: 4.352 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.0002178/0.415, allocations: 141.8 kB / 497.8 MB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.4151, allocations: 23.78 kB / 497.8 MB, free: 4.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006991/0.4221, allocations: 7.958 MB / 0.4939 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/0.4222, allocations: 27.95 kB / 0.4939 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4222, allocations: 0 / 0.4939 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4222, allocations: 7.984 kB / 0.4939 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.425, allocations: 3.596 MB / 0.4975 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.425, allocations: 4 kB / 0.4975 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006553/0.4257, allocations: 111.8 kB / 0.4976 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.4257, allocations: 4 kB / 0.4976 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.704e-05/0.4258, allocations: 19.86 kB / 0.4976 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4258, allocations: 0 / 0.4976 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4258, allocations: 0 / 0.4976 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.4281, allocations: 1.842 MB / 0.4994 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.149e-05/0.4282, allocations: 148.1 kB / 0.4995 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.4283, allocations: 7.938 kB / 0.4995 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.4286, allocations: 16 kB / 0.4995 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-05/0.4287, allocations: 31.95 kB / 0.4996 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.4287, allocations: 11.98 kB / 0.4996 GB, free: 6.082 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.756e-05/0.4288, allocations: 99.27 kB / 0.4997 GB, free: 5.984 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4288, allocations: 0 / 0.4997 GB, free: 5.984 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002527/0.4314, allocations: 0.976 MB / 0.5006 GB, free: 5.008 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.004297/0.4357, allocations: 1.136 MB / 0.5017 GB, free: 3.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.4373, allocations: 0.9029 MB / 0.5026 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.4373, allocations: 4.5 kB / 0.5026 GB, free: 2.953 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000722/0.438, allocations: 0.5876 MB / 0.5032 GB, free: 2.367 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.4387, allocations: 84.06 kB / 0.5033 GB, free: 2.285 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.4405, allocations: 1.31 MB / 0.5046 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.4409, allocations: 0.8613 MB / 0.5054 GB, free: 60 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00185/0.4427, allocations: 1.784 MB / 0.5072 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003277/0.4431, allocations: 87.36 kB / 0.5072 GB, free: 14.19 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4431, allocations: 0 / 0.5072 GB, free: 14.19 MB / 446.1 MB Notification: Performance of Templates: time 0.2328/0.6759, allocations: 40.89 MB / 0.5472 GB, free: 136.9 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