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.0008091/0.0008091, allocations: 94.77 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 205.8 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 247.5 MB, free: 9.691 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.0002561, allocations: 4 kB / 308.4 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 51.53 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2166/0.3199, allocations: 13.77 MB / 373.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01945/0.3394, allocations: 16.32 MB / 390 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.3397, allocations: 0 / 390 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004284/0.3402, allocations: 79.5 kB / 390.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005714/0.3408, allocations: 103.7 kB / 390.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01943/0.3602, allocations: 4.729 MB / 394.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006039/0.3608, allocations: 367.7 kB / 395.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.117e-05/0.3609, allocations: 15.98 kB / 395.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005754/0.3615, allocations: 212.5 kB / 395.5 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.3617, allocations: 101.4 kB / 395.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.3618, allocations: 7.719 kB / 395.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01498/0.3768, allocations: 6.697 MB / 402.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3769, allocations: 37.61 kB / 402.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.3771, allocations: 131.4 kB / 402.5 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00562/0.3828, allocations: 2.634 MB / 405.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3828, allocations: 0 / 405.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3828, allocations: 0 / 405.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.3828, allocations: 0 / 405.1 MB, free: 13.07 MB / 318.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.003361/0.3862, allocations: 0.9554 MB / 406 MB, free: 12.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3863, allocations: 9.5 kB / 406.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.3878, allocations: 183.8 kB / 406.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.3881, allocations: 254.7 kB / 406.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.3882, allocations: 19.22 kB / 406.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.3883, allocations: 23.66 kB / 406.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003121/0.3914, allocations: 0.9169 MB / 407.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3914, allocations: 1.438 kB / 407.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.3915, allocations: 5.469 kB / 407.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3915, allocations: 5.875 kB / 407.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003178/0.3947, allocations: 0.994 MB / 408.4 MB, free: 10.56 MB / 318.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.001694/0.3964, allocations: 1.343 MB / 409.8 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00253/0.3989, allocations: 0.7322 MB / 410.5 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.3993, allocations: 162.1 kB / 410.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08105/0.4803, allocations: 42.38 MB / 453.1 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.4804, allocations: 46.48 kB / 453.1 MB, free: 8.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.276e-06/0.4804, allocations: 0 / 453.1 MB, free: 8.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005215/0.4856, allocations: 1.372 MB / 454.5 MB, free: 6.996 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.4857, allocations: 59.34 kB / 454.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.4859, allocations: 121.8 kB / 454.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.501e-05/0.4859, allocations: 29.7 kB / 454.7 MB, free: 6.762 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.486, allocations: 112.7 kB / 454.8 MB, free: 6.648 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.4862, allocations: 110.4 kB / 454.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.4863, allocations: 29.7 kB / 454.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4864, allocations: 334.8 kB / 455.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006487/0.4871, allocations: 339.8 kB / 455.6 MB, free: 5.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006597/0.4877, allocations: 411.5 kB / 456 MB, free: 5.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.489, allocations: 0.7192 MB / 456.7 MB, free: 4.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.489, allocations: 0 / 456.7 MB, free: 4.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001731/0.4907, allocations: 0.8836 MB / 457.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.4908, allocations: 4 kB / 457.6 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4908, allocations: 4.875 kB / 457.6 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.4908, allocations: 12.12 kB / 457.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.4915, allocations: 175.8 kB / 457.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.4915, allocations: 4 kB / 457.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004091/0.4919, allocations: 51.61 kB / 457.8 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.492, allocations: 63.92 kB / 457.9 MB, free: 3.461 MB / 366.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.0002364/0.4923, allocations: 141.7 kB / 458 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.4924, allocations: 15.81 kB / 458.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007405/0.4998, allocations: 7.986 MB / 466 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.594e-05/0.4999, allocations: 31.89 kB / 466.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.4999, allocations: 3.312 kB / 466.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4999, allocations: 0 / 466.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/0.5029, allocations: 3.604 MB / 469.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.503, allocations: 0 / 469.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006239/0.5036, allocations: 111.8 kB / 469.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/0.5036, allocations: 3.984 kB / 469.8 MB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.5037, allocations: 8 kB / 469.8 MB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.5037, allocations: 7.938 kB / 469.8 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5037, allocations: 4 kB / 469.8 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.5062, allocations: 1.854 MB / 471.7 MB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.5063, allocations: 144.1 kB / 471.8 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.586e-05/0.5064, allocations: 8 kB / 471.8 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.5067, allocations: 27.92 kB / 471.8 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/0.5068, allocations: 23.95 kB / 471.9 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.5069, allocations: 19.98 kB / 471.9 MB, free: 5.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.235e-05/0.5069, allocations: 95.28 kB / 472 MB, free: 5.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5069, allocations: 0 / 472 MB, free: 5.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002977/0.5099, allocations: 0.9955 MB / 473 MB, free: 4.062 MB / 382.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.005275/0.5152, allocations: 1.146 MB / 474.1 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.517, allocations: 0.9033 MB / 475 MB, free: 2.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.517, allocations: 4.125 kB / 475 MB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009987/0.518, allocations: 0.5954 MB / 475.6 MB, free: 1.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007664/0.5188, allocations: 78.5 kB / 475.7 MB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.5211, allocations: 1.676 MB / 477.4 MB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.5217, allocations: 0.8575 MB / 478.2 MB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.5221, allocations: 95.3 kB / 478.3 MB, free: 14.65 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5221, allocations: 0 / 478.3 MB, free: 14.65 MB / 398.1 MB Notification: Performance of Templates: time 0.03898/0.5611, allocations: 24.12 MB / 0.4907 GB, free: 6.461 MB / 414.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