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.0008338/0.0008338, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001084/0.001917, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0008821/0.0008821, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009212/0.001803, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9212/0.9212, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09415/1.015, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.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.513e-06/1.513e-06, allocations: 0 / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.432e-05/1.583e-05, allocations: 2.312 kB / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01387/0.01389, allocations: 12.99 MB / 252.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008781/0.02267, allocations: 11.31 MB / 263.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.026e-05/0.02275, allocations: 0 / 263.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.02296, allocations: 63.59 kB / 263.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.02315, allocations: 91.3 kB / 264 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007452/0.0306, allocations: 4.591 MB / 268.6 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000224/0.03082, allocations: 242.8 kB / 268.8 MB, free: 5.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.329e-05/0.03086, allocations: 14.22 kB / 268.8 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.0312, allocations: 227.3 kB / 269 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.273e-05/0.03128, allocations: 63.81 kB / 269.1 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.0313, allocations: 8 kB / 269.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1117/0.143, allocations: 7.161 MB / 276.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.1431, allocations: 21.31 kB / 276.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.709e-05/0.1432, allocations: 45.22 kB / 276.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006568/0.1498, allocations: 3.752 MB / 280.1 MB, free: 6.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.353e-05/0.1498, allocations: 0 / 280.1 MB, free: 6.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1498, allocations: 4.688 kB / 280.1 MB, free: 6.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1498, allocations: 0 / 280.1 MB, free: 6.527 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.003495/0.1533, allocations: 1.333 MB / 281.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1533, allocations: 11.77 kB / 281.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.1536, allocations: 83.3 kB / 281.5 MB, free: 5.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.1538, allocations: 140.2 kB / 281.7 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.1538, allocations: 14.34 kB / 281.7 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.1538, allocations: 14.59 kB / 281.7 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.1543, allocations: 397.5 kB / 282.1 MB, free: 5.625 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1543, allocations: 8.266 kB / 282.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.1544, allocations: 9.75 kB / 282.1 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1544, allocations: 4.156 kB / 282.1 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003871/0.1548, allocations: 211.8 kB / 282.3 MB, free: 5.617 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.0006761/0.1554, allocations: 0.9036 MB / 283.2 MB, free: 20.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.1558, allocations: 228 kB / 283.4 MB, free: 20.8 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.445e-05/0.1558, allocations: 63.66 kB / 283.5 MB, free: 20.78 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1077/0.2636, allocations: 67.23 MB / 350.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.2636, allocations: 40.88 kB / 350.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.556e-06/0.2636, allocations: 2.109 kB / 350.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002741/0.2664, allocations: 1.202 MB / 352 MB, free: 12.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.2664, allocations: 113.9 kB / 352.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.404e-05/0.2665, allocations: 128 kB / 352.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.2665, allocations: 33.08 kB / 352.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.2665, allocations: 106.7 kB / 352.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.83e-05/0.2666, allocations: 118.7 kB / 352.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.066e-05/0.2667, allocations: 68.8 kB / 352.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.2667, allocations: 332.2 kB / 352.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.79e-05/0.2668, allocations: 55.97 kB / 352.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.2669, allocations: 132.9 kB / 353 MB, free: 11.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.2671, allocations: 211.4 kB / 353.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2671, allocations: 0 / 353.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003801/0.2675, allocations: 253.8 kB / 353.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2675, allocations: 8 kB / 353.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2675, allocations: 2.75 kB / 353.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001087/0.2676, allocations: 29.05 kB / 353.5 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.2678, allocations: 101.5 kB / 353.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002111/0.268, allocations: 0.5223 MB / 354.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.2681, allocations: 14.81 kB / 354.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2682, allocations: 14.06 kB / 354.2 MB, free: 10.36 MB / 330.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 9.015e-05/0.2682, allocations: 140.7 kB / 354.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.2683, allocations: 18.8 kB / 354.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000708/0.269, allocations: 0.8884 MB / 355.2 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.269, allocations: 20.45 kB / 355.2 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.269, allocations: 4 kB / 355.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.269, allocations: 0 / 355.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.2701, allocations: 1.059 MB / 356.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.2701, allocations: 128 / 356.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.2703, allocations: 94.2 kB / 356.4 MB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.2703, allocations: 55.5 kB / 356.4 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001406/0.2705, allocations: 55.22 kB / 356.5 MB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.2705, allocations: 11.8 kB / 356.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001771/0.2707, allocations: 0.528 MB / 357 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2707, allocations: 7.062 kB / 357.1 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006405/0.2713, allocations: 1.004 MB / 358.1 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.2714, allocations: 10.75 kB / 358.1 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.2715, allocations: 10.78 kB / 358.1 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.2715, allocations: 31.81 kB / 358.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.2716, allocations: 17.28 kB / 358.1 MB, free: 6.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 1.676e-05/0.2716, allocations: 25.16 kB / 358.1 MB, free: 6.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2716, allocations: 0 / 358.1 MB, free: 6.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003351/0.2749, allocations: 0.9671 MB / 359.1 MB, free: 5.68 MB / 330.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.002982/0.2779, allocations: 1.376 MB / 360.5 MB, free: 4.441 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004836/0.2784, allocations: 318.5 kB / 360.8 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/0.2784, allocations: 8.062 kB / 360.8 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.2787, allocations: 237.4 kB / 361 MB, free: 3.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.2791, allocations: 115.2 kB / 361.2 MB, free: 3.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.2824, allocations: 1.004 MB / 362.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.088e-05/0.2825, allocations: 127.8 kB / 362.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.2827, allocations: 134.6 kB / 362.4 MB, free: 2.613 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.2829, allocations: 126.9 kB / 362.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2829, allocations: 0 / 362.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of Templates: time 0.03926/0.3221, allocations: 41.56 MB / 404.1 MB, free: 9.184 MB / 378.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 -ignoreHideResult -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.018884997814894]