Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.424/2.424, allocations: 234.6 MB / 246.8 MB, free: 14.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.31e-05, allocations: 4 kB / 304.4 MB, free: 4.914 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.393, allocations: 54.62 MB / 359 MB, free: 3.188 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.188/0.5811, allocations: 80.02 MB / 439.1 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.5814, allocations: 63.97 kB / 439.1 MB, free: 0.875 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06707/0.6485, allocations: 14.42 MB / 453.5 MB, free: 2.422 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.6486, allocations: 5.781 kB / 453.5 MB, free: 2.418 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001242/0.6487, allocations: 32 kB / 453.6 MB, free: 2.387 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.003347/0.6521, allocations: 1.398 MB / 455 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.6522, allocations: 12.03 kB / 455 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006014/0.6528, allocations: 182.6 kB / 455.2 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000483/0.6533, allocations: 197.5 kB / 455.3 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.6552, allocations: 0.7672 MB / 456.1 MB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.6554, allocations: 78.14 kB / 456.2 MB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002631/0.6556, allocations: 111.9 kB / 456.3 MB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00353/0.6592, allocations: 1.268 MB / 457.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.298e-05/0.6593, allocations: 4 kB / 457.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.6595, allocations: 44 kB / 457.6 MB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.989e-05/0.6595, allocations: 32 kB / 457.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003854/0.6634, allocations: 1.23 MB / 458.9 MB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.6739, allocations: 3.912 MB / 462.8 MB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00428/0.6782, allocations: 1.582 MB / 464.4 MB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.6797, allocations: 0.5535 MB / 464.9 MB, free: 6.719 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.6799, allocations: 24.98 kB / 464.9 MB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001696/0.6816, allocations: 0.6642 MB / 465.6 MB, free: 6.016 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 4.999e-06/0.6816, allocations: 1.969 kB / 465.6 MB, free: 6.016 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.003541/0.6852, allocations: 1.302 MB / 466.9 MB, free: 4.703 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.6853, allocations: 60.19 kB / 467 MB, free: 4.633 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/0.6881, allocations: 1.093 MB / 468.1 MB, free: 3.535 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002473/0.6884, allocations: 37.7 kB / 468.1 MB, free: 3.492 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.6895, allocations: 0.7832 MB / 468.9 MB, free: 2.699 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005054/0.6901, allocations: 240.5 kB / 469.1 MB, free: 2.461 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.004e-05/0.6902, allocations: 12 kB / 469.1 MB, free: 2.449 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6904, allocations: 338 kB / 469.5 MB, free: 2.113 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.6917, allocations: 0.5051 MB / 470 MB, free: 1.609 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.6932, allocations: 0.6111 MB / 470.6 MB, free: 0.957 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.6948, allocations: 0.5562 MB / 471.1 MB, free: 412 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.6948, allocations: 4 kB / 471.1 MB, free: 408 kB / 394.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003655/0.6985, allocations: 1.38 MB / 472.5 MB, free: 15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.6986, allocations: 4 kB / 472.5 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.6986, allocations: 4 kB / 472.5 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.333e-05/0.6986, allocations: 11.95 kB / 472.5 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.6999, allocations: 168.1 kB / 472.7 MB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.407e-05/0.7, allocations: 4 kB / 472.7 MB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000632/0.7006, allocations: 51.47 kB / 472.8 MB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.7009, allocations: 79.97 kB / 472.8 MB, free: 14.69 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 (89): * Single equations (assignments): 89 * 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.000322/0.7012, allocations: 156.8 kB / 473 MB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.7015, allocations: 146.1 kB / 473.1 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00487/0.7064, allocations: 1.635 MB / 474.8 MB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.7065, allocations: 11.95 kB / 474.8 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.7065, allocations: 0 / 474.8 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.7065, allocations: 3.984 kB / 474.8 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00658/0.7131, allocations: 2.607 MB / 477.4 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.7132, allocations: 4 kB / 477.4 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.7144, allocations: 139.9 kB / 477.5 MB, free: 9.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.7144, allocations: 4 kB / 477.5 MB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.7146, allocations: 31.94 kB / 477.6 MB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-05/0.7146, allocations: 4 kB / 477.6 MB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.7146, allocations: 3.938 kB / 477.6 MB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005378/0.72, allocations: 2.241 MB / 479.8 MB, free: 7.609 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009044/0.7209, allocations: 335 kB / 480.1 MB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.7212, allocations: 8 kB / 480.2 MB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.7217, allocations: 19.95 kB / 480.2 MB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.7219, allocations: 60.7 kB / 480.2 MB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/0.7221, allocations: 64.11 kB / 480.3 MB, free: 7.113 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001972/0.7241, allocations: 0.8762 MB / 481.2 MB, free: 6.238 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.7241, allocations: 0 / 481.2 MB, free: 6.238 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001044/0.7251, allocations: 222.9 kB / 481.4 MB, free: 6.02 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.004037/0.7292, allocations: 2.496 MB / 483.9 MB, free: 3.492 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002051/0.7313, allocations: 0.989 MB / 484.9 MB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.7314, allocations: 0 / 484.9 MB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.7324, allocations: 0.5105 MB / 485.4 MB, free: 1.992 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008752/0.7333, allocations: 82.22 kB / 485.5 MB, free: 1.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007224/0.7406, allocations: 2.508 MB / 488 MB, free: 15.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.7422, allocations: 1.35 MB / 489.3 MB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004945/0.7428, allocations: 76.8 kB / 489.4 MB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.744, allocations: 0.6008 MB / 490 MB, free: 13.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/0.7441, allocations: 0 / 490 MB, free: 13.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.075/0.8191, allocations: 17.38 MB / 0.4955 GB, free: 11.98 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003274/0.8195, allocations: 142.8 kB / 0.4956 GB, free: 11.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.345/4.165, allocations: 3.938 kB / 0.4956 GB, free: 11.75 MB / 442.7 MB