Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) 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(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") translateModel(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 193.5 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2962/0.2962, allocations: 15.31 MB / 305.4 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.89 kB / 369.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1569, allocations: 53.62 MB / 423.4 MB, free: 14.64 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO): time 0.3399/0.4969, allocations: 47.56 MB / 471 MB, free: 33.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.09983/0.5967, allocations: 85.63 MB / 0.5436 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009553/0.6063, allocations: 127.1 kB / 0.5437 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00805/0.6144, allocations: 1.739 MB / 0.5454 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03408/0.6485, allocations: 6.304 MB / 0.5516 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04759/0.6962, allocations: 10.95 MB / 0.5623 GB, free: 7.809 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.03771/0.7339, allocations: 31.02 MB / 0.5926 GB, free: 8.691 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.6787/1.413, allocations: 26.17 MB / 0.6181 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04742/1.46, allocations: 21.72 MB / 0.6393 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04792/1.508, allocations: 19.26 MB / 0.6581 GB, free: 8.504 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.02138/1.529, allocations: 3.594 MB / 0.6616 GB, free: 8.504 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06611/1.596, allocations: 12.91 MB / 0.6742 GB, free: 7.355 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.02648/1.622, allocations: 8.24 MB / 0.6823 GB, free: 2.367 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0462/1.668, allocations: 14.22 MB / 0.6962 GB, free: 5.137 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1128/1.781, allocations: 48.16 MB / 0.7432 GB, free: 8.293 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/1.781, allocations: 4 kB / 0.7432 GB, free: 8.289 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.265e-06/1.781, allocations: 1.5 kB / 0.7432 GB, free: 8.289 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001496/1.783, allocations: 0 / 0.7432 GB, free: 8.289 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4405 * Number of variables: 4405 Notification: Performance of Generate backend data structure: time 0.125/1.908, allocations: 28.85 MB / 0.7714 GB, free: 11.61 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 9.014e-05/1.908, allocations: 12.03 kB / 0.7714 GB, free: 11.6 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03551/1.944, allocations: 4.524 MB / 0.7758 GB, free: 7.051 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04002/1.984, allocations: 13.68 MB / 0.7892 GB, free: 9.863 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003385/1.987, allocations: 2.54 MB / 0.7916 GB, free: 7.059 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01489/2.002, allocations: 1.766 MB / 0.7934 GB, free: 5.293 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5958/2.598, allocations: 40.44 MB / 0.8329 GB, free: 180.6 MB / 0.5608 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000978/2.599, allocations: 11.97 kB / 0.8329 GB, free: 180.6 MB / 0.5608 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01132/2.61, allocations: 0.6788 MB / 0.8335 GB, free: 180.1 MB / 0.5608 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006462/2.611, allocations: 417.2 kB / 0.8339 GB, free: 180.1 MB / 0.5608 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1169/2.728, allocations: 54.48 MB / 0.8871 GB, free: 150.5 MB / 0.5608 GB 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.3092/3.037, allocations: 149 MB / 1.033 GB, free: 1.871 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 1.307/4.344, allocations: 351.6 MB / 1.376 GB, free: 101.6 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04017/4.384, allocations: 23.06 MB / 1.399 GB, free: 90.39 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4775/4.861, allocations: 102.1 MB / 1.498 GB, free: 159.3 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/4.862, allocations: 149.5 kB / 1.498 GB, free: 159.3 MB / 0.5608 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02847/4.89, allocations: 5.254 MB / 1.504 GB, free: 159.2 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=1160): time 9.53e-05/4.89, allocations: 0 / 1.504 GB, free: 159.2 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1312): time 0.7038/5.594, allocations: 149.6 MB / 1.65 GB, free: 80.16 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/5.594, allocations: 189.7 kB / 1.65 GB, free: 79.96 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02341/5.618, allocations: 11.97 MB / 1.662 GB, free: 68.05 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.005503/5.623, allocations: 245.7 kB / 1.662 GB, free: 67.8 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.006253/5.629, allocations: 8.035 MB / 1.67 GB, free: 59.75 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.0107/5.64, allocations: 4.543 MB / 1.674 GB, free: 55.24 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01965/5.66, allocations: 3.798 MB / 1.678 GB, free: 51.42 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 5.352e-05/5.66, allocations: 301.1 kB / 1.678 GB, free: 51.12 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3298/5.99, allocations: 13.86 MB / 1.692 GB, free: 158.1 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03177/6.022, allocations: 19.33 MB / 1.71 GB, free: 149 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06199/6.084, allocations: 34.69 MB / 1.744 GB, free: 130.6 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003213/6.084, allocations: 54.77 kB / 1.744 GB, free: 130.6 MB / 0.5608 GB Notification: Performance of matching and sorting (n=2196) (initialization): time 0.4591/6.543, allocations: 93.15 MB / 1.835 GB, free: 79.71 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003347/6.543, allocations: 80 kB / 1.835 GB, free: 79.64 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004552/6.544, allocations: 172.6 kB / 1.836 GB, free: 79.47 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06353/6.608, allocations: 25.94 MB / 1.861 GB, free: 53.71 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0196/6.627, allocations: 4.334 MB / 1.865 GB, free: 49.38 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4711/7.098, allocations: 109 MB / 1.972 GB, free: 119.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02174/7.12, allocations: 1.335 MB / 1.973 GB, free: 118.7 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006108/7.126, allocations: 1.09 MB / 1.974 GB, free: 118.3 MB / 0.5608 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 782 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2138): * Single equations (assignments): 2135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.01855/7.145, allocations: 6.212 MB / 1.98 GB, free: 114.8 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008476/7.153, allocations: 1.233 MB / 1.981 GB, free: 114.8 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2927/7.446, allocations: 57.56 MB / 2.037 GB, free: 70.13 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001214/7.446, allocations: 140 kB / 2.038 GB, free: 70 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001427/7.446, allocations: 24.62 kB / 2.038 GB, free: 69.97 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000431/7.447, allocations: 71.72 kB / 2.038 GB, free: 69.9 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5544/8.001, allocations: 86.21 MB / 2.122 GB, free: 134.9 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001014/8.001, allocations: 5.016 kB / 2.122 GB, free: 134.9 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01484/8.016, allocations: 2.818 MB / 2.125 GB, free: 134.9 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03463/8.051, allocations: 14.35 MB / 2.139 GB, free: 133 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003736/8.055, allocations: 0.544 MB / 2.139 GB, free: 132.7 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1097/8.164, allocations: 56.53 MB / 2.194 GB, free: 105.7 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/8.164, allocations: 11.58 kB / 2.194 GB, free: 105.7 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2868/8.451, allocations: 74.67 MB / 2.267 GB, free: 39.88 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01093/8.462, allocations: 3.868 MB / 2.271 GB, free: 36.69 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005731/8.468, allocations: 336.7 kB / 2.271 GB, free: 36.36 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01379/8.482, allocations: 0.9161 MB / 2.272 GB, free: 35.47 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007171/8.489, allocations: 1.805 MB / 2.274 GB, free: 33.66 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002763/8.492, allocations: 0.549 MB / 2.275 GB, free: 33.11 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.01123/8.503, allocations: 8.23 MB / 2.283 GB, free: 24.94 MB / 0.5608 GB Notification: Performance of sort global known variables: time 4.41e-07/8.503, allocations: 0 / 2.283 GB, free: 24.94 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.2647/8.768, allocations: 7.809 MB / 2.29 GB, free: 142.5 MB / 0.5608 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 69 (solution.temperature,O2_free.logn,H2O.logn,relaxed.OxyHm[1].logn,relaxed.OxyHm[2].logn,relaxed.OxyHm[3].logn,relaxed.OxyHm[4].logn,relaxed.DeoxyHm[1].logn,relaxed.DeoxyHm[2].logn,relaxed.DeoxyHm[3].logn,relaxed.DeoxyHm[4].logn,relaxed.HmAH[1].logn,relaxed.HmAH[2].logn,relaxed.HmAH[3].logn,relaxed.HmAH[4].logn,relaxed.HmA[1].logn,relaxed.HmA[2].logn,relaxed.HmA[3].logn,relaxed.HmA[4].logn,relaxed.HmNH3[1].logn,relaxed.HmNH3[2].logn,relaxed.HmNH3[3].logn,relaxed.HmNH3[4].logn,relaxed.HmNH2[1].logn,relaxed.HmNH2[2].logn,relaxed.HmNH2[3].logn,relaxed.HmNH2[4].logn,relaxed.HmNHCOO[1].logn,relaxed.HmNHCOO[2].logn,relaxed.HmNHCOO[3].logn,relaxed.HmNHCOO[4].logn,relaxed.COHm[1].logn,relaxed.COHm[2].logn,relaxed.COHm[3].logn,relaxed.COHm[4].logn,tensed.OxyHm[1].logn,tensed.OxyHm[2].logn,tensed.OxyHm[3].logn,tensed.OxyHm[4].logn,tensed.DeoxyHm[1].logn,tensed.DeoxyHm[2].logn,tensed.DeoxyHm[3].logn,tensed.DeoxyHm[4].logn,tensed.HmAH[1].logn,tensed.HmAH[2].logn,tensed.HmAH[3].logn,tensed.HmAH[4].logn,tensed.HmA[1].logn,tensed.HmA[2].logn,tensed.HmA[3].logn,tensed.HmA[4].logn,tensed.HmNH3[1].logn,tensed.HmNH3[2].logn,tensed.HmNH3[3].logn,tensed.HmNH3[4].logn,tensed.HmNH2[1].logn,tensed.HmNH2[2].logn,tensed.HmNH2[3].logn,tensed.HmNH2[4].logn,tensed.HmNHCOO[1].logn,tensed.HmNHCOO[2].logn,tensed.HmNHCOO[3].logn,tensed.HmNHCOO[4].logn,tensed.COHm[1].logn,tensed.COHm[2].logn,tensed.COHm[3].logn,tensed.COHm[4].logn,CO2_free.logn,CO_free.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1436): * Single equations (assignments): 1433 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01268/8.78, allocations: 4.198 MB / 2.294 GB, free: 142.2 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.3311/9.111, allocations: 142.2 MB / 2.433 GB, free: 56.75 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/9.112, allocations: 0 / 2.433 GB, free: 56.75 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.04449/9.156, allocations: 17.58 MB / 2.45 GB, free: 42.05 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0194/9.175, allocations: 2.88 MB / 2.453 GB, free: 39.9 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2976/9.473, allocations: 53.61 MB / 2.506 GB, free: 133.8 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01556/9.489, allocations: 11.4 MB / 2.517 GB, free: 132.7 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.0195/9.508, allocations: 6.155 MB / 2.523 GB, free: 132.6 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007084/9.515, allocations: 1.703 MB / 2.524 GB, free: 132.6 MB / 0.5608 GB Notification: Performance of SimCode: time 7.72e-07/9.515, allocations: 0 / 2.524 GB, free: 132.6 MB / 0.5608 GB Notification: Performance of Templates: time 0.5959/10.11, allocations: 377.6 MB / 2.893 GB, free: 6.656 MB / 0.5608 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.makefile Failed to read output from testmodel.py, exit status != 0: 10.11311306618154 10.124019172 8.341166217 Traceback (most recent call last): File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./testmodel.py", line 440, in resFile = "%s_res.%s" % (conf["fileName"], outputFormat if not shared.isFMPy(fmisimulator) else 'csv') File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/shared.py", line 98, in isFMPy return 'fmpy' in fmisimulator TypeError: argument of type 'NoneType' is not iterable