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.001227/0.001227, allocations: 83.59 kB / 21.18 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.001412/0.001412, allocations: 165 kB / 24.56 MB, free: 12 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.9967/0.9967, allocations: 177.1 MB / 205 MB, free: 5.625 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.763e-06/1.763e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.291e-05/2.468e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.0118/0.01183, allocations: 11.22 MB / 284.2 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1398/0.1517, allocations: 6.913 MB / 291.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.1529, allocations: 61.12 kB / 291.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009883/0.1539, allocations: 411.5 kB / 291.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003315/0.1572, allocations: 1.77 MB / 293.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004434/0.1616, allocations: 2.696 MB / 296 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004529/0.1662, allocations: 4.135 MB / 300.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.1676, allocations: 1.061 MB / 301.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.1702, allocations: 2.101 MB / 303.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.172, allocations: 1.606 MB / 304.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004734/0.1725, allocations: 158.8 kB / 305.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.1745, allocations: 0.9859 MB / 306.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004588/0.1749, allocations: 0.6747 MB / 306.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007948/0.1757, allocations: 0.6295 MB / 307.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.1783, allocations: 2.299 MB / 309.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1783, allocations: 0 / 309.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1783, allocations: 0 / 309.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.287e-05/0.1784, allocations: 0 / 309.7 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.00277/0.1811, allocations: 2.051 MB / 311.7 MB, free: 7.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1812, allocations: 9.344 kB / 311.7 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004565/0.1816, allocations: 288.7 kB / 312 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009752/0.1826, allocations: 1.02 MB / 313 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.1827, allocations: 249.2 kB / 313.3 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.1828, allocations: 118.6 kB / 313.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.1841, allocations: 1.543 MB / 314.9 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.1841, allocations: 0 / 314.9 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.351e-05/0.1842, allocations: 45.22 kB / 315 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.651e-05/0.1843, allocations: 109.9 kB / 315.1 MB, free: 4.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.1854, allocations: 0.7512 MB / 315.8 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004472/0.1898, allocations: 4.17 MB / 320 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008262/0.1907, allocations: 0.6452 MB / 320.7 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.1911, allocations: 298.5 kB / 320.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002283/0.1933, allocations: 1.798 MB / 322.7 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.1934, allocations: 49.64 kB / 322.8 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003686/0.1937, allocations: 186.4 kB / 323 MB, free: 12.69 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.534e-06/0.1937, allocations: 4 kB / 323 MB, free: 12.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.007371/0.2011, allocations: 3.335 MB / 326.3 MB, free: 9.344 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.2012, allocations: 141.5 kB / 326.4 MB, free: 9.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008051/0.202, allocations: 0.9496 MB / 327.4 MB, free: 8.207 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.443e-05/0.2021, allocations: 49.7 kB / 327.4 MB, free: 8.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.2024, allocations: 0.6815 MB / 328.1 MB, free: 7.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.2026, allocations: 419.4 kB / 328.5 MB, free: 7.062 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.2029, allocations: 297 kB / 328.8 MB, free: 6.766 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.48e-05/0.203, allocations: 480.7 kB / 329.3 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.2035, allocations: 274 kB / 329.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006643/0.2041, allocations: 0.8244 MB / 330.4 MB, free: 4.992 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.2053, allocations: 1.041 MB / 331.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.2053, allocations: 4 kB / 331.4 MB, free: 3.805 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001774/0.207, allocations: 1.271 MB / 332.7 MB, free: 2.582 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2071, allocations: 12 kB / 332.7 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.2071, allocations: 8 kB / 332.7 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/0.21, allocations: 0.9457 MB / 333.7 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006208/0.2106, allocations: 296.2 kB / 334 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.2117, allocations: 1.158 MB / 335.1 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.2122, allocations: 59.97 kB / 335.2 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.108e-05/0.2123, allocations: 71.97 kB / 335.2 MB, free: 48 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006052/0.2129, allocations: 406.7 kB / 335.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006563/0.2136, allocations: 0.8431 MB / 336.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00106/0.2146, allocations: 1.049 MB / 337.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.911e-06/0.2146, allocations: 0 / 337.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001651/0.2163, allocations: 1.258 MB / 338.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2163, allocations: 12.62 kB / 338.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2163, allocations: 8 kB / 338.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00251/0.2188, allocations: 0.8109 MB / 339.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006232/0.2194, allocations: 299.5 kB / 339.9 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000876/0.2203, allocations: 1.096 MB / 341 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.2209, allocations: 59.97 kB / 341.1 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.414e-05/0.221, allocations: 71.97 kB / 341.1 MB, free: 9.738 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.0002978/0.2213, allocations: 355.6 kB / 341.5 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.2215, allocations: 175.2 kB / 341.7 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.2234, allocations: 1.201 MB / 342.9 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.2234, allocations: 12 kB / 342.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2234, allocations: 0 / 342.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.2234, allocations: 9.094 kB / 342.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.226, allocations: 2.049 MB / 344.9 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.226, allocations: 0 / 344.9 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.2265, allocations: 179.8 kB / 345.1 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.2276, allocations: 0.6047 MB / 345.7 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.165e-05/0.2276, allocations: 27.98 kB / 345.7 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009598/0.2286, allocations: 1.207 MB / 346.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2286, allocations: 6.922 kB / 347 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.2304, allocations: 1.435 MB / 348.4 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003537/0.2307, allocations: 274.9 kB / 348.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.2309, allocations: 20 kB / 348.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.2312, allocations: 47.97 kB / 348.7 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.2314, allocations: 89.12 kB / 348.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.617e-05/0.2315, allocations: 47.97 kB / 348.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005091/0.232, allocations: 0.5578 MB / 349.4 MB, free: 1.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.232, allocations: 0 / 349.4 MB, free: 1.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001459/0.2334, allocations: 0.8779 MB / 350.3 MB, free: 500 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.0006962/0.2341, allocations: 462.1 kB / 350.7 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.237, allocations: 1.609 MB / 352.4 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.237, allocations: 4 kB / 352.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007224/0.2377, allocations: 0.4945 MB / 352.9 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.2391, allocations: 0.6384 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.003559/0.2427, allocations: 2.482 MB / 356 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.2429, allocations: 344.7 kB / 356.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009585/0.2439, allocations: 0.4978 MB / 356.8 MB, free: 9.961 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.2441, allocations: 112.5 kB / 356.9 MB, free: 9.852 MB / 314.7 MB Notification: Performance of SimCode: time 1.532e-06/0.2441, allocations: 4 kB / 356.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of Templates: time 0.04792/0.292, allocations: 37.43 MB / 394.3 MB, free: 4.902 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.8400500528514385]