Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9472/0.9472, allocations: 177.1 MB / 205 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_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.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.715e-05/1.877e-05, allocations: 2.312 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01107/0.01108, allocations: 13.46 MB / 289.4 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1062/0.1173, allocations: 15.21 MB / 304.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.973e-05/0.1174, allocations: 1.094 kB / 304.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.1177, allocations: 75.03 kB / 304.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.118, allocations: 124.3 kB / 304.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009209/0.1272, allocations: 5.989 MB / 310.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.1274, allocations: 348.9 kB / 311.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.402e-05/0.1275, allocations: 7.531 kB / 311.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.1278, allocations: 267.4 kB / 311.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.871e-05/0.1279, allocations: 91.2 kB / 311.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.1279, allocations: 18.44 kB / 311.5 MB, free: 8.738 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006155/0.1341, allocations: 6.49 MB / 318 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.504e-05/0.1341, allocations: 47.83 kB / 318 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.736e-05/0.1342, allocations: 83.81 kB / 318.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004346/0.1385, allocations: 4.93 MB / 323 MB, free: 15.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1385, allocations: 0 / 323 MB, free: 15.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1386, allocations: 0 / 323 MB, free: 15.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1386, allocations: 0 / 323 MB, free: 15.73 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.001944/0.1405, allocations: 1.043 MB / 324.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1405, allocations: 8.031 kB / 324.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008126/0.1414, allocations: 276 kB / 324.3 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.1416, allocations: 208.2 kB / 324.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1416, allocations: 21.69 kB / 324.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.1416, allocations: 28.33 kB / 324.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.1434, allocations: 1.108 MB / 325.7 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1434, allocations: 0 / 325.7 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.1434, allocations: 15.94 kB / 325.7 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.1434, allocations: 4 kB / 325.7 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.145, allocations: 0.9499 MB / 326.7 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.001132/0.1462, allocations: 1.064 MB / 327.7 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.1475, allocations: 0.8663 MB / 328.6 MB, free: 9.988 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1477, allocations: 103.6 kB / 328.7 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03425/0.1819, allocations: 20.61 MB / 349.3 MB, free: 5.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.1819, allocations: 48.64 kB / 349.4 MB, free: 5.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.573e-06/0.182, allocations: 0 / 349.4 MB, free: 5.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002752/0.1847, allocations: 1.519 MB / 350.9 MB, free: 3.684 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.1847, allocations: 59.34 kB / 350.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.529e-05/0.1848, allocations: 179.8 kB / 351.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.1849, allocations: 33.7 kB / 351.1 MB, free: 3.383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.1849, allocations: 171.5 kB / 351.3 MB, free: 3.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.736e-05/0.185, allocations: 115 kB / 351.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.1852, allocations: 175.2 kB / 351.6 MB, free: 2.918 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1853, allocations: 0.4961 MB / 352.1 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.1857, allocations: 401.1 kB / 352.5 MB, free: 2.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000426/0.1861, allocations: 499.9 kB / 353 MB, free: 1.496 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1871, allocations: 0.8563 MB / 353.8 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1871, allocations: 0 / 353.8 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001552/0.1887, allocations: 1.012 MB / 354.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1887, allocations: 10.44 kB / 354.8 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1887, allocations: 7.938 kB / 354.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1887, allocations: 4 kB / 354.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000453/0.1892, allocations: 171.8 kB / 355 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.1892, allocations: 4 kB / 355 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.1894, allocations: 27.84 kB / 355.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-05/0.1895, allocations: 71.86 kB / 355.1 MB, free: 15.3 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.000179/0.1897, allocations: 176.5 kB / 355.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.1898, allocations: 27.91 kB / 355.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004885/0.1947, allocations: 5.304 MB / 360.6 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.321e-05/0.1947, allocations: 27.95 kB / 360.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1947, allocations: 0 / 360.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1947, allocations: 3.984 kB / 360.7 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1962, allocations: 1.914 MB / 362.6 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1962, allocations: 4 kB / 362.6 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/0.1965, allocations: 107.8 kB / 362.7 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1965, allocations: 2.766 kB / 362.7 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.1966, allocations: 12 kB / 362.7 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1966, allocations: 3.984 kB / 362.7 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1966, allocations: 4 kB / 362.7 MB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.1983, allocations: 1.311 MB / 364 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.1983, allocations: 67.3 kB / 364.1 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.557e-05/0.1984, allocations: 12.88 kB / 364.1 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.1985, allocations: 11.98 kB / 364.1 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.1986, allocations: 31.98 kB / 364.1 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.1987, allocations: 15.98 kB / 364.2 MB, free: 5.984 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.546e-05/0.1987, allocations: 139.1 kB / 364.3 MB, free: 5.848 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1987, allocations: 0 / 364.3 MB, free: 5.848 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002006/0.2007, allocations: 1.006 MB / 365.3 MB, free: 4.84 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.003118/0.2038, allocations: 1.278 MB / 366.6 MB, free: 3.555 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.2049, allocations: 0.8257 MB / 367.4 MB, free: 2.727 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2049, allocations: 0 / 367.4 MB, free: 2.727 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004462/0.2054, allocations: 363.9 kB / 367.8 MB, free: 2.371 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.2059, allocations: 107.4 kB / 367.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.2077, allocations: 1.146 MB / 369 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.2078, allocations: 148.6 kB / 369.2 MB, free: 0.918 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001825/0.2097, allocations: 1.785 MB / 370.9 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.21, allocations: 88.42 kB / 371 MB, free: 15.06 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.21, allocations: 0 / 371 MB, free: 15.06 MB / 330.7 MB Notification: Performance of Templates: time 0.05479/0.2648, allocations: 51.33 MB / 422.4 MB, free: 11.72 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.355516671203077]