Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.085e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.4 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4795/0.5896, allocations: 110.6 MB / 453.3 MB, free: 15.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.59, allocations: 86.73 kB / 453.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2368/0.8267, allocations: 55.22 MB / 0.4967 GB, free: 12.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.8268, allocations: 0 / 0.4967 GB, free: 12.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003657/0.8272, allocations: 67.94 kB / 0.4967 GB, free: 12.63 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.01043/0.8376, allocations: 2.668 MB / 0.4993 GB, free: 9.902 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.8377, allocations: 8.031 kB / 0.4993 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001487/0.8392, allocations: 366.6 kB / 0.4997 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002017/0.8412, allocations: 356 kB / 0.5 GB, free: 9.176 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006938/0.8482, allocations: 1.936 MB / 0.5019 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.8486, allocations: 185 kB / 0.5021 GB, free: 7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.8497, allocations: 251.9 kB / 0.5023 GB, free: 6.754 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.8606, allocations: 3.3 MB / 0.5056 GB, free: 3.285 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001276/0.8608, allocations: 7.906 kB / 0.5056 GB, free: 3.277 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005492/0.8613, allocations: 108.3 kB / 0.5057 GB, free: 3.172 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/0.8615, allocations: 120.8 kB / 0.5058 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009272/0.8708, allocations: 2.653 MB / 0.5084 GB, free: 400 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03698/0.9078, allocations: 10.91 MB / 0.519 GB, free: 5.188 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006741/0.9146, allocations: 2.395 MB / 0.5214 GB, free: 2.629 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003757/0.9184, allocations: 1.052 MB / 0.5224 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005697/0.9191, allocations: 138.4 kB / 0.5225 GB, free: 1.426 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.007e-05/0.9191, allocations: 47.88 kB / 0.5226 GB, free: 1.371 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 5.861e-06/0.9192, allocations: 4 kB / 0.5226 GB, free: 1.367 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.3253/1.244, allocations: 5.471 MB / 0.5279 GB, free: 109.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/1.245, allocations: 97.86 kB / 0.528 GB, free: 109.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006158/1.251, allocations: 1.568 MB / 0.5295 GB, free: 109.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003802/1.251, allocations: 52.67 kB / 0.5296 GB, free: 109.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/1.252, allocations: 1.148 MB / 0.5307 GB, free: 108.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008183/1.253, allocations: 0.4988 MB / 0.5312 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/1.253, allocations: 34.19 kB / 0.5312 GB, free: 108.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/1.253, allocations: 379.2 kB / 0.5316 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002194/1.256, allocations: 0.8202 MB / 0.5324 GB, free: 108.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002735/1.258, allocations: 1.269 MB / 0.5336 GB, free: 107.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/1.261, allocations: 1.011 MB / 0.5346 GB, free: 107.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.994e-05/1.261, allocations: 4.406 kB / 0.5346 GB, free: 107.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007772/1.269, allocations: 2.641 MB / 0.5372 GB, free: 107.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001095/1.27, allocations: 5.402 MB / 0.5425 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.963e-05/1.27, allocations: 13.62 kB / 0.5425 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002866/1.273, allocations: 0.6654 MB / 0.5431 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/1.276, allocations: 373.8 kB / 0.5435 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/1.29, allocations: 8.272 MB / 0.5516 GB, free: 98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002757/1.293, allocations: 112.3 kB / 0.5517 GB, free: 97.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004154/1.293, allocations: 70.84 kB / 0.5518 GB, free: 97.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/1.293, allocations: 4.125 kB / 0.5518 GB, free: 97.99 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006449/1.299, allocations: 2.578 MB / 0.5543 GB, free: 97.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.776e-05/1.3, allocations: 15.59 kB / 0.5543 GB, free: 97.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/1.302, allocations: 0.6567 MB / 0.5549 GB, free: 97.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/1.304, allocations: 364.5 kB / 0.5553 GB, free: 97.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/1.317, allocations: 8.327 MB / 0.5634 GB, free: 92.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/1.318, allocations: 106.4 kB / 0.5635 GB, free: 92.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/1.318, allocations: 72.09 kB / 0.5636 GB, free: 92.87 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.0005805/1.319, allocations: 214.2 kB / 0.5638 GB, free: 92.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/1.32, allocations: 203.9 kB / 0.564 GB, free: 92.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00631/1.326, allocations: 2.566 MB / 0.5665 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/1.326, allocations: 14.47 kB / 0.5665 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/1.326, allocations: 3.75 kB / 0.5665 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.824e-05/1.326, allocations: 7.734 kB / 0.5665 GB, free: 91.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/1.34, allocations: 5.346 MB / 0.5717 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.34, allocations: 3.375 kB / 0.5717 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/1.342, allocations: 235.8 kB / 0.572 GB, free: 89.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002714/1.345, allocations: 0.6894 MB / 0.5726 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002743/1.345, allocations: 35.98 kB / 0.5727 GB, free: 89.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.359, allocations: 9.77 MB / 0.5822 GB, free: 82.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.359, allocations: 6.25 kB / 0.5822 GB, free: 82.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008793/1.367, allocations: 3.863 MB / 0.586 GB, free: 80.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001654/1.369, allocations: 471.9 kB / 0.5864 GB, free: 80.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005754/1.37, allocations: 32.2 kB / 0.5865 GB, free: 80.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/1.372, allocations: 99.45 kB / 0.5866 GB, free: 80.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000424/1.372, allocations: 119 kB / 0.5867 GB, free: 80.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/1.372, allocations: 44.16 kB / 0.5867 GB, free: 80 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002656/1.375, allocations: 1.201 MB / 0.5879 GB, free: 79.53 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.41e-07/1.375, allocations: 0 / 0.5879 GB, free: 79.53 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00683/1.382, allocations: 1.043 MB / 0.5889 GB, free: 79.43 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.00973/1.392, allocations: 5.32 MB / 0.5941 GB, free: 76.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009539/1.401, allocations: 4.34 MB / 0.5983 GB, free: 74.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/1.401, allocations: 3.969 kB / 0.5983 GB, free: 74.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003462/1.405, allocations: 1.653 MB / 0.6 GB, free: 73.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/1.41, allocations: 0.5763 MB / 0.6005 GB, free: 73.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/1.425, allocations: 5.192 MB / 0.6056 GB, free: 71.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/1.428, allocations: 2.122 MB / 0.6077 GB, free: 69.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002396/1.43, allocations: 0.9944 MB / 0.6086 GB, free: 68.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/1.43, allocations: 0 / 0.6086 GB, free: 68.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.315/5.745, allocations: 96.62 MB / 0.703 GB, free: 101.4 MB / 442.7 MB