Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.576/2.576, allocations: 234.6 MB / 246.8 MB, free: 14.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.827e-05/3.837e-05, allocations: 0 / 304.4 MB, free: 4.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4011, allocations: 54.63 MB / 359 MB, free: 3.188 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.5536, allocations: 79.93 MB / 439 MB, free: 1.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.5539, allocations: 63.95 kB / 439 MB, free: 0.957 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06473/0.6187, allocations: 14.33 MB / 453.4 MB, free: 2.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.668e-06/0.6188, allocations: 0 / 453.4 MB, free: 2.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001365/0.6189, allocations: 34.19 kB / 453.4 MB, free: 2.578 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.003778/0.6227, allocations: 1.384 MB / 454.8 MB, free: 1.141 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.6228, allocations: 8.031 kB / 454.8 MB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006504/0.6234, allocations: 182.5 kB / 455 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005897/0.6241, allocations: 201.6 kB / 455.2 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.6261, allocations: 0.7551 MB / 455.9 MB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.6263, allocations: 84 kB / 456 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/0.6266, allocations: 104 kB / 456.1 MB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003461/0.63, allocations: 1.259 MB / 457.4 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.871e-05/0.6301, allocations: 4 kB / 457.4 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.6303, allocations: 40 kB / 457.4 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.784e-05/0.6304, allocations: 28 kB / 457.4 MB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003549/0.6339, allocations: 1.226 MB / 458.7 MB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.6453, allocations: 3.88 MB / 462.5 MB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00454/0.6499, allocations: 1.554 MB / 464.1 MB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.6515, allocations: 0.5451 MB / 464.6 MB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.6517, allocations: 40.73 kB / 464.7 MB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/0.6518, allocations: 39.08 kB / 464.7 MB, free: 6.934 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 3.707e-06/0.6518, allocations: 4 kB / 464.7 MB, free: 6.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.003678/0.6555, allocations: 1.258 MB / 466 MB, free: 5.664 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.6556, allocations: 59.97 kB / 466 MB, free: 5.594 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002374/0.658, allocations: 1.088 MB / 467.1 MB, free: 4.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002591/0.6583, allocations: 37.7 kB / 467.2 MB, free: 4.457 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009153/0.6592, allocations: 0.7638 MB / 467.9 MB, free: 3.684 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005155/0.6597, allocations: 248.5 kB / 468.2 MB, free: 3.438 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.941e-05/0.6598, allocations: 16 kB / 468.2 MB, free: 3.422 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.66, allocations: 331.6 kB / 468.5 MB, free: 3.094 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.6614, allocations: 0.4973 MB / 469 MB, free: 2.598 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.6629, allocations: 0.5977 MB / 469.6 MB, free: 1.965 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.6645, allocations: 0.5407 MB / 470.1 MB, free: 1.426 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.6645, allocations: 0 / 470.1 MB, free: 1.426 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003537/0.668, allocations: 1.345 MB / 471.5 MB, free: 68 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.6681, allocations: 4 kB / 471.5 MB, free: 64 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.6681, allocations: 4 kB / 471.5 MB, free: 60 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.6682, allocations: 7.953 kB / 471.5 MB, free: 52 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.6694, allocations: 168 kB / 471.7 MB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/0.6695, allocations: 8 kB / 471.7 MB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/0.6701, allocations: 43.53 kB / 471.7 MB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/0.6703, allocations: 75.97 kB / 471.8 MB, free: 15.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (83): * Single equations (assignments): 83 * 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.000234/0.6705, allocations: 140.7 kB / 471.9 MB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.6709, allocations: 146.1 kB / 472.1 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004717/0.6756, allocations: 1.602 MB / 473.7 MB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.6757, allocations: 11.95 kB / 473.7 MB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.6757, allocations: 0 / 473.7 MB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.6757, allocations: 7.922 kB / 473.7 MB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006411/0.6821, allocations: 2.539 MB / 476.2 MB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.6822, allocations: 3.938 kB / 476.2 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.6834, allocations: 139.9 kB / 476.4 MB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.757e-05/0.6835, allocations: 4 kB / 476.4 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.6836, allocations: 31.94 kB / 476.4 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.538e-05/0.6836, allocations: 4 kB / 476.4 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6836, allocations: 0 / 476.4 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005342/0.689, allocations: 2.187 MB / 478.6 MB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.6894, allocations: 207.3 kB / 478.8 MB, free: 8.633 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.6896, allocations: 12 kB / 478.8 MB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005274/0.6902, allocations: 19.94 kB / 478.8 MB, free: 8.602 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.6904, allocations: 52.5 kB / 478.9 MB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/0.6906, allocations: 71.98 kB / 478.9 MB, free: 8.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002026/0.6927, allocations: 0.8719 MB / 479.8 MB, free: 7.609 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6927, allocations: 0 / 479.8 MB, free: 7.609 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001017/0.6937, allocations: 210.9 kB / 480 MB, free: 7.402 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (68): * Single equations (assignments): 68 * 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.004025/0.6978, allocations: 2.426 MB / 482.5 MB, free: 4.945 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.7, allocations: 0.9628 MB / 483.4 MB, free: 3.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.7, allocations: 0 / 483.4 MB, free: 3.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.7011, allocations: 0.4979 MB / 483.9 MB, free: 3.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008187/0.7019, allocations: 81.22 kB / 484 MB, free: 3.398 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007521/0.7095, allocations: 2.468 MB / 486.5 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/0.7111, allocations: 1.346 MB / 487.8 MB, free: 15.51 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004849/0.7116, allocations: 76.52 kB / 487.9 MB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.7127, allocations: 0.593 MB / 488.5 MB, free: 14.84 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7127, allocations: 0 / 488.5 MB, free: 14.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07828/0.791, allocations: 17.09 MB / 0.4937 GB, free: 13.81 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000286/0.7914, allocations: 150.8 kB / 0.4939 GB, free: 13.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/3.896, allocations: 0 / 0.4939 GB, free: 13.58 MB / 442.7 MB