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.001323/0.001323, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.001232/0.001232, allocations: 149.7 kB / 24.81 MB, free: 8.379 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.8784/0.8784, allocations: 173.4 MB / 201.5 MB, free: 8.281 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.783e-06/1.783e-06, allocations: 0 / 271.3 MB, free: 6.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.384e-05, allocations: 2.312 kB / 271.3 MB, free: 6.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01529/0.01532, allocations: 13.2 MB / 284.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.03269, allocations: 14.95 MB / 299.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.03283, allocations: 0 / 299.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002735/0.0331, allocations: 79.45 kB / 299.5 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.03337, allocations: 123.1 kB / 299.6 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01122/0.0446, allocations: 5.976 MB / 305.6 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004294/0.04503, allocations: 358.3 kB / 306 MB, free: 4.086 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.481e-05/0.04507, allocations: 9.812 kB / 306 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004228/0.04549, allocations: 275 kB / 306.2 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.04561, allocations: 83.78 kB / 306.3 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.04564, allocations: 12 kB / 306.3 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008417/0.05406, allocations: 6.484 MB / 312.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.422e-05/0.05413, allocations: 43.83 kB / 312.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.803e-05/0.05423, allocations: 79.88 kB / 312.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007833/0.06206, allocations: 4.903 MB / 317.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.06207, allocations: 3.938 kB / 317.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.06207, allocations: 4 kB / 317.8 MB, free: 8.184 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.06207, allocations: 0 / 317.8 MB, free: 8.184 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.001928/0.064, allocations: 1.043 MB / 318.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.06404, allocations: 12.02 kB / 318.9 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008362/0.06488, allocations: 272.1 kB / 319.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.06509, allocations: 200.3 kB / 319.4 MB, free: 6.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.06511, allocations: 16.88 kB / 319.4 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.06514, allocations: 28.33 kB / 319.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.06671, allocations: 1.037 MB / 320.4 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.06672, allocations: 11.94 kB / 320.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.06674, allocations: 8 kB / 320.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.06675, allocations: 8 kB / 320.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.06838, allocations: 0.8597 MB / 321.3 MB, free: 4.598 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.0008685/0.06924, allocations: 1.034 MB / 322.4 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.0705, allocations: 0.8069 MB / 323.2 MB, free: 2.703 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.879e-05/0.07058, allocations: 83.64 kB / 323.2 MB, free: 2.617 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02993/0.1005, allocations: 17.34 MB / 340.6 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1005, allocations: 45.33 kB / 340.6 MB, free: 1.195 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/0.1005, allocations: 0 / 340.6 MB, free: 1.195 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.111/0.2115, allocations: 1.385 MB / 342 MB, free: 49.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/0.2115, allocations: 57.83 kB / 342.1 MB, free: 49.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.349e-05/0.2116, allocations: 180.7 kB / 342.3 MB, free: 48.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.2117, allocations: 30.69 kB / 342.3 MB, free: 48.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.2117, allocations: 166.6 kB / 342.4 MB, free: 48.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.2119, allocations: 121 kB / 342.6 MB, free: 48.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.2121, allocations: 175.6 kB / 342.7 MB, free: 48.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.2122, allocations: 0.4991 MB / 343.2 MB, free: 48.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004169/0.2126, allocations: 352.1 kB / 343.6 MB, free: 48.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.213, allocations: 446.3 kB / 344 MB, free: 48.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.2139, allocations: 0.7583 MB / 344.8 MB, free: 48.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2139, allocations: 0 / 344.8 MB, free: 48.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001238/0.2151, allocations: 0.9003 MB / 345.7 MB, free: 47.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2151, allocations: 7.438 kB / 345.7 MB, free: 47.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2151, allocations: 2.688 kB / 345.7 MB, free: 47.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.2151, allocations: 4.703 kB / 345.7 MB, free: 47.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004238/0.2156, allocations: 175.4 kB / 345.9 MB, free: 47.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2156, allocations: 7.438 kB / 345.9 MB, free: 47.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.2158, allocations: 33.44 kB / 345.9 MB, free: 47.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.2158, allocations: 61.27 kB / 346 MB, free: 47.98 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.0001434/0.216, allocations: 179.4 kB / 346.1 MB, free: 47.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2161, allocations: 29.44 kB / 346.2 MB, free: 47.81 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.2192, allocations: 4.473 MB / 350.6 MB, free: 47.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.2192, allocations: 26.33 kB / 350.7 MB, free: 47.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2192, allocations: 3.188 kB / 350.7 MB, free: 47.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2193, allocations: 6.406 kB / 350.7 MB, free: 47.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.2203, allocations: 1.887 MB / 352.6 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2203, allocations: 0 / 352.6 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.2206, allocations: 108 kB / 352.7 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2206, allocations: 3.719 kB / 352.7 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.2207, allocations: 11.16 kB / 352.7 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2207, allocations: 0.6875 kB / 352.7 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2207, allocations: 3.438 kB / 352.7 MB, free: 46.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009898/0.2217, allocations: 1.161 MB / 353.8 MB, free: 46.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.2217, allocations: 66.41 kB / 353.9 MB, free: 46.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.2218, allocations: 14.27 kB / 353.9 MB, free: 46.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2219, allocations: 14.8 kB / 353.9 MB, free: 46.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.222, allocations: 32.56 kB / 354 MB, free: 46.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.222, allocations: 16.19 kB / 354 MB, free: 46.28 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.438e-05/0.222, allocations: 128.1 kB / 354.1 MB, free: 46.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.222, allocations: 0 / 354.1 MB, free: 46.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002142/0.2242, allocations: 0.9957 MB / 355.1 MB, free: 46.16 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.002843/0.227, allocations: 1.306 MB / 356.4 MB, free: 46.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007824/0.2278, allocations: 0.7101 MB / 357.1 MB, free: 46.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2278, allocations: 0 / 357.1 MB, free: 46.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002937/0.2281, allocations: 316.4 kB / 357.4 MB, free: 46.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.2286, allocations: 99.89 kB / 357.5 MB, free: 46.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.2301, allocations: 1.122 MB / 358.7 MB, free: 45.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.2302, allocations: 146.6 kB / 358.8 MB, free: 44.99 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001258/0.2315, allocations: 1.778 MB / 360.6 MB, free: 43.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/0.2319, allocations: 220 kB / 360.8 MB, free: 43.81 MB / 314.7 MB Notification: Performance of SimCode: time 6.92e-07/0.2319, allocations: 0 / 360.8 MB, free: 43.81 MB / 314.7 MB Notification: Performance of Templates: time 0.04495/0.2769, allocations: 49.4 MB / 410.2 MB, free: 13.69 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.275015484075993]