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.001306/0.001306, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001112/0.001112, allocations: 192.5 kB / 18.67 MB, free: 4.434 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.338/1.338, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001037, allocations: 43.94 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2832, allocations: 49.43 MB / 403.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0155/0.2987, allocations: 13.32 MB / 417 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01706/0.3158, allocations: 15.56 MB / 432.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.3161, allocations: 0 / 432.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.3165, allocations: 87.47 kB / 432.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003456/0.3169, allocations: 115.2 kB / 432.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01671/0.3336, allocations: 5.96 MB / 438.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005884/0.3342, allocations: 338.5 kB / 439.1 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.511e-05/0.3343, allocations: 21.62 kB / 439.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005228/0.3348, allocations: 223 kB / 439.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.335, allocations: 111.6 kB / 439.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.3351, allocations: 12 kB / 439.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0134/0.3485, allocations: 6.755 MB / 446.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.3486, allocations: 43.89 kB / 446.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.3488, allocations: 107.5 kB / 446.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.3594, allocations: 3.895 MB / 450.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3594, allocations: 0 / 450.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3594, allocations: 0 / 450.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3594, allocations: 0 / 450.2 MB, free: 9.262 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.002944/0.3624, allocations: 0.9946 MB / 451.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3625, allocations: 8.031 kB / 451.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001342/0.3638, allocations: 180.5 kB / 451.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.3641, allocations: 263.9 kB / 451.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.3642, allocations: 16.81 kB / 451.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.3642, allocations: 20.12 kB / 451.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002837/0.3671, allocations: 0.909 MB / 452.6 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3671, allocations: 0 / 452.6 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.3671, allocations: 12 kB / 452.6 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.3671, allocations: 4 kB / 452.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00296/0.3701, allocations: 0.985 MB / 453.6 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.001637/0.3718, allocations: 1.339 MB / 455 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.3741, allocations: 0.7286 MB / 455.7 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.3744, allocations: 156.7 kB / 455.8 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0732/0.4476, allocations: 37.55 MB / 493.4 MB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.4477, allocations: 38.56 kB / 493.4 MB, free: 9.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.4477, allocations: 0 / 493.4 MB, free: 9.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004928/0.4526, allocations: 1.357 MB / 494.8 MB, free: 7.996 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.4527, allocations: 63.39 kB / 494.8 MB, free: 7.922 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.4528, allocations: 117.8 kB / 495 MB, free: 7.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.222e-05/0.4529, allocations: 29.7 kB / 495 MB, free: 7.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.972e-05/0.453, allocations: 120.7 kB / 495.1 MB, free: 7.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4531, allocations: 114.3 kB / 495.2 MB, free: 7.527 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003262/0.4535, allocations: 173.2 kB / 495.4 MB, free: 7.352 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4536, allocations: 322.8 kB / 495.7 MB, free: 7.027 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006288/0.4542, allocations: 339.8 kB / 496 MB, free: 6.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.455, allocations: 411.3 kB / 496.4 MB, free: 6.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.4563, allocations: 0.7075 MB / 497.1 MB, free: 5.531 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4563, allocations: 0 / 497.1 MB, free: 5.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001827/0.4581, allocations: 0.8719 MB / 498 MB, free: 4.652 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4581, allocations: 4 kB / 498 MB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.4582, allocations: 7.938 kB / 498 MB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.4582, allocations: 4 kB / 498 MB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006184/0.4588, allocations: 179.8 kB / 498.2 MB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.4588, allocations: 7.938 kB / 498.2 MB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.4591, allocations: 35.94 kB / 498.3 MB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.4593, allocations: 68.3 kB / 498.3 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.0002533/0.4595, allocations: 133.7 kB / 498.5 MB, free: 4.211 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.4597, allocations: 19.81 kB / 498.5 MB, free: 4.191 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007465/0.4671, allocations: 7.966 MB / 0.4946 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-05/0.4672, allocations: 27.95 kB / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4672, allocations: 4 kB / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.4672, allocations: 4 kB / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003144/0.4704, allocations: 3.6 MB / 0.4981 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.4704, allocations: 0 / 0.4981 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000581/0.471, allocations: 103.8 kB / 0.4982 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.471, allocations: 11.92 kB / 0.4982 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.4711, allocations: 15.94 kB / 0.4982 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.4711, allocations: 3.938 kB / 0.4982 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4711, allocations: 4 kB / 0.4983 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.4735, allocations: 1.835 MB / 0.5 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.4736, allocations: 144.1 kB / 0.5002 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.4737, allocations: 15.94 kB / 0.5002 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.474, allocations: 16.05 kB / 0.5002 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4741, allocations: 31.95 kB / 0.5002 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.4741, allocations: 12 kB / 0.5003 GB, free: 6.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.94e-05/0.4742, allocations: 91.27 kB / 0.5003 GB, free: 5.996 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4742, allocations: 4 kB / 0.5003 GB, free: 5.992 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00293/0.4771, allocations: 0.9799 MB / 0.5013 GB, free: 5.012 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.004073/0.4812, allocations: 1.132 MB / 0.5024 GB, free: 3.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.4829, allocations: 0.9071 MB / 0.5033 GB, free: 2.961 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4829, allocations: 0 / 0.5033 GB, free: 2.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.4837, allocations: 0.5879 MB / 0.5039 GB, free: 2.375 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.4843, allocations: 87.91 kB / 0.5039 GB, free: 2.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.4863, allocations: 1.339 MB / 0.5053 GB, free: 0.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.4867, allocations: 0.8574 MB / 0.5061 GB, free: 32 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.4871, allocations: 91.34 kB / 0.5062 GB, free: 15.95 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4871, allocations: 7.938 kB / 0.5062 GB, free: 15.94 MB / 446.1 MB Notification: Performance of Templates: time 0.03593/0.523, allocations: 24.02 MB / 0.5296 GB, free: 7.859 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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