Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.759/1.759, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.835e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2599, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4192/0.6791, allocations: 106.9 MB / 370.8 MB, free: 48.25 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/0.6795, allocations: 82.47 kB / 370.8 MB, free: 48.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.952/1.631, allocations: 181.4 MB / 0.5393 GB, free: 45.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.632, allocations: 0 / 0.5393 GB, free: 45.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000913/1.632, allocations: 203.8 kB / 0.5394 GB, free: 45.31 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.03319/1.666, allocations: 7.601 MB / 0.5469 GB, free: 42.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/1.666, allocations: 8.188 kB / 0.5469 GB, free: 42.76 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004693/1.67, allocations: 1.1 MB / 0.548 GB, free: 42.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009697/1.68, allocations: 1.354 MB / 0.5493 GB, free: 42.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02047/1.701, allocations: 5.847 MB / 0.555 GB, free: 41.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00078/1.702, allocations: 0.5976 MB / 0.5556 GB, free: 41.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003367/1.705, allocations: 0.7991 MB / 0.5563 GB, free: 41.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/1.74, allocations: 10.17 MB / 0.5663 GB, free: 40.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004507/1.74, allocations: 7.422 kB / 0.5663 GB, free: 40.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/1.743, allocations: 348.6 kB / 0.5666 GB, free: 40.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000391/1.743, allocations: 337.2 kB / 0.5669 GB, free: 40.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02586/1.769, allocations: 7.727 MB / 0.5745 GB, free: 40.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08431/1.854, allocations: 33.09 MB / 0.6068 GB, free: 23.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009368/1.863, allocations: 5.962 MB / 0.6126 GB, free: 18.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006995/1.87, allocations: 2.778 MB / 0.6153 GB, free: 17.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003639/1.87, allocations: 41.72 kB / 0.6154 GB, free: 17.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.587e-05/1.87, allocations: 66.28 kB / 0.6154 GB, free: 17.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=295): time 6.101e-06/1.871, allocations: 0 / 0.6154 GB, free: 17.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=353): time 0.03884/1.909, allocations: 11.62 MB / 0.6268 GB, free: 7.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/1.909, allocations: 86.17 kB / 0.6269 GB, free: 7.652 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/1.92, allocations: 3.741 MB / 0.6305 GB, free: 4.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007695/1.921, allocations: 81.7 kB / 0.6306 GB, free: 4.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003778/1.925, allocations: 3.373 MB / 0.6339 GB, free: 1.121 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00198/1.927, allocations: 1.192 MB / 0.6351 GB, free: 48 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006153/1.928, allocations: 91.02 kB / 0.6351 GB, free: 0 / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.3559/2.283, allocations: 479.9 kB / 0.6356 GB, free: 42.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005323/2.289, allocations: 1.717 MB / 0.6373 GB, free: 42.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005816/2.295, allocations: 2.971 MB / 0.6402 GB, free: 40.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005957/2.301, allocations: 2.289 MB / 0.6424 GB, free: 40.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.822e-05/2.301, allocations: 14.19 kB / 0.6424 GB, free: 40.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.01685/2.318, allocations: 5.831 MB / 0.6481 GB, free: 40.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.678e-05/2.318, allocations: 20.81 kB / 0.6481 GB, free: 40.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-05/2.318, allocations: 47.36 kB / 0.6482 GB, free: 40.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003859/2.322, allocations: 0.9249 MB / 0.6491 GB, free: 40.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/2.329, allocations: 0.9507 MB / 0.65 GB, free: 40.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02002/2.349, allocations: 12.26 MB / 0.662 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006061/2.355, allocations: 229.1 kB / 0.6622 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009961/2.356, allocations: 180.4 kB / 0.6624 GB, free: 35.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (469): * Single equations (assignments): 461 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 19,(1,100.0%) 5,(4,93.8%) 19,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001164/2.357, allocations: 361.7 kB / 0.6627 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/2.359, allocations: 483.2 kB / 0.6632 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/2.374, allocations: 5.248 MB / 0.6683 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-05/2.374, allocations: 30.44 kB / 0.6683 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/2.374, allocations: 21.12 kB / 0.6684 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.296e-05/2.374, allocations: 18.94 kB / 0.6684 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03991/2.414, allocations: 14.31 MB / 0.6824 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.913e-05/2.414, allocations: 12.81 kB / 0.6824 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004698/2.419, allocations: 0.5566 MB / 0.6829 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004493/2.423, allocations: 1.08 MB / 0.684 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006629/2.424, allocations: 82.86 kB / 0.684 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02494/2.449, allocations: 15.72 MB / 0.6994 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/2.449, allocations: 12.31 kB / 0.6994 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01953/2.468, allocations: 9.312 MB / 0.7085 GB, free: 18.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00372/2.472, allocations: 0.9653 MB / 0.7094 GB, free: 17.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001681/2.474, allocations: 82.52 kB / 0.7095 GB, free: 17.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005276/2.479, allocations: 210.7 kB / 0.7097 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/2.48, allocations: 290.3 kB / 0.71 GB, free: 17.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004008/2.481, allocations: 104.6 kB / 0.7101 GB, free: 17.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007801/2.489, allocations: 2.846 MB / 0.7129 GB, free: 16.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.489, allocations: 0 / 0.7129 GB, free: 16.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008338/2.497, allocations: 1.462 MB / 0.7143 GB, free: 16.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * 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,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/2.519, allocations: 12.64 MB / 0.7267 GB, free: 7.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01423/2.533, allocations: 5.453 MB / 0.732 GB, free: 5.516 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-05/2.533, allocations: 6.359 kB / 0.732 GB, free: 5.516 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0106/2.543, allocations: 3.674 MB / 0.7356 GB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008752/2.552, allocations: 1.069 MB / 0.7366 GB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05596/2.608, allocations: 14.45 MB / 0.7507 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/2.619, allocations: 5.003 MB / 0.7556 GB, free: 7.496 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008187/2.627, allocations: 3.153 MB / 0.7587 GB, free: 4.559 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/2.627, allocations: 0 / 0.7587 GB, free: 4.559 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.624/9.251, allocations: 351.9 MB / 1.102 GB, free: 73.58 MB / 426.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_MultiPhase_res.mat does not exist to compare? outputFormat=mat