Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.103/2.103, allocations: 214.7 MB / 226.9 MB, free: 1.301 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.472e-05, allocations: 4 kB / 279.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 49.71 MB / 329.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5117/0.6145, allocations: 130.6 MB / 459.9 MB, free: 1.445 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.6149, allocations: 74.78 kB / 460 MB, free: 1.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.596/2.211, allocations: 324.9 MB / 0.7665 GB, free: 44.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/2.211, allocations: 4.047 kB / 0.7665 GB, free: 44.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006141/2.212, allocations: 210.7 kB / 0.7667 GB, free: 44.53 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2735 * Number of variables: 2735 Notification: Performance of Generate backend data structure: time 0.04017/2.252, allocations: 8.586 MB / 0.7751 GB, free: 41.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/2.252, allocations: 9.531 kB / 0.7751 GB, free: 41.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006368/2.259, allocations: 1.394 MB / 0.7765 GB, free: 41.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04979/2.308, allocations: 5.813 MB / 0.7822 GB, free: 41.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02554/2.334, allocations: 7.33 MB / 0.7893 GB, free: 39.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001111/2.335, allocations: 0.7018 MB / 0.79 GB, free: 39.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00488/2.34, allocations: 0.9216 MB / 0.7909 GB, free: 39.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05262/2.393, allocations: 16.51 MB / 0.807 GB, free: 32.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005247/2.393, allocations: 26.62 kB / 0.807 GB, free: 32.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003961/2.397, allocations: 405.2 kB / 0.8074 GB, free: 32.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001061/2.398, allocations: 0.706 MB / 0.8081 GB, free: 31.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04271/2.441, allocations: 15.38 MB / 0.8231 GB, free: 19.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4865/2.928, allocations: 51.73 MB / 0.8737 GB, free: 41.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04758/2.975, allocations: 41.02 MB / 0.9137 GB, free: 25.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01593/2.991, allocations: 6.956 MB / 0.9205 GB, free: 25.43 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05993/3.051, allocations: 21.5 MB / 0.9415 GB, free: 40.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/3.051, allocations: 94.33 kB / 0.9416 GB, free: 40.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=681): time 1.196e-05/3.052, allocations: 6.328 kB / 0.9416 GB, free: 40.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=688): time 0.05892/3.11, allocations: 22.47 MB / 0.9636 GB, free: 35.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/3.111, allocations: 109.8 kB / 0.9637 GB, free: 35.49 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/3.115, allocations: 2.341 MB / 0.9659 GB, free: 34.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001454/3.117, allocations: 112.8 kB / 0.9661 GB, free: 34.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002291/3.119, allocations: 3.552 MB / 0.9695 GB, free: 31.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003585/3.123, allocations: 2.274 MB / 0.9717 GB, free: 30.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009141/3.124, allocations: 126.1 kB / 0.9719 GB, free: 30.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000761/3.125, allocations: 0.6045 MB / 0.9725 GB, free: 29.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01076/3.135, allocations: 4.415 MB / 0.9768 GB, free: 27.79 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01227/3.148, allocations: 6.152 MB / 0.9828 GB, free: 23.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/3.161, allocations: 5.512 MB / 0.9882 GB, free: 21.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.696e-05/3.161, allocations: 14.38 kB / 0.9882 GB, free: 21.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=929) (initialization): time 0.03472/3.196, allocations: 13.29 MB / 1.001 GB, free: 16.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/3.196, allocations: 26.88 kB / 1.001 GB, free: 16.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/3.196, allocations: 51.44 kB / 1.001 GB, free: 16.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/3.208, allocations: 3.98 MB / 1.005 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009591/3.218, allocations: 1.197 MB / 1.006 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01851/3.236, allocations: 9.627 MB / 1.016 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00766/3.244, allocations: 348.7 kB / 1.016 GB, free: 9.836 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002014/3.246, allocations: 308 kB / 1.016 GB, free: 9.781 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 238 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (635): * Single equations (assignments): 583 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002188/3.248, allocations: 473 kB / 1.017 GB, free: 9.461 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001626/3.25, allocations: 436.9 kB / 1.017 GB, free: 9.234 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04323/3.293, allocations: 13.02 MB / 1.03 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000329/3.293, allocations: 182.9 kB / 1.03 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/3.294, allocations: 7 kB / 1.03 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001397/3.294, allocations: 26.86 kB / 1.03 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4797/3.773, allocations: 25.49 MB / 1.055 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.085e-05/3.774, allocations: 3.188 kB / 1.055 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008012/3.782, allocations: 0.7943 MB / 1.056 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01367/3.795, allocations: 3.879 MB / 1.06 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001746/3.797, allocations: 153.2 kB / 1.06 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01888/3.816, allocations: 9.517 MB / 1.069 GB, free: 96.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/3.816, allocations: 7.812 kB / 1.069 GB, free: 96.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04649/3.863, allocations: 19.16 MB / 1.088 GB, free: 95.76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005359/3.868, allocations: 1.45 MB / 1.089 GB, free: 95.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002404/3.87, allocations: 98.53 kB / 1.089 GB, free: 95.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006314/3.877, allocations: 269.2 kB / 1.089 GB, free: 95.67 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00249/3.879, allocations: 0.5029 MB / 1.09 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001434/3.881, allocations: 190.9 kB / 1.09 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004234/3.885, allocations: 1.757 MB / 1.092 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.32e-07/3.885, allocations: 1.422 kB / 1.092 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01231/3.897, allocations: 1.681 MB / 1.094 GB, free: 95.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (428): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.05781/3.955, allocations: 20.89 MB / 1.114 GB, free: 91.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02949/3.985, allocations: 10.82 MB / 1.124 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/3.985, allocations: 3.5 kB / 1.124 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01644/4.001, allocations: 5.58 MB / 1.13 GB, free: 85.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00776/4.009, allocations: 0.7857 MB / 1.131 GB, free: 84.78 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.103/4.112, allocations: 20.59 MB / 1.151 GB, free: 76.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02911/4.141, allocations: 6.454 MB / 1.157 GB, free: 74.53 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01269/4.154, allocations: 1.535 MB / 1.159 GB, free: 74.37 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01017/4.164, allocations: 3.283 MB / 1.162 GB, free: 71.36 MB / 0.4948 GB Notification: Performance of SimCode: time 1.853e-06/4.164, allocations: 0 / 1.162 GB, free: 71.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7621/4.927, allocations: 165.6 MB / 1.323 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/4.927, allocations: 175.9 kB / 1.324 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.156/12.08, allocations: 0 / 1.324 GB, free: 79.14 MB / 0.4948 GB