Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.002e-05/2.003e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3034, allocations: 44.5 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1883/0.4918, allocations: 107.2 MB / 401.4 MB, free: 6.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.4921, allocations: 87.94 kB / 401.5 MB, free: 6.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8068/1.299, allocations: 157.2 MB / 0.5455 GB, free: 6.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.299, allocations: 0 / 0.5455 GB, free: 6.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007049/1.3, allocations: 167.8 kB / 0.5457 GB, free: 6.336 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.02914/1.329, allocations: 6.403 MB / 0.552 GB, free: 15.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/1.329, allocations: 12.03 kB / 0.552 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/1.342, allocations: 1.513 MB / 0.5534 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0208/1.363, allocations: 5.695 MB / 0.559 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005098/1.363, allocations: 236 kB / 0.5592 GB, free: 8.305 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/1.366, allocations: 415.8 kB / 0.5596 GB, free: 7.898 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02351/1.389, allocations: 6.874 MB / 0.5663 GB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3176/1.707, allocations: 8.005 MB / 0.5742 GB, free: 40.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/1.707, allocations: 5.781 kB / 0.5742 GB, free: 40.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/1.709, allocations: 7.906 kB / 0.5742 GB, free: 40.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004812/1.709, allocations: 323 kB / 0.5745 GB, free: 40.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06387/1.773, allocations: 27.45 MB / 0.6013 GB, free: 35.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01933/1.792, allocations: 16.22 MB / 0.6171 GB, free: 23.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006017/1.798, allocations: 2.739 MB / 0.6198 GB, free: 23.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/1.818, allocations: 7.461 MB / 0.6271 GB, free: 22.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.801e-05/1.818, allocations: 65.67 kB / 0.6272 GB, free: 21.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=253): time 5.5e-06/1.818, allocations: 0 / 0.6272 GB, free: 21.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=259): time 0.0231/1.841, allocations: 8.042 MB / 0.635 GB, free: 19.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/1.841, allocations: 82.83 kB / 0.6351 GB, free: 19.38 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00527/1.846, allocations: 2.339 MB / 0.6374 GB, free: 18.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005432/1.847, allocations: 25.7 kB / 0.6374 GB, free: 18.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/1.849, allocations: 2.909 MB / 0.6402 GB, free: 16.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.85, allocations: 0.8522 MB / 0.6411 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002785/1.85, allocations: 0 / 0.6411 GB, free: 15.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/1.85, allocations: 442.2 kB / 0.6415 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002667/1.853, allocations: 1.221 MB / 0.6427 GB, free: 14.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003283/1.856, allocations: 2.234 MB / 0.6449 GB, free: 12.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005345/1.862, allocations: 1.921 MB / 0.6467 GB, free: 12.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-05/1.862, allocations: 7.812 kB / 0.6468 GB, free: 12.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.01103/1.873, allocations: 4.167 MB / 0.6508 GB, free: 10.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/1.873, allocations: 22.36 kB / 0.6508 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.522e-05/1.873, allocations: 32.41 kB / 0.6509 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/1.874, allocations: 383 kB / 0.6512 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005815/1.88, allocations: 0.7815 MB / 0.652 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007341/1.888, allocations: 7.041 MB / 0.6589 GB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004302/1.892, allocations: 93.72 kB / 0.659 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006492/1.893, allocations: 152.4 kB / 0.6591 GB, free: 4.402 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (405): * 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: 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.0007274/1.893, allocations: 204.7 kB / 0.6593 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01113/1.905, allocations: 3.721 MB / 0.6629 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.906, allocations: 332.4 kB / 0.6633 GB, free: 2.492 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.917, allocations: 4.015 MB / 0.6672 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.962e-05/1.917, allocations: 26.31 kB / 0.6672 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/1.917, allocations: 15.72 kB / 0.6672 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.117e-05/1.917, allocations: 14.16 kB / 0.6672 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02276/1.94, allocations: 8.755 MB / 0.6758 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.94, allocations: 2.531 kB / 0.6758 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00329/1.943, allocations: 402.6 kB / 0.6762 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003406/1.947, allocations: 0.8259 MB / 0.677 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002347/1.947, allocations: 40.05 kB / 0.677 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.97, allocations: 15.41 MB / 0.6921 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.97, allocations: 8.266 kB / 0.6921 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/1.985, allocations: 6.047 MB / 0.698 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/1.987, allocations: 0.6929 MB / 0.6987 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000787/1.988, allocations: 19.16 kB / 0.6987 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002746/1.991, allocations: 105.1 kB / 0.6988 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006159/1.991, allocations: 201.4 kB / 0.699 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002281/1.992, allocations: 75.69 kB / 0.699 GB, free: 12.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003744/1.995, allocations: 1.728 MB / 0.7007 GB, free: 12.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.995, allocations: 0 / 0.7007 GB, free: 12.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006427/2.002, allocations: 1.043 MB / 0.7017 GB, free: 11.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (192): * Single equations (assignments): 185 * 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%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01684/2.019, allocations: 7.781 MB / 0.7093 GB, free: 3.816 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008495/2.027, allocations: 3.686 MB / 0.7129 GB, free: 384 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/2.027, allocations: 0 / 0.7129 GB, free: 384 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01042/2.038, allocations: 2.868 MB / 0.7157 GB, free: 14.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005469/2.043, allocations: 0.6536 MB / 0.7164 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03572/2.079, allocations: 11.19 MB / 0.7273 GB, free: 4.242 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007195/2.086, allocations: 4.217 MB / 0.7314 GB, free: 1.082 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3191/2.405, allocations: 2.802 MB / 0.7342 GB, free: 82.27 MB / 442.7 MB Notification: Performance of SimCode: time 2.044e-06/2.405, allocations: 0.5312 kB / 0.7342 GB, free: 82.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.845/7.25, allocations: 315.4 MB / 1.042 GB, free: 11.87 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.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat