Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.718/1.718, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.753e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2677, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1803/0.4481, allocations: 102.4 MB / 366.3 MB, free: 3.266 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.4485, allocations: 87.94 kB / 366.4 MB, free: 3.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062/1.51, allocations: 160.2 MB / 0.5142 GB, free: 27.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.51, allocations: 0 / 0.5142 GB, free: 27.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007249/1.511, allocations: 174.5 kB / 0.5144 GB, free: 27.66 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.02826/1.539, allocations: 6.423 MB / 0.5206 GB, free: 25.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/1.539, allocations: 15.22 kB / 0.5206 GB, free: 25.62 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004054/1.544, allocations: 0.9325 MB / 0.5216 GB, free: 25.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007907/1.552, allocations: 1.113 MB / 0.5226 GB, free: 25.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.569, allocations: 4.9 MB / 0.5274 GB, free: 24.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007031/1.57, allocations: 0.5009 MB / 0.5279 GB, free: 24.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002985/1.573, allocations: 0.6713 MB / 0.5286 GB, free: 24.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0305/1.603, allocations: 8.691 MB / 0.5371 GB, free: 23.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004714/1.604, allocations: 10.94 kB / 0.5371 GB, free: 23.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002503/1.606, allocations: 293.7 kB / 0.5373 GB, free: 23.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004147/1.607, allocations: 310 kB / 0.5376 GB, free: 23.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02278/1.63, allocations: 6.656 MB / 0.5441 GB, free: 23.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07421/1.704, allocations: 27.7 MB / 0.5712 GB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009921/1.714, allocations: 5.369 MB / 0.5764 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006269/1.72, allocations: 2.399 MB / 0.5788 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003926/1.721, allocations: 36.69 kB / 0.5788 GB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/1.721, allocations: 68.89 kB / 0.5789 GB, free: 8.082 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 6.021e-06/1.721, allocations: 0 / 0.5789 GB, free: 8.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=320): time 0.04025/1.761, allocations: 10.37 MB / 0.589 GB, free: 3.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/1.761, allocations: 81.86 kB / 0.5891 GB, free: 3.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0078/1.769, allocations: 3.054 MB / 0.5921 GB, free: 1.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006242/1.77, allocations: 77.7 kB / 0.5921 GB, free: 1.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002588/1.772, allocations: 2.792 MB / 0.5949 GB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001798/1.774, allocations: 1.088 MB / 0.5959 GB, free: 14.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004102/1.774, allocations: 76 kB / 0.596 GB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003589/1.775, allocations: 456.6 kB / 0.5964 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004557/1.779, allocations: 1.51 MB / 0.5979 GB, free: 12.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005889/1.785, allocations: 2.554 MB / 0.6004 GB, free: 9.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005911/1.791, allocations: 2.032 MB / 0.6024 GB, free: 7.723 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-05/1.791, allocations: 8 kB / 0.6024 GB, free: 7.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01657/1.808, allocations: 5.285 MB / 0.6076 GB, free: 3.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.855e-05/1.808, allocations: 20.75 kB / 0.6076 GB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.607e-05/1.808, allocations: 32 kB / 0.6076 GB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004461/1.813, allocations: 0.9771 MB / 0.6086 GB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006236/1.819, allocations: 0.7743 MB / 0.6093 GB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02716/1.846, allocations: 15.1 MB / 0.6241 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004973/1.851, allocations: 170.7 kB / 0.6242 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008876/1.852, allocations: 155.7 kB / 0.6244 GB, free: 2.574 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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): 399 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 6 {(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009743/1.853, allocations: 324.2 kB / 0.6247 GB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.854, allocations: 403.1 kB / 0.6251 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3032/2.157, allocations: 4.88 MB / 0.6298 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.976e-05/2.158, allocations: 35.95 kB / 0.6299 GB, free: 51.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.391e-05/2.158, allocations: 16.53 kB / 0.6299 GB, free: 51.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.652e-05/2.158, allocations: 23.17 kB / 0.6299 GB, free: 51.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04606/2.204, allocations: 13.15 MB / 0.6428 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.624e-05/2.204, allocations: 14.12 kB / 0.6428 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003761/2.208, allocations: 466 kB / 0.6432 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004474/2.212, allocations: 1.107 MB / 0.6443 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004906/2.213, allocations: 78.89 kB / 0.6444 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02628/2.239, allocations: 18.21 MB / 0.6622 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/2.239, allocations: 9.562 kB / 0.6622 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/2.255, allocations: 8.009 MB / 0.67 GB, free: 39.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002981/2.258, allocations: 0.8469 MB / 0.6708 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/2.26, allocations: 71.19 kB / 0.6709 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003829/2.263, allocations: 156.5 kB / 0.671 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008357/2.264, allocations: 248.9 kB / 0.6713 GB, free: 39.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002816/2.265, allocations: 95.77 kB / 0.6714 GB, free: 39.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005343/2.27, allocations: 2.315 MB / 0.6736 GB, free: 39.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.27, allocations: 3.938 kB / 0.6736 GB, free: 39.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006526/2.276, allocations: 1.269 MB / 0.6749 GB, free: 39.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01787/2.294, allocations: 11.14 MB / 0.6857 GB, free: 34.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/2.306, allocations: 5.162 MB / 0.6908 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.66e-05/2.307, allocations: 3.312 kB / 0.6908 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008593/2.315, allocations: 3.314 MB / 0.694 GB, free: 30.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007915/2.323, allocations: 1.036 MB / 0.695 GB, free: 30.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04411/2.367, allocations: 12.21 MB / 0.707 GB, free: 25.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01025/2.378, allocations: 4.345 MB / 0.7112 GB, free: 23.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00754/2.385, allocations: 2.577 MB / 0.7137 GB, free: 21.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.853e-06/2.385, allocations: 0 / 0.7137 GB, free: 21.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.055/8.44, allocations: 363.6 MB / 1.069 GB, free: 71.75 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.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat