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.69/1.69, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.887e-05, allocations: 0 / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2567, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5399/0.7966, allocations: 109.6 MB / 373.5 MB, free: 49.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003835/0.797, allocations: 84.19 kB / 373.6 MB, free: 49.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4648/1.262, allocations: 113.1 MB / 486.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.262, allocations: 0 / 486.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006141/1.263, allocations: 127.9 kB / 486.8 MB, free: 11.35 MB / 346.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.02245/1.285, allocations: 4.835 MB / 491.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.672e-05/1.285, allocations: 16.02 kB / 491.6 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003251/1.288, allocations: 0.6792 MB / 492.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006862/1.295, allocations: 0.7701 MB / 493.1 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/1.314, allocations: 3.612 MB / 496.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008311/1.315, allocations: 382 kB / 497 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002964/1.318, allocations: 0.492 MB / 497.5 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03205/1.35, allocations: 6.424 MB / 0.4921 GB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003859/1.35, allocations: 11.91 kB / 0.4922 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/1.352, allocations: 212 kB / 0.4924 GB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004625/1.353, allocations: 221.9 kB / 0.4926 GB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02292/1.376, allocations: 5.002 MB / 0.4975 GB, free: 4.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.317/1.693, allocations: 20.46 MB / 0.5174 GB, free: 44.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007432/1.7, allocations: 4.597 MB / 0.5219 GB, free: 42.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005187/1.705, allocations: 2.105 MB / 0.524 GB, free: 42.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005744/1.706, allocations: 151.8 kB / 0.5241 GB, free: 42.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.91e-05/1.706, allocations: 61 kB / 0.5242 GB, free: 42.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=235): time 5.61e-06/1.706, allocations: 2.906 kB / 0.5242 GB, free: 42.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.04014/1.746, allocations: 11.02 MB / 0.5349 GB, free: 41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/1.746, allocations: 81.25 kB / 0.535 GB, free: 40.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006488/1.753, allocations: 2.496 MB / 0.5375 GB, free: 40.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00064/1.754, allocations: 73.17 kB / 0.5375 GB, free: 40.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001824/1.756, allocations: 2.055 MB / 0.5395 GB, free: 39.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.757, allocations: 0.9404 MB / 0.5405 GB, free: 39.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/1.757, allocations: 62.38 kB / 0.5405 GB, free: 39.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002365/1.758, allocations: 429.4 kB / 0.5409 GB, free: 39.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003597/1.761, allocations: 1.433 MB / 0.5423 GB, free: 39.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004399/1.766, allocations: 2.12 MB / 0.5444 GB, free: 38.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0046/1.77, allocations: 1.808 MB / 0.5462 GB, free: 38.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-05/1.77, allocations: 10.72 kB / 0.5462 GB, free: 38.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01291/1.783, allocations: 4.696 MB / 0.5508 GB, free: 37.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/1.783, allocations: 16.72 kB / 0.5508 GB, free: 37.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-05/1.783, allocations: 18.62 kB / 0.5508 GB, free: 37.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003689/1.787, allocations: 0.9505 MB / 0.5517 GB, free: 37.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005254/1.792, allocations: 0.6745 MB / 0.5524 GB, free: 37.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/1.811, allocations: 12.86 MB / 0.5649 GB, free: 30.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/1.815, allocations: 157.9 kB / 0.5651 GB, free: 30.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007868/1.816, allocations: 117.7 kB / 0.5652 GB, free: 30.12 MB / 362.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.0007817/1.817, allocations: 285.5 kB / 0.5655 GB, free: 29.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.818, allocations: 332.2 kB / 0.5658 GB, free: 29.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.831, allocations: 4.749 MB / 0.5704 GB, free: 27.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.503e-05/1.831, allocations: 29.86 kB / 0.5705 GB, free: 27.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.99e-05/1.831, allocations: 14 kB / 0.5705 GB, free: 27.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.81e-05/1.831, allocations: 14.16 kB / 0.5705 GB, free: 27.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03102/1.862, allocations: 10.89 MB / 0.5811 GB, free: 22.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-05/1.862, allocations: 7.938 kB / 0.5811 GB, free: 22.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003746/1.866, allocations: 432.5 kB / 0.5815 GB, free: 22.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004662/1.871, allocations: 1.099 MB / 0.5826 GB, free: 22.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005927/1.871, allocations: 69.72 kB / 0.5827 GB, free: 22.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0245/1.896, allocations: 18.25 MB / 0.6005 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/1.896, allocations: 14.53 kB / 0.6005 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/1.912, allocations: 7.321 MB / 0.6077 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002692/1.915, allocations: 0.7429 MB / 0.6084 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001114/1.916, allocations: 67.95 kB / 0.6085 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003666/1.92, allocations: 146 kB / 0.6086 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009587/1.921, allocations: 224.8 kB / 0.6088 GB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/1.921, allocations: 74.47 kB / 0.6089 GB, free: 3.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004745/1.926, allocations: 1.907 MB / 0.6107 GB, free: 1.957 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.926, allocations: 2.062 kB / 0.6107 GB, free: 1.957 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006043/1.932, allocations: 1.048 MB / 0.6118 GB, free: 0.918 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.02145/1.953, allocations: 9.536 MB / 0.6211 GB, free: 7.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01306/1.966, allocations: 4.615 MB / 0.6256 GB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/1.967, allocations: 3.938 kB / 0.6256 GB, free: 3.582 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009763/1.976, allocations: 3.308 MB / 0.6288 GB, free: 496 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008412/1.985, allocations: 0.9049 MB / 0.6297 GB, free: 0 / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03194/2.017, allocations: 9.828 MB / 0.6393 GB, free: 7.387 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006785/2.024, allocations: 3.492 MB / 0.6427 GB, free: 4.723 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005093/2.029, allocations: 1.906 MB / 0.6446 GB, free: 2.957 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/2.029, allocations: 0 / 0.6446 GB, free: 2.957 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.59/7.619, allocations: 295.2 MB / 0.9328 GB, free: 73.34 MB / 410.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