Running command: "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.356/2.356, allocations: 234.6 MB / 246.8 MB, free: 14.02 MB / 202.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.18e-05, allocations: 0 / 304.4 MB, free: 4.906 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4204, allocations: 54.62 MB / 359 MB, free: 2.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1593/0.5798, allocations: 81.7 MB / 440.7 MB, free: 15.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.5801, allocations: 67.97 kB / 440.8 MB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1955/0.7756, allocations: 50 MB / 490.8 MB, free: 12.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7757, allocations: 0 / 490.8 MB, free: 12.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003842/0.7761, allocations: 87.94 kB / 490.9 MB, free: 12.89 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 946 * Number of variables: 946 Notification: Performance of Generate backend data structure: time 0.008647/0.7847, allocations: 2.74 MB / 493.6 MB, free: 10.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.7848, allocations: 11.97 kB / 493.6 MB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001888/0.7867, allocations: 0.5014 MB / 494.1 MB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001664/0.7884, allocations: 422.9 kB / 494.6 MB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005526/0.794, allocations: 2.018 MB / 496.6 MB, free: 7.074 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004417/0.7945, allocations: 287.5 kB / 496.9 MB, free: 6.793 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/0.7958, allocations: 391.8 kB / 497.2 MB, free: 6.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.8071, allocations: 3.465 MB / 0.489 GB, free: 2.723 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/0.8073, allocations: 11.94 kB / 0.489 GB, free: 2.711 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007668/0.8081, allocations: 156 kB / 0.4891 GB, free: 2.559 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.8082, allocations: 96 kB / 0.4892 GB, free: 2.465 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00832/0.8166, allocations: 2.095 MB / 0.4913 GB, free: 376 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03133/0.848, allocations: 14.48 MB / 0.5054 GB, free: 1.559 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00473/0.8528, allocations: 1.283 MB / 0.5067 GB, free: 264 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.8545, allocations: 0.579 MB / 0.5072 GB, free: 15.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.8547, allocations: 17.31 kB / 0.5072 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.8548, allocations: 43.88 kB / 0.5073 GB, free: 15.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 4.629e-06/0.8548, allocations: 0 / 0.5073 GB, free: 15.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.003841/0.8586, allocations: 1.228 MB / 0.5085 GB, free: 14.37 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.8587, allocations: 64.72 kB / 0.5085 GB, free: 14.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/0.8622, allocations: 1.273 MB / 0.5098 GB, free: 13.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003545/0.8626, allocations: 53.7 kB / 0.5098 GB, free: 12.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.8643, allocations: 1.587 MB / 0.5114 GB, free: 11.35 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009282/0.8653, allocations: 492.9 kB / 0.5119 GB, free: 10.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.8655, allocations: 36 kB / 0.5119 GB, free: 10.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002372/0.8657, allocations: 381.9 kB / 0.5123 GB, free: 10.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.8677, allocations: 0.543 MB / 0.5128 GB, free: 9.906 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002593/0.8703, allocations: 1.017 MB / 0.5138 GB, free: 8.688 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/0.8728, allocations: 0.7194 MB / 0.5145 GB, free: 7.969 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.8729, allocations: 4 kB / 0.5145 GB, free: 7.965 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005686/0.8786, allocations: 1.831 MB / 0.5163 GB, free: 6.125 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.8787, allocations: 8 kB / 0.5163 GB, free: 6.117 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/0.8787, allocations: 16 kB / 0.5163 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.341e-05/0.8788, allocations: 28 kB / 0.5163 GB, free: 6.074 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002928/0.8817, allocations: 351.4 kB / 0.5167 GB, free: 5.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.451e-05/0.8818, allocations: 36.2 kB / 0.5167 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.8837, allocations: 158.5 kB / 0.5168 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002415/0.884, allocations: 76 kB / 0.5169 GB, free: 5.465 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 33 (Retail1.Mail_Delay.Level3.Integrator1.local_reset,Retail1.Mail_Delay.Level2.Integrator1.local_reset,Retail1.Mail_Delay.Level1.Integrator1.local_reset,Retail1.Order_Delay.Level3.Integrator1.local_reset,Retail1.Order_Delay.Level2.Integrator1.local_reset,Retail1.Order_Delay.Level1.Integrator1.local_reset,Retail1.Transporation_Delay.Level3.Integrator1.local_reset,Retail1.Transporation_Delay.Level2.Integrator1.local_reset,Retail1.Transporation_Delay.Level1.Integrator1.local_reset,Retail1.RSR_delayed.Level1.Integrator1.local_reset,Retail1.UOR.Integrator1.local_reset,Retail1.IAR.Integrator1.local_reset,Distribution1.Mail_Delay.Level3.Integrator1.local_reset,Distribution1.Mail_Delay.Level2.Integrator1.local_reset,Distribution1.Mail_Delay.Level1.Integrator1.local_reset,Distribution1.Order_Delay.Level3.Integrator1.local_reset,Distribution1.Order_Delay.Level2.Integrator1.local_reset,Distribution1.Order_Delay.Level1.Integrator1.local_reset,Distribution1.Transporation_Delay.Level3.Integrator1.local_reset,Distribution1.Transporation_Delay.Level2.Integrator1.local_reset,Distribution1.Transporation_Delay.Level1.Integrator1.local_reset,Distribution1.RSD_delayed.Level1.Integrator1.local_reset,Distribution1.UOD.Integrator1.local_reset,Distribution1.IAD.Integrator1.local_reset,Factory1.Production_Delay.Level3.Integrator1.local_reset,Factory1.Production_Delay.Level2.Integrator1.local_reset,Factory1.Production_Delay.Level1.Integrator1.local_reset,Factory1.Order_Delay.Level3.Integrator1.local_reset,Factory1.Order_Delay.Level2.Integrator1.local_reset,Factory1.Order_Delay.Level1.Integrator1.local_reset,Factory1.SRF_delayed.Level1.Integrator1.local_reset,Factory1.UOF.Integrator1.local_reset,Factory1.IAF.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 232 * 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.000506/0.8845, allocations: 236.4 kB / 0.5171 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005763/0.8851, allocations: 181.7 kB / 0.5173 GB, free: 5.051 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006174/0.8857, allocations: 206.7 kB / 0.5175 GB, free: 4.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.8858, allocations: 15.94 kB / 0.5175 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8858, allocations: 0 / 0.5175 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.8858, allocations: 7.984 kB / 0.5175 GB, free: 4.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009439/0.8953, allocations: 3.898 MB / 0.5213 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.8953, allocations: 0 / 0.5213 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/0.8981, allocations: 227.7 kB / 0.5216 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-05/0.8981, allocations: 7.984 kB / 0.5216 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001899/0.8983, allocations: 32 kB / 0.5216 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.408e-05/0.8983, allocations: 8 kB / 0.5216 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8984, allocations: 4 kB / 0.5216 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3249/1.223, allocations: 2.04 MB / 0.5236 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006513/1.224, allocations: 269.9 kB / 0.5239 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003372/1.224, allocations: 40.3 kB / 0.5239 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/1.226, allocations: 33.81 kB / 0.5239 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/1.226, allocations: 77.16 kB / 0.524 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/1.226, allocations: 35.19 kB / 0.524 GB, free: 111.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002625/1.229, allocations: 0.9571 MB / 0.525 GB, free: 111 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.229, allocations: 2.031 kB / 0.525 GB, free: 111 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002632/1.231, allocations: 0.6277 MB / 0.5256 GB, free: 110.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 33 (Factory1.IAF.Integrator1.y,Factory1.UOF.Integrator1.y,Factory1.SRF_delayed.Level1.Integrator1.y,Factory1.Order_Delay.Level1.Integrator1.y,Factory1.Order_Delay.Level2.Integrator1.y,Factory1.Order_Delay.Level3.Integrator1.y,Factory1.Production_Delay.Level1.Integrator1.y,Factory1.Production_Delay.Level2.Integrator1.y,Factory1.Production_Delay.Level3.Integrator1.y,Distribution1.IAD.Integrator1.y,Distribution1.UOD.Integrator1.y,Distribution1.RSD_delayed.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level2.Integrator1.y,Distribution1.Transporation_Delay.Level3.Integrator1.y,Distribution1.Order_Delay.Level1.Integrator1.y,Distribution1.Order_Delay.Level2.Integrator1.y,Distribution1.Order_Delay.Level3.Integrator1.y,Distribution1.Mail_Delay.Level1.Integrator1.y,Distribution1.Mail_Delay.Level2.Integrator1.y,Distribution1.Mail_Delay.Level3.Integrator1.y,Retail1.IAR.Integrator1.y,Retail1.UOR.Integrator1.y,Retail1.RSR_delayed.Level1.Integrator1.y,Retail1.Transporation_Delay.Level1.Integrator1.y,Retail1.Transporation_Delay.Level2.Integrator1.y,Retail1.Transporation_Delay.Level3.Integrator1.y,Retail1.Order_Delay.Level1.Integrator1.y,Retail1.Order_Delay.Level2.Integrator1.y,Retail1.Order_Delay.Level3.Integrator1.y,Retail1.Mail_Delay.Level1.Integrator1.y,Retail1.Mail_Delay.Level2.Integrator1.y,Retail1.Mail_Delay.Level3.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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.006238/1.237, allocations: 2.658 MB / 0.5282 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004207/1.242, allocations: 1.344 MB / 0.5295 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.242, allocations: 0 / 0.5295 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/1.244, allocations: 0.6194 MB / 0.5301 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/1.247, allocations: 282.5 kB / 0.5304 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/1.263, allocations: 4.454 MB / 0.5347 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003688/1.267, allocations: 1.849 MB / 0.5365 GB, free: 108 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001737/1.269, allocations: 176.5 kB / 0.5367 GB, free: 108 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002964/1.272, allocations: 1.266 MB / 0.5379 GB, free: 108 MB / 458.7 MB Notification: Performance of SimCode: time 1.493e-06/1.272, allocations: 0 / 0.5379 GB, free: 108 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/1.373, allocations: 35.3 MB / 0.5724 GB, free: 105.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/1.374, allocations: 182.5 kB / 0.5726 GB, free: 105.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.751/5.125, allocations: 2.812 kB / 0.5726 GB, free: 105.2 MB / 458.7 MB