Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.122e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2957, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2088/0.5045, allocations: 123.6 MB / 417.8 MB, free: 6.227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.5049, allocations: 87.95 kB / 417.9 MB, free: 6.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7472/1.252, allocations: 148.6 MB / 0.5532 GB, free: 1.383 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.252, allocations: 0 / 0.5532 GB, free: 1.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007915/1.253, allocations: 183.7 kB / 0.5534 GB, free: 1.203 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.3109/1.564, allocations: 6.55 MB / 0.5598 GB, free: 26.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/1.564, allocations: 10.19 kB / 0.5598 GB, free: 26.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/1.574, allocations: 1.24 MB / 0.561 GB, free: 26.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02323/1.598, allocations: 6.235 MB / 0.5671 GB, free: 25.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004808/1.598, allocations: 226.1 kB / 0.5673 GB, free: 25.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002855/1.601, allocations: 405.3 kB / 0.5677 GB, free: 25.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02107/1.622, allocations: 7.021 MB / 0.5745 GB, free: 25.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0258/1.648, allocations: 8.192 MB / 0.5825 GB, free: 24.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002834/1.648, allocations: 18.45 kB / 0.5826 GB, free: 24.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001391/1.65, allocations: 7.562 kB / 0.5826 GB, free: 24.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003198/1.65, allocations: 287.5 kB / 0.5828 GB, free: 24.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1096/1.76, allocations: 28.15 MB / 0.6103 GB, free: 18.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.78, allocations: 11.57 MB / 0.6216 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007265/1.787, allocations: 3.145 MB / 0.6247 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01769/1.805, allocations: 6.602 MB / 0.6312 GB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.321e-05/1.805, allocations: 67.56 kB / 0.6312 GB, free: 6.258 MB / 378.7 MB Notification: Performance of pre-optimization done (n=306): time 5.951e-06/1.805, allocations: 0 / 0.6312 GB, free: 6.258 MB / 378.7 MB Notification: Performance of matching and sorting (n=325): time 0.02946/1.835, allocations: 11.06 MB / 0.642 GB, free: 1.219 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/1.835, allocations: 84.59 kB / 0.6421 GB, free: 1.152 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00556/1.84, allocations: 2.794 MB / 0.6448 GB, free: 88 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006891/1.841, allocations: 25.7 kB / 0.6449 GB, free: 56 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002762/1.844, allocations: 2.868 MB / 0.6477 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001636/1.845, allocations: 1.045 MB / 0.6487 GB, free: 12.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/1.846, allocations: 0 / 0.6487 GB, free: 12.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000323/1.846, allocations: 465.7 kB / 0.6491 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/1.85, allocations: 1.714 MB / 0.6508 GB, free: 11.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/1.854, allocations: 2.601 MB / 0.6533 GB, free: 10.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005387/1.86, allocations: 2.263 MB / 0.6555 GB, free: 9.289 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/1.86, allocations: 7.312 kB / 0.6555 GB, free: 9.289 MB / 394.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.014/1.874, allocations: 5.68 MB / 0.6611 GB, free: 7.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/1.874, allocations: 14.53 kB / 0.6611 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.914e-05/1.874, allocations: 27.19 kB / 0.6611 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004416/1.878, allocations: 1.213 MB / 0.6623 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006184/1.885, allocations: 0.8129 MB / 0.6631 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02692/1.912, allocations: 19.86 MB / 0.6825 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005043/1.917, allocations: 125.3 kB / 0.6826 GB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006577/1.917, allocations: 150.9 kB / 0.6828 GB, free: 2.949 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008915/1.918, allocations: 210.5 kB / 0.683 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01786/1.936, allocations: 5.635 MB / 0.6885 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00169/1.938, allocations: 403.1 kB / 0.6889 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01562/1.954, allocations: 5.763 MB / 0.6945 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.296e-05/1.954, allocations: 32 kB / 0.6945 GB, free: 9.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/1.954, allocations: 16 kB / 0.6945 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-05/1.954, allocations: 17.72 kB / 0.6945 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03094/1.985, allocations: 11.19 MB / 0.7055 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.386e-05/1.985, allocations: 4.781 kB / 0.7055 GB, free: 0 / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006894/1.992, allocations: 0.6249 MB / 0.7061 GB, free: 0 / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.5835/2.575, allocations: 1.562 MB / 0.7076 GB, free: 67.94 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005786/2.576, allocations: 30.45 kB / 0.7076 GB, free: 67.94 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03221/2.608, allocations: 28.96 MB / 0.7359 GB, free: 48.63 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/2.608, allocations: 6.969 kB / 0.7359 GB, free: 48.63 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0181/2.626, allocations: 8.647 MB / 0.7444 GB, free: 47.32 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00312/2.629, allocations: 0.8604 MB / 0.7452 GB, free: 47.22 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/2.63, allocations: 17.91 kB / 0.7452 GB, free: 47.22 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003416/2.634, allocations: 152.7 kB / 0.7454 GB, free: 47.22 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009756/2.635, allocations: 280.1 kB / 0.7456 GB, free: 47.21 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003041/2.635, allocations: 91.17 kB / 0.7457 GB, free: 47.21 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00408/2.639, allocations: 2.078 MB / 0.7478 GB, free: 47.07 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.042e-06/2.639, allocations: 0 / 0.7478 GB, free: 47.07 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006772/2.646, allocations: 1.208 MB / 0.7489 GB, free: 47.07 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01931/2.665, allocations: 10.24 MB / 0.7589 GB, free: 44.57 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01106/2.677, allocations: 5.897 MB / 0.7647 GB, free: 43.05 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/2.677, allocations: 10.91 kB / 0.7647 GB, free: 43.05 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008732/2.685, allocations: 4.505 MB / 0.7691 GB, free: 41.26 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007415/2.693, allocations: 0.9447 MB / 0.77 GB, free: 41.24 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03271/2.725, allocations: 12.4 MB / 0.7821 GB, free: 38.62 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00776/2.733, allocations: 4.521 MB / 0.7866 GB, free: 37.7 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005993/2.739, allocations: 2.686 MB / 0.7892 GB, free: 37.7 MB / 426.8 MB Notification: Performance of SimCode: time 1.673e-06/2.739, allocations: 0 / 0.7892 GB, free: 37.7 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.22/9.959, allocations: 0.6156 GB / 1.405 GB, free: 110.5 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.AIMS_Start_res.mat does not exist to compare? outputFormat=mat