Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.416/2.416, allocations: 234.6 MB / 246.8 MB, free: 14.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.418e-05, allocations: 4 kB / 304.4 MB, free: 4.914 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3935, allocations: 54.62 MB / 359 MB, free: 2.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.5413, allocations: 79.33 MB / 438.4 MB, free: 1.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.5417, allocations: 63.97 kB / 438.4 MB, free: 1.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05449/0.5962, allocations: 12.31 MB / 450.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5962, allocations: 0 / 450.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.446e-05/0.5963, allocations: 32 kB / 450.8 MB, free: 5.105 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003532/0.5998, allocations: 1.36 MB / 452.1 MB, free: 3.695 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.5999, allocations: 8.031 kB / 452.1 MB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006161/0.6006, allocations: 186.6 kB / 452.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004257/0.601, allocations: 189.6 kB / 452.5 MB, free: 3.305 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000795/0.6018, allocations: 0.5001 MB / 453 MB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.602, allocations: 78 kB / 453.1 MB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003219/0.6023, allocations: 107.9 kB / 453.2 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/0.6055, allocations: 1.133 MB / 454.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.204e-05/0.6056, allocations: 0 / 454.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001439/0.6057, allocations: 36 kB / 454.4 MB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.6059, allocations: 62.16 kB / 454.4 MB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003949/0.6098, allocations: 1.294 MB / 455.7 MB, free: 16 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.6199, allocations: 3.069 MB / 458.8 MB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.6229, allocations: 1.102 MB / 459.9 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.6245, allocations: 0.5412 MB / 460.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.6247, allocations: 32.69 kB / 460.5 MB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.6247, allocations: 43.06 kB / 460.5 MB, free: 11.13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.787e-06/0.6247, allocations: 0 / 460.5 MB, free: 11.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.003304/0.6281, allocations: 1.247 MB / 461.7 MB, free: 9.871 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.6282, allocations: 59.97 kB / 461.8 MB, free: 9.801 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/0.6304, allocations: 1.073 MB / 462.9 MB, free: 8.719 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002151/0.6307, allocations: 33.7 kB / 462.9 MB, free: 8.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008568/0.6315, allocations: 0.7858 MB / 463.7 MB, free: 7.883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004097/0.632, allocations: 236.6 kB / 463.9 MB, free: 7.648 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.323e-05/0.6321, allocations: 16 kB / 463.9 MB, free: 7.633 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6323, allocations: 337.9 kB / 464.3 MB, free: 7.297 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.6336, allocations: 0.5129 MB / 464.8 MB, free: 6.781 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.6352, allocations: 0.6772 MB / 465.5 MB, free: 6.031 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.6367, allocations: 0.5806 MB / 466 MB, free: 5.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.6368, allocations: 4 kB / 466.1 MB, free: 5.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003738/0.6405, allocations: 1.427 MB / 467.5 MB, free: 4.008 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.6406, allocations: 8 kB / 467.5 MB, free: 4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.6406, allocations: 7.984 kB / 467.5 MB, free: 3.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.756e-05/0.6407, allocations: 16 kB / 467.5 MB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.6422, allocations: 208.1 kB / 467.7 MB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.32e-05/0.6422, allocations: 19.94 kB / 467.7 MB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000778/0.643, allocations: 87.25 kB / 467.8 MB, free: 3.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.6433, allocations: 87.97 kB / 467.9 MB, free: 3.582 MB / 394.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0003233/0.6436, allocations: 165.2 kB / 468.1 MB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.6439, allocations: 130.3 kB / 468.2 MB, free: 3.289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004635/0.6485, allocations: 1.594 MB / 469.8 MB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.6486, allocations: 8 kB / 469.8 MB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.6486, allocations: 0 / 469.8 MB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.6487, allocations: 3.984 kB / 469.8 MB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006021/0.6547, allocations: 2.499 MB / 472.3 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.6548, allocations: 7.938 kB / 472.3 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/0.6564, allocations: 159.8 kB / 472.5 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.389e-05/0.6565, allocations: 0 / 472.5 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.6566, allocations: 27.98 kB / 472.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/0.6566, allocations: 4 kB / 472.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.6566, allocations: 0 / 472.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005314/0.662, allocations: 2.172 MB / 474.7 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.6624, allocations: 195.2 kB / 474.9 MB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002593/0.6626, allocations: 15.98 kB / 474.9 MB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.6632, allocations: 27.98 kB / 474.9 MB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.6635, allocations: 60.48 kB / 475 MB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/0.6637, allocations: 71.98 kB / 475 MB, free: 12.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001965/0.6656, allocations: 0.8467 MB / 475.9 MB, free: 11.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.12e-07/0.6657, allocations: 3.938 kB / 475.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001069/0.6668, allocations: 214.9 kB / 476.1 MB, free: 11.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.003989/0.6708, allocations: 2.414 MB / 478.5 MB, free: 8.828 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.6733, allocations: 0.9979 MB / 479.5 MB, free: 7.832 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.6733, allocations: 4 kB / 479.5 MB, free: 7.828 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.6745, allocations: 0.5057 MB / 480 MB, free: 7.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.6751, allocations: 57.14 kB / 480.1 MB, free: 7.262 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.6824, allocations: 2.482 MB / 482.5 MB, free: 4.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/0.6839, allocations: 1.335 MB / 483.9 MB, free: 3.363 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008039/0.6848, allocations: 120.3 kB / 484 MB, free: 3.246 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.6859, allocations: 0.5696 MB / 484.6 MB, free: 2.676 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6859, allocations: 0 / 484.6 MB, free: 2.676 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0609/0.7468, allocations: 16.7 MB / 0.4895 GB, free: 2.012 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003033/0.7472, allocations: 150.8 kB / 0.4897 GB, free: 1.781 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.097/3.844, allocations: 4 kB / 0.4897 GB, free: 1.777 MB / 426.7 MB