Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.0009493/0.0009493, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009974/0.0009974, allocations: 161.4 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.9669/0.9669, allocations: 177.1 MB / 205 MB, free: 5.633 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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 272.9 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.013e-05, allocations: 2.312 kB / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.00933/0.00935, allocations: 11.23 MB / 284.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1371/0.1464, allocations: 6.906 MB / 291.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.1482, allocations: 59.88 kB / 291.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.1493, allocations: 417.4 kB / 291.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00359/0.1529, allocations: 1.765 MB / 293.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005839/0.1588, allocations: 2.691 MB / 296 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006436/0.1652, allocations: 4.139 MB / 300.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.1671, allocations: 1.061 MB / 301.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002927/0.17, allocations: 1.975 MB / 303.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002109/0.1721, allocations: 1.648 MB / 304.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004293/0.1725, allocations: 162.3 kB / 305 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.1744, allocations: 0.9954 MB / 306 MB, free: 11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004827/0.1749, allocations: 0.6729 MB / 306.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006362/0.1755, allocations: 0.6378 MB / 307.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.1778, allocations: 2.313 MB / 309.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1778, allocations: 0 / 309.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1778, allocations: 0 / 309.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.998e-05/0.1778, allocations: 0 / 309.6 MB, free: 8.953 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002717/0.1805, allocations: 2.052 MB / 311.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1806, allocations: 9.125 kB / 311.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004757/0.181, allocations: 280.8 kB / 311.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.1821, allocations: 1.023 MB / 313 MB, free: 6.688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.1822, allocations: 252.6 kB / 313.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.1824, allocations: 110.8 kB / 313.3 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1838, allocations: 1.544 MB / 314.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.1838, allocations: 0 / 314.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.693e-05/0.1839, allocations: 43.89 kB / 314.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.791e-05/0.184, allocations: 109.9 kB / 315 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1851, allocations: 0.7486 MB / 315.8 MB, free: 3.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.1898, allocations: 4.212 MB / 320 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1909, allocations: 0.6503 MB / 320.6 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.1913, allocations: 299.2 kB / 320.9 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002395/0.1937, allocations: 1.796 MB / 322.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1938, allocations: 49.58 kB / 322.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003781/0.1941, allocations: 175.3 kB / 322.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.094e-06/0.1941, allocations: 0 / 322.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.007419/0.2016, allocations: 3.351 MB / 326.3 MB, free: 9.375 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.2016, allocations: 141.5 kB / 326.4 MB, free: 9.207 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008104/0.2024, allocations: 0.9574 MB / 327.4 MB, free: 8.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.713e-05/0.2025, allocations: 57.64 kB / 327.4 MB, free: 8.168 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004184/0.2029, allocations: 0.6773 MB / 328.1 MB, free: 7.484 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.2032, allocations: 408.5 kB / 328.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003133/0.2035, allocations: 301.1 kB / 328.8 MB, free: 6.789 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.2036, allocations: 476.8 kB / 329.3 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.204, allocations: 271.5 kB / 329.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006779/0.2047, allocations: 0.8336 MB / 330.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.2058, allocations: 1.03 MB / 331.4 MB, free: 3.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.2058, allocations: 4 kB / 331.4 MB, free: 3.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001772/0.2076, allocations: 1.274 MB / 332.7 MB, free: 2.609 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.2076, allocations: 8.688 kB / 332.7 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2076, allocations: 12 kB / 332.7 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002827/0.2104, allocations: 0.9468 MB / 333.6 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.211, allocations: 295.2 kB / 333.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.2123, allocations: 1.168 MB / 335.1 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/0.2128, allocations: 63.97 kB / 335.2 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.85e-05/0.2129, allocations: 67.97 kB / 335.2 MB, free: 60 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006247/0.2135, allocations: 414.7 kB / 335.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007117/0.2142, allocations: 0.8347 MB / 336.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001091/0.2153, allocations: 1.051 MB / 337.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.099e-06/0.2153, allocations: 0 / 337.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001667/0.217, allocations: 1.256 MB / 338.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.217, allocations: 14.66 kB / 338.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.217, allocations: 8 kB / 338.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002432/0.2195, allocations: 0.8027 MB / 339.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005907/0.22, allocations: 303.5 kB / 339.9 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000848/0.2209, allocations: 1.104 MB / 341 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.2214, allocations: 63.97 kB / 341.1 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-05/0.2215, allocations: 67.97 kB / 341.1 MB, free: 9.742 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0004738/0.2219, allocations: 355.6 kB / 341.5 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.2221, allocations: 167.2 kB / 341.6 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.224, allocations: 1.199 MB / 342.8 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.2241, allocations: 16 kB / 342.9 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2241, allocations: 1.125 kB / 342.9 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.2241, allocations: 7.969 kB / 342.9 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.2267, allocations: 2.047 MB / 344.9 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.2267, allocations: 0 / 344.9 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005217/0.2272, allocations: 187.7 kB / 345.1 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.2284, allocations: 0.6047 MB / 345.7 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.907e-05/0.2284, allocations: 27.98 kB / 345.7 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.2297, allocations: 1.215 MB / 346.9 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2297, allocations: 3.938 kB / 346.9 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.232, allocations: 1.427 MB / 348.4 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005266/0.2325, allocations: 274.9 kB / 348.6 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.2326, allocations: 24 kB / 348.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.2331, allocations: 47.97 kB / 348.7 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.2333, allocations: 85.14 kB / 348.8 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.741e-05/0.2333, allocations: 51.97 kB / 348.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005672/0.2339, allocations: 0.5695 MB / 349.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2339, allocations: 0 / 349.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001825/0.2357, allocations: 0.874 MB / 350.3 MB, free: 492 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007726/0.2365, allocations: 467.7 kB / 350.7 MB, free: 32 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.2395, allocations: 1.609 MB / 352.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.2395, allocations: 0 / 352.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007994/0.2403, allocations: 0.4989 MB / 352.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.2419, allocations: 0.6391 MB / 353.5 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.2454, allocations: 2.48 MB / 356 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.2456, allocations: 348.6 kB / 356.3 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001022/0.2466, allocations: 499.9 kB / 356.8 MB, free: 9.961 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.2468, allocations: 120.5 kB / 356.9 MB, free: 9.844 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2468, allocations: 0 / 356.9 MB, free: 9.844 MB / 314.7 MB Notification: Performance of Templates: time 0.03993/0.2868, allocations: 34.84 MB / 391.8 MB, free: 7.465 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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: 3.8560310709290206]