Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.087e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3098, allocations: 44.5 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.5046, allocations: 110.6 MB / 404.8 MB, free: 3.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.505, allocations: 87.95 kB / 404.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162/1.667, allocations: 166.9 MB / 0.5584 GB, free: 25.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.667, allocations: 0 / 0.5584 GB, free: 25.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008238/1.668, allocations: 176.4 kB / 0.5586 GB, free: 25.69 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: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.03125/1.7, allocations: 6.658 MB / 0.5651 GB, free: 23.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/1.7, allocations: 7.625 kB / 0.5651 GB, free: 23.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/1.713, allocations: 1.593 MB / 0.5666 GB, free: 23.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02163/1.735, allocations: 5.907 MB / 0.5724 GB, free: 22.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004965/1.735, allocations: 234.2 kB / 0.5726 GB, free: 22.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002915/1.738, allocations: 436.9 kB / 0.573 GB, free: 22.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02246/1.761, allocations: 7.085 MB / 0.58 GB, free: 22.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02956/1.79, allocations: 8.292 MB / 0.5881 GB, free: 21.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004634/1.791, allocations: 6.094 kB / 0.5881 GB, free: 21.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002453/1.793, allocations: 10.31 kB / 0.5881 GB, free: 21.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004564/1.794, allocations: 344.5 kB / 0.5884 GB, free: 21.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07675/1.87, allocations: 29.18 MB / 0.6169 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0218/1.892, allocations: 15.81 MB / 0.6323 GB, free: 18.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00718/1.9, allocations: 2.905 MB / 0.6352 GB, free: 16.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02481/1.924, allocations: 7.907 MB / 0.6429 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.833e-05/1.925, allocations: 67.39 kB / 0.643 GB, free: 12.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=283): time 6.371e-06/1.925, allocations: 0 / 0.643 GB, free: 12.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=291): time 0.03025/1.955, allocations: 8.74 MB / 0.6515 GB, free: 8.574 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/1.955, allocations: 86.61 kB / 0.6516 GB, free: 8.504 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007048/1.962, allocations: 2.506 MB / 0.654 GB, free: 7.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000638/1.963, allocations: 28.98 kB / 0.6541 GB, free: 7.449 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003435/1.966, allocations: 3.037 MB / 0.657 GB, free: 5.059 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0016/1.968, allocations: 0.9608 MB / 0.658 GB, free: 4.297 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003659/1.968, allocations: 0 / 0.658 GB, free: 4.297 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003601/1.969, allocations: 457.1 kB / 0.6584 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003656/1.972, allocations: 1.324 MB / 0.6597 GB, free: 3.355 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004975/1.977, allocations: 2.427 MB / 0.6621 GB, free: 1.375 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007021/1.984, allocations: 2.122 MB / 0.6641 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-05/1.984, allocations: 13.91 kB / 0.6641 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01528/2, allocations: 4.547 MB / 0.6686 GB, free: 14.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/2, allocations: 22.28 kB / 0.6686 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.906e-05/2, allocations: 36.12 kB / 0.6686 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/2.001, allocations: 392.1 kB / 0.669 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006742/2.008, allocations: 0.8654 MB / 0.6699 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009682/2.018, allocations: 7.04 MB / 0.6767 GB, free: 8.297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005083/2.023, allocations: 105.8 kB / 0.6768 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/2.024, allocations: 167.9 kB / 0.677 GB, free: 8.055 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (451): * Single equations (assignments): 445 * 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: 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009166/2.025, allocations: 215.3 kB / 0.6772 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0138/2.039, allocations: 4.027 MB / 0.6811 GB, free: 4.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00166/2.041, allocations: 358.9 kB / 0.6815 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/2.056, allocations: 4.349 MB / 0.6857 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.187e-05/2.056, allocations: 32 kB / 0.6857 GB, free: 200 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.653e-05/2.056, allocations: 12 kB / 0.6858 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.533e-05/2.056, allocations: 15.56 kB / 0.6858 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03375/2.09, allocations: 9.607 MB / 0.6952 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.354e-05/2.09, allocations: 7.562 kB / 0.6952 GB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004261/2.095, allocations: 455.9 kB / 0.6956 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004035/2.099, allocations: 0.8432 MB / 0.6964 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006422/2.099, allocations: 46.31 kB / 0.6965 GB, free: 7.832 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3393/2.439, allocations: 15.68 MB / 0.7118 GB, free: 60.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/2.439, allocations: 9.234 kB / 0.7118 GB, free: 60.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01824/2.457, allocations: 6.691 MB / 0.7183 GB, free: 59.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003037/2.46, allocations: 0.7538 MB / 0.7191 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001817/2.462, allocations: 18.03 kB / 0.7191 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004368/2.466, allocations: 108 kB / 0.7192 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001067/2.467, allocations: 216.2 kB / 0.7194 GB, free: 59.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005753/2.468, allocations: 84.41 kB / 0.7195 GB, free: 59.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005152/2.473, allocations: 1.852 MB / 0.7213 GB, free: 59.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/2.473, allocations: 0 / 0.7213 GB, free: 59.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007673/2.481, allocations: 1.113 MB / 0.7224 GB, free: 59.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (220): * Single equations (assignments): 213 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0187/2.5, allocations: 8.691 MB / 0.7308 GB, free: 56.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009306/2.509, allocations: 3.957 MB / 0.7347 GB, free: 55.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/2.509, allocations: 3.594 kB / 0.7347 GB, free: 55.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006933/2.516, allocations: 2.784 MB / 0.7374 GB, free: 55.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007172/2.523, allocations: 0.7587 MB / 0.7382 GB, free: 55.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04086/2.564, allocations: 11.62 MB / 0.7495 GB, free: 52.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009123/2.573, allocations: 4.36 MB / 0.7538 GB, free: 51.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006676/2.58, allocations: 2.679 MB / 0.7564 GB, free: 51.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/2.58, allocations: 0 / 0.7564 GB, free: 51.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.727/8.307, allocations: 330.9 MB / 1.08 GB, free: 93.38 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat