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.0009668/0.0009668, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009928/0.0009928, allocations: 169.4 kB / 24.91 MB, free: 8.762 MB / 18.57 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.9414/0.9414, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.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: 3.938 kB / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.418e-05, allocations: 2.312 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01606/0.01608, allocations: 13 MB / 286.4 MB, free: 4.285 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1216/0.1377, allocations: 11.23 MB / 297.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.111e-05/0.1378, allocations: 1.188 kB / 297.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.1381, allocations: 68.88 kB / 297.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.1384, allocations: 95.55 kB / 297.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009134/0.1475, allocations: 5.132 MB / 302.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.1477, allocations: 241.2 kB / 303.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.979e-05/0.1478, allocations: 9.797 kB / 303.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003174/0.1481, allocations: 220.3 kB / 303.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.448e-05/0.1482, allocations: 64.14 kB / 303.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.1482, allocations: 7.875 kB / 303.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006953/0.1552, allocations: 6.689 MB / 310.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.238e-05/0.1552, allocations: 30.91 kB / 310.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.991e-05/0.1553, allocations: 51.2 kB / 310.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003679/0.1589, allocations: 4.96 MB / 315.2 MB, free: 7.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.159, allocations: 0 / 315.2 MB, free: 7.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.159, allocations: 4 kB / 315.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.159, allocations: 0 / 315.2 MB, free: 7.094 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.001723/0.1607, allocations: 0.9848 MB / 316.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.1607, allocations: 15.97 kB / 316.2 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/0.161, allocations: 84.39 kB / 316.3 MB, free: 6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.1611, allocations: 145 kB / 316.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1611, allocations: 12.66 kB / 316.4 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.1612, allocations: 20.33 kB / 316.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004482/0.1616, allocations: 399.5 kB / 316.9 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1616, allocations: 4.375 kB / 316.9 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.1616, allocations: 11.94 kB / 316.9 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.1616, allocations: 4 kB / 316.9 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.162, allocations: 211.1 kB / 317.1 MB, free: 5.152 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.0005023/0.1625, allocations: 0.8981 MB / 318 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.1628, allocations: 237.2 kB / 318.2 MB, free: 3.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.845e-05/0.1628, allocations: 54.56 kB / 318.3 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1184/0.2812, allocations: 67.31 MB / 385.6 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.2813, allocations: 42.5 kB / 385.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.375e-06/0.2813, allocations: 0 / 385.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002701/0.284, allocations: 1.22 MB / 386.8 MB, free: 15.37 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.284, allocations: 110.8 kB / 386.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.446e-05/0.2841, allocations: 116.3 kB / 387 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2841, allocations: 37.64 kB / 387.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.2841, allocations: 103.4 kB / 387.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.2842, allocations: 117.8 kB / 387.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.2843, allocations: 69.66 kB / 387.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.2843, allocations: 330.8 kB / 387.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.29e-05/0.2844, allocations: 60.5 kB / 387.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.65e-05/0.2845, allocations: 125.5 kB / 387.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.2847, allocations: 218 kB / 388.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2847, allocations: 0 / 388.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002673/0.285, allocations: 254.4 kB / 388.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.285, allocations: 4 kB / 388.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.285, allocations: 4 kB / 388.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000119/0.2851, allocations: 32.77 kB / 388.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.2853, allocations: 80.11 kB / 388.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002089/0.2855, allocations: 0.5237 MB / 389 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.159e-05/0.2856, allocations: 12 kB / 389 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.2856, allocations: 15.98 kB / 389 MB, free: 13.09 MB / 346.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.192e-05/0.2857, allocations: 140.4 kB / 389.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.2857, allocations: 19.98 kB / 389.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006936/0.2864, allocations: 0.8853 MB / 390 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.2865, allocations: 24 kB / 390.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-06/0.2865, allocations: 0 / 390.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.2865, allocations: 3.984 kB / 390.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009574/0.2874, allocations: 1.065 MB / 391.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2874, allocations: 4 kB / 391.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.2876, allocations: 76 kB / 391.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/0.2877, allocations: 43.64 kB / 391.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.2877, allocations: 15.98 kB / 391.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002177/0.288, allocations: 0.5421 MB / 391.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.288, allocations: 2.938 kB / 391.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.2886, allocations: 1.002 MB / 392.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.2886, allocations: 55.53 kB / 392.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.2887, allocations: 11.98 kB / 392.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.2888, allocations: 12 kB / 392.9 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.2888, allocations: 31.94 kB / 392.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2889, allocations: 11.98 kB / 392.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.513e-05/0.2889, allocations: 16.84 kB / 393 MB, free: 9.039 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2889, allocations: 4 kB / 393 MB, free: 9.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001923/0.2908, allocations: 0.9785 MB / 393.9 MB, free: 8.055 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.002607/0.2934, allocations: 1.358 MB / 395.3 MB, free: 6.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.2938, allocations: 313.6 kB / 395.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/0.2938, allocations: 4.438 kB / 395.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002063/0.294, allocations: 243.5 kB / 395.8 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.2944, allocations: 76.83 kB / 395.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.2957, allocations: 1.02 MB / 396.9 MB, free: 4.996 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.82e-05/0.2958, allocations: 127.8 kB / 397.1 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.296, allocations: 143.5 kB / 397.2 MB, free: 4.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.2962, allocations: 135.3 kB / 397.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2962, allocations: 0 / 397.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of Templates: time 0.148/0.4442, allocations: 41.52 MB / 438.9 MB, free: 119.6 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.353546085301787]