Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.0009648/0.0009648, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001053/0.001053, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 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.9255/0.9255, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/1.964e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01123/0.01125, allocations: 13.01 MB / 286 MB, free: 4.809 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1209/0.1322, allocations: 11.26 MB / 297.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1323, allocations: 1.469 kB / 297.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.1326, allocations: 64.81 kB / 297.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002664/0.1329, allocations: 88.55 kB / 297.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01127/0.1441, allocations: 5.093 MB / 302.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003648/0.1445, allocations: 238.9 kB / 302.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.65e-05/0.1445, allocations: 10.69 kB / 302.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.1449, allocations: 208 kB / 303 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.1451, allocations: 65.59 kB / 303.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.1451, allocations: 7.969 kB / 303.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009855/0.1549, allocations: 6.701 MB / 309.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.344e-05/0.155, allocations: 24.5 kB / 309.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.1551, allocations: 52.42 kB / 309.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007528/0.1626, allocations: 4.968 MB / 314.8 MB, free: 7.266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1627, allocations: 0 / 314.8 MB, free: 7.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1627, allocations: 0 / 314.8 MB, free: 7.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1627, allocations: 0 / 314.8 MB, free: 7.266 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.002789/0.1655, allocations: 1.11 MB / 315.9 MB, free: 6.121 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1655, allocations: 8.031 kB / 315.9 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003297/0.1658, allocations: 84.56 kB / 316 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.166, allocations: 166.4 kB / 316.2 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.166, allocations: 8.656 kB / 316.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.166, allocations: 20.36 kB / 316.2 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.1666, allocations: 432.2 kB / 316.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1667, allocations: 4.312 kB / 316.6 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.1667, allocations: 15.25 kB / 316.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.1667, allocations: 4 kB / 316.6 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.1671, allocations: 259.7 kB / 316.9 MB, free: 5.066 MB / 266.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.0006748/0.1678, allocations: 1.351 MB / 318.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004104/0.1682, allocations: 276 kB / 318.5 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.093e-05/0.1683, allocations: 82.97 kB / 318.6 MB, free: 3.258 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04756/0.2159, allocations: 26.12 MB / 344.7 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.2159, allocations: 45.33 kB / 344.8 MB, free: 9.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.515e-06/0.2159, allocations: 0 / 344.8 MB, free: 9.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.003744/0.2197, allocations: 1.243 MB / 346 MB, free: 7.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.2197, allocations: 118.8 kB / 346.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2198, allocations: 181.8 kB / 346.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.2199, allocations: 29.7 kB / 346.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.2199, allocations: 155.4 kB / 346.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.758e-05/0.22, allocations: 124.4 kB / 346.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.2201, allocations: 83.11 kB / 346.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.2202, allocations: 0.4962 MB / 347.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.2204, allocations: 87.94 kB / 347.3 MB, free: 6.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.2206, allocations: 178.5 kB / 347.4 MB, free: 6.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.221, allocations: 281.2 kB / 347.7 MB, free: 5.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.221, allocations: 4 kB / 347.7 MB, free: 5.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005818/0.2216, allocations: 353 kB / 348.1 MB, free: 5.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2216, allocations: 7.938 kB / 348.1 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2216, allocations: 4 kB / 348.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.2218, allocations: 31.66 kB / 348.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.2221, allocations: 87.83 kB / 348.2 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003583/0.2224, allocations: 0.8029 MB / 349 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.2226, allocations: 12.88 kB / 349 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.2226, allocations: 24.06 kB / 349 MB, free: 4.582 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.2227, allocations: 184.4 kB / 349.2 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2228, allocations: 31.84 kB / 349.2 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.224, allocations: 0.9528 MB / 350.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.224, allocations: 15.97 kB / 350.2 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.224, allocations: 7.938 kB / 350.2 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.2241, allocations: 6.922 kB / 350.2 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.2259, allocations: 1.32 MB / 351.5 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.2259, allocations: 0 / 351.5 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.2262, allocations: 71.88 kB / 351.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.2264, allocations: 55.72 kB / 351.7 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.2264, allocations: 23.92 kB / 351.7 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002874/0.2267, allocations: 0.7961 MB / 352.5 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2267, allocations: 0 / 352.5 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.2279, allocations: 1.25 MB / 353.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.2279, allocations: 55.5 kB / 353.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.228, allocations: 12.06 kB / 353.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.2282, allocations: 12 kB / 353.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2283, allocations: 31.94 kB / 353.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.2283, allocations: 19.98 kB / 353.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.238e-05/0.2283, allocations: 143 kB / 354 MB, free: 15.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2283, allocations: 0 / 354 MB, free: 15.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002532/0.2309, allocations: 0.967 MB / 355 MB, free: 14.49 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003217/0.2341, allocations: 1.29 MB / 356.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007115/0.2348, allocations: 412 kB / 356.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2348, allocations: 0 / 356.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003957/0.2352, allocations: 306.2 kB / 357 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006437/0.2358, allocations: 85.95 kB / 357 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.238, allocations: 1.09 MB / 358.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.2381, allocations: 127.8 kB / 358.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000261/0.2384, allocations: 134 kB / 358.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.2385, allocations: 40.47 kB / 358.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2385, allocations: 0 / 358.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of Templates: time 0.04216/0.2807, allocations: 37.39 MB / 395.8 MB, free: 5.746 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.1.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.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.168766428017989]