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.71/1.71, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.618e-05, allocations: 7.984 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.261, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4313/0.6924, allocations: 109.6 MB / 373.4 MB, free: 49.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.6928, allocations: 84.58 kB / 373.5 MB, free: 49.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4982/1.191, allocations: 113.1 MB / 486.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.191, allocations: 0 / 486.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006596/1.192, allocations: 127.9 kB / 486.7 MB, free: 11.55 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.0225/1.214, allocations: 4.835 MB / 491.6 MB, free: 6.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/1.214, allocations: 16.02 kB / 491.6 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003365/1.218, allocations: 0.6792 MB / 492.3 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005745/1.224, allocations: 0.7701 MB / 493 MB, free: 5.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/1.238, allocations: 3.612 MB / 496.6 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006756/1.239, allocations: 378 kB / 497 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002478/1.241, allocations: 0.492 MB / 497.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02562/1.267, allocations: 6.486 MB / 0.4922 GB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003719/1.267, allocations: 15.84 kB / 0.4922 GB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002025/1.269, allocations: 208 kB / 0.4924 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003558/1.27, allocations: 221.9 kB / 0.4926 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01942/1.289, allocations: 5.064 MB / 0.4975 GB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3204/1.609, allocations: 20.46 MB / 0.5175 GB, free: 45.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007706/1.617, allocations: 4.622 MB / 0.522 GB, free: 43.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00543/1.623, allocations: 2.101 MB / 0.5241 GB, free: 43.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006427/1.623, allocations: 153.3 kB / 0.5242 GB, free: 43.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/1.623, allocations: 63.53 kB / 0.5243 GB, free: 43.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=235): time 5.391e-06/1.624, allocations: 0 / 0.5243 GB, free: 43.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.04066/1.664, allocations: 11.03 MB / 0.5351 GB, free: 41.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/1.664, allocations: 78.25 kB / 0.5351 GB, free: 41.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006577/1.671, allocations: 2.507 MB / 0.5376 GB, free: 41.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006308/1.672, allocations: 73.05 kB / 0.5377 GB, free: 41.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/1.673, allocations: 2.043 MB / 0.5396 GB, free: 40.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.675, allocations: 0.9481 MB / 0.5406 GB, free: 39.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003291/1.675, allocations: 60.12 kB / 0.5406 GB, free: 39.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002365/1.675, allocations: 438.7 kB / 0.5411 GB, free: 39.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/1.679, allocations: 1.426 MB / 0.5424 GB, free: 39.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004586/1.684, allocations: 2.134 MB / 0.5445 GB, free: 38.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004702/1.689, allocations: 1.818 MB / 0.5463 GB, free: 38.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.554e-05/1.689, allocations: 3.688 kB / 0.5463 GB, free: 38.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01344/1.702, allocations: 4.753 MB / 0.5509 GB, free: 38.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.623e-05/1.702, allocations: 14.31 kB / 0.551 GB, free: 38.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.005e-05/1.702, allocations: 17.62 kB / 0.551 GB, free: 38.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003711/1.706, allocations: 0.9553 MB / 0.5519 GB, free: 38.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005256/1.711, allocations: 0.6757 MB / 0.5526 GB, free: 38.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01871/1.73, allocations: 12.86 MB / 0.5651 GB, free: 30.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/1.735, allocations: 156.3 kB / 0.5653 GB, free: 30.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007763/1.735, allocations: 116.9 kB / 0.5654 GB, free: 30.63 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.0008106/1.736, allocations: 296.5 kB / 0.5657 GB, free: 30.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/1.737, allocations: 332.4 kB / 0.566 GB, free: 30.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/1.751, allocations: 4.748 MB / 0.5706 GB, free: 28.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/1.751, allocations: 28.86 kB / 0.5707 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.216e-05/1.751, allocations: 11.81 kB / 0.5707 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.088e-05/1.751, allocations: 18.73 kB / 0.5707 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03945/1.79, allocations: 10.91 MB / 0.5813 GB, free: 23.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.631e-05/1.79, allocations: 3.5 kB / 0.5813 GB, free: 23.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005091/1.796, allocations: 429.8 kB / 0.5817 GB, free: 23.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006481/1.802, allocations: 1.099 MB / 0.5828 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007129/1.803, allocations: 61.94 kB / 0.5829 GB, free: 22.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03502/1.838, allocations: 18.29 MB / 0.6007 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.258e-05/1.838, allocations: 8.781 kB / 0.6007 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01984/1.858, allocations: 7.326 MB / 0.6079 GB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002986/1.861, allocations: 0.7423 MB / 0.6086 GB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/1.862, allocations: 59.14 kB / 0.6087 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003883/1.866, allocations: 143.8 kB / 0.6088 GB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001056/1.867, allocations: 221.7 kB / 0.609 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004217/1.868, allocations: 83.83 kB / 0.6091 GB, free: 3.641 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005186/1.873, allocations: 1.909 MB / 0.611 GB, free: 1.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.873, allocations: 0 / 0.611 GB, free: 1.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006291/1.879, allocations: 1.038 MB / 0.612 GB, free: 0.8789 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.02223/1.902, allocations: 9.539 MB / 0.6213 GB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01348/1.915, allocations: 4.722 MB / 0.6259 GB, free: 3.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.915, allocations: 0 / 0.6259 GB, free: 3.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009927/1.925, allocations: 3.381 MB / 0.6292 GB, free: 188 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/1.936, allocations: 1.026 MB / 0.6302 GB, free: 0 / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03552/1.971, allocations: 9.827 MB / 0.6398 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008474/1.98, allocations: 3.496 MB / 0.6432 GB, free: 4.703 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007378/1.987, allocations: 1.911 MB / 0.6451 GB, free: 2.93 MB / 394.7 MB Notification: Performance of SimCode: time 3.637e-06/1.987, allocations: 0 / 0.6451 GB, free: 2.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.686/7.674, allocations: 295.7 MB / 0.9339 GB, free: 74.04 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