Running command: "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.625/2.625, allocations: 234.6 MB / 246.8 MB, free: 14.05 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.765e-05/3.773e-05, allocations: 7.938 kB / 304.4 MB, free: 4.918 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4093/0.4094, allocations: 54.62 MB / 359 MB, free: 2.836 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.562, allocations: 78.44 MB / 437.5 MB, free: 2.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5623, allocations: 67.97 kB / 437.5 MB, free: 2.363 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02231/0.5847, allocations: 4.899 MB / 442.4 MB, free: 13.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5847, allocations: 0 / 442.4 MB, free: 13.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.571e-05/0.5848, allocations: 12 kB / 442.5 MB, free: 13.46 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001479/0.5863, allocations: 0.6742 MB / 443.1 MB, free: 12.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.5863, allocations: 8.031 kB / 443.1 MB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002105/0.5865, allocations: 91.42 kB / 443.2 MB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.5867, allocations: 63.25 kB / 443.3 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.587, allocations: 259.6 kB / 443.5 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.481e-05/0.5871, allocations: 40.95 kB / 443.6 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.812e-05/0.5872, allocations: 45.59 kB / 443.6 MB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.5884, allocations: 464.1 kB / 444.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.5885, allocations: 0 / 444.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.266e-05/0.5886, allocations: 20 kB / 444.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.5886, allocations: 12 kB / 444.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.5897, allocations: 369.8 kB / 444.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.593, allocations: 1.196 MB / 445.7 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.5954, allocations: 0.5639 MB / 446.2 MB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004861/0.5959, allocations: 173.8 kB / 446.4 MB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.5961, allocations: 40.73 kB / 446.4 MB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006349/0.5967, allocations: 272.5 kB / 446.7 MB, free: 9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.727e-06/0.5967, allocations: 4 kB / 446.7 MB, free: 8.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001148/0.5979, allocations: 425.1 kB / 447.1 MB, free: 8.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/0.598, allocations: 92.84 kB / 447.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/0.5986, allocations: 299.6 kB / 447.5 MB, free: 8.164 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.011e-05/0.5987, allocations: 29.7 kB / 447.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/0.599, allocations: 265.6 kB / 447.8 MB, free: 7.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.5992, allocations: 126.1 kB / 447.9 MB, free: 7.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.5992, allocations: 12 kB / 447.9 MB, free: 7.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.5994, allocations: 358.8 kB / 448.3 MB, free: 7.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.5999, allocations: 144.5 kB / 448.4 MB, free: 7.227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.6003, allocations: 178.4 kB / 448.6 MB, free: 7.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004542/0.6008, allocations: 160.8 kB / 448.8 MB, free: 6.887 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.6008, allocations: 0 / 448.8 MB, free: 6.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001083/0.6019, allocations: 430.8 kB / 449.2 MB, free: 6.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.6019, allocations: 4 kB / 449.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.6019, allocations: 11.97 kB / 449.2 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.602, allocations: 0 / 449.2 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007039/0.6027, allocations: 83.83 kB / 449.3 MB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.6027, allocations: 0 / 449.3 MB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.603, allocations: 31.73 kB / 449.3 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.638e-05/0.6031, allocations: 20 kB / 449.3 MB, free: 6.312 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = false ) "Discrete state variable" type: Real Eggs.level:DISCRETE(start = Eggs.x0 fixed = false ) "Discrete state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.Eggs.level,Eggs.level,$PRE.Rawfiber.level,Rawfiber.level) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.000237/0.6034, allocations: 131.1 kB / 449.5 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.038e-05/0.6035, allocations: 39.53 kB / 449.5 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.605, allocations: 0.5012 MB / 450 MB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.6051, allocations: 4 kB / 450 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6051, allocations: 0 / 450 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.6051, allocations: 4 kB / 450 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000929/0.6061, allocations: 0.5085 MB / 450.5 MB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6061, allocations: 4 kB / 450.5 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006506/0.6067, allocations: 75.91 kB / 450.6 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.6068, allocations: 0 / 450.6 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.6068, allocations: 13.48 kB / 450.6 MB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.6069, allocations: 4 kB / 450.6 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6069, allocations: 0 / 450.6 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.608, allocations: 486.5 kB / 451.1 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.6082, allocations: 112.6 kB / 451.2 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.855e-05/0.6083, allocations: 12 kB / 451.2 MB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.6086, allocations: 16.12 kB / 451.2 MB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.6087, allocations: 39.88 kB / 451.3 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.6088, allocations: 16 kB / 451.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004192/0.6092, allocations: 246.1 kB / 451.5 MB, free: 4.016 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6092, allocations: 0 / 451.5 MB, free: 4.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005165/0.6097, allocations: 107.5 kB / 451.6 MB, free: 3.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,Eggs.level,Rawfiber.level) * Number of discrete states: 2 (Eggs.level,Rawfiber.level) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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.001845/0.6116, allocations: 1.257 MB / 452.9 MB, free: 2.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007843/0.6124, allocations: 323.8 kB / 453.2 MB, free: 2.301 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6124, allocations: 4.062 kB / 453.2 MB, free: 2.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003979/0.6129, allocations: 180.5 kB / 453.4 MB, free: 2.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.6132, allocations: 25.22 kB / 453.4 MB, free: 2.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.6153, allocations: 0.7241 MB / 454.1 MB, free: 1.332 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006368/0.616, allocations: 0.8658 MB / 455 MB, free: 452 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002515/0.6163, allocations: 30.06 kB / 455 MB, free: 424 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.6166, allocations: 167.4 kB / 455.2 MB, free: 260 kB / 378.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6166, allocations: 0 / 455.2 MB, free: 260 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.6559, allocations: 5.823 MB / 461 MB, free: 10.49 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003632/0.6564, allocations: 155.1 kB / 461.2 MB, free: 10.26 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.25, allocations: 0 / 461.2 MB, free: 10.26 MB / 394.7 MB