Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.638/2.638, allocations: 195 MB / 202.9 MB, free: 6.629 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.804e-05, allocations: 3.906 kB / 249.8 MB, free: 5.285 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 44.52 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.597/0.7124, allocations: 123.6 MB / 417.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003766/0.7128, allocations: 88.5 kB / 417.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.894, allocations: 149.4 MB / 0.5541 GB, free: 68.69 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.307e-06/1.894, allocations: 0 / 0.5541 GB, free: 68.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001065/1.895, allocations: 178.2 kB / 0.5542 GB, free: 68.66 MB / 394.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.03428/1.929, allocations: 6.564 MB / 0.5606 GB, free: 66.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.265e-05/1.929, allocations: 11.22 kB / 0.5606 GB, free: 66.26 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004757/1.934, allocations: 0.6484 MB / 0.5613 GB, free: 66.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/1.946, allocations: 1.253 MB / 0.5625 GB, free: 65.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02865/1.975, allocations: 6.213 MB / 0.5686 GB, free: 63.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006676/1.976, allocations: 289.6 kB / 0.5688 GB, free: 63.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00353/1.979, allocations: 407.9 kB / 0.5692 GB, free: 63.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02741/2.007, allocations: 7.03 MB / 0.5761 GB, free: 59.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03514/2.042, allocations: 8.193 MB / 0.5841 GB, free: 51.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005683/2.042, allocations: 11.91 kB / 0.5841 GB, free: 51.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003085/2.046, allocations: 8 kB / 0.5841 GB, free: 51.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004595/2.046, allocations: 298.9 kB / 0.5844 GB, free: 51.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09367/2.14, allocations: 28.14 MB / 0.6119 GB, free: 25.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01936/2.159, allocations: 11.58 MB / 0.6232 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009836/2.169, allocations: 3.16 MB / 0.6263 GB, free: 9.207 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02671/2.196, allocations: 6.592 MB / 0.6327 GB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.293e-05/2.196, allocations: 64.97 kB / 0.6328 GB, free: 2.492 MB / 394.7 MB Notification: Performance of pre-optimization done (n=306): time 8.015e-06/2.196, allocations: 0 / 0.6328 GB, free: 2.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=325): time 0.4584/2.654, allocations: 11.05 MB / 0.6436 GB, free: 61.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/2.654, allocations: 85.59 kB / 0.6437 GB, free: 61.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009672/2.664, allocations: 2.788 MB / 0.6464 GB, free: 61.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008715/2.665, allocations: 27.02 kB / 0.6464 GB, free: 61.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003606/2.669, allocations: 3.08 MB / 0.6494 GB, free: 60.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001829/2.671, allocations: 1.049 MB / 0.6504 GB, free: 59.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/2.671, allocations: 0 / 0.6504 GB, free: 59.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003112/2.671, allocations: 458.6 kB / 0.6509 GB, free: 59.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004949/2.676, allocations: 1.72 MB / 0.6526 GB, free: 59.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00588/2.682, allocations: 2.605 MB / 0.6551 GB, free: 58.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007262/2.69, allocations: 2.266 MB / 0.6573 GB, free: 58.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.994e-05/2.69, allocations: 7.812 kB / 0.6573 GB, free: 58.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.02156/2.711, allocations: 5.904 MB / 0.6631 GB, free: 57.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/2.711, allocations: 15.5 kB / 0.6631 GB, free: 57.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-05/2.711, allocations: 28.53 kB / 0.6631 GB, free: 57.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005986/2.717, allocations: 1.212 MB / 0.6643 GB, free: 57.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008302/2.726, allocations: 0.8146 MB / 0.6651 GB, free: 57.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02919/2.755, allocations: 19.85 MB / 0.6845 GB, free: 43.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006209/2.761, allocations: 131.1 kB / 0.6846 GB, free: 43.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/2.763, allocations: 148.8 kB / 0.6848 GB, free: 43.91 MB / 394.7 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.001334/2.764, allocations: 203.4 kB / 0.685 GB, free: 43.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001771/2.766, allocations: 406.9 kB / 0.6853 GB, free: 43.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0203/2.786, allocations: 5.757 MB / 0.691 GB, free: 41.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.968e-05/2.786, allocations: 30.84 kB / 0.691 GB, free: 41.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.245e-05/2.786, allocations: 16.94 kB / 0.691 GB, free: 41.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001167/2.786, allocations: 19.19 kB / 0.691 GB, free: 41.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04108/2.827, allocations: 11.19 MB / 0.702 GB, free: 36.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.468e-05/2.828, allocations: 3.812 kB / 0.702 GB, free: 36.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/2.833, allocations: 467.8 kB / 0.7024 GB, free: 36.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008223/2.841, allocations: 1.565 MB / 0.7039 GB, free: 35.87 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000874/2.842, allocations: 24.33 kB / 0.704 GB, free: 35.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04236/2.885, allocations: 28.97 MB / 0.7322 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/2.885, allocations: 7.719 kB / 0.7323 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02642/2.911, allocations: 8.638 MB / 0.7407 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004212/2.916, allocations: 0.8574 MB / 0.7415 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001928/2.918, allocations: 20.73 kB / 0.7415 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005895/2.923, allocations: 148.5 kB / 0.7417 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/2.925, allocations: 284.1 kB / 0.742 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006083/2.926, allocations: 90.5 kB / 0.742 GB, free: 7.043 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006685/2.933, allocations: 2.078 MB / 0.7441 GB, free: 6.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.503e-06/2.933, allocations: 0 / 0.7441 GB, free: 6.223 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00975/2.942, allocations: 1.213 MB / 0.7453 GB, free: 5.41 MB / 394.7 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.03221/2.975, allocations: 10.26 MB / 0.7553 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02005/2.995, allocations: 5.895 MB / 0.761 GB, free: 6.453 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/2.995, allocations: 4 kB / 0.761 GB, free: 6.449 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01562/3.01, allocations: 4.518 MB / 0.7655 GB, free: 2.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/3.023, allocations: 0.949 MB / 0.7664 GB, free: 1.434 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0565/3.079, allocations: 12.75 MB / 0.7788 GB, free: 7.016 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0109/3.09, allocations: 4.615 MB / 0.7833 GB, free: 3.578 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007611/3.098, allocations: 0.9739 MB / 0.7843 GB, free: 2.914 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008257/3.106, allocations: 2.657 MB / 0.7869 GB, free: 452 kB / 426.7 MB Notification: Performance of SimCode: time 1.813e-06/3.106, allocations: 0 / 0.7869 GB, free: 452 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8883/3.994, allocations: 108.3 MB / 0.8927 GB, free: 33.94 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003429/3.995, allocations: 163 kB / 0.8928 GB, free: 33.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.995/12.99, allocations: 3 kB / 0.8928 GB, free: 33.75 MB / 426.7 MB