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.00091/0.00091, allocations: 99.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009423/0.0009425, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.2 MB / 245.9 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002288/0.0002289, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08718, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01252/0.09975, allocations: 11.51 MB / 369.6 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1817/0.2815, allocations: 13.13 MB / 382.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.2817, allocations: 1.25 kB / 382.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.2821, allocations: 67.73 kB / 382.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.2824, allocations: 102.9 kB / 382.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01571/0.2981, allocations: 4.614 MB / 387.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.2985, allocations: 213 kB / 387.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.501e-05/0.2986, allocations: 16.05 kB / 387.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004912/0.2991, allocations: 237.9 kB / 387.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.2992, allocations: 95.95 kB / 388 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.2993, allocations: 11.12 kB / 388 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01384/0.3131, allocations: 6.669 MB / 394.7 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.13e-05/0.3132, allocations: 32.86 kB / 394.7 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3134, allocations: 66.11 kB / 394.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005858/0.3192, allocations: 2.634 MB / 397.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3193, allocations: 0 / 397.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3193, allocations: 3.938 kB / 397.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.3193, allocations: 3.938 kB / 397.5 MB, free: 2.184 MB / 302.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.002953/0.3223, allocations: 0.9602 MB / 398.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3223, allocations: 7.812 kB / 398.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.3237, allocations: 183.3 kB / 398.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.3239, allocations: 254.2 kB / 398.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.324, allocations: 17.03 kB / 398.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.324, allocations: 24.06 kB / 398.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002735/0.3267, allocations: 0.9102 MB / 399.8 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3268, allocations: 0 / 399.8 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.3268, allocations: 11.53 kB / 399.8 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3268, allocations: 6.188 kB / 399.8 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002829/0.3297, allocations: 0.9875 MB / 400.8 MB, free: 15.96 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.001537/0.3312, allocations: 1.341 MB / 402.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.3336, allocations: 0.7307 MB / 402.9 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08104/0.4147, allocations: 42.38 MB / 445.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.4148, allocations: 38.84 kB / 445.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 4.027e-06/0.4148, allocations: 7.938 kB / 445.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005058/0.4199, allocations: 1.376 MB / 446.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.4199, allocations: 51.41 kB / 446.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.42, allocations: 125.9 kB / 446.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.247e-05/0.4201, allocations: 29.7 kB / 446.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.184e-05/0.4202, allocations: 116.7 kB / 447 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.4203, allocations: 114.3 kB / 447.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.4204, allocations: 4 kB / 447.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4205, allocations: 326.8 kB / 447.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005847/0.4211, allocations: 339.6 kB / 447.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006366/0.4217, allocations: 411.9 kB / 448.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.4224, allocations: 348 kB / 448.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4224, allocations: 0 / 448.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001662/0.424, allocations: 0.8797 MB / 449.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.4241, allocations: 4 kB / 449.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4241, allocations: 4 kB / 449.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.4241, allocations: 4 kB / 449.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/0.4248, allocations: 184 kB / 449.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.4248, allocations: 7.953 kB / 449.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.4252, allocations: 43.67 kB / 449.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.4253, allocations: 63.88 kB / 449.7 MB, free: 10.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.4256, allocations: 138.5 kB / 449.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.151e-05/0.4257, allocations: 15.91 kB / 449.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007391/0.4331, allocations: 7.978 MB / 457.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-05/0.4331, allocations: 31.95 kB / 457.8 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4331, allocations: 0.5 kB / 457.8 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.4331, allocations: 11.88 kB / 457.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003231/0.4364, allocations: 3.588 MB / 461.4 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.4364, allocations: 7.984 kB / 461.4 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006375/0.4371, allocations: 104.3 kB / 461.6 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.4371, allocations: 4 kB / 461.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.4371, allocations: 15.98 kB / 461.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.4371, allocations: 1.438 kB / 461.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4371, allocations: 4 kB / 461.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/0.4395, allocations: 1.85 MB / 463.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.4397, allocations: 156.2 kB / 463.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.4397, allocations: 8 kB / 463.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.44, allocations: 19.98 kB / 463.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/0.4401, allocations: 31.95 kB / 463.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.4402, allocations: 8 kB / 463.6 MB, free: 12.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.4403, allocations: 95.2 kB / 463.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4403, allocations: 4 kB / 463.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003434/0.4437, allocations: 0.9993 MB / 464.7 MB, free: 11.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004957/0.4487, allocations: 1.143 MB / 465.9 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.4503, allocations: 0.9029 MB / 466.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4503, allocations: 0.5 kB / 466.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000758/0.4511, allocations: 0.5993 MB / 467.4 MB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/0.4517, allocations: 79.84 kB / 467.5 MB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.4536, allocations: 1.614 MB / 469.1 MB, free: 6.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.454, allocations: 0.8653 MB / 469.9 MB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001975/0.4559, allocations: 1.787 MB / 471.7 MB, free: 4.152 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.4563, allocations: 87.36 kB / 471.8 MB, free: 4.066 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4563, allocations: 0 / 471.8 MB, free: 4.066 MB / 382.1 MB Notification: Performance of Templates: time 0.0516/0.5079, allocations: 40.91 MB / 0.5007 GB, free: 11.11 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches