Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001168, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.89 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2745, allocations: 50.54 MB / 412.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01539/0.29, allocations: 13.44 MB / 425.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01745/0.3075, allocations: 15.56 MB / 441.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002533/0.3078, allocations: 4 kB / 441.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004633/0.3083, allocations: 83.53 kB / 441.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004451/0.3087, allocations: 107.2 kB / 441.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01797/0.3267, allocations: 5.967 MB / 447.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000509/0.3273, allocations: 346.5 kB / 447.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.622e-05/0.3273, allocations: 17.67 kB / 447.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005114/0.3278, allocations: 239 kB / 448 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.328, allocations: 103.6 kB / 448.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.3281, allocations: 12 kB / 448.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01239/0.3405, allocations: 6.762 MB / 454.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3406, allocations: 47.77 kB / 454.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.3408, allocations: 111.6 kB / 455 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009514/0.3503, allocations: 3.911 MB / 458.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3503, allocations: 4 kB / 459 MB, free: 1.824 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3503, allocations: 0 / 459 MB, free: 1.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.3504, allocations: 0 / 459 MB, free: 1.824 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.002766/0.3531, allocations: 0.9986 MB / 459.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3532, allocations: 12.03 kB / 460 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.3546, allocations: 172.6 kB / 460.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.355, allocations: 256 kB / 460.4 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.355, allocations: 20.81 kB / 460.4 MB, free: 296 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.3551, allocations: 24.12 kB / 460.4 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003148/0.3582, allocations: 0.9128 MB / 461.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3582, allocations: 0 / 461.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3583, allocations: 4 kB / 461.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.3583, allocations: 8 kB / 461.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.3615, allocations: 0.9656 MB / 462.3 MB, free: 14.36 MB / 382.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.001639/0.3631, allocations: 1.347 MB / 463.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.3657, allocations: 0.7325 MB / 464.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.366, allocations: 160.8 kB / 464.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08122/0.4472, allocations: 42.18 MB / 0.4948 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.4473, allocations: 34.56 kB / 0.4949 GB, free: 12.38 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.4473, allocations: 0 / 0.4949 GB, free: 12.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005251/0.4526, allocations: 1.366 MB / 0.4962 GB, free: 11.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.4527, allocations: 51.41 kB / 0.4963 GB, free: 10.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.4528, allocations: 126.1 kB / 0.4964 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.4529, allocations: 29.7 kB / 0.4964 GB, free: 10.78 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.453, allocations: 116.7 kB / 0.4965 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.4532, allocations: 110.4 kB / 0.4966 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.4534, allocations: 169.5 kB / 0.4968 GB, free: 10.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4536, allocations: 326.8 kB / 0.4971 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006144/0.4542, allocations: 335.6 kB / 0.4974 GB, free: 9.727 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007103/0.4549, allocations: 411.5 kB / 0.4978 GB, free: 9.297 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.4562, allocations: 0.7025 MB / 0.4985 GB, free: 8.566 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4562, allocations: 0 / 0.4985 GB, free: 8.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001796/0.458, allocations: 0.8799 MB / 0.4994 GB, free: 7.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4581, allocations: 4 kB / 0.4994 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4581, allocations: 11.92 kB / 0.4994 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4581, allocations: 4 kB / 0.4994 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006356/0.4588, allocations: 179.9 kB / 0.4996 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.4588, allocations: 11.98 kB / 0.4996 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4591, allocations: 23.78 kB / 0.4996 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.4592, allocations: 67.92 kB / 0.4997 GB, free: 7.383 MB / 430.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.0002422/0.4595, allocations: 141.7 kB / 0.4998 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.4596, allocations: 15.81 kB / 0.4998 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007158/0.4668, allocations: 7.974 MB / 0.5076 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.78e-05/0.4669, allocations: 27.95 kB / 0.5076 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4669, allocations: 0 / 0.5076 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4669, allocations: 0 / 0.5076 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.4698, allocations: 3.596 MB / 0.5111 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.4699, allocations: 4 kB / 0.5111 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006329/0.4705, allocations: 115.8 kB / 0.5112 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.4705, allocations: 4 kB / 0.5112 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.025e-05/0.4706, allocations: 15.94 kB / 0.5113 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.4706, allocations: 0 / 0.5113 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4706, allocations: 0 / 0.5113 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.473, allocations: 1.838 MB / 0.5131 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.744e-05/0.4731, allocations: 140.2 kB / 0.5132 GB, free: 9.188 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.86e-05/0.4732, allocations: 12 kB / 0.5132 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.4735, allocations: 19.92 kB / 0.5132 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.129e-05/0.4736, allocations: 31.95 kB / 0.5133 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.4737, allocations: 12 kB / 0.5133 GB, free: 9.113 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.952e-05/0.4737, allocations: 91.27 kB / 0.5133 GB, free: 9.023 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.263e-06/0.4737, allocations: 3.938 kB / 0.5134 GB, free: 9.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002483/0.4762, allocations: 0.9955 MB / 0.5143 GB, free: 8.023 MB / 446.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.00469/0.4809, allocations: 1.143 MB / 0.5154 GB, free: 6.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4825, allocations: 0.9029 MB / 0.5163 GB, free: 5.969 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4825, allocations: 0 / 0.5163 GB, free: 5.969 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007747/0.4833, allocations: 0.5876 MB / 0.5169 GB, free: 5.383 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006564/0.484, allocations: 88.58 kB / 0.517 GB, free: 5.297 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.4859, allocations: 1.339 MB / 0.5183 GB, free: 3.918 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.4863, allocations: 0.8575 MB / 0.5191 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.4867, allocations: 91.36 kB / 0.5192 GB, free: 2.945 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4867, allocations: 0 / 0.5192 GB, free: 2.945 MB / 446.1 MB Notification: Performance of Templates: time 0.2428/0.7295, allocations: 24.12 MB / 0.5428 GB, free: 122.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches