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.002461/0.002461, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002762/0.002762, allocations: 165.3 kB / 24.28 MB, free: 152 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.706/1.706, allocations: 177.1 MB / 204.6 MB, free: 5.574 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.583e-06/1.583e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.815e-05/2.974e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02208/0.02211, allocations: 16.31 MB / 288.6 MB, free: 1.449 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1276/0.1497, allocations: 6.893 MB / 295.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006489/0.1503, allocations: 32.12 kB / 295.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007642/0.1511, allocations: 333.2 kB / 295.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002578/0.1537, allocations: 1.145 MB / 297 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004725/0.1584, allocations: 1.89 MB / 298.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002651/0.161, allocations: 2.168 MB / 301.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007216/0.1618, allocations: 0.5366 MB / 301.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.1633, allocations: 1.066 MB / 302.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.1644, allocations: 0.7805 MB / 303.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.1645, allocations: 79.25 kB / 303.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00222/0.1667, allocations: 1.019 MB / 304.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003045/0.167, allocations: 346.5 kB / 304.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.1674, allocations: 337.7 kB / 305.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002585/0.17, allocations: 2.006 MB / 307.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.17, allocations: 0 / 307.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.17, allocations: 3.375 kB / 307.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.17, allocations: 0 / 307.2 MB, free: 10.93 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.002343/0.1724, allocations: 1.37 MB / 308.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1724, allocations: 9.312 kB / 308.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003882/0.1728, allocations: 156.6 kB / 308.8 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008961/0.1737, allocations: 0.5877 MB / 309.3 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.1738, allocations: 164.5 kB / 309.5 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.1739, allocations: 58.05 kB / 309.6 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.175, allocations: 0.9796 MB / 310.5 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.175, allocations: 0 / 310.5 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.1751, allocations: 21.83 kB / 310.6 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.644e-05/0.1752, allocations: 54.83 kB / 310.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009121/0.1761, allocations: 0.5098 MB / 311.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004336/0.1804, allocations: 2.7 MB / 313.8 MB, free: 6.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.1812, allocations: 486.6 kB / 314.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.1815, allocations: 229.7 kB / 314.5 MB, free: 5.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002028/0.1835, allocations: 1.1 MB / 315.6 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1836, allocations: 41.89 kB / 315.7 MB, free: 4.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/0.1836, allocations: 0 / 315.7 MB, free: 4.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.005333/0.1889, allocations: 2.074 MB / 317.7 MB, free: 2.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.1889, allocations: 89.77 kB / 317.8 MB, free: 2.707 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005414/0.1895, allocations: 0.6782 MB / 318.5 MB, free: 2.012 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.1895, allocations: 45.7 kB / 318.5 MB, free: 1.961 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.1897, allocations: 438.9 kB / 319 MB, free: 1.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.1898, allocations: 250.8 kB / 319.2 MB, free: 1.285 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.1901, allocations: 178.4 kB / 319.4 MB, free: 1.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1902, allocations: 0.5899 MB / 320 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.1906, allocations: 263.5 kB / 320.2 MB, free: 248 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008712/0.1915, allocations: 0.5096 MB / 320.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.1928, allocations: 0.7493 MB / 321.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1928, allocations: 0 / 321.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001998/0.1948, allocations: 0.9105 MB / 322.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.1948, allocations: 4 kB / 322.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.1948, allocations: 8 kB / 322.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.1961, allocations: 349.3 kB / 322.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007144/0.1968, allocations: 167.1 kB / 322.9 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.1982, allocations: 1.071 MB / 324 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000585/0.1988, allocations: 31.97 kB / 324 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.449e-05/0.1989, allocations: 35.94 kB / 324.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008086/0.1997, allocations: 432.7 kB / 324.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008229/0.2005, allocations: 0.5133 MB / 325 MB, free: 11.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001323/0.2018, allocations: 0.7334 MB / 325.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.517e-06/0.2018, allocations: 4 kB / 325.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001955/0.2038, allocations: 0.887 MB / 326.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2038, allocations: 12.03 kB / 326.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2038, allocations: 4 kB / 326.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007233/0.2045, allocations: 239.6 kB / 326.9 MB, free: 9.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.2052, allocations: 171.7 kB / 327 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.2065, allocations: 1.019 MB / 328.1 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.2071, allocations: 31.98 kB / 328.1 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-05/0.2072, allocations: 35.98 kB / 328.1 MB, free: 7.922 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.0003638/0.2075, allocations: 323.8 kB / 328.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.2078, allocations: 91.58 kB / 328.5 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.2097, allocations: 0.8148 MB / 329.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2097, allocations: 4 kB / 329.3 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2097, allocations: 0 / 329.3 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.2097, allocations: 7.984 kB / 329.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.2129, allocations: 1.586 MB / 330.9 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2129, allocations: 0 / 330.9 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/0.2135, allocations: 111.9 kB / 331.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.2147, allocations: 355.3 kB / 331.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.535e-05/0.2147, allocations: 23.92 kB / 331.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.216, allocations: 1.066 MB / 332.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.216, allocations: 0 / 332.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.2183, allocations: 1.226 MB / 333.7 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.2187, allocations: 155.3 kB / 333.9 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2189, allocations: 16 kB / 333.9 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.2194, allocations: 23.98 kB / 333.9 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.2195, allocations: 56.55 kB / 334 MB, free: 1.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-05/0.2196, allocations: 38.98 kB / 334 MB, free: 1.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005663/0.2202, allocations: 434.7 kB / 334.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2202, allocations: 0 / 334.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001633/0.2218, allocations: 0.5809 MB / 335 MB, free: 0.9375 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.001196/0.223, allocations: 0.5168 MB / 335.5 MB, free: 448 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.2258, allocations: 1.136 MB / 336.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2258, allocations: 0 / 336.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009628/0.2268, allocations: 382 kB / 337 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.2285, allocations: 387.9 kB / 337.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.2318, allocations: 1.498 MB / 338.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.2322, allocations: 392.5 kB / 339.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0008719/0.2331, allocations: 266.9 kB / 339.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.2333, allocations: 68.48 kB / 339.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2333, allocations: 0 / 339.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of Templates: time 0.03937/0.2727, allocations: 22.06 MB / 361.7 MB, free: 6.586 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] 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.5164889600127935]