Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 83.89 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9542/0.9542, allocations: 173.4 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.483e-05/1.653e-05, allocations: 10.19 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.008325/0.008341, allocations: 11.13 MB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007907/0.01625, allocations: 6.905 MB / 286 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000731/0.01698, allocations: 59.5 kB / 286.1 MB, free: 4.281 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006369/0.01762, allocations: 421.2 kB / 286.5 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00222/0.01984, allocations: 1.752 MB / 288.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1077/0.1275, allocations: 2.722 MB / 291 MB, free: 16.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.1325, allocations: 4.144 MB / 295.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.134, allocations: 1.068 MB / 296.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002929/0.1369, allocations: 2.09 MB / 298.3 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001622/0.1385, allocations: 1.607 MB / 299.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002506/0.1388, allocations: 160.1 kB / 300 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001602/0.1404, allocations: 0.9694 MB / 301 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000471/0.1409, allocations: 0.6724 MB / 301.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007315/0.1416, allocations: 0.6317 MB / 302.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002462/0.144, allocations: 2.291 MB / 304.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.144, allocations: 2.188 kB / 304.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1441, allocations: 0 / 304.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.1441, allocations: 0 / 304.6 MB, free: 15.14 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.002484/0.1466, allocations: 2.055 MB / 306.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.1466, allocations: 10.44 kB / 306.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004196/0.147, allocations: 285.8 kB / 306.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009031/0.1479, allocations: 1.016 MB / 308 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.148, allocations: 256.2 kB / 308.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.1481, allocations: 116.6 kB / 308.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1494, allocations: 1.537 MB / 309.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.1494, allocations: 4 kB / 309.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.011e-05/0.1495, allocations: 44.94 kB / 309.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.036e-05/0.1496, allocations: 111.2 kB / 310 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1506, allocations: 0.7454 MB / 310.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.1548, allocations: 4.196 MB / 314.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.1555, allocations: 0.6442 MB / 315.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.1558, allocations: 302.2 kB / 315.9 MB, free: 7.172 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001884/0.1577, allocations: 1.806 MB / 317.7 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.1577, allocations: 51.08 kB / 317.7 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003274/0.1581, allocations: 182.4 kB / 317.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 1.773e-06/0.1581, allocations: 0 / 317.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=112): time 0.006489/0.1646, allocations: 3.328 MB / 321.3 MB, free: 1.801 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.1646, allocations: 145.5 kB / 321.4 MB, free: 1.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005842/0.1652, allocations: 0.9496 MB / 322.3 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.496e-05/0.1652, allocations: 45.7 kB / 322.4 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.1655, allocations: 0.6903 MB / 323.1 MB, free: 15.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1657, allocations: 403.4 kB / 323.5 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002983/0.166, allocations: 301.1 kB / 323.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.1661, allocations: 476.8 kB / 324.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.1665, allocations: 275.5 kB / 324.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006651/0.1672, allocations: 0.8272 MB / 325.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.1683, allocations: 1.031 MB / 326.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1683, allocations: 7.438 kB / 326.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001688/0.17, allocations: 1.281 MB / 327.6 MB, free: 11.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.17, allocations: 10.66 kB / 327.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.17, allocations: 8.625 kB / 327.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002837/0.1728, allocations: 0.945 MB / 328.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005974/0.1734, allocations: 294.3 kB / 328.9 MB, free: 9.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.1747, allocations: 1.169 MB / 330.1 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.1752, allocations: 59.97 kB / 330.1 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.754e-05/0.1752, allocations: 67.97 kB / 330.2 MB, free: 8.496 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005638/0.1758, allocations: 410.7 kB / 330.6 MB, free: 8.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006659/0.1765, allocations: 0.8418 MB / 331.4 MB, free: 7.031 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001044/0.1775, allocations: 1.044 MB / 332.5 MB, free: 5.836 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.59e-06/0.1775, allocations: 8 kB / 332.5 MB, free: 5.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001756/0.1793, allocations: 1.258 MB / 333.7 MB, free: 4.625 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.1793, allocations: 8 kB / 333.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1793, allocations: 12 kB / 333.8 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003309/0.1826, allocations: 0.8034 MB / 334.6 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008054/0.1834, allocations: 303.7 kB / 334.9 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.1844, allocations: 1.106 MB / 336 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.1851, allocations: 55.97 kB / 336 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.1852, allocations: 67.97 kB / 336.1 MB, free: 2.27 MB / 282.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.0005345/0.1857, allocations: 361.6 kB / 336.4 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.186, allocations: 171.2 kB / 336.6 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002418/0.1884, allocations: 1.196 MB / 337.8 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.1884, allocations: 16 kB / 337.8 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1884, allocations: 0 / 337.8 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.1884, allocations: 4.859 kB / 337.8 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.1915, allocations: 2.046 MB / 339.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1915, allocations: 0 / 339.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005993/0.1921, allocations: 185.8 kB / 340.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.1935, allocations: 0.6041 MB / 340.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.006e-05/0.1936, allocations: 27.98 kB / 340.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.1948, allocations: 1.221 MB / 341.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1948, allocations: 0 / 341.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.1971, allocations: 1.424 MB / 343.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/0.1978, allocations: 274.9 kB / 343.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.198, allocations: 24 kB / 343.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005389/0.1985, allocations: 51.97 kB / 343.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.1987, allocations: 89.12 kB / 343.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.982e-05/0.1988, allocations: 47.97 kB / 343.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005858/0.1993, allocations: 0.5655 MB / 344.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1993, allocations: 0 / 344.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001767/0.2011, allocations: 0.8701 MB / 345.2 MB, free: 9.066 MB / 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.0008079/0.2019, allocations: 458.8 kB / 345.7 MB, free: 8.641 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003378/0.2053, allocations: 1.616 MB / 347.3 MB, free: 7.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2053, allocations: 0.6875 kB / 347.3 MB, free: 7.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.2062, allocations: 0.498 MB / 347.8 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/0.2081, allocations: 0.6294 MB / 348.4 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.2121, allocations: 2.483 MB / 350.9 MB, free: 3.508 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.2124, allocations: 340.7 kB / 351.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001211/0.2136, allocations: 0.5031 MB / 351.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000268/0.2139, allocations: 108.5 kB / 351.9 MB, free: 2.547 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.2139, allocations: 7.281 kB / 351.9 MB, free: 2.543 MB / 298.7 MB Notification: Performance of Templates: time 0.04286/0.2567, allocations: 37.41 MB / 389.3 MB, free: 13.68 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.6582011757418513]