Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.137e-05/4.144e-05, allocations: 4 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 50.41 MB / 342.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.6291, allocations: 110.6 MB / 453.3 MB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.6295, allocations: 87.88 kB / 453.3 MB, free: 15.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.23/0.8595, allocations: 55.23 MB / 0.4967 GB, free: 12.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.789e-06/0.8595, allocations: 3.984 kB / 0.4967 GB, free: 12.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003332/0.8599, allocations: 71.94 kB / 0.4967 GB, free: 12.23 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.009886/0.8698, allocations: 2.652 MB / 0.4993 GB, free: 9.512 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.8699, allocations: 12.03 kB / 0.4993 GB, free: 9.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001239/0.8711, allocations: 362.6 kB / 0.4997 GB, free: 9.137 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.8728, allocations: 360 kB / 0.5 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006863/0.8797, allocations: 1.937 MB / 0.5019 GB, free: 6.789 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/0.88, allocations: 181 kB / 0.5021 GB, free: 6.609 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.8811, allocations: 255.9 kB / 0.5023 GB, free: 6.359 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/0.8918, allocations: 3.292 MB / 0.5055 GB, free: 2.898 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.892, allocations: 11.91 kB / 0.5055 GB, free: 2.887 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000591/0.8926, allocations: 108.3 kB / 0.5057 GB, free: 2.781 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001971/0.8928, allocations: 120.7 kB / 0.5058 GB, free: 2.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009277/0.9021, allocations: 2.653 MB / 0.5084 GB, free: 0 / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03239/0.9345, allocations: 10.92 MB / 0.519 GB, free: 4.789 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005188/0.9398, allocations: 2.384 MB / 0.5213 GB, free: 2.242 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002848/0.9427, allocations: 1.06 MB / 0.5224 GB, free: 1.184 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000459/0.9432, allocations: 138.4 kB / 0.5225 GB, free: 1.031 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/0.9432, allocations: 43.88 kB / 0.5226 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.968e-06/0.9432, allocations: 0 / 0.5226 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.3272/1.27, allocations: 5.479 MB / 0.5279 GB, free: 109.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.23e-05/1.271, allocations: 94.2 kB / 0.528 GB, free: 109.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005567/1.276, allocations: 1.566 MB / 0.5295 GB, free: 108.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004618/1.277, allocations: 52.67 kB / 0.5296 GB, free: 108.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/1.278, allocations: 1.216 MB / 0.5308 GB, free: 108.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009999/1.279, allocations: 0.4948 MB / 0.5312 GB, free: 108.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/1.28, allocations: 39.28 kB / 0.5313 GB, free: 108.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/1.28, allocations: 375.2 kB / 0.5316 GB, free: 107.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/1.282, allocations: 0.8195 MB / 0.5324 GB, free: 107.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0027/1.285, allocations: 1.27 MB / 0.5337 GB, free: 107.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/1.287, allocations: 1.009 MB / 0.5347 GB, free: 107.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.791e-05/1.287, allocations: 3.938 kB / 0.5347 GB, free: 107.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.008207/1.296, allocations: 2.765 MB / 0.5374 GB, free: 107.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001188/1.297, allocations: 5.585 MB / 0.5428 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-05/1.297, allocations: 14.19 kB / 0.5428 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002776/1.3, allocations: 0.667 MB / 0.5435 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/1.303, allocations: 370.4 kB / 0.5438 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/1.316, allocations: 8.272 MB / 0.5519 GB, free: 97.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/1.319, allocations: 109.7 kB / 0.552 GB, free: 97.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004483/1.319, allocations: 71.5 kB / 0.5521 GB, free: 97.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/1.319, allocations: 4.125 kB / 0.5521 GB, free: 97.33 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006396/1.326, allocations: 2.568 MB / 0.5546 GB, free: 97.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.084e-05/1.326, allocations: 15.47 kB / 0.5546 GB, free: 97.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/1.328, allocations: 0.6714 MB / 0.5553 GB, free: 97.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/1.331, allocations: 363.9 kB / 0.5556 GB, free: 97.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/1.343, allocations: 8.277 MB / 0.5637 GB, free: 92.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/1.346, allocations: 101.7 kB / 0.5638 GB, free: 92.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003279/1.346, allocations: 74 kB / 0.5639 GB, free: 92.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0006354/1.347, allocations: 218.7 kB / 0.5641 GB, free: 92.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006709/1.347, allocations: 200.9 kB / 0.5643 GB, free: 92.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006463/1.354, allocations: 2.565 MB / 0.5668 GB, free: 91.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/1.354, allocations: 13.88 kB / 0.5668 GB, free: 91.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/1.354, allocations: 7.516 kB / 0.5668 GB, free: 91.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.082e-05/1.354, allocations: 11.39 kB / 0.5668 GB, free: 91.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/1.368, allocations: 5.342 MB / 0.572 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/1.368, allocations: 3.953 kB / 0.572 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/1.37, allocations: 233.9 kB / 0.5723 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002722/1.373, allocations: 0.6958 MB / 0.5729 GB, free: 88.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/1.373, allocations: 35.09 kB / 0.573 GB, free: 88.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/1.386, allocations: 9.766 MB / 0.5825 GB, free: 81.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.386, allocations: 3 kB / 0.5825 GB, free: 81.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00825/1.395, allocations: 3.861 MB / 0.5863 GB, free: 79.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/1.396, allocations: 476.2 kB / 0.5867 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000558/1.397, allocations: 34.78 kB / 0.5868 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/1.399, allocations: 102.8 kB / 0.5869 GB, free: 79.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004013/1.399, allocations: 121.6 kB / 0.587 GB, free: 79.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/1.4, allocations: 43.67 kB / 0.587 GB, free: 79.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002521/1.402, allocations: 1.203 MB / 0.5882 GB, free: 79.08 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.402, allocations: 0 / 0.5882 GB, free: 79.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005451/1.408, allocations: 1.048 MB / 0.5892 GB, free: 78.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009176/1.417, allocations: 5.311 MB / 0.5944 GB, free: 76.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009322/1.426, allocations: 4.392 MB / 0.5987 GB, free: 73.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.426, allocations: 3.938 kB / 0.5987 GB, free: 73.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.43, allocations: 1.655 MB / 0.6003 GB, free: 72.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004536/1.434, allocations: 0.5787 MB / 0.6009 GB, free: 72.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.449, allocations: 5.216 MB / 0.606 GB, free: 70.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002226/1.452, allocations: 2.154 MB / 0.6081 GB, free: 68.63 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004383/1.456, allocations: 0.8762 MB / 0.6089 GB, free: 68.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001857/1.458, allocations: 0.9577 MB / 0.6099 GB, free: 67.19 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/1.458, allocations: 4 kB / 0.6099 GB, free: 67.19 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1467/1.605, allocations: 64.65 MB / 0.673 GB, free: 11.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/1.605, allocations: 203.9 kB / 0.6732 GB, free: 11.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.934/6.539, allocations: 0 / 0.6732 GB, free: 11.38 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat