Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.748/1.748, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.816e-05/2.83e-05, allocations: 0 / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2591, allocations: 38.78 MB / 263.9 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4376/0.6967, allocations: 122.1 MB / 386 MB, free: 53.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.6971, allocations: 92.61 kB / 386.1 MB, free: 53.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5014/1.198, allocations: 124.1 MB / 0.4983 GB, free: 4.316 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.199, allocations: 0 / 0.4983 GB, free: 4.316 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006498/1.199, allocations: 143.8 kB / 0.4984 GB, free: 4.176 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.2912/1.49, allocations: 5.235 MB / 0.5035 GB, free: 36.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/1.49, allocations: 9.562 kB / 0.5035 GB, free: 36.1 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003609/1.494, allocations: 0.7336 MB / 0.5042 GB, free: 36.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00665/1.501, allocations: 0.895 MB / 0.5051 GB, free: 35.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01476/1.516, allocations: 3.933 MB / 0.5089 GB, free: 35.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005565/1.516, allocations: 405.6 kB / 0.5093 GB, free: 35.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002327/1.519, allocations: 0.5309 MB / 0.5098 GB, free: 35.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02431/1.543, allocations: 6.635 MB / 0.5163 GB, free: 34.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003795/1.543, allocations: 12.66 kB / 0.5163 GB, free: 34.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001901/1.545, allocations: 229.9 kB / 0.5166 GB, free: 34.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002963/1.546, allocations: 231.1 kB / 0.5168 GB, free: 34.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/1.563, allocations: 5.067 MB / 0.5217 GB, free: 34.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05821/1.621, allocations: 22.49 MB / 0.5437 GB, free: 29.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007014/1.628, allocations: 4.278 MB / 0.5479 GB, free: 27.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004938/1.633, allocations: 1.971 MB / 0.5498 GB, free: 27.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006309/1.634, allocations: 157 kB / 0.5499 GB, free: 27.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/1.634, allocations: 58.44 kB / 0.55 GB, free: 27.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=245): time 5.841e-06/1.634, allocations: 0 / 0.55 GB, free: 27.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=299): time 0.05067/1.684, allocations: 12.37 MB / 0.5621 GB, free: 23.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/1.685, allocations: 81.86 kB / 0.5621 GB, free: 23.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/1.692, allocations: 2.843 MB / 0.5649 GB, free: 22.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006459/1.693, allocations: 73.02 kB / 0.565 GB, free: 22.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.695, allocations: 2.34 MB / 0.5673 GB, free: 20.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.696, allocations: 1.022 MB / 0.5683 GB, free: 20.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003747/1.697, allocations: 75.38 kB / 0.5683 GB, free: 20.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002493/1.697, allocations: 459 kB / 0.5688 GB, free: 19.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/1.701, allocations: 1.496 MB / 0.5702 GB, free: 19.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004876/1.706, allocations: 2.543 MB / 0.5727 GB, free: 17.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004986/1.711, allocations: 1.966 MB / 0.5747 GB, free: 16.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-05/1.711, allocations: 10.25 kB / 0.5747 GB, free: 16.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=464) (initialization): time 0.01481/1.726, allocations: 5.118 MB / 0.5797 GB, free: 14.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/1.726, allocations: 19.03 kB / 0.5797 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-05/1.726, allocations: 38.5 kB / 0.5797 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003867/1.73, allocations: 0.9383 MB / 0.5806 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006152/1.736, allocations: 0.8288 MB / 0.5814 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03926/1.775, allocations: 10.74 MB / 0.5919 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0134/1.789, allocations: 230 kB / 0.5922 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007172/1.796, allocations: 157.3 kB / 0.5923 GB, free: 23.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 3 {(6,72.2%) 23,(4,93.8%) 19,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001453/1.797, allocations: 318.1 kB / 0.5926 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/1.799, allocations: 389.1 kB / 0.593 GB, free: 22.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0178/1.817, allocations: 4.686 MB / 0.5976 GB, free: 20.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-05/1.817, allocations: 28.83 kB / 0.5976 GB, free: 20.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-05/1.817, allocations: 11.31 kB / 0.5976 GB, free: 20.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.046e-05/1.817, allocations: 15.23 kB / 0.5976 GB, free: 20.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03324/1.85, allocations: 10.98 MB / 0.6083 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01142/1.862, allocations: 3.771 MB / 0.612 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00455/1.866, allocations: 0.493 MB / 0.6125 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005099/1.872, allocations: 1.033 MB / 0.6135 GB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006603/1.872, allocations: 74.56 kB / 0.6136 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02807/1.9, allocations: 14.32 MB / 0.6276 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/1.9, allocations: 10.34 kB / 0.6276 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/1.921, allocations: 7.703 MB / 0.6351 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003386/1.924, allocations: 0.7819 MB / 0.6359 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001524/1.926, allocations: 69.58 kB / 0.6359 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004615/1.931, allocations: 182.3 kB / 0.6361 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/1.932, allocations: 239.5 kB / 0.6363 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004402/1.932, allocations: 83.75 kB / 0.6364 GB, free: 3.426 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006623/1.939, allocations: 2.156 MB / 0.6385 GB, free: 1.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.939, allocations: 3.609 kB / 0.6385 GB, free: 1.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00759/1.946, allocations: 1.159 MB / 0.6396 GB, free: 340 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3024/2.249, allocations: 10.47 MB / 0.6499 GB, free: 57.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/2.261, allocations: 4.67 MB / 0.6544 GB, free: 56.78 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/2.261, allocations: 3.562 kB / 0.6544 GB, free: 56.78 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009166/2.27, allocations: 2.993 MB / 0.6574 GB, free: 56.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007327/2.278, allocations: 0.8286 MB / 0.6582 GB, free: 56.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0318/2.309, allocations: 9.846 MB / 0.6678 GB, free: 54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006607/2.316, allocations: 3.498 MB / 0.6712 GB, free: 53.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005309/2.322, allocations: 2.151 MB / 0.6733 GB, free: 53.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/2.322, allocations: 3.938 kB / 0.6733 GB, free: 53.2 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5/7.321, allocations: 220.6 MB / 0.8887 GB, free: 17.45 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.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat