Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.495/2.495, allocations: 234.6 MB / 246.8 MB, free: 14.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.317e-05/3.32e-05, allocations: 4 kB / 304.4 MB, free: 4.914 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4145/0.4146, allocations: 54.63 MB / 359 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1534/0.5681, allocations: 79.9 MB / 438.9 MB, free: 1.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.5684, allocations: 67.95 kB / 439 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05971/0.6282, allocations: 14.3 MB / 453.3 MB, free: 2.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6282, allocations: 4 kB / 453.3 MB, free: 2.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001087/0.6284, allocations: 28 kB / 453.3 MB, free: 2.648 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002863/0.6312, allocations: 1.382 MB / 454.7 MB, free: 1.215 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.6313, allocations: 8.031 kB / 454.7 MB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004696/0.6318, allocations: 178.4 kB / 454.9 MB, free: 1.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004165/0.6322, allocations: 197.6 kB / 455.1 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.6339, allocations: 0.7591 MB / 455.9 MB, free: 20 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.634, allocations: 88.06 kB / 455.9 MB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.6343, allocations: 100 kB / 456 MB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.6374, allocations: 1.255 MB / 457.3 MB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.433e-05/0.6375, allocations: 7.938 kB / 457.3 MB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.6377, allocations: 40 kB / 457.3 MB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.089e-05/0.6377, allocations: 28 kB / 457.4 MB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003458/0.6412, allocations: 1.222 MB / 458.6 MB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009628/0.6509, allocations: 3.872 MB / 462.5 MB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004178/0.6551, allocations: 1.546 MB / 464 MB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.6566, allocations: 0.5451 MB / 464.6 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.6567, allocations: 28.77 kB / 464.6 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.6568, allocations: 39.12 kB / 464.6 MB, free: 7.043 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 3.166e-06/0.6568, allocations: 0 / 464.6 MB, free: 7.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.003254/0.66, allocations: 1.27 MB / 465.9 MB, free: 5.766 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.6601, allocations: 55.97 kB / 465.9 MB, free: 5.699 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/0.6626, allocations: 1.096 MB / 467 MB, free: 4.598 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.6629, allocations: 37.7 kB / 467.1 MB, free: 4.555 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009134/0.6638, allocations: 0.7755 MB / 467.9 MB, free: 3.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/0.6642, allocations: 232.5 kB / 468.1 MB, free: 3.539 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.6643, allocations: 12 kB / 468.1 MB, free: 3.527 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6645, allocations: 335.6 kB / 468.4 MB, free: 3.195 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.6659, allocations: 0.5012 MB / 468.9 MB, free: 2.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.6674, allocations: 0.5899 MB / 469.5 MB, free: 2.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.6689, allocations: 0.5368 MB / 470 MB, free: 1.535 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.6689, allocations: 0 / 470 MB, free: 1.535 MB / 394.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003522/0.6724, allocations: 1.345 MB / 471.4 MB, free: 180 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.6725, allocations: 8 kB / 471.4 MB, free: 172 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.6725, allocations: 4 kB / 471.4 MB, free: 168 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.216e-05/0.6726, allocations: 11.94 kB / 471.4 MB, free: 156 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.6737, allocations: 155.8 kB / 471.6 MB, free: 0 / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.414e-05/0.6738, allocations: 4.047 kB / 471.6 MB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005596/0.6744, allocations: 51.69 kB / 471.6 MB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/0.6746, allocations: 75.98 kB / 471.7 MB, free: 15.87 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 (82): * Single equations (assignments): 82 * 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.0002458/0.6748, allocations: 148.6 kB / 471.8 MB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.6752, allocations: 138.2 kB / 472 MB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004746/0.6799, allocations: 1.587 MB / 473.6 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.68, allocations: 7.938 kB / 473.6 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.68, allocations: 15.95 kB / 473.6 MB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.68, allocations: 7.922 kB / 473.6 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006567/0.6866, allocations: 2.539 MB / 476.1 MB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.6867, allocations: 3.984 kB / 476.1 MB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.6879, allocations: 131.9 kB / 476.3 MB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.998e-05/0.688, allocations: 4 kB / 476.3 MB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.6881, allocations: 35.88 kB / 476.3 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.6881, allocations: 0 / 476.3 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6881, allocations: 0 / 476.3 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00539/0.6935, allocations: 2.187 MB / 478.5 MB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/0.694, allocations: 203.1 kB / 478.7 MB, free: 8.758 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.6943, allocations: 12.06 kB / 478.7 MB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005136/0.6949, allocations: 15.95 kB / 478.7 MB, free: 8.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.6951, allocations: 52.5 kB / 478.8 MB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/0.6953, allocations: 67.97 kB / 478.8 MB, free: 8.613 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002098/0.6974, allocations: 0.8682 MB / 479.7 MB, free: 7.746 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.6974, allocations: 0 / 479.7 MB, free: 7.746 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001048/0.6985, allocations: 218.9 kB / 479.9 MB, free: 7.531 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 (67): * Single equations (assignments): 67 * 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.004203/0.7027, allocations: 2.418 MB / 482.3 MB, free: 5.082 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.7048, allocations: 0.9555 MB / 483.3 MB, free: 4.125 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.7049, allocations: 8.125 kB / 483.3 MB, free: 4.117 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.7059, allocations: 0.4979 MB / 483.8 MB, free: 3.617 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000892/0.7069, allocations: 81.23 kB / 483.9 MB, free: 3.539 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006969/0.7139, allocations: 2.467 MB / 486.3 MB, free: 1.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001606/0.7155, allocations: 1.346 MB / 487.7 MB, free: 15.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004699/0.716, allocations: 68.36 kB / 487.8 MB, free: 15.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/0.7172, allocations: 0.5891 MB / 488.3 MB, free: 14.99 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/0.7173, allocations: 0 / 488.3 MB, free: 14.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06216/0.7794, allocations: 17.1 MB / 0.4936 GB, free: 13.95 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003038/0.7798, allocations: 142.8 kB / 0.4937 GB, free: 13.72 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.999/3.779, allocations: 4 kB / 0.4937 GB, free: 13.72 MB / 442.7 MB