Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.173e-05, allocations: 8 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 50.42 MB / 342.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5026/0.6047, allocations: 118.1 MB / 460.8 MB, free: 8.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000358/0.6051, allocations: 96.88 kB / 460.9 MB, free: 8.602 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.104/1.709, allocations: 221.8 MB / 0.6667 GB, free: 23.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.709, allocations: 3.938 kB / 0.6667 GB, free: 23.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001046/1.71, allocations: 247.7 kB / 0.6669 GB, free: 23.05 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04053/1.751, allocations: 9.617 MB / 0.6763 GB, free: 13.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/1.751, allocations: 12.03 kB / 0.6763 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005782/1.757, allocations: 1.374 MB / 0.6777 GB, free: 11.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01677/1.774, allocations: 2.122 MB / 0.6797 GB, free: 9.793 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0313/1.805, allocations: 8.904 MB / 0.6884 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009907/1.806, allocations: 0.7465 MB / 0.6892 GB, free: 48 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3489/2.155, allocations: 0.9831 MB / 0.6901 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04923/2.204, allocations: 13.65 MB / 0.7035 GB, free: 33.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005623/2.205, allocations: 12.22 kB / 0.7035 GB, free: 33.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003691/2.209, allocations: 432.6 kB / 0.7039 GB, free: 33.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007339/2.209, allocations: 452.3 kB / 0.7043 GB, free: 33.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03772/2.247, allocations: 11.31 MB / 0.7154 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1165/2.364, allocations: 44.11 MB / 0.7584 GB, free: 21.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0359/2.4, allocations: 24.47 MB / 0.7823 GB, free: 16.19 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01263/2.412, allocations: 4.925 MB / 0.7871 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04955/2.462, allocations: 12.13 MB / 0.799 GB, free: 8.672 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001302/2.462, allocations: 83.88 kB / 0.7991 GB, free: 8.598 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 1.09e-05/2.462, allocations: 0 / 0.7991 GB, free: 8.598 MB / 458.7 MB Notification: Performance of matching and sorting (n=427): time 0.046/2.508, allocations: 13.87 MB / 0.8126 GB, free: 2.219 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/2.508, allocations: 97.95 kB / 0.8127 GB, free: 2.152 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0136/2.522, allocations: 4.682 MB / 0.8173 GB, free: 448 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001025/2.523, allocations: 96.95 kB / 0.8174 GB, free: 360 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007887/2.531, allocations: 4.287 MB / 0.8216 GB, free: 13.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002488/2.533, allocations: 1.421 MB / 0.8229 GB, free: 12.81 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007722/2.534, allocations: 103.7 kB / 0.823 GB, free: 12.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005105/2.535, allocations: 0.489 MB / 0.8235 GB, free: 12.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006503/2.541, allocations: 2.266 MB / 0.8257 GB, free: 11.44 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007948/2.549, allocations: 3.381 MB / 0.829 GB, free: 9.203 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00779/2.557, allocations: 2.821 MB / 0.8318 GB, free: 8.121 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.664e-05/2.557, allocations: 7.531 kB / 0.8318 GB, free: 8.121 MB / 474.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02368/2.581, allocations: 7.346 MB / 0.839 GB, free: 1.961 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.947e-05/2.581, allocations: 20.62 kB / 0.839 GB, free: 1.941 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-05/2.581, allocations: 32 kB / 0.839 GB, free: 1.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006395/2.587, allocations: 1.479 MB / 0.8405 GB, free: 0.6953 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008985/2.596, allocations: 0.9998 MB / 0.8414 GB, free: 0 / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03962/2.636, allocations: 26.68 MB / 0.8675 GB, free: 5.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007081/2.643, allocations: 233.7 kB / 0.8677 GB, free: 5.234 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001165/2.644, allocations: 189.1 kB / 0.8679 GB, free: 5.055 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (526): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 22,(2,100.0%) 6,(2,100.0%) 6,(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.001339/2.646, allocations: 395.1 kB / 0.8683 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/2.648, allocations: 0.579 MB / 0.8688 GB, free: 4.141 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3878/3.036, allocations: 7.837 MB / 0.8765 GB, free: 87.78 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.046e-05/3.036, allocations: 43.81 kB / 0.8765 GB, free: 87.78 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001425/3.036, allocations: 27.28 kB / 0.8766 GB, free: 87.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001353/3.036, allocations: 24.88 kB / 0.8766 GB, free: 87.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05215/3.088, allocations: 16.35 MB / 0.8926 GB, free: 86.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.084e-05/3.088, allocations: 3.562 kB / 0.8926 GB, free: 86.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004513/3.093, allocations: 456 kB / 0.893 GB, free: 86.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01006/3.103, allocations: 2.235 MB / 0.8952 GB, free: 86.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001129/3.104, allocations: 99.09 kB / 0.8953 GB, free: 86.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07444/3.179, allocations: 34.49 MB / 0.9289 GB, free: 69.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.978e-06/3.179, allocations: 6.906 kB / 0.929 GB, free: 69.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02847/3.207, allocations: 11.38 MB / 0.9401 GB, free: 68.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005208/3.212, allocations: 1.205 MB / 0.9412 GB, free: 68.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002536/3.215, allocations: 85.81 kB / 0.9413 GB, free: 68.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006712/3.222, allocations: 258.1 kB / 0.9416 GB, free: 68.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002817/3.225, allocations: 436.2 kB / 0.942 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00127/3.226, allocations: 118.1 kB / 0.9421 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01284/3.239, allocations: 3.571 MB / 0.9456 GB, free: 67.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.432e-06/3.239, allocations: 0 / 0.9456 GB, free: 67.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01629/3.255, allocations: 1.917 MB / 0.9475 GB, free: 67.86 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 228 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0437/3.299, allocations: 13.08 MB / 0.9602 GB, free: 63.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02491/3.324, allocations: 7.471 MB / 0.9675 GB, free: 59.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/3.324, allocations: 9.281 kB / 0.9675 GB, free: 59.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01821/3.342, allocations: 5.352 MB / 0.9728 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01461/3.357, allocations: 1.608 MB / 0.9743 GB, free: 56.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05283/3.41, allocations: 17.82 MB / 0.9917 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0113/3.421, allocations: 6.386 MB / 0.998 GB, free: 47.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008496/3.43, allocations: 3.932 MB / 1.002 GB, free: 43.86 MB / 0.4948 GB Notification: Performance of SimCode: time 2.054e-06/3.43, allocations: 0 / 1.002 GB, free: 43.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.412/12.84, allocations: 0.878 GB / 1.88 GB, free: 93.07 MB / 0.5261 GB