Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.377/2.377, allocations: 234.6 MB / 246.8 MB, free: 14.05 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.886e-05/4.893e-05, allocations: 4 kB / 304.4 MB, free: 4.906 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4345, allocations: 54.62 MB / 359 MB, free: 3.211 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1701/0.6046, allocations: 91.27 MB / 450.3 MB, free: 5.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.605, allocations: 75.95 kB / 450.4 MB, free: 5.602 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7127/1.318, allocations: 95.69 MB / 0.5333 GB, free: 79.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.318, allocations: 0.6562 kB / 0.5333 GB, free: 79.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001121/1.319, allocations: 193.4 kB / 0.5335 GB, free: 79.52 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1685 * Number of variables: 1685 Notification: Performance of Generate backend data structure: time 0.02233/1.341, allocations: 6.295 MB / 0.5396 GB, free: 76.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/1.341, allocations: 8.438 kB / 0.5396 GB, free: 76.69 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004286/1.346, allocations: 0.9145 MB / 0.5405 GB, free: 76.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00468/1.35, allocations: 0.9991 MB / 0.5415 GB, free: 76.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/1.365, allocations: 4.374 MB / 0.5458 GB, free: 75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000958/1.366, allocations: 0.5286 MB / 0.5463 GB, free: 74.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003004/1.369, allocations: 0.6579 MB / 0.5469 GB, free: 74.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02683/1.396, allocations: 7.453 MB / 0.5542 GB, free: 73.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002739/1.396, allocations: 13.19 kB / 0.5542 GB, free: 73.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002075/1.398, allocations: 279.5 kB / 0.5545 GB, free: 73.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/1.398, allocations: 168.8 kB / 0.5546 GB, free: 73.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01894/1.417, allocations: 6.151 MB / 0.5606 GB, free: 73.81 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06142/1.479, allocations: 25.69 MB / 0.5857 GB, free: 61.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/1.491, allocations: 4.831 MB / 0.5904 GB, free: 59.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005433/1.496, allocations: 2.184 MB / 0.5926 GB, free: 58.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004491/1.497, allocations: 90.19 kB / 0.5927 GB, free: 58.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.018e-05/1.497, allocations: 63.75 kB / 0.5927 GB, free: 58.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 5.841e-06/1.497, allocations: 0 / 0.5927 GB, free: 58.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.01281/1.51, allocations: 5.027 MB / 0.5976 GB, free: 56.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/1.51, allocations: 0.5866 MB / 0.5982 GB, free: 56.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/1.52, allocations: 4.617 MB / 0.6027 GB, free: 54.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.522, allocations: 82.42 kB / 0.6028 GB, free: 54.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003736/1.525, allocations: 3.99 MB / 0.6067 GB, free: 51.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001955/1.527, allocations: 0.9286 MB / 0.6076 GB, free: 50.61 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005294/1.528, allocations: 60.44 kB / 0.6077 GB, free: 50.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002293/1.528, allocations: 423.5 kB / 0.6081 GB, free: 50.21 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005606/1.534, allocations: 2.157 MB / 0.6102 GB, free: 49.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006555/1.54, allocations: 2.959 MB / 0.6131 GB, free: 47.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006356/1.547, allocations: 2.376 MB / 0.6154 GB, free: 46.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.178e-05/1.547, allocations: 5.75 kB / 0.6154 GB, free: 46.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01658/1.564, allocations: 5.773 MB / 0.621 GB, free: 44.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001829/1.565, allocations: 9.405 MB / 0.6302 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.424e-05/1.566, allocations: 17.88 kB / 0.6302 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.622e-05/1.566, allocations: 35.47 kB / 0.6303 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006846/1.572, allocations: 0.8469 MB / 0.6311 GB, free: 34.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.131e-05/1.573, allocations: 43.11 kB / 0.6311 GB, free: 34.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005936/1.579, allocations: 460.8 kB / 0.6316 GB, free: 33.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001482/1.58, allocations: 274.1 kB / 0.6318 GB, free: 33.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/1.58, allocations: 4 kB / 0.6318 GB, free: 33.44 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01483/1.595, allocations: 5.093 MB / 0.6368 GB, free: 28.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/1.595, allocations: 16 kB / 0.6368 GB, free: 28.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.356e-05/1.595, allocations: 36 kB / 0.6369 GB, free: 28.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005875/1.601, allocations: 0.7144 MB / 0.6376 GB, free: 28.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-05/1.601, allocations: 45.88 kB / 0.6376 GB, free: 28.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004859/1.606, allocations: 316.5 kB / 0.6379 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001341/1.607, allocations: 274.4 kB / 0.6382 GB, free: 27.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 41 (Service_Sector_Investment1.Service_Capital.Integrator1.local_reset,NR_Resource_Utilization1.Res_Tech_NRTD.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth3.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth2.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth1.Integrator1.local_reset,NR_Resource_Utilization1.NR_Resources.Integrator1.local_reset,Life_Expectancy1.Eff_Hlth_Serv_PC.Smooth_of_Input.Integrator1.local_reset,Land_Fertility1.Yield_Tech_LYTD.Integrator1.local_reset,Land_Fertility1.Land_Fertility.Integrator1.local_reset,Labor_Utilization1.Labor_Util_Fr_Del.Integrator1.local_reset,Industrial_Investment1.Industrial_Capital.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Human_Fertility1.Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth3.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth2.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth1.Integrator1.local_reset,Food_Production1.Perc_Food_Ratio.Integrator1.local_reset,Food_Production1.Agr_Inp.Integrator1.local_reset,Arable_Land_Dynamics1.Urban_Ind_Land.Integrator1.local_reset,Arable_Land_Dynamics1.Pot_Arable_Land.Integrator1.local_reset,Arable_Land_Dynamics1.Arable_Land.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth3.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth2.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth1.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Tech_PTD.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth3.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth2.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth1.Integrator1.local_reset,Pollution_Dynamics1.Pers_Pollution.Integrator1.local_reset,Population_Dynamics1.Pop_65plus.Integrator1.local_reset,Population_Dynamics1.Pop_45_64.Integrator1.local_reset,Population_Dynamics1.Pop_15_44.Integrator1.local_reset,Population_Dynamics1.Pop_0_14.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (388): * Single equations (assignments): 388 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001336/1.609, allocations: 320.9 kB / 0.6385 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001988/1.611, allocations: 0.5784 MB / 0.639 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/1.63, allocations: 6.01 MB / 0.6449 GB, free: 21.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.108e-05/1.631, allocations: 28 kB / 0.6449 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.631, allocations: 3.953 kB / 0.6449 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-05/1.631, allocations: 18.81 kB / 0.6449 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03253/1.663, allocations: 11.27 MB / 0.656 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/1.663, allocations: 10.22 kB / 0.656 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006811/1.67, allocations: 0.6929 MB / 0.6566 GB, free: 12.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.273e-05/1.67, allocations: 8 kB / 0.6566 GB, free: 12.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009559/1.671, allocations: 110.2 kB / 0.6567 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.93e-05/1.671, allocations: 8 kB / 0.6568 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.671, allocations: 4 kB / 0.6568 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02153/1.693, allocations: 8.602 MB / 0.6652 GB, free: 4.391 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004344/1.697, allocations: 1.203 MB / 0.6663 GB, free: 3.301 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00232/1.7, allocations: 71.89 kB / 0.6664 GB, free: 3.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005078/1.705, allocations: 277.2 kB / 0.6667 GB, free: 3.016 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001291/1.706, allocations: 206.6 kB / 0.6669 GB, free: 2.879 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008349/1.707, allocations: 225.5 kB / 0.6671 GB, free: 2.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01091/1.718, allocations: 3.652 MB / 0.6706 GB, free: 15.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.114e-06/1.718, allocations: 0 / 0.6706 GB, free: 15.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01085/1.729, allocations: 2.293 MB / 0.6729 GB, free: 13.26 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 41 (Population_Dynamics1.Pop_0_14.Integrator1.y,Population_Dynamics1.Pop_15_44.Integrator1.y,Population_Dynamics1.Pop_45_64.Integrator1.y,Population_Dynamics1.Pop_65plus.Integrator1.y,Pollution_Dynamics1.Pers_Pollution.Integrator1.y,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth1.Integrator1.y,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth2.Integrator1.y,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth3.Integrator1.y,Pollution_Dynamics1.PPoll_Tech_PTD.Integrator1.y,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth1.Integrator1.y,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth2.Integrator1.y,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth3.Integrator1.y,Arable_Land_Dynamics1.Arable_Land.Integrator1.y,Arable_Land_Dynamics1.Pot_Arable_Land.Integrator1.y,Arable_Land_Dynamics1.Urban_Ind_Land.Integrator1.y,Food_Production1.Agr_Inp.Integrator1.y,Food_Production1.Perc_Food_Ratio.Integrator1.y,Food_Production1.P_Land_Yield_Fact_2.Smooth1.Integrator1.y,Food_Production1.P_Land_Yield_Fact_2.Smooth2.Integrator1.y,Food_Production1.P_Land_Yield_Fact_2.Smooth3.Integrator1.y,Human_Fertility1.Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.y,Human_Fertility1.Del_Ind_Out_PC.Smooth1.Integrator1.y,Human_Fertility1.Del_Ind_Out_PC.Smooth2.Integrator1.y,Human_Fertility1.Del_Ind_Out_PC.Smooth3.Integrator1.y,Human_Fertility1.Perc_Life_Expectancy.Smooth1.Integrator1.y,Human_Fertility1.Perc_Life_Expectancy.Smooth2.Integrator1.y,Human_Fertility1.Perc_Life_Expectancy.Smooth3.Integrator1.y,Human_Fertility1.Fert_Cont_Facil_PC.Smooth1.Integrator1.y,Human_Fertility1.Fert_Cont_Facil_PC.Smooth2.Integrator1.y,Human_Fertility1.Fert_Cont_Facil_PC.Smooth3.Integrator1.y,Industrial_Investment1.Industrial_Capital.Integrator1.y,Labor_Utilization1.Labor_Util_Fr_Del.Integrator1.y,Land_Fertility1.Land_Fertility.Integrator1.y,Land_Fertility1.Yield_Tech_LYTD.Integrator1.y,Life_Expectancy1.Eff_Hlth_Serv_PC.Smooth_of_Input.Integrator1.y,NR_Resource_Utilization1.NR_Resources.Integrator1.y,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth1.Integrator1.y,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth2.Integrator1.y,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth3.Integrator1.y,NR_Resource_Utilization1.Res_Tech_NRTD.Integrator1.y,Service_Sector_Investment1.Service_Capital.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (268): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0184/1.747, allocations: 7.949 MB / 0.6806 GB, free: 5.676 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02299/1.77, allocations: 6.763 MB / 0.6873 GB, free: 15.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/1.77, allocations: 0 / 0.6873 GB, free: 15.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007339/1.778, allocations: 2.037 MB / 0.6892 GB, free: 13.78 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007716/1.785, allocations: 0.5876 MB / 0.6898 GB, free: 13.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04359/1.829, allocations: 12.62 MB / 0.7021 GB, free: 2.102 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4086/2.238, allocations: 4.069 MB / 0.7061 GB, free: 100.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0103/2.248, allocations: 1.05 MB / 0.7071 GB, free: 100.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00757/2.256, allocations: 3.433 MB / 0.7105 GB, free: 100.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.643e-06/2.256, allocations: 0 / 0.7105 GB, free: 100.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2533/2.509, allocations: 107.8 MB / 0.8158 GB, free: 55.48 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/2.509, allocations: 154.6 kB / 0.8159 GB, free: 55.26 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.371/10.88, allocations: 0 / 0.8159 GB, free: 55.26 MB / 490.7 MB