Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.164/2.164, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.923e-05, allocations: 3.094 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5588/0.6616, allocations: 118.9 MB / 413.2 MB, free: 3.242 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003566/0.662, allocations: 85.7 kB / 413.3 MB, free: 3.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8907/1.553, allocations: 113.9 MB / 0.5149 GB, free: 67.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.553, allocations: 0 / 0.5149 GB, free: 67.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005896/1.553, allocations: 131.4 kB / 0.515 GB, free: 67.08 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02167/1.575, allocations: 4.857 MB / 0.5197 GB, free: 65.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/1.575, allocations: 11.72 kB / 0.5197 GB, free: 65.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008143/1.583, allocations: 0.9484 MB / 0.5207 GB, free: 64.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/1.601, allocations: 4.356 MB / 0.5249 GB, free: 64.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003666/1.601, allocations: 162.7 kB / 0.5251 GB, free: 64.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002198/1.603, allocations: 314.3 kB / 0.5254 GB, free: 64.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01765/1.621, allocations: 4.893 MB / 0.5302 GB, free: 64.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02461/1.646, allocations: 5.786 MB / 0.5358 GB, free: 63.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000365/1.646, allocations: 7.625 kB / 0.5358 GB, free: 63.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001684/1.648, allocations: 7.531 kB / 0.5358 GB, free: 63.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003463/1.648, allocations: 233.3 kB / 0.536 GB, free: 63.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07247/1.721, allocations: 20.06 MB / 0.5556 GB, free: 57.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/1.733, allocations: 8.353 MB / 0.5638 GB, free: 50.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004995/1.738, allocations: 1.909 MB / 0.5657 GB, free: 49.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/1.763, allocations: 5.818 MB / 0.5713 GB, free: 46.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.054e-05/1.763, allocations: 66.34 kB / 0.5714 GB, free: 46.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=209): time 9.638e-06/1.763, allocations: 0 / 0.5714 GB, free: 46.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=233): time 0.03937/1.803, allocations: 8.137 MB / 0.5793 GB, free: 42.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/1.803, allocations: 73.03 kB / 0.5794 GB, free: 42.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004881/1.808, allocations: 2.026 MB / 0.5814 GB, free: 41.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005497/1.808, allocations: 29.17 kB / 0.5814 GB, free: 41.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/1.81, allocations: 2.324 MB / 0.5837 GB, free: 40.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001117/1.811, allocations: 0.7759 MB / 0.5844 GB, free: 39.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002846/1.812, allocations: 0 / 0.5844 GB, free: 39.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/1.812, allocations: 422.3 kB / 0.5849 GB, free: 39.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002937/1.815, allocations: 1.189 MB / 0.586 GB, free: 38.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00343/1.818, allocations: 2.05 MB / 0.588 GB, free: 36.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004676/1.823, allocations: 1.677 MB / 0.5897 GB, free: 35.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-05/1.823, allocations: 8 kB / 0.5897 GB, free: 35.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01235/1.835, allocations: 4.257 MB / 0.5938 GB, free: 31.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/1.836, allocations: 16 kB / 0.5938 GB, free: 31.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.925e-05/1.836, allocations: 28 kB / 0.5939 GB, free: 31.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003059/1.839, allocations: 0.7085 MB / 0.5946 GB, free: 31.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005836/1.845, allocations: 0.6879 MB / 0.5952 GB, free: 30.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/1.859, allocations: 9.011 MB / 0.604 GB, free: 21.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00477/1.864, allocations: 121.3 kB / 0.6041 GB, free: 21.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009235/1.865, allocations: 131.7 kB / 0.6043 GB, free: 21.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (344): * Single equations (assignments): 338 * 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%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009426/1.866, allocations: 187.8 kB / 0.6044 GB, free: 21.46 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01127/1.877, allocations: 3.618 MB / 0.608 GB, free: 18.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001262/1.878, allocations: 288.4 kB / 0.6083 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/1.891, allocations: 3.891 MB / 0.6121 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/1.891, allocations: 23.95 kB / 0.6121 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/1.891, allocations: 12 kB / 0.6121 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.945e-05/1.891, allocations: 10.55 kB / 0.6121 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02476/1.916, allocations: 7.872 MB / 0.6198 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/1.916, allocations: 4 kB / 0.6198 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003863/1.92, allocations: 383.7 kB / 0.6202 GB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004699/1.925, allocations: 0.9247 MB / 0.6211 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004453/1.925, allocations: 31.31 kB / 0.6211 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02684/1.952, allocations: 14.86 MB / 0.6356 GB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-05/1.952, allocations: 7.938 kB / 0.6356 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/1.97, allocations: 5.785 MB / 0.6413 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00297/1.973, allocations: 0.6313 MB / 0.6419 GB, free: 2.633 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/1.974, allocations: 19.23 kB / 0.6419 GB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004428/1.979, allocations: 113.8 kB / 0.642 GB, free: 2.543 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001226/1.98, allocations: 177.7 kB / 0.6422 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005273/1.981, allocations: 74.69 kB / 0.6422 GB, free: 2.367 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005021/1.986, allocations: 1.493 MB / 0.6437 GB, free: 1.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.316e-06/1.986, allocations: 0 / 0.6437 GB, free: 1.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007221/1.993, allocations: 0.8819 MB / 0.6446 GB, free: 144 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 170 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.421/2.414, allocations: 7.387 MB / 0.6518 GB, free: 72.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01331/2.428, allocations: 3.754 MB / 0.6554 GB, free: 72.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/2.428, allocations: 1.75 kB / 0.6554 GB, free: 72.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009201/2.437, allocations: 2.567 MB / 0.6579 GB, free: 71.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006993/2.444, allocations: 0.5784 MB / 0.6585 GB, free: 71.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/2.478, allocations: 8.915 MB / 0.6672 GB, free: 69.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007703/2.486, allocations: 3.398 MB / 0.6705 GB, free: 68.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00541/2.491, allocations: 0.7186 MB / 0.6712 GB, free: 68.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00514/2.497, allocations: 1.918 MB / 0.6731 GB, free: 68.58 MB / 410.7 MB Notification: Performance of SimCode: time 3.246e-06/2.497, allocations: 0 / 0.6731 GB, free: 68.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2326/2.729, allocations: 72.25 MB / 0.7437 GB, free: 41.15 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.00031/2.73, allocations: 167.9 kB / 0.7438 GB, free: 40.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.216/8.945, allocations: 4 kB / 0.7438 GB, free: 40.96 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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat