Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.325e-05, allocations: 6.031 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 50.4 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4922/0.5945, allocations: 130.7 MB / 473.3 MB, free: 12.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.5949, allocations: 92.06 kB / 473.4 MB, free: 12.08 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8353/1.43, allocations: 150.9 MB / 0.6097 GB, free: 82.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.43, allocations: 4 kB / 0.6097 GB, free: 82.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007707/1.431, allocations: 183.6 kB / 0.6099 GB, free: 82.7 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02673/1.458, allocations: 6.584 MB / 0.6163 GB, free: 76.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/1.458, allocations: 8.031 kB / 0.6163 GB, free: 76.06 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003921/1.462, allocations: 0.9163 MB / 0.6172 GB, free: 75.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009188/1.471, allocations: 1.243 MB / 0.6185 GB, free: 73.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02264/1.494, allocations: 6.245 MB / 0.6246 GB, free: 67.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006357/1.494, allocations: 0.4977 MB / 0.625 GB, free: 67.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002804/1.497, allocations: 0.6678 MB / 0.6257 GB, free: 66.51 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02877/1.526, allocations: 9.081 MB / 0.6346 GB, free: 57.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003862/1.526, allocations: 7.906 kB / 0.6346 GB, free: 57.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002453/1.529, allocations: 292 kB / 0.6348 GB, free: 56.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003301/1.529, allocations: 289.4 kB / 0.6351 GB, free: 56.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/1.552, allocations: 7.352 MB / 0.6423 GB, free: 49.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07388/1.626, allocations: 29.46 MB / 0.6711 GB, free: 19.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01575/1.642, allocations: 11.71 MB / 0.6825 GB, free: 6.227 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00801/1.65, allocations: 3.269 MB / 0.6857 GB, free: 2.934 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6277/2.278, allocations: 6.826 MB / 0.6924 GB, free: 75.21 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/2.278, allocations: 68.02 kB / 0.6924 GB, free: 75.16 MB / 442.8 MB Notification: Performance of pre-optimization done (n=306): time 5.761e-06/2.278, allocations: 1.406 kB / 0.6924 GB, free: 75.16 MB / 442.8 MB Notification: Performance of matching and sorting (n=325): time 0.04012/2.318, allocations: 11.91 MB / 0.7041 GB, free: 73.55 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/2.318, allocations: 87.25 kB / 0.7041 GB, free: 73.48 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009157/2.327, allocations: 3.459 MB / 0.7075 GB, free: 73.17 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007903/2.328, allocations: 82.23 kB / 0.7076 GB, free: 73.14 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002422/2.331, allocations: 2.828 MB / 0.7104 GB, free: 72.01 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001571/2.332, allocations: 1.097 MB / 0.7114 GB, free: 71.31 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003987/2.333, allocations: 80.05 kB / 0.7115 GB, free: 71.31 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002401/2.333, allocations: 461.9 kB / 0.7119 GB, free: 70.99 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004182/2.337, allocations: 1.796 MB / 0.7137 GB, free: 70.98 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005059/2.342, allocations: 2.668 MB / 0.7163 GB, free: 70 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00531/2.348, allocations: 2.222 MB / 0.7185 GB, free: 69.95 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-05/2.348, allocations: 6.531 kB / 0.7185 GB, free: 69.95 MB / 442.8 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01494/2.363, allocations: 5.847 MB / 0.7242 GB, free: 69.43 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/2.363, allocations: 17.47 kB / 0.7242 GB, free: 69.43 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.691e-05/2.363, allocations: 27.84 kB / 0.7242 GB, free: 69.43 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004578/2.367, allocations: 1.263 MB / 0.7255 GB, free: 69.32 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006219/2.374, allocations: 0.8051 MB / 0.7263 GB, free: 69.32 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02239/2.396, allocations: 20.68 MB / 0.7465 GB, free: 54.56 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00546/2.401, allocations: 201.2 kB / 0.7466 GB, free: 54.49 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007799/2.402, allocations: 154.8 kB / 0.7468 GB, free: 54.46 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009635/2.403, allocations: 332.7 kB / 0.7471 GB, free: 54.23 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/2.405, allocations: 440.2 kB / 0.7475 GB, free: 54.01 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01519/2.42, allocations: 5.975 MB / 0.7534 GB, free: 51.36 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.499e-05/2.42, allocations: 29.94 kB / 0.7534 GB, free: 51.36 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.827e-05/2.42, allocations: 16.41 kB / 0.7534 GB, free: 51.36 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9e-05/2.42, allocations: 13.59 kB / 0.7534 GB, free: 51.36 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03347/2.454, allocations: 12.24 MB / 0.7654 GB, free: 46.2 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-05/2.454, allocations: 5.844 kB / 0.7654 GB, free: 46.2 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004164/2.458, allocations: 460.2 kB / 0.7658 GB, free: 46.19 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006393/2.464, allocations: 1.599 MB / 0.7674 GB, free: 45.66 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006953/2.465, allocations: 78.38 kB / 0.7675 GB, free: 45.61 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03315/2.498, allocations: 30.12 MB / 0.7969 GB, free: 20.43 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/2.498, allocations: 12.17 kB / 0.7969 GB, free: 20.43 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/2.518, allocations: 8.847 MB / 0.8055 GB, free: 13.57 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003509/2.521, allocations: 0.919 MB / 0.8064 GB, free: 12.73 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001468/2.523, allocations: 67.09 kB / 0.8065 GB, free: 12.66 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004605/2.528, allocations: 203.8 kB / 0.8067 GB, free: 12.52 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/2.529, allocations: 278.7 kB / 0.8069 GB, free: 12.35 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003495/2.529, allocations: 96.34 kB / 0.807 GB, free: 12.27 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.005792/2.535, allocations: 2.627 MB / 0.8096 GB, free: 9.902 MB / 442.8 MB Notification: Performance of sort global known variables: time 6.51e-07/2.535, allocations: 0 / 0.8096 GB, free: 9.902 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007521/2.542, allocations: 1.385 MB / 0.811 GB, free: 8.527 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02589/2.568, allocations: 10.84 MB / 0.8215 GB, free: 15.52 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01466/2.583, allocations: 6.019 MB / 0.8274 GB, free: 9.816 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/2.583, allocations: 4 kB / 0.8274 GB, free: 9.812 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01095/2.594, allocations: 4.569 MB / 0.8319 GB, free: 5.473 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/2.604, allocations: 1.252 MB / 0.8331 GB, free: 4.508 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03859/2.643, allocations: 12.75 MB / 0.8456 GB, free: 9.375 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008326/2.651, allocations: 4.522 MB / 0.85 GB, free: 5.988 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00682/2.658, allocations: 2.7 MB / 0.8526 GB, free: 3.48 MB / 474.8 MB Notification: Performance of SimCode: time 1.863e-06/2.658, allocations: 0 / 0.8526 GB, free: 3.48 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.169/9.828, allocations: 0.6209 GB / 1.473 GB, free: 97.84 MB / 0.4949 GB