Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.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.001353/0.001353, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001455/0.001455, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.51/1.51, allocations: 177.2 MB / 204.3 MB, free: 9.164 MB / 190.1 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.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.206e-06/3.206e-06, allocations: 0.6562 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.682e-05/4.003e-05, allocations: 5.656 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003786/0.003826, allocations: 1.637 MB / 326.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004958/0.004321, allocations: 170.9 kB / 326.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.134e-05/0.004403, allocations: 9.594 kB / 326.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.933e-05/0.004462, allocations: 5.672 kB / 326.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.004601, allocations: 10.67 kB / 326.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002894/0.00489, allocations: 51.36 kB / 326.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.005033, allocations: 60.3 kB / 327 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.005186, allocations: 29.7 kB / 327 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.005274, allocations: 35.55 kB / 327.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.721e-05/0.005332, allocations: 25.72 kB / 327.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.005359, allocations: 5.219 kB / 327.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.005376, allocations: 6.156 kB / 327.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.542e-05/0.005441, allocations: 24.19 kB / 327.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.373e-05/0.005485, allocations: 18.44 kB / 327.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.005657, allocations: 72.3 kB / 327.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.005662, allocations: 1.984 kB / 327.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.005663, allocations: 0 / 327.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.005669, allocations: 0 / 327.2 MB, free: 15.15 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005326/0.006201, allocations: 313.5 kB / 327.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.006243, allocations: 9.062 kB / 327.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.006291, allocations: 17.53 kB / 327.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.006532, allocations: 141.7 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.006557, allocations: 3.5 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.006576, allocations: 8.906 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.006983, allocations: 185.3 kB / 327.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.006996, allocations: 5.219 kB / 327.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.00701, allocations: 1.469 kB / 327.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.007019, allocations: 1.531 kB / 327.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.007145, allocations: 46.64 kB / 327.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.007549, allocations: 308.3 kB / 328.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.007765, allocations: 106.4 kB / 328.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.007888, allocations: 54.84 kB / 328.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.007919, allocations: 3.188 kB / 328.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.007962, allocations: 41.84 kB / 328.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/0.007963, allocations: 3.938 kB / 328.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004074/0.008371, allocations: 132.8 kB / 328.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.008475, allocations: 115.2 kB / 328.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.008631, allocations: 139.2 kB / 328.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.008658, allocations: 30.98 kB / 328.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.008742, allocations: 87.27 kB / 328.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.008758, allocations: 9.25 kB / 328.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.008806, allocations: 25.69 kB / 329 MB, free: 13.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.008982, allocations: 314.6 kB / 329.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.439e-05/0.009016, allocations: 3.297 kB / 329.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.452e-05/0.009061, allocations: 21.25 kB / 329.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.774e-05/0.009129, allocations: 27.45 kB / 329.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.009131, allocations: 0 / 329.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001082/0.009239, allocations: 47.59 kB / 329.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.009258, allocations: 9.469 kB / 329.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.009264, allocations: 4.734 kB / 329.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.009281, allocations: 0.875 kB / 329.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.338e-05/0.009294, allocations: 5.656 kB / 329.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.0093, allocations: 0.6562 kB / 329.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.009332, allocations: 7.234 kB / 329.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.009342, allocations: 4 kB / 329.4 MB, free: 13.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.009471, allocations: 126.5 kB / 329.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.009638, allocations: 85.17 kB / 329.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.009685, allocations: 17.47 kB / 329.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.009687, allocations: 2.906 kB / 329.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.009695, allocations: 1.812 kB / 329.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.009701, allocations: 0.8438 kB / 329.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.009943, allocations: 123.1 kB / 329.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.009945, allocations: 1.859 kB / 329.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.712e-05/0.009962, allocations: 7.141 kB / 329.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.009966, allocations: 6.156 kB / 329.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.009984, allocations: 9.25 kB / 329.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.009986, allocations: 1.281 kB / 329.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.00999, allocations: 2.688 kB / 329.8 MB, free: 12.84 MB / 302.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7979:5-7979:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000503/0.01049, allocations: 333.9 kB / 330.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.01055, allocations: 23.23 kB / 330.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.01057, allocations: 7.328 kB / 330.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.01067, allocations: 8.969 kB / 330.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.315e-05/0.01071, allocations: 3.266 kB / 330.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.01072, allocations: 4.109 kB / 330.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.758e-05/0.01082, allocations: 108.7 kB / 330.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 6e-08/0.01082, allocations: 0 / 330.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.01109, allocations: 6.5 kB / 330.3 MB, free: 12.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001586/0.01125, allocations: 105.3 kB / 330.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.01142, allocations: 45.36 kB / 330.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01142, allocations: 0 / 330.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.814e-05/0.01146, allocations: 10.92 kB / 330.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004851/0.01194, allocations: 54.34 kB / 330.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005206/0.01246, allocations: 209.6 kB / 330.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.0126, allocations: 92.55 kB / 330.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.511e-05/0.01262, allocations: 7.781 kB / 330.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.01266, allocations: 15.47 kB / 330.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.01266, allocations: 0 / 330.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Templates: time 0.003967/0.01663, allocations: 0.7534 MB / 331.6 MB, free: 11.93 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.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: 4.300978150218725]