Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.857e-05/2.862e-05, allocations: 0 / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 50.42 MB / 342.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4858/0.5928, allocations: 116.8 MB / 459.4 MB, free: 9.691 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/0.5932, allocations: 94.44 kB / 459.5 MB, free: 9.641 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5979/1.191, allocations: 77.23 MB / 0.5242 GB, free: 94.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.191, allocations: 1.969 kB / 0.5242 GB, free: 94.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007099/1.192, allocations: 82.8 kB / 0.5243 GB, free: 94.17 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01645/1.208, allocations: 3.211 MB / 0.5274 GB, free: 93.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/1.208, allocations: 9.25 kB / 0.5274 GB, free: 93.6 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001851/1.21, allocations: 443.5 kB / 0.5278 GB, free: 93.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004953/1.215, allocations: 0.5932 MB / 0.5284 GB, free: 93.35 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/1.228, allocations: 3.134 MB / 0.5315 GB, free: 92.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/1.228, allocations: 234.9 kB / 0.5317 GB, free: 92.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/1.23, allocations: 314.5 kB / 0.532 GB, free: 92.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/1.243, allocations: 4.007 MB / 0.5359 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/1.243, allocations: 13.5 kB / 0.5359 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005478/1.243, allocations: 129.6 kB / 0.536 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002172/1.244, allocations: 141.9 kB / 0.5362 GB, free: 92.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/1.255, allocations: 3.214 MB / 0.5393 GB, free: 92.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03428/1.289, allocations: 13.82 MB / 0.5528 GB, free: 88.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01232/1.301, allocations: 5.827 MB / 0.5585 GB, free: 84.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004891/1.306, allocations: 1.34 MB / 0.5598 GB, free: 84.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0136/1.32, allocations: 3.182 MB / 0.5629 GB, free: 83.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.957e-05/1.32, allocations: 53.52 kB / 0.563 GB, free: 83.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 6.382e-06/1.32, allocations: 0 / 0.563 GB, free: 83.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01747/1.338, allocations: 4.526 MB / 0.5674 GB, free: 81.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/1.338, allocations: 97.08 kB / 0.5675 GB, free: 81.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005467/1.343, allocations: 1.673 MB / 0.5691 GB, free: 80.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/1.344, allocations: 53.55 kB / 0.5692 GB, free: 80.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001633/1.345, allocations: 1.456 MB / 0.5706 GB, free: 79.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008386/1.346, allocations: 488.7 kB / 0.5711 GB, free: 79.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/1.346, allocations: 38.72 kB / 0.5711 GB, free: 79.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001862/1.347, allocations: 379.2 kB / 0.5715 GB, free: 78.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/1.349, allocations: 0.7136 MB / 0.5722 GB, free: 78.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003145/1.353, allocations: 1.23 MB / 0.5734 GB, free: 77.69 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/1.356, allocations: 0.9147 MB / 0.5742 GB, free: 77.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/1.356, allocations: 3.938 kB / 0.5743 GB, free: 77.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007079/1.363, allocations: 2.623 MB / 0.5768 GB, free: 76.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001273/1.364, allocations: 6.613 MB / 0.5833 GB, free: 69.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-05/1.364, allocations: 15.25 kB / 0.5833 GB, free: 69.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001996/1.366, allocations: 0.5099 MB / 0.5838 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/1.369, allocations: 363 kB / 0.5841 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009381/1.378, allocations: 7.242 MB / 0.5912 GB, free: 63.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/1.381, allocations: 100.3 kB / 0.5913 GB, free: 63.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/1.381, allocations: 69.62 kB / 0.5914 GB, free: 63.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/1.381, allocations: 3.969 kB / 0.5914 GB, free: 63.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005456/1.387, allocations: 2.427 MB / 0.5937 GB, free: 62.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/1.387, allocations: 21.69 kB / 0.5938 GB, free: 62.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/1.389, allocations: 0.5139 MB / 0.5943 GB, free: 62.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002457/1.391, allocations: 353 kB / 0.5946 GB, free: 62.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009368/1.4, allocations: 7.252 MB / 0.6017 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/1.403, allocations: 90.66 kB / 0.6018 GB, free: 57.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001992/1.403, allocations: 72.41 kB / 0.6018 GB, free: 57.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004846/1.404, allocations: 210.8 kB / 0.602 GB, free: 56.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004127/1.404, allocations: 212.8 kB / 0.6022 GB, free: 56.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005523/1.41, allocations: 2.432 MB / 0.6046 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-05/1.41, allocations: 16.59 kB / 0.6046 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/1.41, allocations: 3.781 kB / 0.6046 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.41, allocations: 14.8 kB / 0.6046 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/1.421, allocations: 5.27 MB / 0.6098 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/1.421, allocations: 3.5 kB / 0.6098 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/1.423, allocations: 182.9 kB / 0.61 GB, free: 53.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/1.425, allocations: 0.6516 MB / 0.6106 GB, free: 52.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/1.426, allocations: 27.06 kB / 0.6106 GB, free: 52.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/1.441, allocations: 11.28 MB / 0.6216 GB, free: 43.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/1.441, allocations: 3.781 kB / 0.6217 GB, free: 43.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00827/1.449, allocations: 3.675 MB / 0.6252 GB, free: 41.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.451, allocations: 467.9 kB / 0.6257 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006717/1.451, allocations: 30 kB / 0.6257 GB, free: 41.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002282/1.454, allocations: 87.55 kB / 0.6258 GB, free: 41.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005837/1.454, allocations: 116.7 kB / 0.6259 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/1.455, allocations: 37.62 kB / 0.6259 GB, free: 41.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003027/1.458, allocations: 1.282 MB / 0.6272 GB, free: 41.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.458, allocations: 0 / 0.6272 GB, free: 41.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006269/1.464, allocations: 1.111 MB / 0.6283 GB, free: 40.94 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01256/1.477, allocations: 5.186 MB / 0.6333 GB, free: 37.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01254/1.489, allocations: 4.025 MB / 0.6373 GB, free: 33.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/1.489, allocations: 1.375 kB / 0.6373 GB, free: 33.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005063/1.494, allocations: 1.703 MB / 0.6389 GB, free: 31.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006448/1.501, allocations: 0.5912 MB / 0.6395 GB, free: 31.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.523, allocations: 5.457 MB / 0.6448 GB, free: 26.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004858/1.528, allocations: 2.379 MB / 0.6472 GB, free: 24.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01803/1.546, allocations: 0.7968 MB / 0.6479 GB, free: 24.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002931/1.549, allocations: 1.126 MB / 0.649 GB, free: 23.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/1.549, allocations: 0 / 0.649 GB, free: 23.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4901/2.039, allocations: 66.6 MB / 0.7141 GB, free: 93.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/2.04, allocations: 225.5 kB / 0.7143 GB, free: 93.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.227/7.267, allocations: 0 / 0.7143 GB, free: 93.28 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat