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.0009051/0.0009051, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0008781/0.0008781, allocations: 165 kB / 24.56 MB, free: 16 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 0.9134/0.9134, allocations: 177.1 MB / 205 MB, free: 5.289 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.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.654e-05, allocations: 5.406 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01253/0.01255, allocations: 13.03 MB / 286 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1066/0.1191, allocations: 11.28 MB / 297.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.749e-05/0.1192, allocations: 1.375 kB / 297.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.1195, allocations: 68.36 kB / 297.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.1198, allocations: 88.78 kB / 297.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008875/0.1287, allocations: 5.104 MB / 302.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.1289, allocations: 239.7 kB / 302.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.129, allocations: 6.453 kB / 302.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003281/0.1293, allocations: 216.6 kB / 303 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.047e-05/0.1294, allocations: 65.3 kB / 303 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.1294, allocations: 8.531 kB / 303 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007155/0.1365, allocations: 6.697 MB / 309.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.104e-05/0.1366, allocations: 29.66 kB / 309.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.52e-05/0.1367, allocations: 50.67 kB / 309.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003969/0.1406, allocations: 4.962 MB / 314.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.1406, allocations: 0 / 314.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1406, allocations: 0 / 314.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1406, allocations: 3.984 kB / 314.8 MB, free: 7.426 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.002085/0.1427, allocations: 1.115 MB / 315.9 MB, free: 6.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.1427, allocations: 8.031 kB / 315.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.143, allocations: 80.52 kB / 316 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.1432, allocations: 162.2 kB / 316.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1432, allocations: 12.59 kB / 316.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.1432, allocations: 20.38 kB / 316.2 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005395/0.1438, allocations: 440.2 kB / 316.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1438, allocations: 384 / 316.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.1438, allocations: 11.94 kB / 316.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1438, allocations: 4 kB / 316.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004244/0.1442, allocations: 262.3 kB / 316.9 MB, free: 5.223 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.0006321/0.1449, allocations: 1.352 MB / 318.2 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.1452, allocations: 275.9 kB / 318.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.648e-05/0.1453, allocations: 87.03 kB / 318.6 MB, free: 3.406 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04288/0.1882, allocations: 26.13 MB / 344.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1882, allocations: 41.39 kB / 344.7 MB, free: 9.219 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.694e-06/0.1882, allocations: 4 kB / 344.7 MB, free: 9.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002729/0.191, allocations: 1.242 MB / 346 MB, free: 7.938 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.191, allocations: 110.8 kB / 346.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.546e-05/0.1911, allocations: 185.9 kB / 346.3 MB, free: 7.605 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.1911, allocations: 29.7 kB / 346.3 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.668e-05/0.1912, allocations: 155.3 kB / 346.5 MB, free: 7.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.1912, allocations: 125.9 kB / 346.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.1913, allocations: 79.12 kB / 346.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1914, allocations: 0.4962 MB / 347.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1915, allocations: 87.95 kB / 347.2 MB, free: 6.613 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.1917, allocations: 174.5 kB / 347.4 MB, free: 6.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.192, allocations: 289.2 kB / 347.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.192, allocations: 4 kB / 347.7 MB, free: 6.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000435/0.1924, allocations: 356.8 kB / 348 MB, free: 5.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1924, allocations: 15.88 kB / 348.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1924, allocations: 0 / 348.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001406/0.1926, allocations: 31.66 kB / 348.1 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.1928, allocations: 84.77 kB / 348.2 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002874/0.1931, allocations: 0.7963 MB / 349 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1932, allocations: 16 kB / 349 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1932, allocations: 15.98 kB / 349 MB, free: 4.738 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 9.392e-05/0.1933, allocations: 180.4 kB / 349.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.858e-05/0.1934, allocations: 27.91 kB / 349.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009056/0.1943, allocations: 0.9643 MB / 350.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.1943, allocations: 21.05 kB / 350.2 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1943, allocations: 0 / 350.2 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1943, allocations: 8.016 kB / 350.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.1955, allocations: 1.32 MB / 351.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1955, allocations: 2.938 kB / 351.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.1957, allocations: 71.89 kB / 351.6 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003465/0.1961, allocations: 63.7 kB / 351.7 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.1961, allocations: 15.92 kB / 351.7 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002325/0.1963, allocations: 0.7961 MB / 352.5 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1963, allocations: 0 / 352.5 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009308/0.1973, allocations: 1.256 MB / 353.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.1973, allocations: 43.58 kB / 353.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.1973, allocations: 19.98 kB / 353.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1975, allocations: 11.89 kB / 353.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.438e-05/0.1976, allocations: 31.94 kB / 353.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.1976, allocations: 19.98 kB / 353.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.59e-05/0.1976, allocations: 135.1 kB / 354 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1976, allocations: 0 / 354 MB, free: 15.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001767/0.1994, allocations: 0.9785 MB / 355 MB, free: 14.64 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.002608/0.202, allocations: 1.284 MB / 356.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.2026, allocations: 404 kB / 356.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2026, allocations: 0 / 356.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.2029, allocations: 308.5 kB / 356.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.2033, allocations: 80.67 kB / 357 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.2048, allocations: 1.09 MB / 358.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.162e-05/0.2049, allocations: 123.8 kB / 358.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002117/0.2051, allocations: 139.2 kB / 358.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.362e-05/0.2052, allocations: 36.47 kB / 358.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of SimCode: time 8.81e-07/0.2052, allocations: 0 / 358.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of Templates: time 0.04191/0.2471, allocations: 43.33 MB / 401.7 MB, free: 15.96 MB / 362.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.801925722975284]