Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.205/2.205, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.381e-05, allocations: 3.5 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5978/0.703, allocations: 107.2 MB / 401.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003455/0.7034, allocations: 87.33 kB / 401.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.098/1.802, allocations: 157.2 MB / 0.5456 GB, free: 59.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.802, allocations: 0 / 0.5456 GB, free: 59.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000739/1.802, allocations: 166.5 kB / 0.5458 GB, free: 59.07 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.03757/1.84, allocations: 6.401 MB / 0.552 GB, free: 56.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/1.84, allocations: 7.656 kB / 0.5521 GB, free: 56.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01485/1.855, allocations: 1.516 MB / 0.5535 GB, free: 56.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02351/1.878, allocations: 5.695 MB / 0.5591 GB, free: 55.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005073/1.879, allocations: 226 kB / 0.5593 GB, free: 55.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003024/1.882, allocations: 422 kB / 0.5597 GB, free: 55.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0246/1.907, allocations: 6.878 MB / 0.5664 GB, free: 53.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/1.939, allocations: 8.006 MB / 0.5742 GB, free: 49.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000511/1.94, allocations: 15.22 kB / 0.5743 GB, free: 49.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002692/1.942, allocations: 7.125 kB / 0.5743 GB, free: 49.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004937/1.943, allocations: 320.5 kB / 0.5746 GB, free: 49.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09316/2.036, allocations: 27.46 MB / 0.6014 GB, free: 31.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02486/2.061, allocations: 16.22 MB / 0.6172 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01094/2.072, allocations: 2.729 MB / 0.6199 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04039/2.113, allocations: 7.473 MB / 0.6272 GB, free: 4.578 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.337e-05/2.113, allocations: 60.56 kB / 0.6272 GB, free: 4.508 MB / 394.7 MB Notification: Performance of pre-optimization done (n=253): time 1.27e-05/2.113, allocations: 4 kB / 0.6273 GB, free: 4.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=259): time 0.05053/2.163, allocations: 8.039 MB / 0.6351 GB, free: 12.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/2.163, allocations: 77.45 kB / 0.6352 GB, free: 12.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01221/2.176, allocations: 2.338 MB / 0.6375 GB, free: 9.883 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007824/2.177, allocations: 29.7 kB / 0.6375 GB, free: 9.848 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005756/2.182, allocations: 3.047 MB / 0.6405 GB, free: 6.762 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004398/2.187, allocations: 0.8545 MB / 0.6413 GB, free: 5.895 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007489/2.188, allocations: 0 / 0.6413 GB, free: 5.895 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006299/2.188, allocations: 437.1 kB / 0.6417 GB, free: 5.461 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006659/2.195, allocations: 1.229 MB / 0.6429 GB, free: 4.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008234/2.203, allocations: 2.224 MB / 0.6451 GB, free: 1.555 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3878/2.591, allocations: 1.923 MB / 0.647 GB, free: 69.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.227e-05/2.591, allocations: 10 kB / 0.647 GB, free: 69.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.01624/2.608, allocations: 4.345 MB / 0.6512 GB, free: 68.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.027e-05/2.608, allocations: 18.88 kB / 0.6512 GB, free: 68.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-05/2.608, allocations: 33.47 kB / 0.6513 GB, free: 68.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/2.61, allocations: 379.2 kB / 0.6516 GB, free: 68.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007126/2.617, allocations: 0.7815 MB / 0.6524 GB, free: 68.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009887/2.627, allocations: 7.04 MB / 0.6593 GB, free: 64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004975/2.632, allocations: 95.55 kB / 0.6594 GB, free: 64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009504/2.633, allocations: 150.6 kB / 0.6595 GB, free: 64 MB / 410.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.001055/2.634, allocations: 202.6 kB / 0.6597 GB, free: 63.89 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01363/2.647, allocations: 3.731 MB / 0.6633 GB, free: 63.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/2.649, allocations: 325 kB / 0.6636 GB, free: 63.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01507/2.664, allocations: 4.018 MB / 0.6676 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-05/2.664, allocations: 25.59 kB / 0.6676 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.871e-05/2.664, allocations: 12.5 kB / 0.6676 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-05/2.665, allocations: 15.02 kB / 0.6676 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02936/2.694, allocations: 8.74 MB / 0.6762 GB, free: 62.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-05/2.694, allocations: 10.42 kB / 0.6762 GB, free: 62.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004222/2.698, allocations: 400.5 kB / 0.6766 GB, free: 62.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004268/2.703, allocations: 0.8311 MB / 0.6774 GB, free: 62.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006535/2.703, allocations: 34.22 kB / 0.6774 GB, free: 62.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02476/2.728, allocations: 15.42 MB / 0.6924 GB, free: 53.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/2.728, allocations: 6.891 kB / 0.6925 GB, free: 53.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01759/2.746, allocations: 6.056 MB / 0.6984 GB, free: 52.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002983/2.749, allocations: 0.6866 MB / 0.699 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/2.75, allocations: 27.77 kB / 0.6991 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003915/2.754, allocations: 105.1 kB / 0.6992 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009304/2.755, allocations: 191.8 kB / 0.6993 GB, free: 51.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002986/2.755, allocations: 77.75 kB / 0.6994 GB, free: 51.92 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004973/2.76, allocations: 1.73 MB / 0.7011 GB, free: 51.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.323e-06/2.76, allocations: 3.062 kB / 0.7011 GB, free: 51.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007506/2.768, allocations: 1.049 MB / 0.7021 GB, free: 51.51 MB / 410.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.0191/2.787, allocations: 7.764 MB / 0.7097 GB, free: 47.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00962/2.797, allocations: 3.682 MB / 0.7133 GB, free: 45.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/2.797, allocations: 6.297 kB / 0.7133 GB, free: 45.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00693/2.804, allocations: 2.614 MB / 0.7159 GB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006962/2.811, allocations: 0.6625 MB / 0.7165 GB, free: 43.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04201/2.853, allocations: 11.32 MB / 0.7276 GB, free: 39.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009869/2.863, allocations: 4.326 MB / 0.7318 GB, free: 37.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005602/2.868, allocations: 0.7776 MB / 0.7326 GB, free: 37.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006245/2.875, allocations: 2.505 MB / 0.735 GB, free: 35.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.854e-06/2.875, allocations: 4 kB / 0.735 GB, free: 35.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6153/3.49, allocations: 84.03 MB / 0.8171 GB, free: 64.84 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003001/3.49, allocations: 180.2 kB / 0.8172 GB, free: 64.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.845/10.34, allocations: 0 / 0.8172 GB, free: 64.66 MB / 426.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_MultiPhase_res.mat does not exist to compare? outputFormat=mat