Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.231e-05/2.228e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2482, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.4326, allocations: 108.9 MB / 367.3 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/0.433, allocations: 83.95 kB / 367.4 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6022/1.035, allocations: 111.6 MB / 479 MB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.035, allocations: 0 / 479 MB, free: 14.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006078/1.036, allocations: 131.8 kB / 479.1 MB, free: 14.13 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.02131/1.057, allocations: 4.831 MB / 484 MB, free: 9.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/1.057, allocations: 12.02 kB / 484 MB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00535/1.063, allocations: 0.7662 MB / 484.7 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/1.076, allocations: 3.619 MB / 488.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004299/1.076, allocations: 164 kB / 488.5 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002067/1.078, allocations: 311.8 kB / 488.8 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2907/1.369, allocations: 4.779 MB / 493.6 MB, free: 32.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/1.39, allocations: 5.754 MB / 499.4 MB, free: 31.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002685/1.39, allocations: 13.19 kB / 499.4 MB, free: 31.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001374/1.392, allocations: 6.531 kB / 499.4 MB, free: 31.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002646/1.392, allocations: 217.5 kB / 499.6 MB, free: 31.58 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04932/1.441, allocations: 19.5 MB / 0.5069 GB, free: 27.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006431/1.448, allocations: 4.53 MB / 0.5113 GB, free: 25.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004662/1.452, allocations: 2.031 MB / 0.5133 GB, free: 25.85 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005585/1.453, allocations: 149.5 kB / 0.5135 GB, free: 25.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/1.453, allocations: 55.38 kB / 0.5135 GB, free: 25.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=235): time 5.16e-06/1.453, allocations: 5.344 kB / 0.5135 GB, free: 25.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=278): time 0.02756/1.481, allocations: 9.305 MB / 0.5226 GB, free: 24.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/1.481, allocations: 86.5 kB / 0.5227 GB, free: 24.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00484/1.486, allocations: 2.031 MB / 0.5247 GB, free: 23.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000567/1.486, allocations: 25.7 kB / 0.5247 GB, free: 23.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/1.488, allocations: 2.097 MB / 0.5267 GB, free: 22.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.489, allocations: 0.9008 MB / 0.5276 GB, free: 22.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/1.489, allocations: 0 / 0.5276 GB, free: 22.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002131/1.49, allocations: 438.3 kB / 0.528 GB, free: 22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003042/1.493, allocations: 1.373 MB / 0.5294 GB, free: 22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003718/1.496, allocations: 2.057 MB / 0.5314 GB, free: 20.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00386/1.5, allocations: 1.737 MB / 0.5331 GB, free: 20.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.039e-05/1.5, allocations: 11.06 kB / 0.5331 GB, free: 20.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01143/1.512, allocations: 4.454 MB / 0.5375 GB, free: 18.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.03e-05/1.512, allocations: 11.91 kB / 0.5375 GB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.943e-05/1.512, allocations: 22.31 kB / 0.5375 GB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003365/1.515, allocations: 0.935 MB / 0.5384 GB, free: 18.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005064/1.52, allocations: 0.6767 MB / 0.5391 GB, free: 18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01706/1.538, allocations: 12.34 MB / 0.5511 GB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003698/1.541, allocations: 92.72 kB / 0.5512 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006979/1.542, allocations: 121.1 kB / 0.5513 GB, free: 8.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (333): * Single equations (assignments): 325 * 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: 5 * 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: 5 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 29,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007235/1.543, allocations: 185.2 kB / 0.5515 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01046/1.553, allocations: 4.239 MB / 0.5556 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.555, allocations: 309.1 kB / 0.5559 GB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/1.566, allocations: 4.482 MB / 0.5603 GB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.864e-05/1.566, allocations: 27.97 kB / 0.5603 GB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-05/1.566, allocations: 13.53 kB / 0.5603 GB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.229e-05/1.566, allocations: 10.78 kB / 0.5603 GB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0262/1.592, allocations: 9.986 MB / 0.5701 GB, free: 228 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.093e-05/1.592, allocations: 7.281 kB / 0.5701 GB, free: 228 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003592/1.596, allocations: 436.9 kB / 0.5705 GB, free: 208 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004535/1.601, allocations: 1.085 MB / 0.5716 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005433/1.601, allocations: 29.41 kB / 0.5716 GB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02795/1.629, allocations: 17.55 MB / 0.5888 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.534e-05/1.629, allocations: 11.19 kB / 0.5888 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02075/1.65, allocations: 7.015 MB / 0.5956 GB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003621/1.654, allocations: 0.6956 MB / 0.5963 GB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001356/1.655, allocations: 22.91 kB / 0.5963 GB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01514/1.67, allocations: 98.8 kB / 0.5964 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/1.672, allocations: 223.8 kB / 0.5966 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006275/1.674, allocations: 79.94 kB / 0.5967 GB, free: 7.539 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005655/1.68, allocations: 1.523 MB / 0.5982 GB, free: 6.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.252e-06/1.68, allocations: 2.812 kB / 0.5982 GB, free: 6.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01367/1.693, allocations: 0.9013 MB / 0.5991 GB, free: 5.273 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 199 * 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: 8 * 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: 8 {(5,92.0%) 27,(2,100.0%) 12,(1,100.0%) 7,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01916/1.713, allocations: 9.214 MB / 0.6081 GB, free: 12.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01185/1.724, allocations: 4.508 MB / 0.6125 GB, free: 8.262 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/1.725, allocations: 6.688 kB / 0.6125 GB, free: 8.258 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008912/1.733, allocations: 3.249 MB / 0.6156 GB, free: 5.223 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005911/1.739, allocations: 0.6258 MB / 0.6163 GB, free: 4.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3077/2.047, allocations: 9.748 MB / 0.6258 GB, free: 72.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008854/2.056, allocations: 3.493 MB / 0.6292 GB, free: 71.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006642/2.063, allocations: 1.906 MB / 0.631 GB, free: 71.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.014e-06/2.063, allocations: 0 / 0.631 GB, free: 71.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.149/7.211, allocations: 291.6 MB / 0.9158 GB, free: 84.76 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat