Running command: "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.329/2.329, allocations: 214.7 MB / 226.9 MB, free: 1.297 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.658e-05, allocations: 4 kB / 279.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 49.7 MB / 329.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4548/0.5686, allocations: 77.37 MB / 406.6 MB, free: 6.062 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.5689, allocations: 63.47 kB / 406.7 MB, free: 6.031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01784/0.5867, allocations: 3.058 MB / 409.8 MB, free: 3.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.5868, allocations: 0 / 409.8 MB, free: 3.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.5868, allocations: 0 / 409.8 MB, free: 3.535 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001316/0.5882, allocations: 393.5 kB / 410.1 MB, free: 3.113 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.8e-05/0.5883, allocations: 12.03 kB / 410.1 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.937e-05/0.5884, allocations: 33.81 kB / 410.2 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.519e-05/0.5884, allocations: 7.906 kB / 410.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.5887, allocations: 163 kB / 410.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.5887, allocations: 0 / 410.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.5888, allocations: 15.33 kB / 410.4 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.589, allocations: 50 kB / 410.4 MB, free: 2.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.5891, allocations: 7.984 kB / 410.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.5891, allocations: 0 / 410.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.5891, allocations: 2.406 kB / 410.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.5894, allocations: 34.44 kB / 410.5 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.5898, allocations: 179.6 kB / 410.6 MB, free: 2.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.5902, allocations: 64.02 kB / 410.7 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.5903, allocations: 27.61 kB / 410.7 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.5904, allocations: 3.984 kB / 410.7 MB, free: 2.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.5905, allocations: 42.8 kB / 410.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 4.538e-06/0.5905, allocations: 0 / 410.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003982/0.5909, allocations: 78.66 kB / 410.8 MB, free: 2.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.591, allocations: 51.41 kB / 410.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.5911, allocations: 103.8 kB / 411 MB, free: 2.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.5912, allocations: 25.7 kB / 411 MB, free: 2.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.5913, allocations: 82.89 kB / 411.1 MB, free: 2.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.5914, allocations: 22.47 kB / 411.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/0.5914, allocations: 4 kB / 411.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.5916, allocations: 318.2 kB / 411.4 MB, free: 1.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.5918, allocations: 20.06 kB / 411.5 MB, free: 1.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.895e-05/0.5919, allocations: 15.06 kB / 411.5 MB, free: 1.723 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.592, allocations: 18.5 kB / 411.5 MB, free: 1.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.5921, allocations: 3.938 kB / 411.5 MB, free: 1.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003758/0.5925, allocations: 74.5 kB / 411.6 MB, free: 1.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.5925, allocations: 4 kB / 411.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.5926, allocations: 3.953 kB / 411.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.5926, allocations: 7.984 kB / 411.6 MB, free: 1.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.5929, allocations: 8 kB / 411.6 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.5929, allocations: 4 kB / 411.6 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.5931, allocations: 2.5 kB / 411.6 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.5931, allocations: 3.938 kB / 411.6 MB, free: 1.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001355/0.5933, allocations: 108.1 kB / 411.7 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.373e-05/0.5933, allocations: 3.906 kB / 411.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004866/0.5938, allocations: 102.9 kB / 411.8 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.5939, allocations: 11.95 kB / 411.8 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.5939, allocations: 4 kB / 411.8 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.5939, allocations: 0 / 411.8 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.5943, allocations: 184 kB / 412 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.5943, allocations: 0 / 412 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.5946, allocations: 15.94 kB / 412 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.518e-05/0.5946, allocations: 7.922 kB / 412 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.5947, allocations: 0 / 412 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.5947, allocations: 4 kB / 412 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.5947, allocations: 3.953 kB / 412 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.5952, allocations: 127 kB / 412.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.812e-05/0.5953, allocations: 77.11 kB / 412.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.5953, allocations: 0 / 412.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.5955, allocations: 3.812 kB / 412.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.5955, allocations: 11.94 kB / 412.3 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.5956, allocations: 0 / 412.3 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001354/0.5957, allocations: 83.28 kB / 412.3 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.5958, allocations: 0 / 412.3 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004672/0.5962, allocations: 15.88 kB / 412.3 MB, free: 0.832 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0009795/0.5973, allocations: 0.6689 MB / 413 MB, free: 160 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003223/0.5976, allocations: 46.5 kB / 413.1 MB, free: 132 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.5976, allocations: 3.938 kB / 413.1 MB, free: 128 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.5978, allocations: 37.86 kB / 413.1 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/0.598, allocations: 3.953 kB / 413.1 MB, free: 96 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007101/0.5988, allocations: 123.3 kB / 413.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.5992, allocations: 0.6887 MB / 413.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.465e-05/0.5993, allocations: 8 kB / 413.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.267e-05/0.5995, allocations: 15.11 kB / 413.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of SimCode: time 2.074e-06/0.5995, allocations: 0 / 413.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.6266, allocations: 1.768 MB / 415.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003668/0.627, allocations: 153.4 kB / 415.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.19, allocations: 4 kB / 415.9 MB, free: 13.29 MB / 346.7 MB