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.001128/0.001128, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001495/0.002623, allocations: 445.8 kB / 10.44 MB, free: 256 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.0006472/0.0006472, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009562/0.001603, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.8131/0.8131, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1431/0.9562, allocations: 52.49 MB / 238.5 MB, free: 7.656 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.142e-06/1.142e-06, allocations: 0 / 239.7 MB, free: 6.414 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.121e-05/1.235e-05, allocations: 5.828 kB / 239.7 MB, free: 6.41 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01018/0.01019, allocations: 12.99 MB / 252.7 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008734/0.01892, allocations: 11.32 MB / 264 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.6e-05/0.019, allocations: 4 kB / 264 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.01921, allocations: 51.66 kB / 264.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.01942, allocations: 95.23 kB / 264.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008713/0.02813, allocations: 4.594 MB / 268.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.02841, allocations: 238.8 kB / 269 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.052e-05/0.02846, allocations: 18.16 kB / 269 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003646/0.02882, allocations: 219.3 kB / 269.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.391e-05/0.02892, allocations: 59.88 kB / 269.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.02894, allocations: 12 kB / 269.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008843/0.03778, allocations: 7.172 MB / 276.5 MB, free: 1.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.03785, allocations: 31.88 kB / 276.5 MB, free: 1.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.108e-05/0.03791, allocations: 43.94 kB / 276.6 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004577/0.04249, allocations: 3.731 MB / 280.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.0425, allocations: 0 / 280.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0425, allocations: 0 / 280.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.04251, allocations: 0 / 280.3 MB, free: 13.75 MB / 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.002393/0.0449, allocations: 1.329 MB / 281.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.04493, allocations: 12.02 kB / 281.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.04522, allocations: 84.58 kB / 281.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.04538, allocations: 145.6 kB / 281.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.0454, allocations: 8.656 kB / 281.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.04544, allocations: 24.31 kB / 281.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/0.04595, allocations: 384.7 kB / 282.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.04596, allocations: 8.172 kB / 282.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.04598, allocations: 7.938 kB / 282.3 MB, free: 11.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.04599, allocations: 8 kB / 282.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003577/0.04635, allocations: 211.7 kB / 282.5 MB, free: 11.43 MB / 282.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.0006372/0.04698, allocations: 0.8982 MB / 283.4 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.04733, allocations: 231.6 kB / 283.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.574e-05/0.04738, allocations: 66.5 kB / 283.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2049/0.2523, allocations: 67.23 MB / 350.9 MB, free: 46.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.2524, allocations: 39.78 kB / 350.9 MB, free: 46.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.625e-06/0.2524, allocations: 0 / 350.9 MB, free: 46.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002721/0.2551, allocations: 1.212 MB / 352.2 MB, free: 45.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.2551, allocations: 106.8 kB / 352.3 MB, free: 44.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.299e-05/0.2552, allocations: 127 kB / 352.4 MB, free: 44.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.2552, allocations: 29.08 kB / 352.4 MB, free: 44.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.156e-05/0.2552, allocations: 110.6 kB / 352.5 MB, free: 44.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.818e-05/0.2553, allocations: 126.8 kB / 352.6 MB, free: 44.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.145e-05/0.2553, allocations: 68.19 kB / 352.7 MB, free: 44.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.585e-05/0.2554, allocations: 326.1 kB / 353 MB, free: 44.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.429e-05/0.2554, allocations: 58.78 kB / 353.1 MB, free: 44.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.643e-05/0.2555, allocations: 126.2 kB / 353.2 MB, free: 44.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.2556, allocations: 217 kB / 353.4 MB, free: 43.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2556, allocations: 7.406 kB / 353.4 MB, free: 43.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002401/0.2559, allocations: 249.9 kB / 353.7 MB, free: 43.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2559, allocations: 4 kB / 353.7 MB, free: 43.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2559, allocations: 4 kB / 353.7 MB, free: 43.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001157/0.256, allocations: 32.86 kB / 353.7 MB, free: 43.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.2562, allocations: 105.2 kB / 353.8 MB, free: 43.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001428/0.2564, allocations: 0.5232 MB / 354.3 MB, free: 42.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.307e-05/0.2565, allocations: 15.75 kB / 354.4 MB, free: 42.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.2565, allocations: 19.08 kB / 354.4 MB, free: 42.94 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 6.755e-05/0.2566, allocations: 126.9 kB / 354.5 MB, free: 42.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.295e-05/0.2566, allocations: 23.8 kB / 354.5 MB, free: 42.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005849/0.2572, allocations: 0.8798 MB / 355.4 MB, free: 41.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.2572, allocations: 22.16 kB / 355.4 MB, free: 41.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.2572, allocations: 3.938 kB / 355.4 MB, free: 41.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2572, allocations: 7.984 kB / 355.4 MB, free: 41.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008413/0.2581, allocations: 1.066 MB / 356.5 MB, free: 41.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.2581, allocations: 4.125 kB / 356.5 MB, free: 41.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.2583, allocations: 90.95 kB / 356.6 MB, free: 40.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.287e-05/0.2583, allocations: 55.45 kB / 356.6 MB, free: 40.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.2584, allocations: 47.58 kB / 356.7 MB, free: 40.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.2585, allocations: 15.48 kB / 356.7 MB, free: 40.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001049/0.2586, allocations: 0.5296 MB / 357.2 MB, free: 40.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2586, allocations: 2.375 kB / 357.2 MB, free: 40.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.2591, allocations: 1.007 MB / 358.2 MB, free: 39.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.2591, allocations: 15.62 kB / 358.3 MB, free: 39.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.2592, allocations: 11.8 kB / 358.3 MB, free: 39.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.2593, allocations: 35.62 kB / 358.3 MB, free: 39.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2593, allocations: 18.67 kB / 358.3 MB, free: 39.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.587e-05/0.2593, allocations: 16.89 kB / 358.3 MB, free: 39.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2593, allocations: 0 / 358.3 MB, free: 39.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00157/0.2609, allocations: 0.9637 MB / 359.3 MB, free: 38.27 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.002295/0.2632, allocations: 1.369 MB / 360.7 MB, free: 37.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.2635, allocations: 329.9 kB / 361 MB, free: 36.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.2636, allocations: 8.188 kB / 361 MB, free: 36.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.2638, allocations: 248.5 kB / 361.2 MB, free: 36.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.2642, allocations: 182.5 kB / 361.4 MB, free: 36.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.2672, allocations: 0.9984 MB / 362.4 MB, free: 35.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.653e-05/0.2673, allocations: 133.7 kB / 362.6 MB, free: 35.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.2675, allocations: 134.4 kB / 362.7 MB, free: 35.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.2676, allocations: 134.4 kB / 362.8 MB, free: 35.02 MB / 314.7 MB Notification: Performance of SimCode: time 9.32e-07/0.2676, allocations: 4 kB / 362.8 MB, free: 35.01 MB / 314.7 MB Notification: Performance of Templates: time 0.02658/0.2942, allocations: 36.24 MB / 399.1 MB, free: 15.06 MB / 330.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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5025153728201985]