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.0009696/0.0009696, allocations: 82.28 kB / 22.21 MB, free: 2.301 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.0009527/0.0009527, allocations: 141.8 kB / 25.59 MB, free: 8.621 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.8958/0.8958, allocations: 173.4 MB / 202.3 MB, free: 8.27 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 1.483e-06/1.483e-06, allocations: 0 / 269.2 MB, free: 9.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.609e-05, allocations: 5.266 kB / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01566/0.01567, allocations: 12.79 MB / 282 MB, free: 13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008529/0.0242, allocations: 11.08 MB / 293 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-05/0.02426, allocations: 3.938 kB / 293 MB, free: 1.875 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000234/0.02449, allocations: 63.59 kB / 293.1 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.0247, allocations: 87.31 kB / 293.2 MB, free: 1.727 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007869/0.03257, allocations: 5.091 MB / 298.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.03303, allocations: 238.8 kB / 298.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.03307, allocations: 9.578 kB / 298.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.03336, allocations: 215.3 kB / 298.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.066e-05/0.03344, allocations: 59.81 kB / 298.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.03346, allocations: 8 kB / 298.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007045/0.0405, allocations: 6.695 MB / 305.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.448e-05/0.04056, allocations: 27.91 kB / 305.5 MB, free: 5.355 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.092e-05/0.04061, allocations: 47.92 kB / 305.6 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00475/0.04536, allocations: 4.95 MB / 310.5 MB, free: 356 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.04536, allocations: 0 / 310.5 MB, free: 356 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.04536, allocations: 4 kB / 310.5 MB, free: 352 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.04537, allocations: 4 kB / 310.5 MB, free: 348 kB / 282.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.00197/0.04734, allocations: 1.106 MB / 311.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.04737, allocations: 12.02 kB / 311.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002683/0.04764, allocations: 80.58 kB / 311.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.0478, allocations: 164.4 kB / 311.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.04781, allocations: 16.66 kB / 311.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.04784, allocations: 12.38 kB / 311.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005339/0.04838, allocations: 419.3 kB / 312.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.547e-06/0.04839, allocations: 192 / 312.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.04841, allocations: 11.94 kB / 312.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.04842, allocations: 4 kB / 312.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.04883, allocations: 232.3 kB / 312.6 MB, free: 14.18 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.0009408/0.04977, allocations: 1.332 MB / 313.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.05012, allocations: 265.2 kB / 314.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.968e-05/0.05019, allocations: 71.03 kB / 314.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03847/0.08866, allocations: 21.66 MB / 335.9 MB, free: 6.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.08869, allocations: 45.39 kB / 335.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.0887, allocations: 0 / 335.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002676/0.09137, allocations: 1.156 MB / 337.1 MB, free: 5.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.09142, allocations: 110.8 kB / 337.2 MB, free: 5.348 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.527e-05/0.09151, allocations: 177.8 kB / 337.4 MB, free: 5.156 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.09154, allocations: 37.7 kB / 337.4 MB, free: 5.113 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.0916, allocations: 147.4 kB / 337.5 MB, free: 4.965 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.09167, allocations: 126.9 kB / 337.7 MB, free: 4.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.09176, allocations: 75.28 kB / 337.7 MB, free: 4.758 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.09191, allocations: 0.5078 MB / 338.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.811e-05/0.092, allocations: 68.02 kB / 338.3 MB, free: 4.172 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.09214, allocations: 169 kB / 338.5 MB, free: 3.973 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.09237, allocations: 257.7 kB / 338.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.09237, allocations: 0 / 338.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003832/0.09276, allocations: 313.3 kB / 339 MB, free: 3.371 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.09278, allocations: 11.94 kB / 339 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.09278, allocations: 0 / 339 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001325/0.09292, allocations: 35.88 kB / 339.1 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.09314, allocations: 83.89 kB / 339.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003408/0.09348, allocations: 0.7961 MB / 340 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.09358, allocations: 11.98 kB / 340 MB, free: 2.398 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.0936, allocations: 16 kB / 340 MB, free: 2.383 MB / 314.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,state2.phase,state.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.000117/0.09372, allocations: 184.4 kB / 340.2 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.792e-05/0.0938, allocations: 35.91 kB / 340.2 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.09457, allocations: 0.8566 MB / 341.1 MB, free: 1.289 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/0.09458, allocations: 27.97 kB / 341.1 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.09459, allocations: 3.984 kB / 341.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.09459, allocations: 3.984 kB / 341.1 MB, free: 1.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1003/0.1949, allocations: 1.204 MB / 342.3 MB, free: 57.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.1949, allocations: 1.5 kB / 342.3 MB, free: 57.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.1952, allocations: 72.8 kB / 342.4 MB, free: 57.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.1954, allocations: 55.09 kB / 342.4 MB, free: 57.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.1954, allocations: 15.31 kB / 342.4 MB, free: 57.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001618/0.1956, allocations: 0.801 MB / 343.2 MB, free: 57.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1956, allocations: 5.594 kB / 343.2 MB, free: 57.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008729/0.1965, allocations: 1.143 MB / 344.4 MB, free: 56.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.1965, allocations: 51.36 kB / 344.4 MB, free: 56.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.1965, allocations: 7.344 kB / 344.4 MB, free: 56.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.1967, allocations: 16.78 kB / 344.5 MB, free: 56.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.396e-05/0.1967, allocations: 34.41 kB / 344.5 MB, free: 56.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.1968, allocations: 13.67 kB / 344.5 MB, free: 56.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.687e-05/0.1968, allocations: 133.6 kB / 344.6 MB, free: 56.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1968, allocations: 0 / 344.6 MB, free: 56.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001956/0.1988, allocations: 0.9643 MB / 345.6 MB, free: 56.55 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.002525/0.2013, allocations: 1.315 MB / 346.9 MB, free: 56.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004648/0.2017, allocations: 349.8 kB / 347.3 MB, free: 56.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2017, allocations: 0 / 347.3 MB, free: 56.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.202, allocations: 260.2 kB / 347.5 MB, free: 56.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.2024, allocations: 89.75 kB / 347.6 MB, free: 56.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.2037, allocations: 1.063 MB / 348.7 MB, free: 56.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.66e-05/0.2038, allocations: 125.7 kB / 348.8 MB, free: 55.97 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.204, allocations: 137 kB / 348.9 MB, free: 55.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.2042, allocations: 159.4 kB / 349.1 MB, free: 55.89 MB / 314.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2042, allocations: 0 / 349.1 MB, free: 55.89 MB / 314.7 MB Notification: Performance of Templates: time 0.03112/0.2353, allocations: 42.38 MB / 391.5 MB, free: 22.42 MB / 314.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.643249409273267]