Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_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 / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.796e-05, allocations: 1.562 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5165/0.6226, allocations: 116.8 MB / 459.9 MB, free: 10.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.623, allocations: 93.56 kB / 460 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6798/1.303, allocations: 77.24 MB / 0.5247 GB, free: 94.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.303, allocations: 1.969 kB / 0.5247 GB, free: 94.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000514/1.303, allocations: 79.5 kB / 0.5247 GB, free: 94.91 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.01436/1.318, allocations: 3.21 MB / 0.5279 GB, free: 94.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/1.318, allocations: 12.78 kB / 0.5279 GB, free: 94.34 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001961/1.32, allocations: 443.8 kB / 0.5283 GB, free: 94.28 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00498/1.325, allocations: 0.5978 MB / 0.5289 GB, free: 94.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/1.337, allocations: 3.137 MB / 0.532 GB, free: 93.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/1.338, allocations: 233.7 kB / 0.5322 GB, free: 93.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/1.339, allocations: 315.4 kB / 0.5325 GB, free: 93.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/1.353, allocations: 4.012 MB / 0.5364 GB, free: 93.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/1.353, allocations: 2.438 kB / 0.5364 GB, free: 93.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006783/1.354, allocations: 135 kB / 0.5365 GB, free: 93.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002049/1.354, allocations: 136.5 kB / 0.5367 GB, free: 93.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/1.365, allocations: 3.223 MB / 0.5398 GB, free: 93.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03446/1.4, allocations: 13.81 MB / 0.5533 GB, free: 89.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007484/1.407, allocations: 5.827 MB / 0.559 GB, free: 85.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003025/1.41, allocations: 1.333 MB / 0.5603 GB, free: 85.46 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007815/1.418, allocations: 3.19 MB / 0.5634 GB, free: 84.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/1.418, allocations: 45.88 kB / 0.5635 GB, free: 84.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 4.178e-06/1.418, allocations: 0 / 0.5635 GB, free: 84.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01069/1.429, allocations: 4.526 MB / 0.5679 GB, free: 82.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/1.429, allocations: 91.95 kB / 0.568 GB, free: 81.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/1.433, allocations: 1.678 MB / 0.5696 GB, free: 81.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003386/1.433, allocations: 53.61 kB / 0.5697 GB, free: 81.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/1.434, allocations: 1.455 MB / 0.5711 GB, free: 80.08 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005835/1.435, allocations: 485.5 kB / 0.5715 GB, free: 79.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/1.435, allocations: 35.84 kB / 0.5716 GB, free: 79.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/1.435, allocations: 378.3 kB / 0.5719 GB, free: 79.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/1.437, allocations: 0.7162 MB / 0.5726 GB, free: 79.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001875/1.438, allocations: 1.235 MB / 0.5738 GB, free: 78.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/1.441, allocations: 0.9071 MB / 0.5747 GB, free: 77.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/1.441, allocations: 7.656 kB / 0.5747 GB, free: 77.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00649/1.447, allocations: 2.624 MB / 0.5773 GB, free: 76.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001357/1.449, allocations: 6.611 MB / 0.5837 GB, free: 69.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.801e-05/1.449, allocations: 20.62 kB / 0.5838 GB, free: 69.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/1.451, allocations: 0.5163 MB / 0.5843 GB, free: 69.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/1.453, allocations: 362.4 kB / 0.5846 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009635/1.463, allocations: 7.237 MB / 0.5917 GB, free: 64.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002805/1.466, allocations: 93.09 kB / 0.5918 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/1.466, allocations: 78.03 kB / 0.5918 GB, free: 64.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/1.466, allocations: 3.969 kB / 0.5919 GB, free: 64.09 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005632/1.472, allocations: 2.425 MB / 0.5942 GB, free: 63.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.703e-05/1.472, allocations: 19.12 kB / 0.5942 GB, free: 63.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/1.474, allocations: 0.5093 MB / 0.5947 GB, free: 62.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/1.476, allocations: 360.7 kB / 0.5951 GB, free: 62.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00952/1.486, allocations: 7.247 MB / 0.6022 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/1.488, allocations: 82.95 kB / 0.6022 GB, free: 57.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/1.489, allocations: 80.69 kB / 0.6023 GB, free: 57.46 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.0005073/1.489, allocations: 215.2 kB / 0.6025 GB, free: 57.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004594/1.49, allocations: 210.8 kB / 0.6027 GB, free: 57.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005618/1.495, allocations: 2.427 MB / 0.6051 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/1.495, allocations: 12.5 kB / 0.6051 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/1.495, allocations: 11.53 kB / 0.6051 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/1.495, allocations: 10.97 kB / 0.6051 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/1.508, allocations: 5.268 MB / 0.6103 GB, free: 53.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.508, allocations: 7.906 kB / 0.6103 GB, free: 53.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/1.509, allocations: 181.9 kB / 0.6104 GB, free: 53.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/1.512, allocations: 0.6452 MB / 0.6111 GB, free: 53.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001858/1.512, allocations: 30.55 kB / 0.6111 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01641/1.528, allocations: 11.28 MB / 0.6221 GB, free: 44.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.528, allocations: 3.844 kB / 0.6221 GB, free: 44.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/1.54, allocations: 3.674 MB / 0.6257 GB, free: 42.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/1.542, allocations: 469.7 kB / 0.6262 GB, free: 42.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006423/1.543, allocations: 33.17 kB / 0.6262 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.545, allocations: 82.48 kB / 0.6263 GB, free: 42.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005493/1.546, allocations: 116.5 kB / 0.6264 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/1.546, allocations: 35.97 kB / 0.6264 GB, free: 42.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003854/1.55, allocations: 1.281 MB / 0.6277 GB, free: 41.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.55, allocations: 7.719 kB / 0.6277 GB, free: 41.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007441/1.557, allocations: 1.111 MB / 0.6288 GB, free: 41.39 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.01175/1.569, allocations: 5.178 MB / 0.6338 GB, free: 37.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01104/1.58, allocations: 4.031 MB / 0.6378 GB, free: 33.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/1.58, allocations: 0 / 0.6378 GB, free: 33.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004816/1.585, allocations: 1.699 MB / 0.6394 GB, free: 32.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005895/1.591, allocations: 0.588 MB / 0.64 GB, free: 31.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01975/1.611, allocations: 5.452 MB / 0.6453 GB, free: 26.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/1.614, allocations: 2.39 MB / 0.6476 GB, free: 24.97 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004869/1.619, allocations: 0.793 MB / 0.6484 GB, free: 24.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00216/1.621, allocations: 1.122 MB / 0.6495 GB, free: 23.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.713e-06/1.621, allocations: 0 / 0.6495 GB, free: 23.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4622/2.083, allocations: 66.61 MB / 0.7146 GB, free: 94.12 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002522/2.084, allocations: 237.1 kB / 0.7148 GB, free: 93.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.219/7.303, allocations: 0 / 0.7148 GB, free: 93.86 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat