Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.601e-05/3.597e-05, allocations: 0 / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2588, allocations: 38.77 MB / 263.9 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/0.6882, allocations: 109.6 MB / 373.5 MB, free: 49.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.6886, allocations: 88.45 kB / 373.6 MB, free: 49.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3977/1.086, allocations: 113.1 MB / 486.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.086, allocations: 0 / 486.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005692/1.087, allocations: 123.9 kB / 486.8 MB, free: 11.49 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.02131/1.108, allocations: 4.838 MB / 491.6 MB, free: 6.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/1.108, allocations: 12.03 kB / 491.6 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002932/1.111, allocations: 0.683 MB / 492.3 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005422/1.117, allocations: 0.774 MB / 493.1 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/1.129, allocations: 3.608 MB / 496.7 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005677/1.13, allocations: 382 kB / 497.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/1.132, allocations: 0.492 MB / 497.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/1.155, allocations: 6.432 MB / 0.4922 GB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003134/1.156, allocations: 11.91 kB / 0.4922 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001801/1.157, allocations: 208 kB / 0.4924 GB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003324/1.158, allocations: 213.9 kB / 0.4926 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/1.176, allocations: 5.006 MB / 0.4975 GB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/1.477, allocations: 20.46 MB / 0.5175 GB, free: 45.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00684/1.484, allocations: 4.598 MB / 0.522 GB, free: 43.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005229/1.489, allocations: 2.109 MB / 0.524 GB, free: 43.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000573/1.49, allocations: 145.2 kB / 0.5241 GB, free: 42.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/1.49, allocations: 67.19 kB / 0.5242 GB, free: 42.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=235): time 5.661e-06/1.49, allocations: 2.844 kB / 0.5242 GB, free: 42.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.03834/1.528, allocations: 11.02 MB / 0.535 GB, free: 41.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/1.528, allocations: 81.12 kB / 0.5351 GB, free: 41.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005443/1.534, allocations: 2.501 MB / 0.5375 GB, free: 41.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005833/1.534, allocations: 73.77 kB / 0.5376 GB, free: 40.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/1.536, allocations: 2.201 MB / 0.5397 GB, free: 40.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.537, allocations: 0.9416 MB / 0.5406 GB, free: 39.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000302/1.538, allocations: 63.59 kB / 0.5407 GB, free: 39.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/1.538, allocations: 431.4 kB / 0.5411 GB, free: 39.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/1.541, allocations: 1.432 MB / 0.5425 GB, free: 39.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003723/1.545, allocations: 2.12 MB / 0.5446 GB, free: 38.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00408/1.549, allocations: 1.809 MB / 0.5463 GB, free: 38.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.78e-05/1.549, allocations: 7.469 kB / 0.5464 GB, free: 38.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01223/1.561, allocations: 4.899 MB / 0.5511 GB, free: 38.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/1.561, allocations: 10.66 kB / 0.5511 GB, free: 38.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.984e-05/1.561, allocations: 20.94 kB / 0.5512 GB, free: 38.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/1.565, allocations: 0.9492 MB / 0.5521 GB, free: 38.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005247/1.57, allocations: 0.6723 MB / 0.5528 GB, free: 38.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/1.588, allocations: 12.85 MB / 0.5653 GB, free: 30.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/1.592, allocations: 157.9 kB / 0.5655 GB, free: 30.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005566/1.593, allocations: 120.8 kB / 0.5656 GB, free: 30.36 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.0007306/1.594, allocations: 284.6 kB / 0.5658 GB, free: 30.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009475/1.595, allocations: 331 kB / 0.5662 GB, free: 29.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/1.606, allocations: 4.751 MB / 0.5708 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/1.606, allocations: 29.2 kB / 0.5708 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.959e-05/1.606, allocations: 11 kB / 0.5708 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-05/1.606, allocations: 13.78 kB / 0.5708 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/1.634, allocations: 10.9 MB / 0.5815 GB, free: 23.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-05/1.634, allocations: 3.656 kB / 0.5815 GB, free: 23.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004264/1.638, allocations: 434.7 kB / 0.5819 GB, free: 23.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006441/1.644, allocations: 1.099 MB / 0.583 GB, free: 22.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/1.645, allocations: 68.12 kB / 0.583 GB, free: 22.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03305/1.678, allocations: 18.26 MB / 0.6009 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/1.678, allocations: 10 kB / 0.6009 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/1.699, allocations: 7.322 MB / 0.608 GB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003391/1.703, allocations: 0.743 MB / 0.6088 GB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/1.704, allocations: 63.7 kB / 0.6088 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00431/1.708, allocations: 143.4 kB / 0.609 GB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009661/1.709, allocations: 222.3 kB / 0.6092 GB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003751/1.71, allocations: 81.19 kB / 0.6093 GB, free: 3.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00581/1.716, allocations: 1.908 MB / 0.6111 GB, free: 1.754 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.716, allocations: 0 / 0.6111 GB, free: 1.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006601/1.722, allocations: 1.047 MB / 0.6121 GB, free: 0.7188 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.02106/1.743, allocations: 9.538 MB / 0.6215 GB, free: 7.707 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01195/1.755, allocations: 4.619 MB / 0.626 GB, free: 3.391 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.755, allocations: 8.062 kB / 0.626 GB, free: 3.383 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008928/1.764, allocations: 3.302 MB / 0.6292 GB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009248/1.774, allocations: 0.9836 MB / 0.6302 GB, free: 0 / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/1.804, allocations: 9.911 MB / 0.6398 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006104/1.811, allocations: 3.554 MB / 0.6433 GB, free: 4.641 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004278/1.815, allocations: 0.7345 MB / 0.644 GB, free: 4.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004587/1.82, allocations: 1.893 MB / 0.6459 GB, free: 2.371 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/1.82, allocations: 0.6562 kB / 0.6459 GB, free: 2.371 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5075/2.327, allocations: 90.57 MB / 0.7343 GB, free: 53.88 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002475/2.327, allocations: 186.3 kB / 0.7345 GB, free: 53.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.582/7.91, allocations: 8 kB / 0.7345 GB, free: 53.65 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat