Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001727/0.001727, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001959/0.001959, allocations: 149.4 kB / 24.26 MB, free: 180 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 1.47/1.47, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.064e-05/3.228e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02103/0.02106, allocations: 14.48 MB / 281.8 MB, free: 8.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.03295, allocations: 6.278 MB / 288.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006954/0.03364, allocations: 35.75 kB / 288.1 MB, free: 1.855 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.03472, allocations: 325.8 kB / 288.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.03798, allocations: 1.13 MB / 289.5 MB, free: 408 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1168/0.1548, allocations: 1.904 MB / 291.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002563/0.1573, allocations: 2.17 MB / 293.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006701/0.158, allocations: 0.5376 MB / 294.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.1599, allocations: 1.058 MB / 295.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.1611, allocations: 0.7844 MB / 296 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001664/0.1613, allocations: 79.66 kB / 296.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.1634, allocations: 1.009 MB / 297.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003398/0.1638, allocations: 344.7 kB / 297.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004286/0.1642, allocations: 331.9 kB / 297.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.1667, allocations: 1.98 MB / 299.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1667, allocations: 0 / 299.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1667, allocations: 0.6562 kB / 299.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1667, allocations: 0 / 299.7 MB, free: 14.13 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002639/0.1693, allocations: 1.222 MB / 300.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1694, allocations: 10.73 kB / 301 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004523/0.1698, allocations: 155.3 kB / 301.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009552/0.1708, allocations: 0.5912 MB / 301.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.1709, allocations: 159.2 kB / 301.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.171, allocations: 72.27 kB / 301.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1725, allocations: 1.174 MB / 303.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.1726, allocations: 0 / 303.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.759e-05/0.1726, allocations: 26.34 kB / 303.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.517e-05/0.1727, allocations: 53.06 kB / 303.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.174, allocations: 0.8337 MB / 304 MB, free: 12.61 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004708/0.1787, allocations: 2.638 MB / 306.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008893/0.1796, allocations: 0.618 MB / 307.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004755/0.1801, allocations: 350.7 kB / 307.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002212/0.1823, allocations: 1.211 MB / 308.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.1823, allocations: 40.5 kB / 308.9 MB, free: 10 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.753e-06/0.1823, allocations: 0 / 308.9 MB, free: 10 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.006569/0.1889, allocations: 2.702 MB / 311.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.1889, allocations: 85.7 kB / 311.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005608/0.1895, allocations: 0.5464 MB / 312.2 MB, free: 8.066 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.1895, allocations: 37.7 kB / 312.2 MB, free: 8.023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.1897, allocations: 372.4 kB / 312.6 MB, free: 7.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.1898, allocations: 237.2 kB / 312.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/0.19, allocations: 146.6 kB / 313 MB, free: 7.281 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.1901, allocations: 374.8 kB / 313.3 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005298/0.1907, allocations: 376.6 kB / 313.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.1912, allocations: 0.5393 MB / 314.2 MB, free: 5.938 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1923, allocations: 0.8669 MB / 315.1 MB, free: 5.035 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1923, allocations: 4 kB / 315.1 MB, free: 5.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001735/0.194, allocations: 1.18 MB / 316.3 MB, free: 3.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.194, allocations: 8 kB / 316.3 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.194, allocations: 4 kB / 316.3 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.1952, allocations: 451.4 kB / 316.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006223/0.1958, allocations: 162.4 kB / 316.9 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000961/0.1968, allocations: 1.028 MB / 317.9 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000571/0.1974, allocations: 33.03 kB / 318 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.997e-05/0.1974, allocations: 31.98 kB / 318 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007047/0.1981, allocations: 0.5331 MB / 318.5 MB, free: 1.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005507/0.1987, allocations: 0.5326 MB / 319.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00102/0.1997, allocations: 0.8473 MB / 319.9 MB, free: 140 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.1997, allocations: 4 kB / 319.9 MB, free: 136 kB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002377/0.2021, allocations: 1.122 MB / 321 MB, free: 15.03 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2021, allocations: 14.91 kB / 321 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2021, allocations: 8.031 kB / 321.1 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008121/0.2029, allocations: 305.6 kB / 321.4 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007168/0.2036, allocations: 167 kB / 321.5 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.2049, allocations: 0.9076 MB / 322.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/0.2055, allocations: 35.53 kB / 322.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.539e-05/0.2056, allocations: 35.98 kB / 322.5 MB, free: 13.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003129/0.2059, allocations: 219.4 kB / 322.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002297/0.2061, allocations: 103.1 kB / 322.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002347/0.2085, allocations: 1.071 MB / 323.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.2085, allocations: 8 kB / 323.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2085, allocations: 4 kB / 323.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.2085, allocations: 3.984 kB / 323.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/0.212, allocations: 1.792 MB / 325.7 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.212, allocations: 6.516 kB / 325.7 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006301/0.2127, allocations: 111.3 kB / 325.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/0.214, allocations: 446.4 kB / 326.2 MB, free: 9.801 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.2141, allocations: 12 kB / 326.2 MB, free: 9.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.2156, allocations: 1.042 MB / 327.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2156, allocations: 0 / 327.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.2186, allocations: 1.604 MB / 328.9 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004027/0.219, allocations: 163.4 kB / 329.1 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.2191, allocations: 12 kB / 329.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.2197, allocations: 35.97 kB / 329.1 MB, free: 6.895 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.2199, allocations: 56.55 kB / 329.2 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.154e-05/0.22, allocations: 31.98 kB / 329.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005423/0.2205, allocations: 378.8 kB / 329.6 MB, free: 6.438 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2205, allocations: 0 / 329.6 MB, free: 6.438 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001784/0.2223, allocations: 0.5848 MB / 330.1 MB, free: 5.852 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/0.2234, allocations: 0.5108 MB / 330.7 MB, free: 5.367 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003327/0.2268, allocations: 1.331 MB / 332 MB, free: 4.078 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.2268, allocations: 4 kB / 332 MB, free: 4.074 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.2279, allocations: 441.5 kB / 332.4 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.2297, allocations: 379.7 kB / 332.8 MB, free: 3.316 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/0.2333, allocations: 1.613 MB / 334.4 MB, free: 1.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.2338, allocations: 404.5 kB / 334.8 MB, free: 1.258 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009619/0.2347, allocations: 291.4 kB / 335.1 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.235, allocations: 72.47 kB / 335.2 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.235, allocations: 0 / 335.2 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of Templates: time 0.0409/0.2759, allocations: 22.01 MB / 357.2 MB, free: 11.27 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.266520692966878]