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.001886/0.001886, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002002/0.002002, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 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 1.595/1.595, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.887 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.355e-05, allocations: 6.312 kB / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01926/0.01928, allocations: 12.96 MB / 285.2 MB, free: 4.867 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.126/0.1453, allocations: 11.25 MB / 296.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.323e-05/0.1454, allocations: 5.344 kB / 296.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.1457, allocations: 64.36 kB / 296.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.146, allocations: 88.06 kB / 296.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01267/0.1587, allocations: 5.1 MB / 301.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000337/0.159, allocations: 238.9 kB / 302 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.159, allocations: 7.656 kB / 302 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004291/0.1595, allocations: 214.9 kB / 302.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1596, allocations: 61.22 kB / 302.3 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.1596, allocations: 8.094 kB / 302.3 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01146/0.1711, allocations: 6.7 MB / 309 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.743e-05/0.1711, allocations: 27.61 kB / 309 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.1713, allocations: 52.92 kB / 309 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009674/0.1809, allocations: 4.988 MB / 314 MB, free: 7.457 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1809, allocations: 0 / 314 MB, free: 7.457 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1809, allocations: 7.938 kB / 314 MB, free: 7.449 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1809, allocations: 0 / 314 MB, free: 7.449 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.003775/0.1847, allocations: 1.106 MB / 315.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1847, allocations: 8.031 kB / 315.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.1852, allocations: 84.5 kB / 315.2 MB, free: 6.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.1855, allocations: 172.4 kB / 315.4 MB, free: 6.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1855, allocations: 9.281 kB / 315.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.1855, allocations: 18.39 kB / 315.4 MB, free: 5.996 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009447/0.1865, allocations: 439.5 kB / 315.9 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1865, allocations: 384 / 315.9 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.1865, allocations: 7.938 kB / 315.9 MB, free: 5.508 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1865, allocations: 4 kB / 315.9 MB, free: 5.504 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000997/0.1875, allocations: 335.6 kB / 316.2 MB, free: 5.176 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.001012/0.1885, allocations: 1.374 MB / 317.6 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.1892, allocations: 284.1 kB / 317.9 MB, free: 3.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.1894, allocations: 107 kB / 318 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09937/0.2887, allocations: 26.13 MB / 344.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/0.2888, allocations: 37.39 kB / 344.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.2888, allocations: 0 / 344.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.006346/0.2951, allocations: 1.398 MB / 345.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.37e-05/0.2952, allocations: 106.8 kB / 345.6 MB, free: 7.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.2954, allocations: 186.4 kB / 345.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.2954, allocations: 29.7 kB / 345.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.2955, allocations: 163.3 kB / 346 MB, free: 7.164 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.2957, allocations: 130 kB / 346.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.2958, allocations: 87.19 kB / 346.2 MB, free: 6.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002949/0.2961, allocations: 0.5001 MB / 346.7 MB, free: 6.434 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.2965, allocations: 123.9 kB / 346.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004472/0.2969, allocations: 221.4 kB / 347.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008033/0.2977, allocations: 361.3 kB / 347.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2977, allocations: 0 / 347.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001076/0.2988, allocations: 428.9 kB / 347.8 MB, free: 5.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.2988, allocations: 15.88 kB / 347.8 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2988, allocations: 0 / 347.8 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.2991, allocations: 39.67 kB / 347.9 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/0.2996, allocations: 87.88 kB / 348 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006471/0.3002, allocations: 0.8079 MB / 348.8 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.3005, allocations: 21.08 kB / 348.8 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.333e-05/0.3005, allocations: 16 kB / 348.8 MB, free: 4.227 MB / 298.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,state.phase,state2.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.0002002/0.3007, allocations: 192.3 kB / 349 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.3009, allocations: 31.89 kB / 349 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.3028, allocations: 0.9946 MB / 350 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.718e-05/0.3028, allocations: 19.97 kB / 350 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3028, allocations: 0 / 350 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3028, allocations: 7.797 kB / 350 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002837/0.3056, allocations: 1.387 MB / 351.4 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3056, allocations: 0 / 351.4 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004218/0.3061, allocations: 71.88 kB / 351.5 MB, free: 1.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.3064, allocations: 63.72 kB / 351.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.3064, allocations: 19.92 kB / 351.6 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006124/0.307, allocations: 0.8156 MB / 352.4 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.307, allocations: 0 / 352.4 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.3091, allocations: 1.346 MB / 353.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.348e-05/0.3092, allocations: 51.52 kB / 353.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.3093, allocations: 12 kB / 353.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.3096, allocations: 15.98 kB / 353.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.3097, allocations: 31.94 kB / 353.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.3097, allocations: 15.98 kB / 353.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.8e-05/0.3098, allocations: 140.2 kB / 354 MB, free: 14.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3098, allocations: 0 / 354 MB, free: 14.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003163/0.313, allocations: 0.9708 MB / 355 MB, free: 13.91 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.004496/0.3175, allocations: 1.294 MB / 356.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.3188, allocations: 472 kB / 356.7 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3188, allocations: 0 / 356.7 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006749/0.3195, allocations: 335 kB / 357.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008176/0.3203, allocations: 92.12 kB / 357.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.3227, allocations: 1.114 MB / 358.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.3229, allocations: 212.3 kB / 358.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006096/0.3235, allocations: 137.8 kB / 358.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.3237, allocations: 36.48 kB / 358.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.3237, allocations: 0 / 358.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of Templates: time 0.06019/0.3839, allocations: 37.37 MB / 396 MB, free: 4.969 MB / 346.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.27886199799832]