Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.575/2.575, allocations: 234.6 MB / 246.8 MB, free: 14.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.536e-05/4.537e-05, allocations: 4 kB / 304.4 MB, free: 4.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4762/0.4763, allocations: 54.62 MB / 359 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1775/0.6539, allocations: 79.99 MB / 439 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.6542, allocations: 67.25 kB / 439.1 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06353/0.7177, allocations: 14.55 MB / 453.6 MB, free: 2.223 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7178, allocations: 1.781 kB / 453.6 MB, free: 2.223 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001276/0.7179, allocations: 32 kB / 453.7 MB, free: 2.191 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.003587/0.7215, allocations: 1.422 MB / 455.1 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.7216, allocations: 8.031 kB / 455.1 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006274/0.7223, allocations: 199.3 kB / 455.3 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004747/0.7227, allocations: 197.5 kB / 455.5 MB, free: 316 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.7247, allocations: 0.7706 MB / 456.3 MB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.7249, allocations: 86.16 kB / 456.3 MB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002612/0.7251, allocations: 112 kB / 456.5 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003621/0.7288, allocations: 1.359 MB / 457.8 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/0.7289, allocations: 4 kB / 457.8 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.729, allocations: 40 kB / 457.9 MB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.744e-05/0.7291, allocations: 47.98 kB / 457.9 MB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003859/0.733, allocations: 1.327 MB / 459.2 MB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.7439, allocations: 4.088 MB / 463.3 MB, free: 8.242 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/0.7485, allocations: 1.575 MB / 464.9 MB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.7501, allocations: 0.5576 MB / 465.4 MB, free: 6.086 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.7504, allocations: 32.72 kB / 465.5 MB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.7504, allocations: 43.12 kB / 465.5 MB, free: 6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 4.228e-06/0.7504, allocations: 1.969 kB / 465.5 MB, free: 6 MB / 394.7 MB Notification: Performance of matching and sorting (n=70): time 0.003855/0.7543, allocations: 1.286 MB / 466.8 MB, free: 4.707 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.7544, allocations: 81.67 kB / 466.9 MB, free: 4.609 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/0.7573, allocations: 1.166 MB / 468.1 MB, free: 3.438 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002808/0.7576, allocations: 33.7 kB / 468.1 MB, free: 3.398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.7586, allocations: 0.8487 MB / 468.9 MB, free: 2.539 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004775/0.7591, allocations: 244.4 kB / 469.2 MB, free: 2.297 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.266e-05/0.7593, allocations: 20 kB / 469.2 MB, free: 2.277 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.7595, allocations: 337.9 kB / 469.5 MB, free: 1.941 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.7609, allocations: 0.5289 MB / 470.1 MB, free: 1.414 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.7626, allocations: 0.7806 MB / 470.8 MB, free: 0.5234 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.7644, allocations: 0.607 MB / 471.4 MB, free: 15.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.7644, allocations: 4 kB / 471.4 MB, free: 15.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004125/0.7686, allocations: 1.521 MB / 473 MB, free: 14.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.7687, allocations: 11.95 kB / 473 MB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.401e-05/0.7687, allocations: 11.98 kB / 473 MB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.327e-05/0.7688, allocations: 16 kB / 473 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.7703, allocations: 203.7 kB / 473.2 MB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.531e-05/0.7704, allocations: 19.94 kB / 473.2 MB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007812/0.7712, allocations: 79.11 kB / 473.3 MB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/0.7714, allocations: 92.3 kB / 473.4 MB, free: 13.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0002749/0.7717, allocations: 164.5 kB / 473.6 MB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/0.7721, allocations: 154.1 kB / 473.7 MB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004962/0.7771, allocations: 1.63 MB / 475.3 MB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.7772, allocations: 12.03 kB / 475.3 MB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.7772, allocations: 0 / 475.3 MB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.7772, allocations: 7.984 kB / 475.4 MB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006282/0.7835, allocations: 2.579 MB / 477.9 MB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.7836, allocations: 4 kB / 477.9 MB, free: 9.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.7848, allocations: 139.8 kB / 478.1 MB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.98e-05/0.7849, allocations: 7.953 kB / 478.1 MB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.785, allocations: 27.98 kB / 478.1 MB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.137e-05/0.785, allocations: 4 kB / 478.1 MB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.785, allocations: 4 kB / 478.1 MB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005291/0.7903, allocations: 2.298 MB / 480.4 MB, free: 6.828 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003787/0.7908, allocations: 215.1 kB / 480.6 MB, free: 6.598 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/0.791, allocations: 12 kB / 480.6 MB, free: 6.586 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.7915, allocations: 12 kB / 480.6 MB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.7918, allocations: 64.42 kB / 480.7 MB, free: 6.512 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.792, allocations: 71.98 kB / 480.8 MB, free: 6.441 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002118/0.7941, allocations: 0.9055 MB / 481.7 MB, free: 5.539 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7941, allocations: 4 kB / 481.7 MB, free: 5.535 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001242/0.7954, allocations: 234.8 kB / 481.9 MB, free: 5.305 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * 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.004082/0.7995, allocations: 2.605 MB / 484.5 MB, free: 2.656 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.8017, allocations: 1.034 MB / 485.6 MB, free: 1.629 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8017, allocations: 0.8125 kB / 485.6 MB, free: 1.629 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009168/0.8026, allocations: 0.5057 MB / 486.1 MB, free: 1.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008724/0.8035, allocations: 81.86 kB / 486.1 MB, free: 1.035 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007468/0.811, allocations: 2.578 MB / 488.7 MB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/0.8126, allocations: 1.367 MB / 490.1 MB, free: 13 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000848/0.8135, allocations: 132.8 kB / 490.2 MB, free: 12.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/0.8149, allocations: 0.6203 MB / 490.8 MB, free: 12.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/0.8149, allocations: 0 / 490.8 MB, free: 12.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06267/0.8776, allocations: 18.12 MB / 0.497 GB, free: 10.18 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002992/0.8779, allocations: 142.8 kB / 0.4972 GB, free: 9.965 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.279/4.157, allocations: 0 / 0.4972 GB, free: 9.965 MB / 442.7 MB