Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001924/0.001924, allocations: 92.31 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.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.002242/0.002242, allocations: 161.7 kB / 24.27 MB, free: 172 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 1.501/1.501, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.483e-05, allocations: 6.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01923/0.01925, allocations: 14.58 MB / 286.9 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1339/0.1531, allocations: 6.277 MB / 293.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006949/0.1538, allocations: 31.97 kB / 293.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009051/0.1547, allocations: 327.1 kB / 293.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.1575, allocations: 1.15 MB / 294.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004767/0.1622, allocations: 1.882 MB / 296.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003118/0.1654, allocations: 2.166 MB / 298.7 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007717/0.1661, allocations: 0.5423 MB / 299.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001541/0.1677, allocations: 1.06 MB / 300.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.1687, allocations: 0.7789 MB / 301.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.1689, allocations: 78.69 kB / 301.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.1712, allocations: 1.027 MB / 302.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003178/0.1715, allocations: 342.6 kB / 302.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004181/0.1719, allocations: 334.3 kB / 302.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002565/0.1745, allocations: 2.002 MB / 304.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1745, allocations: 7.188 kB / 304.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1745, allocations: 0 / 304.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1745, allocations: 0 / 304.9 MB, free: 11.8 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.002637/0.1771, allocations: 1.213 MB / 306.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1772, allocations: 8.531 kB / 306.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004476/0.1776, allocations: 154.3 kB / 306.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008942/0.1785, allocations: 0.6039 MB / 306.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.1786, allocations: 159.6 kB / 307 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.1788, allocations: 61.3 kB / 307.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1801, allocations: 1.169 MB / 308.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.1801, allocations: 2.844 kB / 308.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.044e-05/0.1802, allocations: 21.94 kB / 308.3 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.962e-05/0.1803, allocations: 56.17 kB / 308.3 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.1815, allocations: 0.8341 MB / 309.1 MB, free: 8.961 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.004534/0.186, allocations: 2.605 MB / 311.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008692/0.1869, allocations: 0.6337 MB / 312.4 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004556/0.1873, allocations: 339.8 kB / 312.7 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002168/0.1895, allocations: 1.205 MB / 313.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.1895, allocations: 46.16 kB / 314 MB, free: 5.551 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.964e-06/0.1895, allocations: 0 / 314 MB, free: 5.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.006235/0.1958, allocations: 2.693 MB / 316.7 MB, free: 2.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.1958, allocations: 89.77 kB / 316.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/0.1963, allocations: 0.5457 MB / 317.3 MB, free: 2.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.1964, allocations: 37.7 kB / 317.3 MB, free: 2.129 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.1965, allocations: 363.9 kB / 317.7 MB, free: 1.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.1967, allocations: 239 kB / 317.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.1969, allocations: 154.6 kB / 318.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.894e-05/0.197, allocations: 374.8 kB / 318.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004983/0.1975, allocations: 372.9 kB / 318.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.198, allocations: 0.5442 MB / 319.3 MB, free: 48 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.1996, allocations: 0.8619 MB / 320.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1996, allocations: 0 / 320.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002352/0.2019, allocations: 1.182 MB / 321.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.2019, allocations: 11.98 kB / 321.4 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.202, allocations: 8.031 kB / 321.4 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.2035, allocations: 457.3 kB / 321.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.2042, allocations: 153.5 kB / 322 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.2057, allocations: 1.027 MB / 323 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006152/0.2063, allocations: 28.03 kB / 323.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.124e-05/0.2064, allocations: 37.91 kB / 323.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009875/0.2074, allocations: 0.5292 MB / 323.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008664/0.2082, allocations: 0.5406 MB / 324.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001484/0.2097, allocations: 0.8419 MB / 325 MB, free: 10.24 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-06/0.2097, allocations: 1.969 kB / 325 MB, free: 10.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002385/0.2121, allocations: 1.119 MB / 326.1 MB, free: 9.121 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2121, allocations: 8 kB / 326.1 MB, free: 9.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2121, allocations: 7.984 kB / 326.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007961/0.2129, allocations: 311.2 kB / 326.4 MB, free: 8.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007211/0.2136, allocations: 167.8 kB / 326.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.2149, allocations: 0.917 MB / 327.5 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.2154, allocations: 30.52 kB / 327.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-05/0.2155, allocations: 31.98 kB / 327.6 MB, free: 7.641 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.0002926/0.2158, allocations: 224.1 kB / 327.8 MB, free: 7.414 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/0.216, allocations: 99.47 kB / 327.9 MB, free: 7.316 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/0.2183, allocations: 1.078 MB / 329 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.2183, allocations: 4 kB / 329 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2183, allocations: 4 kB / 329 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2184, allocations: 3.984 kB / 329 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003495/0.2218, allocations: 1.782 MB / 330.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2218, allocations: 0.875 kB / 330.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/0.2225, allocations: 115.9 kB / 330.9 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.2238, allocations: 446.3 kB / 331.3 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.2239, allocations: 23.92 kB / 331.3 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.2253, allocations: 1.028 MB / 332.4 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2253, allocations: 4 kB / 332.4 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003068/0.2284, allocations: 1.614 MB / 334 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003956/0.2288, allocations: 158.4 kB / 334.1 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.2289, allocations: 16 kB / 334.2 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.2295, allocations: 27.97 kB / 334.2 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.2296, allocations: 56.55 kB / 334.2 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.219e-05/0.2297, allocations: 27.98 kB / 334.3 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005428/0.2302, allocations: 382.8 kB / 334.6 MB, free: 0.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2302, allocations: 0 / 334.6 MB, free: 0.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001704/0.2319, allocations: 0.5887 MB / 335.2 MB, free: 15.91 MB / 298.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.001159/0.2331, allocations: 0.5165 MB / 335.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003226/0.2363, allocations: 1.334 MB / 337.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2363, allocations: 0 / 337.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.2374, allocations: 446.1 kB / 337.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.2391, allocations: 385.3 kB / 337.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.2426, allocations: 1.601 MB / 339.5 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006006/0.2432, allocations: 404.5 kB / 339.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009288/0.2442, allocations: 293.4 kB / 340.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.2444, allocations: 72.42 kB / 340.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of SimCode: time 6.92e-07/0.2444, allocations: 4 kB / 340.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Templates: time 0.03984/0.2842, allocations: 22 MB / 362.3 MB, free: 5.223 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.335154613945633]