Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Scenario_9,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Scenario_9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.52/2.52, allocations: 234.6 MB / 246.8 MB, free: 14.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.263e-05/5.305e-05, allocations: 7.984 kB / 304.4 MB, free: 4.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 54.63 MB / 359 MB, free: 2.824 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.5807, allocations: 91.27 MB / 450.3 MB, free: 5.562 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.581, allocations: 75.95 kB / 450.4 MB, free: 5.488 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7207/1.302, allocations: 95.67 MB / 0.5333 GB, free: 79.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.302, allocations: 5.188 kB / 0.5333 GB, free: 79.31 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001136/1.303, allocations: 191 kB / 0.5335 GB, free: 79.3 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.02344/1.326, allocations: 6.295 MB / 0.5396 GB, free: 76.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/1.326, allocations: 8.781 kB / 0.5396 GB, free: 76.46 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00459/1.331, allocations: 0.9171 MB / 0.5405 GB, free: 76.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005241/1.336, allocations: 0.9984 MB / 0.5415 GB, free: 75.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01529/1.352, allocations: 4.371 MB / 0.5457 GB, free: 74.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009277/1.353, allocations: 0.5322 MB / 0.5463 GB, free: 74.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002796/1.356, allocations: 0.6549 MB / 0.5469 GB, free: 74.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/1.383, allocations: 7.454 MB / 0.5542 GB, free: 73.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002924/1.383, allocations: 14.72 kB / 0.5542 GB, free: 73.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/1.385, allocations: 276.4 kB / 0.5545 GB, free: 73.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/1.386, allocations: 167.8 kB / 0.5546 GB, free: 73.61 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/1.405, allocations: 6.155 MB / 0.5606 GB, free: 73.58 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05935/1.465, allocations: 25.69 MB / 0.5857 GB, free: 61.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/1.476, allocations: 4.841 MB / 0.5904 GB, free: 59.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005544/1.482, allocations: 2.182 MB / 0.5926 GB, free: 58.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004341/1.482, allocations: 80.55 kB / 0.5927 GB, free: 58.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/1.483, allocations: 70.62 kB / 0.5927 GB, free: 58.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 6.362e-06/1.483, allocations: 0 / 0.5927 GB, free: 58.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.01426/1.497, allocations: 5.031 MB / 0.5976 GB, free: 56.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002029/1.497, allocations: 0.5883 MB / 0.5982 GB, free: 56.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0121/1.509, allocations: 4.62 MB / 0.6027 GB, free: 54.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001179/1.51, allocations: 75.2 kB / 0.6028 GB, free: 54.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004467/1.515, allocations: 3.992 MB / 0.6067 GB, free: 51.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001892/1.517, allocations: 0.9252 MB / 0.6076 GB, free: 50.61 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004875/1.517, allocations: 62.25 kB / 0.6077 GB, free: 50.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002415/1.518, allocations: 421.1 kB / 0.6081 GB, free: 50.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005788/1.523, allocations: 2.156 MB / 0.6102 GB, free: 49.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006709/1.53, allocations: 2.963 MB / 0.6131 GB, free: 47.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006258/1.537, allocations: 2.375 MB / 0.6154 GB, free: 46.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.126e-05/1.537, allocations: 7.938 kB / 0.6154 GB, free: 46.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01769/1.554, allocations: 5.764 MB / 0.621 GB, free: 44.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001942/1.556, allocations: 9.399 MB / 0.6302 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.445e-05/1.556, allocations: 18.38 kB / 0.6302 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-05/1.557, allocations: 36.12 kB / 0.6302 GB, free: 34.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007075/1.564, allocations: 0.8519 MB / 0.6311 GB, free: 34.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.184e-05/1.564, allocations: 49.81 kB / 0.6311 GB, free: 33.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005888/1.57, allocations: 460.8 kB / 0.6316 GB, free: 33.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/1.571, allocations: 270.8 kB / 0.6318 GB, free: 33.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.571, allocations: 4 kB / 0.6318 GB, free: 33.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01466/1.586, allocations: 5.091 MB / 0.6368 GB, free: 28.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/1.586, allocations: 16 kB / 0.6368 GB, free: 28.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.546e-05/1.586, allocations: 36.91 kB / 0.6368 GB, free: 28.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005881/1.592, allocations: 0.7208 MB / 0.6376 GB, free: 28.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.823e-05/1.592, allocations: 43.62 kB / 0.6376 GB, free: 28.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004905/1.597, allocations: 314 kB / 0.6379 GB, free: 27.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/1.598, allocations: 264.7 kB / 0.6381 GB, free: 27.62 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.001634/1.6, allocations: 336.2 kB / 0.6385 GB, free: 27.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002313/1.602, allocations: 0.5784 MB / 0.639 GB, free: 26.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02102/1.623, allocations: 6.008 MB / 0.6449 GB, free: 21.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.911e-05/1.623, allocations: 24 kB / 0.6449 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/1.624, allocations: 7.953 kB / 0.6449 GB, free: 21.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-05/1.624, allocations: 10.69 kB / 0.6449 GB, free: 21.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03426/1.658, allocations: 11.28 MB / 0.656 GB, free: 12.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.658, allocations: 0 / 0.656 GB, free: 12.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006685/1.665, allocations: 0.695 MB / 0.6566 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.051e-05/1.665, allocations: 11.94 kB / 0.6566 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008564/1.666, allocations: 118.3 kB / 0.6568 GB, free: 11.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.847e-05/1.666, allocations: 8 kB / 0.6568 GB, free: 11.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.666, allocations: 0 / 0.6568 GB, free: 11.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/1.686, allocations: 8.6 MB / 0.6652 GB, free: 4.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004338/1.69, allocations: 1.2 MB / 0.6663 GB, free: 3.184 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001927/1.692, allocations: 67.95 kB / 0.6664 GB, free: 3.117 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004887/1.697, allocations: 282.4 kB / 0.6667 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00128/1.698, allocations: 209.6 kB / 0.6669 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005889/1.699, allocations: 217.9 kB / 0.6671 GB, free: 2.566 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01165/1.71, allocations: 3.712 MB / 0.6707 GB, free: 15.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.71, allocations: 0 / 0.6707 GB, free: 15.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01037/1.721, 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.01804/1.739, allocations: 7.954 MB / 0.6807 GB, free: 5.676 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01889/1.758, allocations: 6.761 MB / 0.6873 GB, free: 15.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/1.758, allocations: 0 / 0.6873 GB, free: 15.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004995/1.763, allocations: 2.039 MB / 0.6893 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.005751/1.769, allocations: 0.5851 MB / 0.6899 GB, free: 13.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04188/1.811, allocations: 12.62 MB / 0.7022 GB, free: 2.102 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4119/2.223, allocations: 4.054 MB / 0.7062 GB, free: 100.3 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009816/2.233, allocations: 1.05 MB / 0.7072 GB, free: 100.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007685/2.24, allocations: 3.427 MB / 0.7105 GB, free: 100.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.964e-06/2.24, allocations: 4.844 kB / 0.7105 GB, free: 100.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2545/2.495, allocations: 107.8 MB / 0.8158 GB, free: 55.12 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002593/2.495, allocations: 146.7 kB / 0.816 GB, free: 54.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.938/11.43, allocations: 0 / 0.816 GB, free: 54.9 MB / 490.7 MB