Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.469/2.469, allocations: 195 MB / 202.9 MB, free: 6.734 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.839e-05/2.84e-05, allocations: 2.406 kB / 249.8 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5409/0.6449, allocations: 123.8 MB / 418.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.6453, allocations: 86.08 kB / 418.2 MB, free: 14.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9154/1.561, allocations: 122 MB / 0.5275 GB, free: 69.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.561, allocations: 0 / 0.5275 GB, free: 69.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008239/1.562, allocations: 139.7 kB / 0.5276 GB, free: 69.34 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.03017/1.592, allocations: 5.07 MB / 0.5326 GB, free: 67.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.708e-05/1.592, allocations: 11.88 kB / 0.5326 GB, free: 67.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/1.605, allocations: 0.9994 MB / 0.5336 GB, free: 67.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02638/1.631, allocations: 4.554 MB / 0.538 GB, free: 66.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004336/1.632, allocations: 181 kB / 0.5382 GB, free: 66.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/1.634, allocations: 320.2 kB / 0.5385 GB, free: 66.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02024/1.654, allocations: 5.066 MB / 0.5434 GB, free: 66.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02561/1.68, allocations: 6.021 MB / 0.5493 GB, free: 65.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005437/1.681, allocations: 9.156 kB / 0.5493 GB, free: 65.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002896/1.684, allocations: 7.156 kB / 0.5493 GB, free: 65.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006707/1.684, allocations: 245.5 kB / 0.5496 GB, free: 65.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08213/1.766, allocations: 21.41 MB / 0.5705 GB, free: 55.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01302/1.779, allocations: 8.136 MB / 0.5784 GB, free: 48.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005462/1.785, allocations: 2.006 MB / 0.5804 GB, free: 47.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02031/1.805, allocations: 6.11 MB / 0.5864 GB, free: 43.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.818e-05/1.805, allocations: 59.94 kB / 0.5864 GB, free: 43.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=228): time 6.632e-06/1.805, allocations: 0 / 0.5864 GB, free: 43.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=255): time 0.03064/1.836, allocations: 8.644 MB / 0.5949 GB, free: 35.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/1.836, allocations: 81.36 kB / 0.5949 GB, free: 35.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005814/1.842, allocations: 2.188 MB / 0.5971 GB, free: 33.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006192/1.843, allocations: 25.7 kB / 0.5971 GB, free: 33.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/1.845, allocations: 2.477 MB / 0.5995 GB, free: 31.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/1.846, allocations: 0.8426 MB / 0.6003 GB, free: 30.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003737/1.847, allocations: 0 / 0.6003 GB, free: 30.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002542/1.847, allocations: 439.3 kB / 0.6008 GB, free: 30.44 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/1.85, allocations: 1.258 MB / 0.602 GB, free: 29.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/1.855, allocations: 2.204 MB / 0.6041 GB, free: 26.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005651/1.86, allocations: 1.817 MB / 0.6059 GB, free: 25.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.327e-05/1.86, allocations: 12 kB / 0.6059 GB, free: 25.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01475/1.875, allocations: 4.537 MB / 0.6103 GB, free: 21.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-05/1.875, allocations: 16 kB / 0.6104 GB, free: 21.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.563e-05/1.875, allocations: 32 kB / 0.6104 GB, free: 21.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00318/1.878, allocations: 0.7116 MB / 0.6111 GB, free: 20.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006428/1.885, allocations: 0.7514 MB / 0.6118 GB, free: 19.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01519/1.9, allocations: 9.36 MB / 0.621 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/1.905, allocations: 130.3 kB / 0.6211 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007652/1.906, allocations: 142.4 kB / 0.6212 GB, free: 10.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 373 * 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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008252/1.907, allocations: 199.7 kB / 0.6214 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01274/1.92, allocations: 3.82 MB / 0.6251 GB, free: 6.965 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.921, allocations: 316.1 kB / 0.6254 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/1.935, allocations: 4.113 MB / 0.6295 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.014e-05/1.935, allocations: 24 kB / 0.6295 GB, free: 3.082 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/1.935, allocations: 10.81 kB / 0.6295 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.926e-05/1.935, allocations: 15.25 kB / 0.6295 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02964/1.965, allocations: 8.407 MB / 0.6377 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.978e-05/1.965, allocations: 4 kB / 0.6377 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0047/1.969, allocations: 411.4 kB / 0.6381 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005495/1.975, allocations: 0.9429 MB / 0.639 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006579/1.976, allocations: 31.97 kB / 0.6391 GB, free: 9.512 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4028/2.378, allocations: 15.31 MB / 0.654 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.409e-05/2.379, allocations: 9.188 kB / 0.654 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01969/2.398, allocations: 6.242 MB / 0.6601 GB, free: 72.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003081/2.401, allocations: 0.6763 MB / 0.6608 GB, free: 72.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001432/2.403, allocations: 18.62 kB / 0.6608 GB, free: 72.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004145/2.407, allocations: 122.5 kB / 0.6609 GB, free: 72.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008795/2.408, allocations: 186.1 kB / 0.6611 GB, free: 72.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002903/2.408, allocations: 76.58 kB / 0.6612 GB, free: 72.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004154/2.412, allocations: 1.611 MB / 0.6627 GB, free: 72.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.383e-06/2.412, allocations: 1.312 kB / 0.6627 GB, free: 72.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00637/2.419, allocations: 0.946 MB / 0.6637 GB, free: 72.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0189/2.438, allocations: 8.125 MB / 0.6716 GB, free: 69.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0102/2.448, allocations: 3.941 MB / 0.6755 GB, free: 69.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/2.448, allocations: 0 / 0.6755 GB, free: 69.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007307/2.455, allocations: 2.669 MB / 0.6781 GB, free: 68.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006667/2.462, allocations: 0.6768 MB / 0.6787 GB, free: 68.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02972/2.492, allocations: 9.29 MB / 0.6878 GB, free: 66.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006564/2.498, allocations: 3.507 MB / 0.6912 GB, free: 65.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005708/2.504, allocations: 0.7682 MB / 0.692 GB, free: 65.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005345/2.51, allocations: 2.063 MB / 0.694 GB, free: 65.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/2.51, allocations: 0 / 0.694 GB, free: 65.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2304/2.74, allocations: 78.47 MB / 0.7706 GB, free: 20.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002803/2.74, allocations: 170.7 kB / 0.7708 GB, free: 20.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.877/9.617, allocations: 7.109 kB / 0.7708 GB, free: 20.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat