Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.93/2.93, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.782e-05/2.797e-05, allocations: 4.125 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 44.52 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.563/0.6679, allocations: 106.1 MB / 400.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003461/0.6683, allocations: 86.61 kB / 400.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.316/1.985, allocations: 181.7 MB / 0.5685 GB, free: 59.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.796e-06/1.985, allocations: 0 / 0.5685 GB, free: 59.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001066/1.986, allocations: 191.3 kB / 0.5687 GB, free: 59.27 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.05098/2.037, allocations: 7.611 MB / 0.5761 GB, free: 55.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.906e-05/2.037, allocations: 14.89 kB / 0.5761 GB, free: 55.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005186/2.042, allocations: 0.7766 MB / 0.5769 GB, free: 55.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02132/2.064, allocations: 1.821 MB / 0.5787 GB, free: 54.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03214/2.096, allocations: 6.956 MB / 0.5854 GB, free: 51.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007945/2.097, allocations: 342.9 kB / 0.5858 GB, free: 51.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003705/2.1, allocations: 479.7 kB / 0.5862 GB, free: 50.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03189/2.132, allocations: 8.518 MB / 0.5946 GB, free: 42.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03993/2.172, allocations: 9.61 MB / 0.6039 GB, free: 32.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005384/2.173, allocations: 4 kB / 0.6039 GB, free: 32.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003056/2.176, allocations: 7.953 kB / 0.6039 GB, free: 32.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005469/2.176, allocations: 372.2 kB / 0.6043 GB, free: 32.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5807/2.757, allocations: 32.98 MB / 0.6365 GB, free: 53.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05958/2.817, allocations: 19.49 MB / 0.6555 GB, free: 39.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01182/2.829, allocations: 3.455 MB / 0.6589 GB, free: 38.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04256/2.871, allocations: 9.123 MB / 0.6678 GB, free: 38.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.155e-05/2.872, allocations: 73.23 kB / 0.6679 GB, free: 38.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=315): time 8.716e-06/2.872, allocations: 0 / 0.6679 GB, free: 38.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=321): time 0.04191/2.913, allocations: 10.42 MB / 0.6781 GB, free: 36.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/2.914, allocations: 83.78 kB / 0.6781 GB, free: 36.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009945/2.924, allocations: 3.141 MB / 0.6812 GB, free: 36.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008352/2.924, allocations: 26.36 kB / 0.6812 GB, free: 36.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003862/2.928, allocations: 3.532 MB / 0.6847 GB, free: 34.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001873/2.93, allocations: 1.04 MB / 0.6857 GB, free: 33.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004716/2.931, allocations: 0 / 0.6857 GB, free: 33.87 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003413/2.931, allocations: 465.4 kB / 0.6861 GB, free: 33.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00494/2.936, allocations: 1.606 MB / 0.6877 GB, free: 33.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006309/2.942, allocations: 2.62 MB / 0.6903 GB, free: 32.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008938/2.951, allocations: 2.401 MB / 0.6926 GB, free: 31.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-05/2.952, allocations: 13.38 kB / 0.6926 GB, free: 31.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.02063/2.972, allocations: 5.611 MB / 0.6981 GB, free: 29.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.359e-05/2.972, allocations: 22 kB / 0.6981 GB, free: 29.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.105e-05/2.972, allocations: 31.69 kB / 0.6982 GB, free: 29.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003867/2.976, allocations: 0.7797 MB / 0.6989 GB, free: 29.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007801/2.984, allocations: 0.8076 MB / 0.6997 GB, free: 29.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0221/3.006, allocations: 14.26 MB / 0.7136 GB, free: 17.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006384/3.013, allocations: 107.8 kB / 0.7137 GB, free: 17.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/3.014, allocations: 164.4 kB / 0.7139 GB, free: 17.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (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 (427): * Single equations (assignments): 418 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001167/3.015, allocations: 215.5 kB / 0.7141 GB, free: 17.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/3.017, allocations: 411.5 kB / 0.7145 GB, free: 17.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02555/3.042, allocations: 5.372 MB / 0.7197 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.451e-05/3.042, allocations: 30.12 kB / 0.7198 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001052/3.043, allocations: 18.38 kB / 0.7198 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001207/3.043, allocations: 19.12 kB / 0.7198 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04221/3.085, allocations: 11.26 MB / 0.7308 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-05/3.085, allocations: 7.734 kB / 0.7308 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004554/3.09, allocations: 374.4 kB / 0.7312 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007796/3.097, allocations: 1.333 MB / 0.7325 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008828/3.098, allocations: 44.69 kB / 0.7325 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05299/3.151, allocations: 23.11 MB / 0.7551 GB, free: 8.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.03e-05/3.152, allocations: 8.5 kB / 0.7551 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04242/3.194, allocations: 8.124 MB / 0.763 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006193/3.2, allocations: 0.8945 MB / 0.7639 GB, free: 272 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002982/3.203, allocations: 27.61 kB / 0.7639 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008469/3.212, allocations: 136.3 kB / 0.7641 GB, free: 148 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003699/3.216, allocations: 346.3 kB / 0.7644 GB, free: 0 / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002018/3.218, allocations: 128 kB / 0.7645 GB, free: 0 / 410.7 MB Notification: Performance of sorting global known variables: time 0.00959/3.227, allocations: 2.35 MB / 0.7668 GB, free: 13.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.112e-06/3.227, allocations: 0 / 0.7668 GB, free: 13.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01192/3.239, allocations: 1.296 MB / 0.7681 GB, free: 12.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (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 (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03475/3.274, allocations: 9.876 MB / 0.7777 GB, free: 3.559 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0176/3.292, allocations: 5.102 MB / 0.7827 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/3.292, allocations: 0 / 0.7827 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01378/3.306, allocations: 3.791 MB / 0.7864 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009806/3.315, allocations: 0.8416 MB / 0.7872 GB, free: 10.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4415/3.757, allocations: 13.85 MB / 0.8007 GB, free: 92.97 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01454/3.772, allocations: 5.244 MB / 0.8059 GB, free: 92.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008013/3.78, allocations: 0.93 MB / 0.8068 GB, free: 92.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009021/3.789, allocations: 3.016 MB / 0.8097 GB, free: 92.08 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/3.789, allocations: 0 / 0.8097 GB, free: 92.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3577/4.147, allocations: 111.1 MB / 0.9182 GB, free: 38.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002967/4.147, allocations: 186 kB / 0.9184 GB, free: 38.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.874/13.02, allocations: 0 / 0.9184 GB, free: 38.05 MB / 442.7 MB