Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.521/2.521, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.051e-05, allocations: 2.75 kB / 249.8 MB, free: 5.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6238/0.7309, allocations: 104.1 MB / 398.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003617/0.7313, allocations: 87.89 kB / 398.5 MB, free: 15.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2908/1.022, allocations: 54.44 MB / 452.9 MB, free: 2.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.022, allocations: 0 / 452.9 MB, free: 2.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003633/1.023, allocations: 71.88 kB / 453 MB, free: 2.66 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.01127/1.034, allocations: 2.652 MB / 455.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/1.034, allocations: 12.03 kB / 455.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001304/1.035, allocations: 262.5 kB / 455.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002088/1.037, allocations: 352 kB / 456.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008327/1.046, allocations: 1.941 MB / 458.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/1.046, allocations: 105 kB / 458.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/1.047, allocations: 147.9 kB / 458.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01113/1.058, allocations: 2.56 MB / 461 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/1.074, allocations: 2.964 MB / 464 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001638/1.074, allocations: 7.906 kB / 464 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005858/1.074, allocations: 4 kB / 464 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003048/1.075, allocations: 112.8 kB / 464.1 MB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04758/1.122, allocations: 10.42 MB / 474.5 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007994/1.13, allocations: 2.352 MB / 476.8 MB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003778/1.134, allocations: 1.013 MB / 477.9 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006023/1.135, allocations: 138.4 kB / 478 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.734e-05/1.135, allocations: 55.83 kB / 478 MB, free: 8.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 5.52e-06/1.135, allocations: 0 / 478 MB, free: 8.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02134/1.156, allocations: 4.95 MB / 483 MB, free: 3.816 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.465e-05/1.157, allocations: 98.41 kB / 483.1 MB, free: 3.699 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00437/1.161, allocations: 1.322 MB / 484.4 MB, free: 2.375 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000439/1.161, allocations: 29.7 kB / 484.4 MB, free: 2.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001769/1.163, allocations: 1.213 MB / 485.7 MB, free: 1.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.164, allocations: 492.6 kB / 486.1 MB, free: 0.6211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/1.165, allocations: 4 kB / 486.1 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002875/1.165, allocations: 377.9 kB / 486.5 MB, free: 248 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/1.168, allocations: 0.7888 MB / 487.3 MB, free: 15.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003136/1.171, allocations: 1.232 MB / 488.5 MB, free: 14.03 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003101/1.174, allocations: 0.9704 MB / 489.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/1.174, allocations: 4 kB / 489.5 MB, free: 13.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.009326/1.183, allocations: 2.607 MB / 492.1 MB, free: 10.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003171/1.186, allocations: 5.529 MB / 497.6 MB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.492e-05/1.187, allocations: 16 kB / 497.7 MB, free: 4.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003778/1.19, allocations: 0.659 MB / 498.3 MB, free: 3.676 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003878/1.194, allocations: 371.4 kB / 498.7 MB, free: 3.312 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3954/1.59, allocations: 7.936 MB / 0.4947 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/1.593, allocations: 80.27 kB / 0.4948 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005081/1.593, allocations: 72 kB / 0.4949 GB, free: 91.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/1.593, allocations: 7.438 kB / 0.4949 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008294/1.602, allocations: 2.387 MB / 0.4972 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-05/1.602, allocations: 13.47 kB / 0.4972 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003308/1.605, allocations: 0.6599 MB / 0.4979 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003554/1.609, allocations: 366 kB / 0.4982 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/1.625, allocations: 7.944 MB / 0.506 GB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/1.628, allocations: 71.92 kB / 0.5061 GB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004276/1.628, allocations: 74.28 kB / 0.5061 GB, free: 87.57 MB / 394.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.0006191/1.629, allocations: 152.5 kB / 0.5063 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006784/1.63, allocations: 183.6 kB / 0.5064 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007817/1.638, allocations: 2.423 MB / 0.5088 GB, free: 87.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/1.638, allocations: 11.59 kB / 0.5088 GB, free: 87.33 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/1.638, allocations: 7.5 kB / 0.5088 GB, free: 87.33 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.391e-05/1.638, allocations: 7.781 kB / 0.5088 GB, free: 87.33 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/1.655, allocations: 4.905 MB / 0.5136 GB, free: 86.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.655, allocations: 3.875 kB / 0.5136 GB, free: 86.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003094/1.658, allocations: 226.6 kB / 0.5139 GB, free: 86.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004263/1.663, allocations: 0.6813 MB / 0.5145 GB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003987/1.663, allocations: 12 kB / 0.5145 GB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02094/1.684, allocations: 9.411 MB / 0.5237 GB, free: 81.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/1.684, allocations: 3.75 kB / 0.5237 GB, free: 81.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/1.697, allocations: 3.724 MB / 0.5274 GB, free: 80.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.699, allocations: 448.2 kB / 0.5278 GB, free: 80.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007096/1.7, allocations: 13.83 kB / 0.5278 GB, free: 80.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/1.703, allocations: 77.55 kB / 0.5279 GB, free: 80.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006412/1.704, allocations: 119.4 kB / 0.528 GB, free: 80.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002661/1.704, allocations: 38.19 kB / 0.528 GB, free: 80.63 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003447/1.707, allocations: 0.9949 MB / 0.529 GB, free: 80.22 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.708, allocations: 0 / 0.529 GB, free: 80.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008058/1.716, allocations: 0.9156 MB / 0.5299 GB, free: 80.21 MB / 394.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.01498/1.731, allocations: 5.141 MB / 0.5349 GB, free: 77.37 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01242/1.743, allocations: 4.282 MB / 0.5391 GB, free: 75.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.743, allocations: 0 / 0.5391 GB, free: 75.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004419/1.748, allocations: 1.631 MB / 0.5407 GB, free: 74.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005372/1.753, allocations: 488.5 kB / 0.5411 GB, free: 74.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/1.775, allocations: 5.356 MB / 0.5464 GB, free: 72.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003999/1.779, allocations: 2.147 MB / 0.5485 GB, free: 71.44 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00606/1.785, allocations: 0.8152 MB / 0.5493 GB, free: 71.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00251/1.788, allocations: 0.9561 MB / 0.5502 GB, free: 70.58 MB / 394.7 MB Notification: Performance of SimCode: time 1.523e-06/1.788, allocations: 0 / 0.5502 GB, free: 70.58 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1832/1.971, allocations: 58.04 MB / 0.6069 GB, free: 25.98 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002035/1.971, allocations: 181.7 kB / 0.6071 GB, free: 25.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.888/7.86, allocations: 3.938 kB / 0.6071 GB, free: 25.79 MB / 394.7 MB