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.132/2.132, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.478e-05, allocations: 3.656 kB / 249.8 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 44.5 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5214/0.641, allocations: 106.1 MB / 400.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.6414, allocations: 83.83 kB / 400.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.116/1.757, allocations: 180.7 MB / 0.5675 GB, free: 59.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.637e-06/1.757, allocations: 4 kB / 0.5676 GB, free: 59.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001173/1.758, allocations: 198.7 kB / 0.5677 GB, free: 59.21 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.05364/1.812, allocations: 7.605 MB / 0.5752 GB, free: 55.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.771e-05/1.812, allocations: 14.67 kB / 0.5752 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02633/1.839, allocations: 1.823 MB / 0.577 GB, free: 55.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03453/1.873, allocations: 6.952 MB / 0.5837 GB, free: 51.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006187/1.874, allocations: 260.7 kB / 0.584 GB, free: 51.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003682/1.878, allocations: 487.6 kB / 0.5845 GB, free: 51.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02976/1.907, allocations: 8.52 MB / 0.5928 GB, free: 43.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03494/1.942, allocations: 9.596 MB / 0.6022 GB, free: 34.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004221/1.943, allocations: 11.98 kB / 0.6022 GB, free: 34.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002546/1.945, allocations: 8 kB / 0.6022 GB, free: 34.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004589/1.946, allocations: 368.3 kB / 0.6025 GB, free: 33.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09288/2.039, allocations: 32.99 MB / 0.6347 GB, free: 356 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.408/2.447, allocations: 19.47 MB / 0.6538 GB, free: 39.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01587/2.463, allocations: 3.457 MB / 0.6571 GB, free: 39.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04368/2.506, allocations: 9.134 MB / 0.6661 GB, free: 38.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.756e-05/2.507, allocations: 66.08 kB / 0.6661 GB, free: 38.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=315): time 1.233e-05/2.507, allocations: 0 / 0.6661 GB, free: 38.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=321): time 0.04597/2.553, allocations: 10.42 MB / 0.6763 GB, free: 36.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/2.553, allocations: 86.31 kB / 0.6764 GB, free: 36.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007569/2.56, allocations: 3.137 MB / 0.6794 GB, free: 36.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007133/2.561, allocations: 25.7 kB / 0.6795 GB, free: 36.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002953/2.564, allocations: 3.54 MB / 0.6829 GB, free: 34.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001521/2.566, allocations: 1.038 MB / 0.6839 GB, free: 34.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003694/2.566, allocations: 0 / 0.6839 GB, free: 34.19 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002867/2.566, allocations: 461 kB / 0.6844 GB, free: 33.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004062/2.57, allocations: 1.608 MB / 0.6859 GB, free: 33.87 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004771/2.575, allocations: 2.62 MB / 0.6885 GB, free: 32.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007824/2.583, allocations: 2.401 MB / 0.6908 GB, free: 32.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.445e-05/2.583, allocations: 8.469 kB / 0.6909 GB, free: 32.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01831/2.601, allocations: 5.617 MB / 0.6963 GB, free: 30.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.466e-05/2.602, allocations: 20.28 kB / 0.6964 GB, free: 30.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.488e-05/2.602, allocations: 29.19 kB / 0.6964 GB, free: 30.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003514/2.605, allocations: 0.7796 MB / 0.6971 GB, free: 30.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007162/2.612, allocations: 0.8071 MB / 0.6979 GB, free: 30.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02016/2.633, allocations: 14.26 MB / 0.7119 GB, free: 18.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005725/2.638, allocations: 107.8 kB / 0.712 GB, free: 18.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/2.639, allocations: 160.8 kB / 0.7121 GB, free: 18.66 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.001165/2.641, allocations: 219.3 kB / 0.7123 GB, free: 18.52 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01726/2.658, allocations: 5.054 MB / 0.7173 GB, free: 16.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/2.66, allocations: 415.1 kB / 0.7177 GB, free: 16.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01869/2.679, allocations: 5.369 MB / 0.7229 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.436e-05/2.679, allocations: 27.78 kB / 0.7229 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.687e-05/2.679, allocations: 24.25 kB / 0.7229 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.418e-05/2.679, allocations: 14.11 kB / 0.723 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0359/2.715, allocations: 11.26 MB / 0.734 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.179e-05/2.715, allocations: 3.906 kB / 0.734 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003914/2.719, allocations: 376.5 kB / 0.7343 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008608/2.727, allocations: 1.341 MB / 0.7356 GB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007961/2.728, allocations: 46.05 kB / 0.7357 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05796/2.786, allocations: 23.12 MB / 0.7582 GB, free: 5.738 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.677e-05/2.786, allocations: 6.625 kB / 0.7583 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04416/2.83, allocations: 8.713 MB / 0.7668 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004362/2.835, allocations: 0.8852 MB / 0.7676 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001886/2.837, allocations: 35.28 kB / 0.7677 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004593/2.841, allocations: 138 kB / 0.7678 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001369/2.843, allocations: 322 kB / 0.7681 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004036/2.843, allocations: 94.41 kB / 0.7682 GB, free: 14.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006694/2.85, allocations: 2.337 MB / 0.7705 GB, free: 12.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.85, allocations: 0 / 0.7705 GB, free: 12.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00894/2.859, allocations: 1.293 MB / 0.7717 GB, free: 11.34 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.02701/2.886, allocations: 9.863 MB / 0.7814 GB, free: 2.254 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03042/2.917, allocations: 5.36 MB / 0.7866 GB, free: 14.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/2.917, allocations: 4 kB / 0.7866 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01466/2.931, allocations: 3.801 MB / 0.7903 GB, free: 10.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008681/2.94, allocations: 0.8488 MB / 0.7911 GB, free: 9.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4282/3.368, allocations: 13.83 MB / 0.8046 GB, free: 91.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01446/3.383, allocations: 5.24 MB / 0.8098 GB, free: 91.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007867/3.391, allocations: 0.9353 MB / 0.8107 GB, free: 91.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008389/3.399, allocations: 3.015 MB / 0.8136 GB, free: 91.01 MB / 442.7 MB Notification: Performance of SimCode: time 2.474e-06/3.399, allocations: 1.562 kB / 0.8136 GB, free: 91.01 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3076/3.707, allocations: 107.1 MB / 0.9182 GB, free: 41.79 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002711/3.707, allocations: 182 kB / 0.9184 GB, free: 41.59 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.996/11.7, allocations: 4.031 kB / 0.9184 GB, free: 41.58 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat