Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.001402/0.001402, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001029/0.001029, allocations: 143.8 kB / 24.97 MB, free: 8.812 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.8922/0.8922, allocations: 173.4 MB / 201.5 MB, free: 9.344 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.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 268 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.836e-05, allocations: 10.19 kB / 268 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01751/0.01754, allocations: 12.91 MB / 281 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1258/0.1434, allocations: 11.24 MB / 292.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1435, allocations: 4.719 kB / 292.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.1438, allocations: 61.31 kB / 292.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.1441, allocations: 91 kB / 292.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009765/0.1538, allocations: 5.078 MB / 297.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.1541, allocations: 241.9 kB / 297.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.718e-05/0.1542, allocations: 14.42 kB / 297.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.1545, allocations: 215 kB / 297.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1546, allocations: 61.27 kB / 298 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.1547, allocations: 8.406 kB / 298 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009166/0.1638, allocations: 6.689 MB / 304.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.212e-05/0.1639, allocations: 27.78 kB / 304.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.164, allocations: 54.94 kB / 304.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005869/0.1699, allocations: 4.948 MB / 309.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1699, allocations: 0 / 309.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1699, allocations: 0 / 309.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1699, allocations: 0 / 309.7 MB, free: 9.633 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.002438/0.1723, allocations: 1.117 MB / 310.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1724, allocations: 9.641 kB / 310.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/0.1727, allocations: 74.47 kB / 310.9 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.1729, allocations: 167.8 kB / 311 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.1729, allocations: 17.33 kB / 311.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.1729, allocations: 12.72 kB / 311.1 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006151/0.1735, allocations: 437.7 kB / 311.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1736, allocations: 6.5 kB / 311.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.1736, allocations: 7.938 kB / 311.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1736, allocations: 6.438 kB / 311.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004913/0.1741, allocations: 262 kB / 311.8 MB, free: 8.164 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.0006843/0.1748, allocations: 1.35 MB / 313.1 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000413/0.1752, allocations: 275.4 kB / 313.4 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.46e-05/0.1753, allocations: 87.66 kB / 313.5 MB, free: 6.613 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04427/0.2195, allocations: 25.18 MB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.2196, allocations: 41.39 kB / 338.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 3.206e-06/0.2196, allocations: 0 / 338.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.00456/0.2241, allocations: 1.243 MB / 339.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.2242, allocations: 106.8 kB / 340 MB, free: 12.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.2243, allocations: 188.5 kB / 340.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.2244, allocations: 29.7 kB / 340.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.489e-05/0.2244, allocations: 155.4 kB / 340.4 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.2245, allocations: 128.2 kB / 340.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.2247, allocations: 79.3 kB / 340.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2248, allocations: 0.4923 MB / 341.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.225, allocations: 91.94 kB / 341.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.2253, allocations: 181 kB / 341.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004564/0.2257, allocations: 288.2 kB / 341.7 MB, free: 11.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2257, allocations: 0 / 341.7 MB, free: 11.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007235/0.2265, allocations: 357.2 kB / 342 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2265, allocations: 7.938 kB / 342 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2265, allocations: 4 kB / 342 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002209/0.2267, allocations: 35.66 kB / 342.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.2271, allocations: 86.14 kB / 342.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004161/0.2275, allocations: 0.7883 MB / 342.9 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.2277, allocations: 24.2 kB / 342.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.2277, allocations: 8 kB / 343 MB, free: 9.914 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.0001505/0.2279, allocations: 187.1 kB / 343.1 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.228, allocations: 27.91 kB / 343.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.2294, allocations: 0.9659 MB / 344.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/0.2294, allocations: 15.97 kB / 344.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2294, allocations: 4 kB / 344.2 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.2294, allocations: 3.984 kB / 344.2 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.2314, allocations: 1.321 MB / 345.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.2314, allocations: 3.984 kB / 345.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.2317, allocations: 74.89 kB / 345.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002682/0.232, allocations: 59.7 kB / 345.6 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.281e-05/0.232, allocations: 19.92 kB / 345.6 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000352/0.2324, allocations: 0.7987 MB / 346.4 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2324, allocations: 0 / 346.4 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.2338, allocations: 1.247 MB / 347.7 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/0.2338, allocations: 51.59 kB / 347.7 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.2339, allocations: 12 kB / 347.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.2341, allocations: 15.98 kB / 347.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.18e-05/0.2342, allocations: 35.03 kB / 347.8 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.2342, allocations: 15.98 kB / 347.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.956e-05/0.2343, allocations: 135.1 kB / 347.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2343, allocations: 0 / 347.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002939/0.2372, allocations: 0.9708 MB / 348.9 MB, free: 3.855 MB / 298.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.004021/0.2413, allocations: 1.283 MB / 350.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008811/0.2421, allocations: 403.7 kB / 350.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.2421, allocations: 4 kB / 350.6 MB, free: 2.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004606/0.2426, allocations: 295 kB / 350.9 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00077/0.2434, allocations: 88.66 kB / 351 MB, free: 1.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.2456, allocations: 1.085 MB / 352 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.2458, allocations: 127.8 kB / 352.2 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003266/0.2461, allocations: 138.5 kB / 352.3 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.2462, allocations: 36.48 kB / 352.3 MB, free: 480 kB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2462, allocations: 0 / 352.3 MB, free: 480 kB / 298.7 MB Notification: Performance of Templates: time 0.03993/0.2861, allocations: 37.31 MB / 389.7 MB, free: 11.28 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.119194864062592]