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.628/1.628, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.007e-05/4.011e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2564, allocations: 38.76 MB / 263.9 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.4288, allocations: 102.4 MB / 366.3 MB, free: 3.258 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.4291, allocations: 83.95 kB / 366.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004/1.433, allocations: 160.2 MB / 0.5142 GB, free: 27.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.433, allocations: 0 / 0.5142 GB, free: 27.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006703/1.434, allocations: 178.7 kB / 0.5144 GB, free: 27.65 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.027/1.461, allocations: 6.429 MB / 0.5207 GB, free: 25.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/1.461, allocations: 12.94 kB / 0.5207 GB, free: 25.6 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00367/1.465, allocations: 0.9367 MB / 0.5216 GB, free: 25.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007525/1.472, allocations: 1.104 MB / 0.5227 GB, free: 25.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/1.487, allocations: 4.898 MB / 0.5275 GB, free: 24.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006115/1.488, allocations: 0.4987 MB / 0.5279 GB, free: 24.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002623/1.49, allocations: 0.6782 MB / 0.5286 GB, free: 24.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/1.518, allocations: 8.616 MB / 0.537 GB, free: 23.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003138/1.518, allocations: 13.8 kB / 0.537 GB, free: 23.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001834/1.52, allocations: 294 kB / 0.5373 GB, free: 23.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003529/1.52, allocations: 305.2 kB / 0.5376 GB, free: 23.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02081/1.541, allocations: 6.561 MB / 0.544 GB, free: 23.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06603/1.607, allocations: 27.71 MB / 0.5711 GB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008502/1.616, allocations: 5.343 MB / 0.5763 GB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005544/1.621, allocations: 2.395 MB / 0.5786 GB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002719/1.622, allocations: 30.86 kB / 0.5786 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/1.622, allocations: 67.7 kB / 0.5787 GB, free: 8.086 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 5.37e-06/1.622, allocations: 0 / 0.5787 GB, free: 8.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=320): time 0.03079/1.653, allocations: 10.37 MB / 0.5888 GB, free: 3.176 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/1.653, allocations: 84.98 kB / 0.5889 GB, free: 3.105 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007242/1.66, allocations: 3.048 MB / 0.5919 GB, free: 1.887 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006098/1.661, allocations: 84.77 kB / 0.592 GB, free: 1.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/1.663, allocations: 2.792 MB / 0.5947 GB, free: 15.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001653/1.665, allocations: 1.082 MB / 0.5958 GB, free: 14.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003609/1.665, allocations: 76 kB / 0.5958 GB, free: 14.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003115/1.665, allocations: 460 kB / 0.5963 GB, free: 13.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004076/1.669, allocations: 1.515 MB / 0.5978 GB, free: 12.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005057/1.674, allocations: 2.532 MB / 0.6002 GB, free: 9.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005206/1.68, allocations: 2.032 MB / 0.6022 GB, free: 7.828 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.137e-05/1.68, allocations: 8 kB / 0.6022 GB, free: 7.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01453/1.694, allocations: 5.193 MB / 0.6073 GB, free: 3.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.494e-05/1.694, allocations: 16.09 kB / 0.6073 GB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.373e-05/1.695, allocations: 36 kB / 0.6073 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004124/1.699, allocations: 0.9737 MB / 0.6083 GB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005925/1.705, allocations: 0.7799 MB / 0.6091 GB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02547/1.73, allocations: 15.11 MB / 0.6238 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00492/1.735, allocations: 165.2 kB / 0.624 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007414/1.736, allocations: 154.6 kB / 0.6241 GB, free: 2.723 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.0008663/1.737, allocations: 324.1 kB / 0.6244 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.738, allocations: 415 kB / 0.6248 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2901/2.028, allocations: 5.271 MB / 0.63 GB, free: 51.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.268e-05/2.028, allocations: 41.72 kB / 0.63 GB, free: 51.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-05/2.028, allocations: 17.09 kB / 0.63 GB, free: 51.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-05/2.028, allocations: 14.91 kB / 0.63 GB, free: 51.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0344/2.063, allocations: 13.14 MB / 0.6429 GB, free: 50.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-05/2.063, allocations: 11.78 kB / 0.6429 GB, free: 50.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00368/2.066, allocations: 468.6 kB / 0.6433 GB, free: 50.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/2.071, allocations: 1.102 MB / 0.6444 GB, free: 50.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004374/2.071, allocations: 77.17 kB / 0.6445 GB, free: 50.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02643/2.098, allocations: 18.21 MB / 0.6623 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/2.098, allocations: 11.12 kB / 0.6623 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01648/2.114, allocations: 8.018 MB / 0.6701 GB, free: 39.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003042/2.117, allocations: 0.838 MB / 0.6709 GB, free: 39.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/2.119, allocations: 69.38 kB / 0.671 GB, free: 39.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003946/2.123, allocations: 150.8 kB / 0.6711 GB, free: 39.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007784/2.124, allocations: 256.1 kB / 0.6714 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/2.124, allocations: 93.62 kB / 0.6715 GB, free: 39.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005433/2.129, allocations: 2.315 MB / 0.6737 GB, free: 39.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.533e-06/2.129, allocations: 3.938 kB / 0.6737 GB, free: 39.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007007/2.136, allocations: 1.273 MB / 0.675 GB, free: 39.13 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.01778/2.154, allocations: 11.13 MB / 0.6858 GB, free: 34.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01198/2.166, allocations: 5.038 MB / 0.6908 GB, free: 33.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/2.166, allocations: 3.938 kB / 0.6908 GB, free: 33.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008664/2.175, allocations: 3.238 MB / 0.6939 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008009/2.183, allocations: 1.041 MB / 0.6949 GB, free: 31.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/2.218, allocations: 12.18 MB / 0.7068 GB, free: 26.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006993/2.225, allocations: 4.351 MB / 0.7111 GB, free: 24.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005626/2.23, allocations: 2.578 MB / 0.7136 GB, free: 22.38 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/2.23, allocations: 0 / 0.7136 GB, free: 22.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.39/8.621, allocations: 362.9 MB / 1.068 GB, free: 70.86 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