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.002534/0.002534, allocations: 95.86 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.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.002881/0.002881, allocations: 149.1 kB / 24.26 MB, free: 168 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.541/1.541, allocations: 173.3 MB / 200.8 MB, free: 9.309 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.523e-06/1.523e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.402e-05/3.555e-05, allocations: 6.25 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02351/0.02354, allocations: 16.2 MB / 283.5 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1298/0.1533, allocations: 6.895 MB / 290.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009895/0.1543, allocations: 31.22 kB / 290.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.1555, allocations: 323.1 kB / 290.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00318/0.1587, allocations: 1.138 MB / 291.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.1637, allocations: 1.903 MB / 293.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003362/0.167, allocations: 2.17 MB / 296 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.1682, allocations: 0.5439 MB / 296.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00286/0.171, allocations: 1.056 MB / 297.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001741/0.1728, allocations: 0.7821 MB / 298.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003552/0.1731, allocations: 78.72 kB / 298.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002837/0.176, allocations: 1.017 MB / 299.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005974/0.1766, allocations: 346.9 kB / 299.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008622/0.1774, allocations: 333.9 kB / 300.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003495/0.1809, allocations: 1.993 MB / 302.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1809, allocations: 0 / 302.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1809, allocations: 0 / 302.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.1809, allocations: 0 / 302.1 MB, free: 13.07 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.002826/0.1838, allocations: 1.362 MB / 303.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1838, allocations: 10.52 kB / 303.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.1843, allocations: 156.2 kB / 303.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.1853, allocations: 0.5876 MB / 304.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.1854, allocations: 157.9 kB / 304.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.1856, allocations: 66.3 kB / 304.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.1868, allocations: 0.9778 MB / 305.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.1868, allocations: 0 / 305.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.96e-05/0.1869, allocations: 28.86 kB / 305.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-05/0.187, allocations: 50.05 kB / 305.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009819/0.188, allocations: 0.5155 MB / 306 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004857/0.1928, allocations: 2.691 MB / 308.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.1936, allocations: 496.4 kB / 309.2 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003691/0.194, allocations: 233.8 kB / 309.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002241/0.1962, allocations: 1.1 MB / 310.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.1962, allocations: 41.67 kB / 310.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.1962, allocations: 0 / 310.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.005576/0.2018, allocations: 2.079 MB / 312.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.2019, allocations: 82.98 kB / 312.7 MB, free: 6.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000615/0.2025, allocations: 0.6851 MB / 313.4 MB, free: 6.113 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.2025, allocations: 45 kB / 313.4 MB, free: 6.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.2027, allocations: 432.4 kB / 313.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.2028, allocations: 253.8 kB / 314.1 MB, free: 5.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.2031, allocations: 177.5 kB / 314.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2032, allocations: 0.5889 MB / 314.9 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.2037, allocations: 261.1 kB / 315.1 MB, free: 4.691 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.2042, allocations: 0.5208 MB / 315.6 MB, free: 4.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009293/0.2051, allocations: 0.7379 MB / 316.4 MB, free: 3.344 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2051, allocations: 4 kB / 316.4 MB, free: 3.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001555/0.2067, allocations: 0.9061 MB / 317.3 MB, free: 2.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2067, allocations: 8 kB / 317.3 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.2067, allocations: 4 kB / 317.3 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.2078, allocations: 365.4 kB / 317.6 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.2084, allocations: 156.5 kB / 317.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008226/0.2092, allocations: 1.066 MB / 318.9 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.2098, allocations: 32.67 kB / 318.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.794e-05/0.2099, allocations: 30.91 kB / 318.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006019/0.2105, allocations: 436.7 kB / 319.4 MB, free: 368 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006287/0.2111, allocations: 0.5094 MB / 319.9 MB, free: 15.76 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001569/0.2127, allocations: 0.7374 MB / 320.6 MB, free: 14.96 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.332e-06/0.2127, allocations: 4 kB / 320.6 MB, free: 14.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001997/0.2147, allocations: 0.8846 MB / 321.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.2147, allocations: 14.91 kB / 321.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.2147, allocations: 4 kB / 321.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00074/0.2155, allocations: 246.8 kB / 321.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.2162, allocations: 168.1 kB / 321.9 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.2174, allocations: 1.024 MB / 322.9 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/0.218, allocations: 35.98 kB / 323 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.44e-05/0.2181, allocations: 35.98 kB / 323 MB, free: 12.56 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.0003974/0.2185, allocations: 318.6 kB / 323.3 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.2187, allocations: 91.58 kB / 323.4 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.2207, allocations: 0.8113 MB / 324.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.2207, allocations: 8 kB / 324.2 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2207, allocations: 0 / 324.2 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.2207, allocations: 7.922 kB / 324.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00338/0.2241, allocations: 1.588 MB / 325.8 MB, free: 9.711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2241, allocations: 8 kB / 325.8 MB, free: 9.703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006293/0.2247, allocations: 114.8 kB / 325.9 MB, free: 9.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.2259, allocations: 350.1 kB / 326.3 MB, free: 9.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.645e-05/0.226, allocations: 15.98 kB / 326.3 MB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.2273, allocations: 1.084 MB / 327.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2273, allocations: 0 / 327.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.23, allocations: 1.221 MB / 328.6 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005051/0.2305, allocations: 155.4 kB / 328.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.2306, allocations: 12 kB / 328.8 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.2312, allocations: 31.97 kB / 328.8 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.2314, allocations: 56.55 kB / 328.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.888e-05/0.2314, allocations: 28.86 kB / 328.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000615/0.2321, allocations: 430.8 kB / 329.3 MB, free: 6.184 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2321, allocations: 4 kB / 329.3 MB, free: 6.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001748/0.2338, allocations: 0.577 MB / 329.9 MB, free: 5.602 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.001261/0.2351, allocations: 0.516 MB / 330.4 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002992/0.2381, allocations: 1.144 MB / 331.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.2381, allocations: 0 / 331.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009946/0.2391, allocations: 380.5 kB / 331.9 MB, free: 3.641 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.2409, allocations: 386.3 kB / 332.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.2444, allocations: 1.505 MB / 333.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.2449, allocations: 384.5 kB / 334.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009482/0.2458, allocations: 263.6 kB / 334.4 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.2461, allocations: 72.47 kB / 334.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2461, allocations: 3.281 kB / 334.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of Templates: time 0.04195/0.288, allocations: 22.06 MB / 356.6 MB, free: 11.35 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] 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.491442436934449]