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.647/1.647, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.129e-05/2.127e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2459, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.668, allocations: 121.5 MB / 379.8 MB, free: 56.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.6683, allocations: 82.5 kB / 379.9 MB, free: 56.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6787/1.347, allocations: 122.5 MB / 0.4906 GB, free: 29.92 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.347, allocations: 0 / 0.4906 GB, free: 29.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006775/1.348, allocations: 142.6 kB / 0.4908 GB, free: 29.92 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: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.02178/1.369, allocations: 5.244 MB / 0.4959 GB, free: 28.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/1.37, allocations: 14 kB / 0.4959 GB, free: 28.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006016/1.376, allocations: 0.8858 MB / 0.4968 GB, free: 28.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/1.388, allocations: 3.938 MB / 0.5006 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/1.389, allocations: 173.9 kB / 0.5008 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/1.39, allocations: 324.3 kB / 0.5011 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01362/1.404, allocations: 4.808 MB / 0.5058 GB, free: 27.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01672/1.421, allocations: 5.901 MB / 0.5115 GB, free: 26.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/1.421, allocations: 13.5 kB / 0.5116 GB, free: 26.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006759/1.421, allocations: 6.781 kB / 0.5116 GB, free: 26.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002508/1.422, allocations: 233.1 kB / 0.5118 GB, free: 26.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0692/1.491, allocations: 21.44 MB / 0.5327 GB, free: 21.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02205/1.513, allocations: 4.238 MB / 0.5369 GB, free: 19.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01401/1.527, allocations: 1.9 MB / 0.5387 GB, free: 19.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006357/1.528, allocations: 156.8 kB / 0.5389 GB, free: 19.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/1.528, allocations: 66.48 kB / 0.5389 GB, free: 19.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=249): time 5.37e-06/1.528, allocations: 0 / 0.5389 GB, free: 19.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=303): time 0.0302/1.558, allocations: 9.847 MB / 0.5486 GB, free: 18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/1.558, allocations: 85.3 kB / 0.5486 GB, free: 17.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00457/1.563, allocations: 2.297 MB / 0.5509 GB, free: 17.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005381/1.563, allocations: 29.61 kB / 0.5509 GB, free: 17.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/1.565, allocations: 2.376 MB / 0.5532 GB, free: 16.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.566, allocations: 0.9908 MB / 0.5542 GB, free: 15.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/1.566, allocations: 0 / 0.5542 GB, free: 15.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002087/1.566, allocations: 457.3 kB / 0.5546 GB, free: 14.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/1.569, allocations: 1.435 MB / 0.556 GB, free: 14.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/1.573, allocations: 2.488 MB / 0.5585 GB, free: 12.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003857/1.577, allocations: 1.905 MB / 0.5603 GB, free: 11.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.223e-05/1.577, allocations: 7.75 kB / 0.5603 GB, free: 11.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01122/1.588, allocations: 4.85 MB / 0.5651 GB, free: 9.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/1.588, allocations: 19.41 kB / 0.5651 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-05/1.588, allocations: 36.19 kB / 0.5651 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003402/1.592, allocations: 0.9301 MB / 0.566 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005736/1.597, allocations: 0.8319 MB / 0.5668 GB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/1.615, allocations: 10.28 MB / 0.5769 GB, free: 18.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004532/1.619, allocations: 152.2 kB / 0.577 GB, free: 18.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003954/1.62, allocations: 161.5 kB / 0.5772 GB, free: 18.81 MB / 362.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 (407): * Single equations (assignments): 398 * 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.0007439/1.62, allocations: 206.4 kB / 0.5774 GB, free: 18.67 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009662/1.63, allocations: 4.166 MB / 0.5814 GB, free: 16.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009984/1.631, allocations: 349.4 kB / 0.5818 GB, free: 16.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.641, allocations: 4.418 MB / 0.5861 GB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.081e-05/1.642, allocations: 28.97 kB / 0.5861 GB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/1.642, allocations: 9.969 kB / 0.5861 GB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/1.642, allocations: 17.55 kB / 0.5861 GB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02517/1.667, allocations: 10.08 MB / 0.596 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.009182/1.676, allocations: 3.64 MB / 0.5995 GB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004077/1.68, allocations: 0.5006 MB / 0.6 GB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004444/1.685, allocations: 1.017 MB / 0.601 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002825/1.685, allocations: 31.22 kB / 0.6011 GB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02448/1.709, allocations: 13.79 MB / 0.6145 GB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.088e-05/1.709, allocations: 15.94 kB / 0.6145 GB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3024/2.012, allocations: 7.326 MB / 0.6217 GB, free: 52.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003049/2.015, allocations: 0.7367 MB / 0.6224 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/2.016, allocations: 20.34 kB / 0.6224 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003721/2.02, allocations: 140.7 kB / 0.6226 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009363/2.021, allocations: 237.1 kB / 0.6228 GB, free: 52.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003385/2.021, allocations: 88.38 kB / 0.6229 GB, free: 52.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004493/2.026, allocations: 1.693 MB / 0.6245 GB, free: 52.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.71e-07/2.026, allocations: 0 / 0.6245 GB, free: 52.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006314/2.032, allocations: 0.99 MB / 0.6255 GB, free: 52.33 MB / 378.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 (234): * Single equations (assignments): 226 * 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,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01602/2.048, allocations: 10.16 MB / 0.6354 GB, free: 48.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01126/2.059, allocations: 4.581 MB / 0.6399 GB, free: 47.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.059, allocations: 3.875 kB / 0.6399 GB, free: 47.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007829/2.067, allocations: 2.955 MB / 0.6428 GB, free: 46.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005634/2.073, allocations: 0.6085 MB / 0.6434 GB, free: 46.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02794/2.101, allocations: 9.557 MB / 0.6527 GB, free: 44.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005355/2.106, allocations: 3.498 MB / 0.6561 GB, free: 43.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00471/2.111, allocations: 2.113 MB / 0.6582 GB, free: 43.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/2.111, allocations: 0 / 0.6582 GB, free: 43.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.463/6.575, allocations: 216.6 MB / 0.8697 GB, free: 23.4 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