Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.636/1.636, allocations: 171.2 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.436e-05, allocations: 4 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2902, allocations: 38.76 MB / 258.4 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.7124, allocations: 121.5 MB / 379.8 MB, free: 56.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.7127, allocations: 86.22 kB / 379.9 MB, free: 56.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6851/1.398, allocations: 122.5 MB / 0.4907 GB, free: 30.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.398, allocations: 0 / 0.4907 GB, free: 30.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006671/1.399, allocations: 140 kB / 0.4908 GB, free: 30.04 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.02184/1.42, allocations: 5.244 MB / 0.4959 GB, free: 28.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/1.421, allocations: 11.44 kB / 0.4959 GB, free: 28.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005859/1.426, allocations: 0.893 MB / 0.4968 GB, free: 28.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/1.439, allocations: 3.933 MB / 0.5006 GB, free: 27.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003418/1.44, allocations: 175.4 kB / 0.5008 GB, free: 27.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001964/1.442, allocations: 327.4 kB / 0.5011 GB, free: 27.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01407/1.456, allocations: 4.8 MB / 0.5058 GB, free: 27.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/1.477, allocations: 5.901 MB / 0.5116 GB, free: 26.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002721/1.477, allocations: 15 kB / 0.5116 GB, free: 26.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/1.478, allocations: 5.969 kB / 0.5116 GB, free: 26.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003815/1.479, allocations: 237.8 kB / 0.5118 GB, free: 26.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06388/1.542, allocations: 21.43 MB / 0.5328 GB, free: 21.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006093/1.549, allocations: 4.237 MB / 0.5369 GB, free: 19.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004203/1.553, allocations: 1.902 MB / 0.5387 GB, free: 19.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005326/1.553, allocations: 158.3 kB / 0.5389 GB, free: 19.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/1.554, allocations: 66.89 kB / 0.539 GB, free: 19.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=249): time 5.04e-06/1.554, allocations: 0 / 0.539 GB, free: 19.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=303): time 0.03064/1.584, allocations: 9.84 MB / 0.5486 GB, free: 17.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/1.584, allocations: 86.52 kB / 0.5487 GB, free: 17.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005051/1.589, allocations: 2.305 MB / 0.5509 GB, free: 17.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006123/1.59, allocations: 25.7 kB / 0.5509 GB, free: 17.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001832/1.592, allocations: 2.524 MB / 0.5534 GB, free: 16.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/1.593, allocations: 0.9827 MB / 0.5544 GB, free: 15.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/1.593, allocations: 0 / 0.5544 GB, free: 15.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/1.594, allocations: 455.6 kB / 0.5548 GB, free: 14.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003057/1.597, allocations: 1.437 MB / 0.5562 GB, free: 14.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003882/1.601, allocations: 2.483 MB / 0.5586 GB, free: 12.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004332/1.605, allocations: 1.902 MB / 0.5605 GB, free: 11.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.03e-05/1.605, allocations: 9.844 kB / 0.5605 GB, free: 11.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01283/1.618, allocations: 5.041 MB / 0.5654 GB, free: 9.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/1.618, allocations: 21.75 kB / 0.5654 GB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-05/1.618, allocations: 41.53 kB / 0.5655 GB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/1.622, allocations: 0.9292 MB / 0.5664 GB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006024/1.628, allocations: 0.836 MB / 0.5672 GB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/1.645, allocations: 10.27 MB / 0.5772 GB, free: 18.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/1.65, allocations: 151.6 kB / 0.5774 GB, free: 18.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007379/1.651, allocations: 164.7 kB / 0.5775 GB, free: 18.69 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.000803/1.652, allocations: 204.2 kB / 0.5777 GB, free: 18.55 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01002/1.662, allocations: 4.169 MB / 0.5818 GB, free: 16.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.663, allocations: 352 kB / 0.5821 GB, free: 16.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/1.674, allocations: 4.422 MB / 0.5864 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/1.674, allocations: 26 kB / 0.5865 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.674, allocations: 10.41 kB / 0.5865 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.199e-05/1.674, allocations: 21.58 kB / 0.5865 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02885/1.703, allocations: 10.08 MB / 0.5963 GB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01027/1.713, allocations: 3.642 MB / 0.5999 GB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005135/1.718, allocations: 0.4974 MB / 0.6004 GB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004933/1.723, allocations: 1.017 MB / 0.6014 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005602/1.724, allocations: 29.78 kB / 0.6014 GB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0301/1.754, allocations: 13.82 MB / 0.6149 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.238e-05/1.754, allocations: 11.94 kB / 0.6149 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3055/2.059, allocations: 7.481 MB / 0.6222 GB, free: 52.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003198/2.063, allocations: 0.7403 MB / 0.6229 GB, free: 52.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/2.064, allocations: 21.72 kB / 0.623 GB, free: 52.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004439/2.069, allocations: 141.9 kB / 0.6231 GB, free: 52.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001081/2.07, allocations: 229.1 kB / 0.6233 GB, free: 52.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000382/2.07, allocations: 89.28 kB / 0.6234 GB, free: 52.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005155/2.075, allocations: 1.696 MB / 0.6251 GB, free: 51.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.232e-06/2.075, allocations: 0 / 0.6251 GB, free: 51.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006766/2.082, allocations: 0.9864 MB / 0.626 GB, free: 51.93 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.01632/2.099, allocations: 10.17 MB / 0.6359 GB, free: 47.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01061/2.109, allocations: 4.576 MB / 0.6404 GB, free: 47.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/2.109, allocations: 6.453 kB / 0.6404 GB, free: 47.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007506/2.117, allocations: 2.956 MB / 0.6433 GB, free: 46.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005927/2.123, allocations: 0.6113 MB / 0.6439 GB, free: 46.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02656/2.149, allocations: 9.621 MB / 0.6533 GB, free: 44.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004551/2.154, allocations: 3.585 MB / 0.6568 GB, free: 43.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004367/2.158, allocations: 0.7316 MB / 0.6575 GB, free: 43.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004391/2.163, allocations: 2.092 MB / 0.6596 GB, free: 43.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/2.163, allocations: 4 kB / 0.6596 GB, free: 43.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2678/2.431, allocations: 81.95 MB / 0.7396 GB, free: 12.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/2.431, allocations: 163.1 kB / 0.7397 GB, free: 11.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.561/7.992, allocations: 8 kB / 0.7398 GB, free: 11.92 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat