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.0007041/0.0007041, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009511/0.001655, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006625/0.0006625, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008999/0.001562, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9089/0.9089, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07255/0.9815, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.503e-06/1.503e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.135e-05/1.285e-05, allocations: 5.547 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009627/0.00964, allocations: 13.1 MB / 257.8 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008573/0.01821, allocations: 11.32 MB / 269.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.968e-05/0.01826, allocations: 4 kB / 269.1 MB, free: 5.719 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.01845, allocations: 63.53 kB / 269.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.01863, allocations: 83.36 kB / 269.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007751/0.02638, allocations: 4.61 MB / 273.9 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002356/0.02662, allocations: 246.8 kB / 274.1 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.853e-05/0.02666, allocations: 6.297 kB / 274.1 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003325/0.02699, allocations: 227.3 kB / 274.3 MB, free: 480 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.277e-05/0.02707, allocations: 59.81 kB / 274.4 MB, free: 420 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.02709, allocations: 8 kB / 274.4 MB, free: 412 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1131/0.1402, allocations: 7.175 MB / 281.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.1403, allocations: 21.86 kB / 281.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.586e-05/0.1404, allocations: 45.2 kB / 281.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006967/0.1474, allocations: 3.743 MB / 285.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-05/0.1474, allocations: 0 / 285.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1474, allocations: 0 / 285.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1474, allocations: 0.875 kB / 285.4 MB, free: 4.004 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.003823/0.1512, allocations: 1.335 MB / 286.7 MB, free: 19.42 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1512, allocations: 9.875 kB / 286.7 MB, free: 19.42 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004436/0.1517, allocations: 85.03 kB / 286.8 MB, free: 19.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.1519, allocations: 147.8 kB / 287 MB, free: 19.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.1519, allocations: 10.78 kB / 287 MB, free: 19.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.254e-05/0.152, allocations: 20.86 kB / 287 MB, free: 19.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006934/0.1527, allocations: 402.7 kB / 287.4 MB, free: 19.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1527, allocations: 384 / 287.4 MB, free: 19.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.1527, allocations: 14.34 kB / 287.4 MB, free: 19.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1527, allocations: 3.094 kB / 287.4 MB, free: 19.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.1532, allocations: 210.2 kB / 287.6 MB, free: 19.09 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.0007579/0.154, allocations: 0.8981 MB / 288.5 MB, free: 18.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.1544, allocations: 232.5 kB / 288.7 MB, free: 18.28 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.415e-05/0.1545, allocations: 57.06 kB / 288.8 MB, free: 18.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1194/0.2739, allocations: 67.31 MB / 356.1 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.2739, allocations: 41.75 kB / 356.1 MB, free: 5.094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.114e-06/0.2739, allocations: 0.7656 kB / 356.1 MB, free: 5.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002913/0.2768, allocations: 1.216 MB / 357.4 MB, free: 3.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.2769, allocations: 106.8 kB / 357.5 MB, free: 3.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.2769, allocations: 128.4 kB / 357.6 MB, free: 3.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.277, allocations: 32.33 kB / 357.6 MB, free: 3.586 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.277, allocations: 111.2 kB / 357.7 MB, free: 3.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.2771, allocations: 129.2 kB / 357.8 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.2771, allocations: 66.91 kB / 357.9 MB, free: 3.297 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.867e-05/0.2772, allocations: 325.2 kB / 358.2 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.034e-05/0.2773, allocations: 56.81 kB / 358.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.241e-05/0.2774, allocations: 125.6 kB / 358.4 MB, free: 2.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.2775, allocations: 218.3 kB / 358.6 MB, free: 2.555 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2775, allocations: 0 / 358.6 MB, free: 2.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002651/0.2778, allocations: 259.8 kB / 358.9 MB, free: 2.309 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2778, allocations: 8.031 kB / 358.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2778, allocations: 4 kB / 358.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001055/0.2779, allocations: 24.84 kB / 358.9 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.2782, allocations: 102.7 kB / 359 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002037/0.2784, allocations: 0.5143 MB / 359.5 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.731e-05/0.2785, allocations: 17.3 kB / 359.5 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.2785, allocations: 18.36 kB / 359.6 MB, free: 1.605 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 8.505e-05/0.2786, allocations: 139.8 kB / 359.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.2786, allocations: 23.98 kB / 359.7 MB, free: 1.441 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006973/0.2793, allocations: 0.8808 MB / 360.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.2793, allocations: 19.97 kB / 360.6 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.2793, allocations: 0 / 360.6 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2793, allocations: 3.984 kB / 360.6 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009743/0.2803, allocations: 1.08 MB / 361.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.2803, allocations: 4 kB / 361.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.2805, allocations: 87.2 kB / 361.8 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.02e-05/0.2806, allocations: 53.72 kB / 361.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001444/0.2807, allocations: 51.69 kB / 361.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.2807, allocations: 19.67 kB / 361.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001735/0.2809, allocations: 0.5223 MB / 362.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2809, allocations: 0 / 362.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.2815, allocations: 1.014 MB / 363.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.2816, allocations: 12.06 kB / 363.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.2817, allocations: 18.23 kB / 363.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.898e-05/0.2817, allocations: 35.22 kB / 363.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2818, allocations: 12 kB / 363.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.756e-05/0.2818, allocations: 16.84 kB / 363.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2818, allocations: 0.5469 kB / 363.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002444/0.2842, allocations: 0.9746 MB / 364.5 MB, free: 12.62 MB / 346.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.003177/0.2874, allocations: 1.383 MB / 365.9 MB, free: 11.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.2879, allocations: 324.9 kB / 366.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/0.2879, allocations: 7.125 kB / 366.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.2881, allocations: 259.2 kB / 366.5 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.2885, allocations: 162.4 kB / 366.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.2919, allocations: 1.018 MB / 367.7 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.107e-05/0.292, allocations: 135.7 kB / 367.8 MB, free: 9.457 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.2922, allocations: 139 kB / 367.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.2924, allocations: 123.3 kB / 368 MB, free: 9.203 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/0.2924, allocations: 0 / 368 MB, free: 9.203 MB / 346.7 MB Notification: Performance of Templates: time 0.03457/0.327, allocations: 36.34 MB / 404.4 MB, free: 5.02 MB / 378.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.544216187670827]