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.001332/0.001332, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001751/0.001751, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 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.9451/0.9451, allocations: 177 MB / 205.2 MB, free: 5.047 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.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.031e-05/2.156e-05, allocations: 5.266 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.009662/0.009684, allocations: 11.12 MB / 284.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.131/0.1406, allocations: 6.951 MB / 291.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.142, allocations: 60.34 kB / 291.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009276/0.143, allocations: 413.8 kB / 291.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003338/0.1463, allocations: 1.776 MB / 293.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004932/0.1512, allocations: 2.815 MB / 296.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005183/0.1564, allocations: 3.974 MB / 300.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00164/0.1581, allocations: 1.074 MB / 301.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.1612, allocations: 2.041 MB / 303.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.1631, allocations: 1.437 MB / 305 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000432/0.1635, allocations: 158.5 kB / 305.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001824/0.1654, allocations: 0.9831 MB / 306.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004376/0.1658, allocations: 0.669 MB / 306.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007303/0.1665, allocations: 0.6307 MB / 307.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002242/0.1688, allocations: 2.298 MB / 309.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1688, allocations: 0 / 309.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1688, allocations: 0 / 309.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.685e-05/0.1688, allocations: 0 / 309.8 MB, free: 9.02 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.002505/0.1713, allocations: 1.86 MB / 311.6 MB, free: 7.789 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.1714, allocations: 18.61 kB / 311.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.1717, allocations: 228 kB / 311.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009588/0.1727, allocations: 0.8314 MB / 312.7 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.964e-05/0.1728, allocations: 251.5 kB / 312.9 MB, free: 6.914 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.1729, allocations: 116.2 kB / 313 MB, free: 6.809 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009638/0.1739, allocations: 1.422 MB / 314.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1739, allocations: 0 / 314.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.174, allocations: 51.02 kB / 314.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.429e-05/0.1741, allocations: 115.1 kB / 314.6 MB, free: 5.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006854/0.1747, allocations: 0.5305 MB / 315.2 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003786/0.1785, allocations: 3.079 MB / 318.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005177/0.179, allocations: 0.5719 MB / 318.8 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.1793, allocations: 219.5 kB / 319 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001878/0.1812, allocations: 1.457 MB / 320.5 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1812, allocations: 43.56 kB / 320.5 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000364/0.1815, allocations: 181 kB / 320.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.194e-06/0.1815, allocations: 0 / 320.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.006217/0.1878, allocations: 2.793 MB / 323.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.1878, allocations: 145.5 kB / 323.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005743/0.1884, allocations: 0.8515 MB / 324.5 MB, free: 11.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.191e-05/0.1885, allocations: 49.7 kB / 324.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.1887, allocations: 0.501 MB / 325 MB, free: 11.01 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.1889, allocations: 405.5 kB / 325.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.1892, allocations: 266.8 kB / 325.7 MB, free: 10.4 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.1892, allocations: 305.1 kB / 326 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.1895, allocations: 202.5 kB / 326.2 MB, free: 9.902 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.1899, allocations: 0.6027 MB / 326.8 MB, free: 9.176 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.1907, allocations: 0.8089 MB / 327.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1907, allocations: 3 kB / 327.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001099/0.1918, allocations: 0.8854 MB / 328.5 MB, free: 7.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1918, allocations: 12 kB / 328.5 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.1918, allocations: 12 kB / 328.5 MB, free: 7.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/0.1944, allocations: 0.8923 MB / 329.4 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.1949, allocations: 287 kB / 329.7 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007945/0.1957, allocations: 0.8219 MB / 330.5 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.1962, allocations: 47.98 kB / 330.6 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.916e-05/0.1963, allocations: 55.97 kB / 330.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004259/0.1967, allocations: 297.7 kB / 330.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004288/0.1971, allocations: 0.6161 MB / 331.5 MB, free: 4.332 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007194/0.1978, allocations: 0.8111 MB / 332.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.092e-06/0.1979, allocations: 4 kB / 332.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001049/0.1989, allocations: 0.8754 MB / 333.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1989, allocations: 12 kB / 333.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1989, allocations: 12.03 kB / 333.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/0.2012, allocations: 0.7717 MB / 334 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.2018, allocations: 299.5 kB / 334.3 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006669/0.2025, allocations: 0.7701 MB / 335.1 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/0.203, allocations: 47.98 kB / 335.1 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/0.2031, allocations: 51.97 kB / 335.2 MB, free: 0.6094 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.0002612/0.2034, allocations: 271.8 kB / 335.4 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.2035, allocations: 119.8 kB / 335.5 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.2049, allocations: 0.9273 MB / 336.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.2049, allocations: 12 kB / 336.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2049, allocations: 1.125 kB / 336.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.205, allocations: 7.969 kB / 336.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.2068, allocations: 1.454 MB / 337.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.2068, allocations: 0 / 337.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004077/0.2072, allocations: 175.8 kB / 338.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009483/0.2082, allocations: 0.5739 MB / 338.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.648e-05/0.2083, allocations: 27.98 kB / 338.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007215/0.209, allocations: 0.8631 MB / 339.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.209, allocations: 0 / 339.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.2102, allocations: 1.048 MB / 340.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.2105, allocations: 199 kB / 340.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.2106, allocations: 27.94 kB / 340.9 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.2109, allocations: 43.92 kB / 340.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.2111, allocations: 85.12 kB / 341 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.684e-05/0.2111, allocations: 31.97 kB / 341 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002914/0.2114, allocations: 398.8 kB / 341.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2114, allocations: 0 / 341.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001501/0.2129, allocations: 0.874 MB / 342.3 MB, free: 9.625 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.0007158/0.2136, allocations: 443.4 kB / 342.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.2158, allocations: 1.318 MB / 344 MB, free: 7.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.025e-05/0.2158, allocations: 20.62 kB / 344 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005459/0.2163, allocations: 403.7 kB / 344.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.2177, allocations: 0.6303 MB / 345.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.2209, allocations: 2.358 MB / 347.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.2211, allocations: 332.7 kB / 347.8 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007748/0.2218, allocations: 300.4 kB / 348 MB, free: 3.906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008541/0.2227, allocations: 495 kB / 348.5 MB, free: 3.418 MB / 298.7 MB Notification: Performance of SimCode: time 1.553e-06/0.2227, allocations: 0 / 348.5 MB, free: 3.418 MB / 298.7 MB Notification: Performance of Templates: time 0.03808/0.2608, allocations: 37.94 MB / 386.5 MB, free: 13.93 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.7188866939395666]