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.001031/0.001031, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.001002/0.001002, allocations: 165.6 kB / 24.82 MB, free: 9.324 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.9434/0.9434, allocations: 177 MB / 205.1 MB, free: 5.48 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.543e-06/1.543e-06, allocations: 0 / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.753e-05, allocations: 5.266 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02376/0.02378, allocations: 13.31 MB / 289.5 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1376/0.1614, allocations: 14.95 MB / 304.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1615, allocations: 1.125 kB / 304.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002909/0.1618, allocations: 65.97 kB / 304.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002824/0.1621, allocations: 120.1 kB / 304.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01289/0.1749, allocations: 5.995 MB / 310.7 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.1753, allocations: 357.2 kB / 311 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.563e-05/0.1754, allocations: 8.5 kB / 311 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004015/0.1758, allocations: 258.1 kB / 311.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.1759, allocations: 91.64 kB / 311.4 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.1759, allocations: 15 kB / 311.4 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00835/0.1843, allocations: 6.5 MB / 317.9 MB, free: 4.629 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.955e-05/0.1843, allocations: 43.89 kB / 317.9 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.1844, allocations: 79.83 kB / 318 MB, free: 4.508 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006672/0.1911, allocations: 4.927 MB / 322.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1911, allocations: 3.984 kB / 322.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1911, allocations: 4 kB / 322.9 MB, free: 15.56 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.1911, allocations: 4 kB / 322.9 MB, free: 15.56 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.001775/0.1929, allocations: 1.035 MB / 324 MB, free: 14.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.1929, allocations: 11.98 kB / 324 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008365/0.1938, allocations: 288 kB / 324.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.194, allocations: 200.3 kB / 324.5 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.194, allocations: 16.88 kB / 324.5 MB, free: 13.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.194, allocations: 24.33 kB / 324.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.1955, allocations: 1.041 MB / 325.6 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1955, allocations: 0 / 325.6 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1955, allocations: 11.94 kB / 325.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1955, allocations: 8 kB / 325.6 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.1969, allocations: 0.8583 MB / 326.4 MB, free: 11.98 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.0008459/0.1977, allocations: 1.038 MB / 327.5 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.199, allocations: 0.8092 MB / 328.3 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.842e-05/0.199, allocations: 88.2 kB / 328.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03046/0.2295, allocations: 18.25 MB / 346.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.2295, allocations: 41.39 kB / 346.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.794e-06/0.2295, allocations: 0 / 346.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002583/0.2321, allocations: 1.402 MB / 348.1 MB, free: 6.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.2321, allocations: 55.41 kB / 348.1 MB, free: 6.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.2322, allocations: 185.8 kB / 348.3 MB, free: 6.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.2323, allocations: 33.7 kB / 348.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.2323, allocations: 159.5 kB / 348.5 MB, free: 5.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.706e-05/0.2324, allocations: 122.9 kB / 348.6 MB, free: 5.711 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.2326, allocations: 175.2 kB / 348.8 MB, free: 5.531 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003803/0.233, allocations: 0.5 MB / 349.3 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.2333, allocations: 351.1 kB / 349.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.2336, allocations: 441.7 kB / 350.1 MB, free: 4.211 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.2342, allocations: 0.7505 MB / 350.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2342, allocations: 0 / 350.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009048/0.2351, allocations: 0.9089 MB / 351.7 MB, free: 2.512 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2351, allocations: 4.625 kB / 351.7 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2351, allocations: 4 kB / 351.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.2351, allocations: 7.984 kB / 351.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.2354, allocations: 171.8 kB / 351.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2355, allocations: 4 kB / 351.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.2356, allocations: 28.09 kB / 351.9 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/0.2357, allocations: 67.86 kB / 352 MB, free: 2.23 MB / 298.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.000152/0.2358, allocations: 180.8 kB / 352.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.2359, allocations: 31.84 kB / 352.2 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003172/0.2391, allocations: 4.478 MB / 356.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.2391, allocations: 27.95 kB / 356.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2391, allocations: 0 / 356.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2391, allocations: 0 / 356.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.2403, allocations: 1.895 MB / 358.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2403, allocations: 0 / 358.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002746/0.2405, allocations: 103.8 kB / 358.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2405, allocations: 4 kB / 358.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.2406, allocations: 15.98 kB / 358.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2406, allocations: 3.625 kB / 358.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2406, allocations: 4 kB / 358.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009725/0.2415, allocations: 1.166 MB / 359.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.935e-05/0.2416, allocations: 63.36 kB / 360 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.2416, allocations: 11.98 kB / 360 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.2417, allocations: 8 kB / 360 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.2418, allocations: 31.94 kB / 360 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.2418, allocations: 12 kB / 360 MB, free: 9.918 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.672e-05/0.2419, allocations: 127.2 kB / 360.1 MB, free: 9.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2419, allocations: 0 / 360.1 MB, free: 9.793 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002151/0.244, allocations: 1.006 MB / 361.1 MB, free: 8.785 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.002705/0.2467, allocations: 1.318 MB / 362.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006809/0.2474, allocations: 0.7012 MB / 363.2 MB, free: 6.754 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2474, allocations: 0 / 363.2 MB, free: 6.754 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.2479, allocations: 315.3 kB / 363.5 MB, free: 6.441 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.2483, allocations: 105.4 kB / 363.6 MB, free: 6.344 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.25, allocations: 1.127 MB / 364.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.2501, allocations: 144.6 kB / 364.8 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00165/0.2517, allocations: 1.787 MB / 366.6 MB, free: 3.254 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004941/0.2522, allocations: 214 kB / 366.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2522, allocations: 0 / 366.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of Templates: time 0.06065/0.3129, allocations: 49.59 MB / 416.4 MB, free: 1.391 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.152046710718423]