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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9011/0.9011, allocations: 177 MB / 205.2 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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=2200,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=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.203e-05, allocations: 2.312 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02824/0.02826, allocations: 13.44 MB / 289.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1094/0.1376, allocations: 15.19 MB / 304.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.1378, allocations: 0 / 304.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.138, allocations: 68.44 kB / 304.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.1383, allocations: 119.2 kB / 304.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009529/0.1478, allocations: 5.988 MB / 310.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.1481, allocations: 356.7 kB / 311.1 MB, free: 7.848 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.1481, allocations: 8.938 kB / 311.1 MB, free: 7.848 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003103/0.1485, allocations: 265.8 kB / 311.3 MB, free: 7.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.1486, allocations: 90.98 kB / 311.4 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.1486, allocations: 13.16 kB / 311.4 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006249/0.1548, allocations: 6.496 MB / 317.9 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.418e-05/0.1549, allocations: 43.81 kB / 318 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.102e-05/0.1549, allocations: 75.91 kB / 318 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00379/0.1587, allocations: 4.926 MB / 323 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1587, allocations: 4 kB / 323 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1587, allocations: 0 / 323 MB, free: 15.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1587, allocations: 0 / 323 MB, free: 15.54 MB / 282.7 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.001343/0.1601, allocations: 1.035 MB / 324 MB, free: 14.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.1601, allocations: 11.98 kB / 324 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009268/0.161, allocations: 299.9 kB / 324.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1612, allocations: 196.3 kB / 324.5 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.87e-05/0.1613, allocations: 20.88 kB / 324.5 MB, free: 13.92 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.1613, allocations: 20.33 kB / 324.5 MB, free: 13.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/0.1631, allocations: 1.11 MB / 325.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1631, allocations: 4 kB / 325.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.1632, allocations: 7.938 kB / 325.7 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1632, allocations: 8 kB / 325.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.1649, allocations: 0.9604 MB / 326.6 MB, free: 11.77 MB / 282.7 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.0008679/0.1657, allocations: 1.053 MB / 327.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.1672, allocations: 0.8663 MB / 328.6 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1673, allocations: 108.2 kB / 328.7 MB, free: 9.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03473/0.202, allocations: 20.61 MB / 349.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.2021, allocations: 37.39 kB / 349.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.2021, allocations: 0 / 349.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002924/0.205, allocations: 1.531 MB / 350.8 MB, free: 3.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002731/0.2053, allocations: 59.41 kB / 350.9 MB, free: 3.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.2054, allocations: 186.9 kB / 351.1 MB, free: 3.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.2054, allocations: 33.7 kB / 351.1 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.919e-05/0.2055, allocations: 159.6 kB / 351.3 MB, free: 3.012 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.2056, allocations: 123 kB / 351.4 MB, free: 2.891 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.2057, allocations: 167.2 kB / 351.5 MB, free: 2.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2058, allocations: 0.5039 MB / 352.1 MB, free: 2.203 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003956/0.2062, allocations: 400.8 kB / 352.4 MB, free: 1.812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.2067, allocations: 498.7 kB / 352.9 MB, free: 1.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/0.2075, allocations: 0.8488 MB / 353.8 MB, free: 412 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2075, allocations: 4 kB / 353.8 MB, free: 408 kB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001154/0.2086, allocations: 1.012 MB / 354.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2087, allocations: 4 kB / 354.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.423e-06/0.2087, allocations: 4 kB / 354.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.2087, allocations: 4 kB / 354.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.209, allocations: 175.8 kB / 355 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.209, allocations: 11.92 kB / 355 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.2092, allocations: 28.34 kB / 355 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.506e-05/0.2092, allocations: 67.88 kB / 355.1 MB, free: 15.09 MB / 314.7 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.0001402/0.2094, allocations: 184.7 kB / 355.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.2095, allocations: 23.91 kB / 355.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003746/0.2132, allocations: 5.297 MB / 360.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.2132, allocations: 23.97 kB / 360.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2133, allocations: 7.984 kB / 360.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2133, allocations: 1.438 kB / 360.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.2144, allocations: 1.914 MB / 362.5 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2144, allocations: 0 / 362.5 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.2147, allocations: 107.8 kB / 362.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2147, allocations: 0 / 362.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.2147, allocations: 11.98 kB / 362.6 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2147, allocations: 4 kB / 362.7 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2147, allocations: 0 / 362.7 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.2159, allocations: 1.319 MB / 364 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.689e-05/0.2159, allocations: 75.33 kB / 364 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.216, allocations: 8.562 kB / 364.1 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2161, allocations: 8 kB / 364.1 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.2162, allocations: 31.94 kB / 364.1 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.2162, allocations: 19.98 kB / 364.1 MB, free: 5.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.2162, allocations: 127.2 kB / 364.2 MB, free: 5.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2162, allocations: 0 / 364.2 MB, free: 5.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002288/0.2185, allocations: 1.002 MB / 365.2 MB, free: 4.648 MB / 314.7 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.002487/0.221, allocations: 1.296 MB / 366.5 MB, free: 3.355 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008374/0.2218, allocations: 0.8206 MB / 367.4 MB, free: 2.535 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2218, allocations: 0 / 367.4 MB, free: 2.535 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003433/0.2222, allocations: 371.3 kB / 367.7 MB, free: 2.168 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.2226, allocations: 92.16 kB / 367.8 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.2241, allocations: 1.16 MB / 369 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.77e-05/0.2242, allocations: 144.6 kB / 369.1 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001195/0.2253, allocations: 1.78 MB / 370.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.2256, allocations: 96.41 kB / 371 MB, free: 14.89 MB / 330.7 MB Notification: Performance of SimCode: time 4.5e-07/0.2256, allocations: 0 / 371 MB, free: 14.89 MB / 330.7 MB Notification: Performance of Templates: time 0.0353/0.2609, allocations: 42.42 MB / 413.4 MB, free: 4.414 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.287341518094763]