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.0014/0.0014, allocations: 103 kB / 17.74 MB, free: 5.324 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.001199/0.001199, allocations: 192.3 kB / 18.67 MB, free: 4.395 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.323/1.323, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 43.94 kB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2788, allocations: 49.44 MB / 403.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01633/0.2952, allocations: 13.32 MB / 417 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01892/0.3141, allocations: 15.56 MB / 432.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.3144, allocations: 0 / 432.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004621/0.3149, allocations: 79.44 kB / 432.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004686/0.3154, allocations: 119.2 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01719/0.3326, allocations: 5.952 MB / 438.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005369/0.3332, allocations: 346.5 kB / 439.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.254e-05/0.3333, allocations: 13.69 kB / 439.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005333/0.3338, allocations: 227 kB / 439.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.334, allocations: 107.5 kB / 439.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.3341, allocations: 16 kB / 439.4 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01301/0.3471, allocations: 6.755 MB / 446.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.3472, allocations: 39.89 kB / 446.2 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.3474, allocations: 111.5 kB / 446.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009279/0.3567, allocations: 3.895 MB / 450.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.3568, allocations: 0 / 450.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3568, allocations: 0 / 450.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.3568, allocations: 4 kB / 450.2 MB, free: 9.242 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.002948/0.3597, allocations: 0.9908 MB / 451.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3598, allocations: 8.031 kB / 451.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.3612, allocations: 176.5 kB / 451.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.3616, allocations: 263.9 kB / 451.7 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.3617, allocations: 20.81 kB / 451.7 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.3617, allocations: 28.12 kB / 451.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/0.3648, allocations: 0.905 MB / 452.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3649, allocations: 0 / 452.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.3649, allocations: 4 kB / 452.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3649, allocations: 8 kB / 452.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.3681, allocations: 0.9695 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.001643/0.3697, allocations: 1.354 MB / 455 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.3723, allocations: 0.7247 MB / 455.7 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3725, allocations: 156.8 kB / 455.8 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07594/0.4485, allocations: 37.55 MB / 493.4 MB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/0.4486, allocations: 34.56 kB / 493.4 MB, free: 9.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.4486, allocations: 0 / 493.4 MB, free: 9.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005365/0.454, allocations: 1.361 MB / 494.8 MB, free: 7.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.4541, allocations: 55.41 kB / 494.8 MB, free: 7.914 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.4542, allocations: 125.8 kB / 495 MB, free: 7.781 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.4543, allocations: 33.7 kB / 495 MB, free: 7.742 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.4544, allocations: 112.7 kB / 495.1 MB, free: 7.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.4546, allocations: 118.3 kB / 495.2 MB, free: 7.512 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.4549, allocations: 169.2 kB / 495.4 MB, free: 7.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.455, allocations: 330.8 kB / 495.7 MB, free: 7.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006242/0.4557, allocations: 331.8 kB / 496 MB, free: 6.684 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007051/0.4564, allocations: 411.3 kB / 496.4 MB, free: 6.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.4577, allocations: 0.7114 MB / 497.1 MB, free: 5.516 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.4577, allocations: 0 / 497.1 MB, free: 5.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00185/0.4596, allocations: 0.8719 MB / 498 MB, free: 4.637 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.4596, allocations: 8 kB / 498 MB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.4597, allocations: 3.938 kB / 498 MB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.4597, allocations: 4 kB / 498 MB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006536/0.4603, allocations: 175.8 kB / 498.2 MB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.4604, allocations: 8.188 kB / 498.2 MB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.4607, allocations: 39.67 kB / 498.2 MB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.4609, allocations: 63.94 kB / 498.3 MB, free: 4.34 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.0002808/0.4612, allocations: 141.8 kB / 498.5 MB, free: 4.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.4613, allocations: 15.81 kB / 498.5 MB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007811/0.4691, allocations: 7.966 MB / 0.4946 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.621e-05/0.4692, allocations: 27.95 kB / 0.4946 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.4692, allocations: 0 / 0.4946 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.4692, allocations: 3.984 kB / 0.4946 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.4724, allocations: 3.6 MB / 0.4981 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.4724, allocations: 4 kB / 0.4981 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006332/0.473, allocations: 107.8 kB / 0.4982 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.4731, allocations: 0 / 0.4982 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.454e-05/0.4731, allocations: 23.86 kB / 0.4982 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.4731, allocations: 4 kB / 0.4982 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4731, allocations: 3.938 kB / 0.4982 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.4756, allocations: 1.839 MB / 0.5 GB, free: 6.301 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.4758, allocations: 144.1 kB / 0.5002 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.267e-05/0.4759, allocations: 7.938 kB / 0.5002 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.4762, allocations: 20.05 kB / 0.5002 GB, free: 6.113 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4763, allocations: 31.95 kB / 0.5002 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.4763, allocations: 15.98 kB / 0.5003 GB, free: 6.066 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.087e-05/0.4764, allocations: 91.27 kB / 0.5003 GB, free: 5.977 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4764, allocations: 0 / 0.5003 GB, free: 5.977 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003011/0.4794, allocations: 0.976 MB / 0.5013 GB, free: 5 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.005062/0.4845, allocations: 1.14 MB / 0.5024 GB, free: 3.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.4863, allocations: 0.9068 MB / 0.5033 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4863, allocations: 0 / 0.5033 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008443/0.4872, allocations: 0.5876 MB / 0.5039 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007333/0.4879, allocations: 80.58 kB / 0.5039 GB, free: 2.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.4899, allocations: 1.347 MB / 0.5053 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004318/0.4904, allocations: 0.8574 MB / 0.5061 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003891/0.4908, allocations: 99.42 kB / 0.5062 GB, free: 15.92 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4908, allocations: 0 / 0.5062 GB, free: 15.92 MB / 446.1 MB Notification: Performance of Templates: time 0.03712/0.5279, allocations: 23.96 MB / 0.5296 GB, free: 7.902 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