Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.21e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3248, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.5151, allocations: 106.1 MB / 400.3 MB, free: 7.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.5155, allocations: 83.95 kB / 400.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9157/1.431, allocations: 180.7 MB / 0.5675 GB, free: 176 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.431, allocations: 0 / 0.5675 GB, free: 176 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.5553/1.987, allocations: 195.4 kB / 0.5676 GB, free: 33.02 MB / 394.8 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.03732/2.024, allocations: 7.602 MB / 0.5751 GB, free: 32.02 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/2.024, allocations: 9.688 kB / 0.5751 GB, free: 32.02 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/2.04, allocations: 1.82 MB / 0.5769 GB, free: 31.55 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02648/2.067, allocations: 6.962 MB / 0.5837 GB, free: 30.62 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006643/2.067, allocations: 263 kB / 0.5839 GB, free: 30.62 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003527/2.071, allocations: 478.8 kB / 0.5844 GB, free: 30.62 MB / 394.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02713/2.098, allocations: 8.515 MB / 0.5927 GB, free: 30.58 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03525/2.133, allocations: 9.604 MB / 0.6021 GB, free: 29.79 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006038/2.134, allocations: 13.06 kB / 0.6021 GB, free: 29.78 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002948/2.137, allocations: 7.344 kB / 0.6021 GB, free: 29.78 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005326/2.137, allocations: 369.2 kB / 0.6024 GB, free: 29.76 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08869/2.226, allocations: 32.98 MB / 0.6346 GB, free: 23.36 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02835/2.255, allocations: 19.47 MB / 0.6536 GB, free: 22.17 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008811/2.263, allocations: 3.465 MB / 0.657 GB, free: 20.89 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03009/2.294, allocations: 9.127 MB / 0.6659 GB, free: 16.38 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.747e-05/2.294, allocations: 68.58 kB / 0.666 GB, free: 16.32 MB / 410.8 MB Notification: Performance of pre-optimization done (n=315): time 6.182e-06/2.294, allocations: 0 / 0.666 GB, free: 16.32 MB / 410.8 MB Notification: Performance of matching and sorting (n=321): time 0.03533/2.329, allocations: 10.42 MB / 0.6762 GB, free: 11.49 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/2.329, allocations: 85.16 kB / 0.6763 GB, free: 11.42 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009114/2.338, allocations: 3.14 MB / 0.6793 GB, free: 10.21 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007845/2.339, allocations: 25.7 kB / 0.6794 GB, free: 10.18 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003622/2.343, allocations: 3.315 MB / 0.6826 GB, free: 7.574 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/2.345, allocations: 1.042 MB / 0.6836 GB, free: 6.754 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004947/2.345, allocations: 0 / 0.6836 GB, free: 6.754 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0004265/2.346, allocations: 464 kB / 0.6841 GB, free: 6.379 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004459/2.35, allocations: 1.607 MB / 0.6856 GB, free: 5.707 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005676/2.356, allocations: 2.622 MB / 0.6882 GB, free: 3.797 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007713/2.364, allocations: 2.401 MB / 0.6905 GB, free: 2.895 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.831e-05/2.364, allocations: 12.25 kB / 0.6905 GB, free: 2.895 MB / 410.8 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01762/2.381, allocations: 5.374 MB / 0.6958 GB, free: 0.7812 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.889e-05/2.381, allocations: 20 kB / 0.6958 GB, free: 0.7617 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.08e-05/2.382, allocations: 32 kB / 0.6958 GB, free: 0.7305 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003475/2.385, allocations: 0.777 MB / 0.6966 GB, free: 68 kB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01124/2.396, allocations: 1.087 MB / 0.6977 GB, free: 0 / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/2.419, allocations: 14.26 MB / 0.7116 GB, free: 2.02 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005563/2.424, allocations: 113.8 kB / 0.7117 GB, free: 1.938 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/2.426, allocations: 163.5 kB / 0.7119 GB, free: 1.785 MB / 426.8 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.001639/2.427, allocations: 217.7 kB / 0.7121 GB, free: 1.629 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01755/2.445, allocations: 5.059 MB / 0.717 GB, free: 13.27 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001977/2.447, allocations: 414.7 kB / 0.7174 GB, free: 12.86 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01932/2.466, allocations: 5.37 MB / 0.7226 GB, free: 8.375 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.261e-05/2.466, allocations: 28 kB / 0.7227 GB, free: 8.348 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.279e-05/2.466, allocations: 20 kB / 0.7227 GB, free: 8.328 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-05/2.466, allocations: 14.86 kB / 0.7227 GB, free: 8.328 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3538/2.82, allocations: 11.31 MB / 0.7338 GB, free: 72.96 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.995e-05/2.82, allocations: 3.719 kB / 0.7338 GB, free: 72.96 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003653/2.824, allocations: 378.2 kB / 0.7341 GB, free: 72.96 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006206/2.83, allocations: 1.33 MB / 0.7354 GB, free: 72.89 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007621/2.831, allocations: 46.56 kB / 0.7355 GB, free: 72.89 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03531/2.866, allocations: 23.11 MB / 0.758 GB, free: 61.71 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/2.867, allocations: 3.969 kB / 0.758 GB, free: 61.71 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/2.887, allocations: 8.129 MB / 0.766 GB, free: 60.48 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003659/2.891, allocations: 0.8915 MB / 0.7668 GB, free: 60.39 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002152/2.893, allocations: 27.27 kB / 0.7669 GB, free: 60.39 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004969/2.898, allocations: 135.1 kB / 0.767 GB, free: 60.39 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001568/2.899, allocations: 325.6 kB / 0.7673 GB, free: 60.38 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006979/2.9, allocations: 88.98 kB / 0.7674 GB, free: 60.38 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006179/2.906, allocations: 2.342 MB / 0.7697 GB, free: 60.23 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.042e-06/2.906, allocations: 0 / 0.7697 GB, free: 60.23 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009052/2.916, allocations: 1.295 MB / 0.7709 GB, free: 60.23 MB / 442.8 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.02236/2.938, allocations: 9.876 MB / 0.7806 GB, free: 57.61 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01177/2.95, allocations: 5.113 MB / 0.7856 GB, free: 56.58 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/2.95, allocations: 0 / 0.7856 GB, free: 56.58 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009476/2.959, allocations: 3.791 MB / 0.7893 GB, free: 55.55 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007911/2.967, allocations: 0.844 MB / 0.7901 GB, free: 55.54 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0468/3.014, allocations: 13.52 MB / 0.8033 GB, free: 52.74 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01081/3.025, allocations: 5.116 MB / 0.8083 GB, free: 51.85 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007695/3.033, allocations: 3.039 MB / 0.8113 GB, free: 51.84 MB / 442.8 MB Notification: Performance of SimCode: time 1.763e-06/3.033, allocations: 0 / 0.8113 GB, free: 51.84 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.645/9.678, allocations: 484.3 MB / 1.284 GB, free: 99.19 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat