Running command: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(SystemDynamics): time 2.323/2.323, allocations: 234.6 MB / 246.8 MB, free: 14.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.464e-05/5.472e-05, allocations: 4 kB / 304.4 MB, free: 4.918 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4181/0.4183, allocations: 54.63 MB / 359 MB, free: 3.156 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.5708, allocations: 78.29 MB / 437.3 MB, free: 2.664 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.5711, allocations: 55.98 kB / 437.4 MB, free: 2.609 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02438/0.5955, allocations: 5.909 MB / 443.3 MB, free: 12.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5955, allocations: 0 / 443.3 MB, free: 12.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.854e-05/0.5956, allocations: 16 kB / 443.3 MB, free: 12.68 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001139/0.5968, allocations: 0.625 MB / 443.9 MB, free: 12.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.5968, allocations: 11.86 kB / 443.9 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002194/0.5971, allocations: 107.7 kB / 444 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.5972, allocations: 55.34 kB / 444.1 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005823/0.5978, allocations: 319.3 kB / 444.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.5979, allocations: 45.27 kB / 444.5 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.598, allocations: 59.89 kB / 444.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.5991, allocations: 482.3 kB / 445 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.5991, allocations: 7.938 kB / 445 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.5992, allocations: 20 kB / 445 MB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.5992, allocations: 16 kB / 445 MB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006845/0.5999, allocations: 238.6 kB / 445.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.603, allocations: 1.787 MB / 447 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007692/0.6039, allocations: 210.8 kB / 447.3 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.604, allocations: 60.86 kB / 447.3 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.6041, allocations: 4 kB / 447.3 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.6041, allocations: 40.19 kB / 447.4 MB, free: 8.398 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 2.915e-06/0.6041, allocations: 0 / 447.4 MB, free: 8.398 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005135/0.6047, allocations: 173.6 kB / 447.5 MB, free: 8.223 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.6047, allocations: 51.41 kB / 447.6 MB, free: 8.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004793/0.6052, allocations: 299.5 kB / 447.9 MB, free: 7.859 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/0.6053, allocations: 33.7 kB / 447.9 MB, free: 7.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.6055, allocations: 271.5 kB / 448.2 MB, free: 7.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.662e-05/0.6056, allocations: 63.02 kB / 448.2 MB, free: 7.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.6056, allocations: 4 kB / 448.2 MB, free: 7.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.6058, allocations: 350.8 kB / 448.6 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.606, allocations: 52 kB / 448.6 MB, free: 7.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.6062, allocations: 129 kB / 448.7 MB, free: 6.926 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.6064, allocations: 75.84 kB / 448.8 MB, free: 6.852 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6064, allocations: 0 / 448.8 MB, free: 6.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005916/0.607, allocations: 241.6 kB / 449.1 MB, free: 6.609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.6071, allocations: 4 kB / 449.1 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.6071, allocations: 4 kB / 449.1 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.6072, allocations: 7.938 kB / 449.1 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003667/0.6075, allocations: 48.17 kB / 449.1 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.6076, allocations: 11.92 kB / 449.1 MB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.6078, allocations: 33.34 kB / 449.2 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.6078, allocations: 8 kB / 449.2 MB, free: 6.496 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (Water_Inside.Integrator1.local_reset,Water_Outside.Integrator1.local_reset,Sucrose_Outside.Integrator1.local_reset,Sucrose_Inside.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001226/0.6079, allocations: 128.8 kB / 449.3 MB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.46e-05/0.608, allocations: 27.62 kB / 449.3 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.6081, allocations: 39.11 kB / 449.4 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.6082, allocations: 4 kB / 449.4 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.6082, allocations: 3.984 kB / 449.4 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6082, allocations: 0 / 449.4 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006513/0.6089, allocations: 405.3 kB / 449.8 MB, free: 5.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.6089, allocations: 4 kB / 449.8 MB, free: 5.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003751/0.6093, allocations: 27.98 kB / 449.8 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.6093, allocations: 0 / 449.8 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.6093, allocations: 8 kB / 449.8 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.6093, allocations: 0 / 449.8 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6094, allocations: 3.938 kB / 449.8 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.61, allocations: 349.5 kB / 450.2 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.6102, allocations: 120.5 kB / 450.3 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.057e-05/0.6102, allocations: 8 kB / 450.3 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.6104, allocations: 4 kB / 450.3 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.6105, allocations: 7.984 kB / 450.3 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.6105, allocations: 4 kB / 450.3 MB, free: 5.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003679/0.6109, allocations: 234.2 kB / 450.5 MB, free: 5.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6109, allocations: 0 / 450.5 MB, free: 5.059 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004924/0.6114, allocations: 75.53 kB / 450.6 MB, free: 4.984 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Sucrose_Inside.Integrator1.y,Sucrose_Outside.Integrator1.y,Water_Outside.Integrator1.y,Water_Inside.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0009827/0.6124, allocations: 0.8923 MB / 451.5 MB, free: 4.066 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004456/0.6129, allocations: 148 kB / 451.6 MB, free: 3.922 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.6129, allocations: 0 / 451.6 MB, free: 3.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.6131, allocations: 71.38 kB / 451.7 MB, free: 3.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005049/0.6136, allocations: 41.66 kB / 451.7 MB, free: 3.816 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.6153, allocations: 0.5797 MB / 452.3 MB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.6158, allocations: 0.8264 MB / 453.1 MB, free: 2.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.6159, allocations: 27.14 kB / 453.2 MB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.6162, allocations: 147.4 kB / 453.3 MB, free: 2.176 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6162, allocations: 0 / 453.3 MB, free: 2.176 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03649/0.6527, allocations: 5.13 MB / 458.4 MB, free: 13.11 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003395/0.6531, allocations: 150.2 kB / 458.6 MB, free: 12.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.276, allocations: 0 / 458.6 MB, free: 12.89 MB / 394.7 MB