Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009671/0.0009671, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009836/0.0009836, allocations: 147 kB / 25.6 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8342/0.8342, allocations: 173.4 MB / 202.3 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 272.1 MB, free: 6.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.181e-05/1.296e-05, allocations: 2.312 kB / 272.1 MB, free: 6.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009993/0.01001, allocations: 13.2 MB / 285.3 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.02115, allocations: 14.95 MB / 300.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.151e-05/0.02123, allocations: 4 kB / 300.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002641/0.02149, allocations: 79.44 kB / 300.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.02174, allocations: 115.1 kB / 300.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009729/0.03146, allocations: 5.98 MB / 306.4 MB, free: 4.441 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.03177, allocations: 362.3 kB / 306.7 MB, free: 4.086 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.93e-05/0.03181, allocations: 9.812 kB / 306.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.03214, allocations: 259.1 kB / 307 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.03225, allocations: 95.77 kB / 307.1 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.03227, allocations: 15.94 kB / 307.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007038/0.0393, allocations: 6.477 MB / 313.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.03936, allocations: 43.81 kB / 313.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.03943, allocations: 79.83 kB / 313.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004235/0.04366, allocations: 4.907 MB / 318.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.04367, allocations: 0 / 318.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.04367, allocations: 0 / 318.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.04367, allocations: 4 kB / 318.6 MB, free: 8.191 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.001317/0.04499, allocations: 1.043 MB / 319.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.04502, allocations: 11.97 kB / 319.7 MB, free: 7.098 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007646/0.04579, allocations: 276.1 kB / 320 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.04597, allocations: 196.3 kB / 320.1 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.04599, allocations: 20.88 kB / 320.2 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.04602, allocations: 32.31 kB / 320.2 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.04779, allocations: 1.03 MB / 321.2 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.0478, allocations: 3.938 kB / 321.2 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.04782, allocations: 12 kB / 321.2 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.475e-06/0.04783, allocations: 4 kB / 321.2 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.04922, allocations: 0.8636 MB / 322.1 MB, free: 4.609 MB / 298.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.0007993/0.05002, allocations: 1.034 MB / 323.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.05128, allocations: 0.8069 MB / 323.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.544e-05/0.05137, allocations: 91.61 kB / 324 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0299/0.08127, allocations: 17.22 MB / 341.3 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.0813, allocations: 37.39 kB / 341.3 MB, free: 1.332 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.074e-06/0.0813, allocations: 7.875 kB / 341.3 MB, free: 1.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.1058/0.1871, allocations: 1.392 MB / 342.7 MB, free: 49.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.1871, allocations: 55.22 kB / 342.7 MB, free: 49.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.465e-05/0.1872, allocations: 178.8 kB / 342.9 MB, free: 48.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.1873, allocations: 31.64 kB / 343 MB, free: 48.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.1873, allocations: 167.3 kB / 343.1 MB, free: 48.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.841e-05/0.1874, allocations: 121 kB / 343.2 MB, free: 48.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.1876, allocations: 173.9 kB / 343.4 MB, free: 48.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.007e-05/0.1877, allocations: 0.4977 MB / 343.9 MB, free: 48.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/0.1881, allocations: 348.1 kB / 344.2 MB, free: 48.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.1885, allocations: 445.4 kB / 344.7 MB, free: 48.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007357/0.1892, allocations: 0.7605 MB / 345.4 MB, free: 47.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1892, allocations: 1.094 kB / 345.4 MB, free: 47.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001042/0.1903, allocations: 0.8986 MB / 346.3 MB, free: 47.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1903, allocations: 6.812 kB / 346.3 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1903, allocations: 6.531 kB / 346.3 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1903, allocations: 4.25 kB / 346.4 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.1907, allocations: 172.4 kB / 346.5 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1907, allocations: 7.297 kB / 346.5 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.1909, allocations: 33.06 kB / 346.6 MB, free: 47.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-05/0.1909, allocations: 63.16 kB / 346.6 MB, free: 47.91 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.0001336/0.1911, allocations: 176.3 kB / 346.8 MB, free: 47.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.1912, allocations: 29.38 kB / 346.8 MB, free: 47.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002409/0.1936, allocations: 4.475 MB / 351.3 MB, free: 47.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.1936, allocations: 29.91 kB / 351.3 MB, free: 47.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.1936, allocations: 0 / 351.3 MB, free: 47.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1936, allocations: 2.766 kB / 351.3 MB, free: 47.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008251/0.1945, allocations: 1.89 MB / 353.2 MB, free: 46.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1945, allocations: 1.625 kB / 353.2 MB, free: 46.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.1947, allocations: 112.8 kB / 353.3 MB, free: 46.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1947, allocations: 0 / 353.3 MB, free: 46.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.1948, allocations: 16.8 kB / 353.3 MB, free: 46.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1948, allocations: 4.125 kB / 353.4 MB, free: 46.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1948, allocations: 0 / 353.4 MB, free: 46.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.1955, allocations: 1.157 MB / 354.5 MB, free: 46.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.155e-05/0.1955, allocations: 68.61 kB / 354.6 MB, free: 46.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.1956, allocations: 11.44 kB / 354.6 MB, free: 46.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.1957, allocations: 10.34 kB / 354.6 MB, free: 46.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.1958, allocations: 34.81 kB / 354.6 MB, free: 46.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.1958, allocations: 15.11 kB / 354.6 MB, free: 46.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.079e-05/0.1958, allocations: 137.1 kB / 354.8 MB, free: 46.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1958, allocations: 0 / 354.8 MB, free: 46.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001759/0.1976, allocations: 0.9963 MB / 355.8 MB, free: 46.09 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.002274/0.1998, allocations: 1.294 MB / 357.1 MB, free: 46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005923/0.2004, allocations: 0.7145 MB / 357.8 MB, free: 45.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2004, allocations: 0 / 357.8 MB, free: 45.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.2007, allocations: 313.1 kB / 358.1 MB, free: 45.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.201, allocations: 104.4 kB / 358.2 MB, free: 45.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.2022, allocations: 1.135 MB / 359.3 MB, free: 45.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.562e-05/0.2022, allocations: 143.2 kB / 359.5 MB, free: 44.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008832/0.2031, allocations: 1.781 MB / 361.2 MB, free: 43.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.2035, allocations: 219.8 kB / 361.5 MB, free: 43.79 MB / 314.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2035, allocations: 0 / 361.5 MB, free: 43.79 MB / 314.7 MB Notification: Performance of Templates: time 0.03365/0.2371, allocations: 49.65 MB / 411.1 MB, free: 13.5 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.815927209332585]