Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.001001/0.001001, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.0009958/0.0009958, allocations: 161 kB / 24.99 MB, free: 8.223 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.9338/0.9338, allocations: 177 MB / 205.2 MB, free: 5.578 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.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255e-05/1.391e-05, allocations: 2.312 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1154/0.1154, allocations: 21.36 MB / 294.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006725/0.1221, allocations: 7.07 MB / 301.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004299/0.1226, allocations: 34.38 kB / 301.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007/0.1233, allocations: 373 kB / 301.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001673/0.1249, allocations: 1.165 MB / 303 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.1276, allocations: 1.961 MB / 305 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.1291, allocations: 2.165 MB / 307.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.1296, allocations: 0.5291 MB / 307.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009347/0.1305, allocations: 1.081 MB / 308.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006602/0.1312, allocations: 0.739 MB / 309.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-05/0.1313, allocations: 78.16 kB / 309.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.1325, allocations: 1.062 MB / 310.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1327, allocations: 313 kB / 310.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.1329, allocations: 338 kB / 311.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.1344, allocations: 1.686 MB / 312.9 MB, free: 8.914 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1344, allocations: 0 / 312.9 MB, free: 8.914 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1344, allocations: 0 / 312.9 MB, free: 8.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1344, allocations: 3.062 kB / 312.9 MB, free: 8.914 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.001518/0.1359, allocations: 1.335 MB / 314.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1359, allocations: 13.8 kB / 314.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.1362, allocations: 165.5 kB / 314.4 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.1368, allocations: 0.5801 MB / 315 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.1368, allocations: 46.62 kB / 315.1 MB, free: 7.328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.178e-05/0.1369, allocations: 64.3 kB / 315.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000752/0.1377, allocations: 1.01 MB / 316.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.1377, allocations: 3 kB / 316.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.1377, allocations: 25.98 kB / 316.2 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.916e-05/0.1378, allocations: 51.91 kB / 316.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005369/0.1383, allocations: 377.8 kB / 316.6 MB, free: 6.203 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.1406, allocations: 3.182 MB / 319.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.141, allocations: 316.3 kB / 320.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.1412, allocations: 113.1 kB / 320.2 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.1413, allocations: 56.39 kB / 320.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.1413, allocations: 42.7 kB / 320.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.553e-06/0.1413, allocations: 0 / 320.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of matching and sorting (n=52): time 0.001948/0.1433, allocations: 1.237 MB / 321.5 MB, free: 1.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.1433, allocations: 140.9 kB / 321.7 MB, free: 1.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.1436, allocations: 0.5805 MB / 322.2 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.1437, allocations: 41.7 kB / 322.3 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.1438, allocations: 451.5 kB / 322.7 MB, free: 84 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.1439, allocations: 198.5 kB / 322.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1441, allocations: 160.3 kB / 323.1 MB, free: 15.72 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1442, allocations: 0.5547 MB / 323.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.1445, allocations: 127.5 kB / 323.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.1448, allocations: 498.6 kB / 324.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005221/0.1453, allocations: 0.5231 MB / 324.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1453, allocations: 4 kB / 324.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008031/0.1461, allocations: 0.6357 MB / 325.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1462, allocations: 8.625 kB / 325.4 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1462, allocations: 8 kB / 325.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007993/0.147, allocations: 255 kB / 325.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.1473, allocations: 143.8 kB / 325.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006801/0.148, allocations: 1.683 MB / 327.5 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.1482, allocations: 35.98 kB / 327.5 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.1482, allocations: 35.98 kB / 327.6 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000289/0.1485, allocations: 256.7 kB / 327.8 MB, free: 10.63 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003369/0.1489, allocations: 0.4903 MB / 328.3 MB, free: 9.996 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007262/0.1496, allocations: 0.5168 MB / 328.8 MB, free: 9.363 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.528e-06/0.1496, allocations: 4 kB / 328.8 MB, free: 9.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.000767/0.1504, allocations: 0.6223 MB / 329.5 MB, free: 8.727 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.1504, allocations: 8.094 kB / 329.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1504, allocations: 15.98 kB / 329.5 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004736/0.1508, allocations: 151.1 kB / 329.6 MB, free: 8.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003455/0.1512, allocations: 167.8 kB / 329.8 MB, free: 8.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000506/0.1517, allocations: 1.642 MB / 331.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1519, allocations: 35.98 kB / 331.5 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.152, allocations: 39.92 kB / 331.5 MB, free: 6.605 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * 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: 2 * 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): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.1521, allocations: 335.5 kB / 331.8 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.1522, allocations: 87.53 kB / 331.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008772/0.1531, allocations: 0.6416 MB / 332.6 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.1531, allocations: 11.98 kB / 332.6 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1531, allocations: 0 / 332.6 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1531, allocations: 3.938 kB / 332.6 MB, free: 5.543 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.1545, allocations: 1.231 MB / 333.8 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1545, allocations: 4 kB / 333.8 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000231/0.1547, allocations: 107.8 kB / 333.9 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004881/0.1552, allocations: 199.2 kB / 334.1 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.1552, allocations: 16 kB / 334.1 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007909/0.156, allocations: 1.686 MB / 335.8 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.156, allocations: 0 / 335.8 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/0.1569, allocations: 0.8001 MB / 336.6 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.157, allocations: 75.48 kB / 336.7 MB, free: 1.254 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.157, allocations: 23.95 kB / 336.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.1572, allocations: 31.91 kB / 336.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.888e-05/0.1573, allocations: 48.56 kB / 336.8 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.1574, allocations: 35.97 kB / 336.8 MB, free: 1.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002755/0.1576, allocations: 387.1 kB / 337.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1576, allocations: 0 / 337.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009442/0.1586, allocations: 0.5965 MB / 337.8 MB, free: 144 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006926/0.1593, allocations: 0.5202 MB / 338.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.1603, allocations: 0.7437 MB / 339.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1603, allocations: 0 / 339.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.1606, allocations: 224.6 kB / 339.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008561/0.1615, allocations: 376.6 kB / 339.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.1632, allocations: 1.366 MB / 341 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.1633, allocations: 193.3 kB / 341.2 MB, free: 12.69 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005285/0.1639, allocations: 287.5 kB / 341.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.164, allocations: 72.48 kB / 341.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.164, allocations: 0 / 341.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of Templates: time 0.02092/0.1849, allocations: 21.3 MB / 362.9 MB, free: 7.324 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.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.304969766177237]