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.0008132/0.0008132, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009298/0.0009298, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.9492/0.9492, allocations: 177.1 MB / 205.3 MB, free: 5.102 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 3.366e-06/3.366e-06, allocations: 4 kB / 273.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.509e-05, allocations: 5.969 kB / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01275/0.01278, allocations: 13.04 MB / 286.5 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1237/0.1365, allocations: 11.23 MB / 297.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1366, allocations: 1.062 kB / 297.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.1369, allocations: 63.47 kB / 297.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002805/0.1372, allocations: 96.36 kB / 297.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.1486, allocations: 4.621 MB / 302.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.149, allocations: 236.8 kB / 302.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.985e-05/0.149, allocations: 10.52 kB / 302.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004264/0.1495, allocations: 213.9 kB / 303 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.1496, allocations: 67.86 kB / 303 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1496, allocations: 12.09 kB / 303 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.1608, allocations: 7.17 MB / 310.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.1609, allocations: 28.53 kB / 310.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.161, allocations: 55.95 kB / 310.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007524/0.1685, allocations: 4.96 MB / 315.2 MB, free: 7.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1685, allocations: 0 / 315.2 MB, free: 7.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1685, allocations: 0 / 315.2 MB, free: 7.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1685, allocations: 0 / 315.2 MB, free: 7.305 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.002525/0.1711, allocations: 0.9901 MB / 316.2 MB, free: 6.301 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.1711, allocations: 8.031 kB / 316.2 MB, free: 6.293 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003286/0.1714, allocations: 90.53 kB / 316.3 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.1716, allocations: 145.6 kB / 316.5 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.1716, allocations: 12.66 kB / 316.5 MB, free: 6.027 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.1716, allocations: 20.16 kB / 316.5 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.1722, allocations: 402 kB / 316.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1722, allocations: 384 / 316.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.1722, allocations: 11.94 kB / 316.9 MB, free: 5.566 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.1722, allocations: 4 kB / 316.9 MB, free: 5.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003898/0.1726, allocations: 214.2 kB / 317.1 MB, free: 5.355 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.0005814/0.1732, allocations: 0.8979 MB / 318 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.1735, allocations: 237.3 kB / 318.3 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.009e-05/0.1736, allocations: 58.5 kB / 318.3 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1238/0.2974, allocations: 67.3 MB / 385.6 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.2975, allocations: 42.5 kB / 385.7 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.425e-06/0.2975, allocations: 0 / 385.7 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003496/0.301, allocations: 1.228 MB / 386.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.301, allocations: 106.8 kB / 387 MB, free: 15.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.65e-05/0.3011, allocations: 114.7 kB / 387.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.3011, allocations: 33.77 kB / 387.1 MB, free: 15.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.3012, allocations: 116.5 kB / 387.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.422e-05/0.3012, allocations: 118.9 kB / 387.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.898e-05/0.3013, allocations: 69.66 kB / 387.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.227e-05/0.3014, allocations: 330.8 kB / 387.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.185e-05/0.3015, allocations: 55.97 kB / 387.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.3016, allocations: 127.1 kB / 387.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.3018, allocations: 214.3 kB / 388.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3018, allocations: 0 / 388.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003484/0.3022, allocations: 254.5 kB / 388.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3022, allocations: 8 kB / 388.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3022, allocations: 0 / 388.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.3024, allocations: 32.81 kB / 388.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.3026, allocations: 91.88 kB / 388.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002484/0.3029, allocations: 0.5096 MB / 389 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.303, allocations: 31.27 kB / 389.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.303, allocations: 8 kB / 389.1 MB, free: 13.15 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 0.0001047/0.3031, allocations: 140.5 kB / 389.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-05/0.3032, allocations: 19.98 kB / 389.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.3041, allocations: 0.8838 MB / 390.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.3041, allocations: 15.97 kB / 390.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3041, allocations: 4 kB / 390.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3041, allocations: 3.984 kB / 390.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.3054, allocations: 1.07 MB / 391.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.3054, allocations: 0 / 391.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.3057, allocations: 79.88 kB / 391.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002018/0.3059, allocations: 55.75 kB / 391.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.3059, allocations: 11.98 kB / 391.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000268/0.3062, allocations: 0.5304 MB / 391.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.3062, allocations: 0 / 391.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009142/0.3071, allocations: 1.008 MB / 392.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-05/0.3072, allocations: 51.52 kB / 392.9 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.3072, allocations: 8 kB / 392.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.3074, allocations: 15.98 kB / 393 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.3074, allocations: 31.94 kB / 393 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.3075, allocations: 19.92 kB / 393 MB, free: 9.086 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.748e-05/0.3075, allocations: 16.8 kB / 393 MB, free: 9.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3075, allocations: 0 / 393 MB, free: 9.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00277/0.3103, allocations: 0.9746 MB / 394 MB, free: 8.09 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.002496/0.3128, allocations: 1.366 MB / 395.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005136/0.3133, allocations: 309.6 kB / 395.7 MB, free: 6.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.3133, allocations: 4 kB / 395.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.3135, allocations: 228.3 kB / 395.9 MB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.3139, allocations: 91.97 kB / 396 MB, free: 6.109 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.3153, allocations: 1.034 MB / 397 MB, free: 5.023 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.841e-05/0.3154, allocations: 127.8 kB / 397.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002409/0.3156, allocations: 136.3 kB / 397.3 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.3159, allocations: 123.3 kB / 397.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3159, allocations: 3.938 kB / 397.4 MB, free: 4.621 MB / 346.7 MB Notification: Performance of Templates: time 0.1319/0.4478, allocations: 41.52 MB / 438.9 MB, free: 119.9 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 -s gbode -gbm=radauIIA3 -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.2849319209344685]