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.0009868/0.0009868, allocations: 80.34 kB / 22.21 MB, free: 2.281 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.001132/0.001132, allocations: 159.5 kB / 25.61 MB, free: 8.578 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.9229/0.9229, allocations: 177 MB / 205.9 MB, free: 4.453 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.283e-06/1.283e-06, allocations: 0 / 277 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.077e-05, allocations: 6.5 kB / 277 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01142/0.01144, allocations: 13.32 MB / 290.3 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.02308, allocations: 14.95 MB / 305.3 MB, free: 4.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.02321, allocations: 4 kB / 305.3 MB, free: 4.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.0235, allocations: 71.52 kB / 305.4 MB, free: 4.914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.02378, allocations: 119.1 kB / 305.5 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01064/0.03442, allocations: 6.003 MB / 311.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.03479, allocations: 342.4 kB / 311.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.711e-05/0.03483, allocations: 17.73 kB / 311.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.03522, allocations: 263.1 kB / 312.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.03534, allocations: 87.78 kB / 312.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.03536, allocations: 12 kB / 312.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008575/0.04393, allocations: 6.489 MB / 318.7 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.71e-05/0.04402, allocations: 47.81 kB / 318.7 MB, free: 7.516 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.04414, allocations: 75.89 kB / 318.8 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006586/0.05073, allocations: 4.934 MB / 323.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.05073, allocations: 0 / 323.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.05073, allocations: 0 / 323.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.05074, allocations: 4 kB / 323.7 MB, free: 2.492 MB / 298.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.001522/0.05226, allocations: 1.039 MB / 324.8 MB, free: 1.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.05229, allocations: 8.031 kB / 324.8 MB, free: 1.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008008/0.05309, allocations: 280 kB / 325.1 MB, free: 1.133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.0533, allocations: 204.3 kB / 325.3 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.05332, allocations: 20.88 kB / 325.3 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.05335, allocations: 24.38 kB / 325.3 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.05494, allocations: 1.044 MB / 326.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.05495, allocations: 3.938 kB / 326.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.05497, allocations: 12 kB / 326.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.05498, allocations: 7.984 kB / 326.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.05639, allocations: 0.8547 MB / 327.2 MB, free: 14.91 MB / 314.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.001093/0.05748, allocations: 1.042 MB / 328.3 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.05875, allocations: 0.8014 MB / 329.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.053e-05/0.05883, allocations: 91.64 kB / 329.1 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1366/0.1954, allocations: 18.11 MB / 347.3 MB, free: 43.83 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1955, allocations: 37.27 kB / 347.3 MB, free: 43.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.1955, allocations: 4 kB / 347.3 MB, free: 43.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002509/0.198, allocations: 1.401 MB / 348.7 MB, free: 43.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.293e-05/0.198, allocations: 59.61 kB / 348.8 MB, free: 43.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.583e-05/0.1981, allocations: 177.6 kB / 348.9 MB, free: 43.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.1981, allocations: 32.55 kB / 349 MB, free: 43.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.1981, allocations: 164.5 kB / 349.1 MB, free: 43.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.378e-05/0.1982, allocations: 121.9 kB / 349.2 MB, free: 43.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.1984, allocations: 176.9 kB / 349.4 MB, free: 43.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.1984, allocations: 0.5 MB / 349.9 MB, free: 42.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.1987, allocations: 340.4 kB / 350.2 MB, free: 42.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.199, allocations: 451 kB / 350.7 MB, free: 42.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005577/0.1995, allocations: 0.7488 MB / 351.4 MB, free: 42.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1995, allocations: 0 / 351.4 MB, free: 42.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000863/0.2004, allocations: 0.9071 MB / 352.3 MB, free: 42.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.2004, allocations: 5.906 kB / 352.3 MB, free: 42.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2004, allocations: 0 / 352.3 MB, free: 42.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2004, allocations: 10.67 kB / 352.4 MB, free: 42.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.2008, allocations: 173.7 kB / 352.5 MB, free: 42.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.2008, allocations: 4.719 kB / 352.5 MB, free: 42.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.2009, allocations: 31 kB / 352.6 MB, free: 42.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.201, allocations: 68.27 kB / 352.6 MB, free: 42.5 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.dew.phase,medium.bubble.phase,medium.bubble2.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.0001366/0.2011, allocations: 177.4 kB / 352.8 MB, free: 42.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.2012, allocations: 25.45 kB / 352.8 MB, free: 42.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.2036, allocations: 4.476 MB / 357.3 MB, free: 42.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.2037, allocations: 28.33 kB / 357.3 MB, free: 42.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2037, allocations: 0 / 357.3 MB, free: 42.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2037, allocations: 1.781 kB / 357.3 MB, free: 42.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.2045, allocations: 1.89 MB / 359.2 MB, free: 40.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2046, allocations: 0 / 359.2 MB, free: 40.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.2048, allocations: 105.5 kB / 359.3 MB, free: 40.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2048, allocations: 0 / 359.3 MB, free: 40.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.2049, allocations: 16.98 kB / 359.3 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2049, allocations: 0 / 359.3 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2049, allocations: 2.438 kB / 359.3 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008043/0.2057, allocations: 1.172 MB / 360.5 MB, free: 39.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.2057, allocations: 67.06 kB / 360.6 MB, free: 39.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/0.2057, allocations: 7.875 kB / 360.6 MB, free: 39.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.2059, allocations: 11.25 kB / 360.6 MB, free: 39.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.756e-05/0.2059, allocations: 31.27 kB / 360.6 MB, free: 39.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.2059, allocations: 15.88 kB / 360.6 MB, free: 39.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.358e-05/0.206, allocations: 134 kB / 360.8 MB, free: 39.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.206, allocations: 3.094 kB / 360.8 MB, free: 39.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001766/0.2077, allocations: 1.003 MB / 361.8 MB, free: 38.75 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.002655/0.2104, allocations: 1.322 MB / 363.1 MB, free: 37.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006207/0.211, allocations: 0.6973 MB / 363.8 MB, free: 37.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.211, allocations: 0 / 363.8 MB, free: 37.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.2112, allocations: 320.1 kB / 364.1 MB, free: 36.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.2116, allocations: 101 kB / 364.2 MB, free: 36.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.2129, allocations: 1.134 MB / 365.3 MB, free: 35.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.83e-05/0.2129, allocations: 142.2 kB / 365.5 MB, free: 35.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009429/0.2139, allocations: 1.787 MB / 367.3 MB, free: 34.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003799/0.2142, allocations: 213.3 kB / 367.5 MB, free: 34.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2142, allocations: 0 / 367.5 MB, free: 34.57 MB / 314.7 MB Notification: Performance of Templates: time 0.03998/0.2542, allocations: 49.84 MB / 417.3 MB, free: 2.5 MB / 330.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: 5.258323852904141]