Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009313/0.0009313, allocations: 91.5 kB / 21.2 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009334/0.0009334, allocations: 156.5 kB / 24.55 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.967/0.967, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.255e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.009189/0.009212, allocations: 11.22 MB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1284/0.1376, allocations: 6.914 MB / 291 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.1389, allocations: 62.09 kB / 291.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008958/0.1398, allocations: 414.6 kB / 291.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.1429, allocations: 1.767 MB / 293.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004606/0.1475, allocations: 2.698 MB / 296 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004649/0.1522, allocations: 4.136 MB / 300.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.1535, allocations: 1.062 MB / 301.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.1563, allocations: 2.091 MB / 303.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.1581, allocations: 1.608 MB / 304.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000314/0.1584, allocations: 161.3 kB / 305 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.16, allocations: 0.9881 MB / 306 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.1605, allocations: 0.679 MB / 306.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005632/0.161, allocations: 0.6272 MB / 307.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0021/0.1631, allocations: 2.296 MB / 309.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1631, allocations: 0 / 309.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1631, allocations: 0 / 309.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.1631, allocations: 0 / 309.6 MB, free: 8.871 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.002613/0.1658, allocations: 2.05 MB / 311.7 MB, free: 7.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1658, allocations: 13.61 kB / 311.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004452/0.1662, allocations: 289.4 kB / 312 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009699/0.1672, allocations: 1.025 MB / 313 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.1673, allocations: 252.1 kB / 313.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.1675, allocations: 114.3 kB / 313.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1688, allocations: 1.535 MB / 314.9 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.1688, allocations: 3.188 kB / 314.9 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.623e-05/0.1689, allocations: 44.05 kB / 314.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.063e-05/0.169, allocations: 113.9 kB / 315 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.17, allocations: 0.7476 MB / 315.8 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.1746, allocations: 4.173 MB / 320 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008567/0.1755, allocations: 0.643 MB / 320.6 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004282/0.1759, allocations: 303.1 kB / 320.9 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002581/0.1785, allocations: 1.794 MB / 322.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1785, allocations: 46.39 kB / 322.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003868/0.1789, allocations: 186.5 kB / 322.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 3.096e-06/0.1789, allocations: 0 / 322.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.007547/0.1865, allocations: 3.339 MB / 326.3 MB, free: 9.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.1865, allocations: 144.4 kB / 326.4 MB, free: 9.059 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000883/0.1874, allocations: 0.9496 MB / 327.3 MB, free: 8.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/0.1875, allocations: 53.7 kB / 327.4 MB, free: 8.031 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.1878, allocations: 0.6825 MB / 328.1 MB, free: 7.344 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004729/0.1883, allocations: 411.5 kB / 328.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.1886, allocations: 297.1 kB / 328.8 MB, free: 6.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.951e-05/0.1887, allocations: 480.8 kB / 329.2 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004518/0.1891, allocations: 271.5 kB / 329.5 MB, free: 5.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.1898, allocations: 0.8244 MB / 330.3 MB, free: 4.879 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.1909, allocations: 1.039 MB / 331.4 MB, free: 3.699 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.1909, allocations: 7.984 kB / 331.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001737/0.1926, allocations: 1.27 MB / 332.6 MB, free: 2.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1927, allocations: 15.28 kB / 332.7 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1927, allocations: 8 kB / 332.7 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002914/0.1956, allocations: 0.9458 MB / 333.6 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.1962, allocations: 302.2 kB / 333.9 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.1973, allocations: 1.155 MB / 335.1 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004957/0.1978, allocations: 54.78 kB / 335.1 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.1979, allocations: 72.91 kB / 335.2 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008401/0.1987, allocations: 406.7 kB / 335.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000659/0.1994, allocations: 0.8438 MB / 336.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00107/0.2005, allocations: 1.045 MB / 337.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.705e-06/0.2005, allocations: 4 kB / 337.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001687/0.2021, allocations: 1.264 MB / 338.7 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2022, allocations: 8.719 kB / 338.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2022, allocations: 8.625 kB / 338.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.2047, allocations: 0.8026 MB / 339.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006177/0.2053, allocations: 301 kB / 339.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008756/0.2062, allocations: 1.1 MB / 341 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.2067, allocations: 63.97 kB / 341 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.368e-05/0.2068, allocations: 71.97 kB / 341.1 MB, free: 9.617 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.00029/0.2071, allocations: 357.9 kB / 341.4 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.2073, allocations: 175.1 kB / 341.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002252/0.2096, allocations: 1.19 MB / 342.8 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.2096, allocations: 12 kB / 342.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2096, allocations: 0 / 342.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.2096, allocations: 7.969 kB / 342.8 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.2122, allocations: 2.051 MB / 344.9 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2122, allocations: 0 / 344.9 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.2126, allocations: 187.7 kB / 345.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.2137, allocations: 0.6041 MB / 345.7 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.128e-05/0.2138, allocations: 27.98 kB / 345.7 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000968/0.2148, allocations: 1.203 MB / 346.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2148, allocations: 0 / 346.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.2166, allocations: 1.438 MB / 348.3 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.2169, allocations: 274.9 kB / 348.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.2171, allocations: 20 kB / 348.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/0.2174, allocations: 47.97 kB / 348.7 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.2176, allocations: 89.12 kB / 348.7 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.444e-05/0.2177, allocations: 39.98 kB / 348.8 MB, free: 1.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004772/0.2181, allocations: 0.5733 MB / 349.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2181, allocations: 0 / 349.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001745/0.2199, allocations: 0.874 MB / 350.2 MB, free: 384 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.0007214/0.2206, allocations: 463.3 kB / 350.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002756/0.2234, allocations: 1.615 MB / 352.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.2234, allocations: 4 kB / 352.3 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.2241, allocations: 0.4906 MB / 352.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.2256, allocations: 0.6392 MB / 353.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.2291, allocations: 2.469 MB / 355.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.2293, allocations: 340.7 kB / 356.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001219/0.2305, allocations: 0.5046 MB / 356.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.2307, allocations: 116.4 kB / 356.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.2307, allocations: 0 / 356.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of Templates: time 0.03994/0.2707, allocations: 37.42 MB / 394.3 MB, free: 4.746 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7454628353007138]