Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.326e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 50.42 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5103/0.6241, allocations: 116.8 MB / 459.5 MB, free: 9.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.6245, allocations: 98.92 kB / 459.6 MB, free: 9.535 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3089/0.9334, allocations: 77.22 MB / 0.5242 GB, free: 60 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.9335, allocations: 4 kB / 0.5242 GB, free: 56 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.3081/1.242, allocations: 80.69 kB / 0.5243 GB, free: 94.21 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.01522/1.257, allocations: 3.207 MB / 0.5274 GB, free: 93.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/1.257, allocations: 12.41 kB / 0.5275 GB, free: 93.63 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002213/1.259, allocations: 441.8 kB / 0.5279 GB, free: 93.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005369/1.265, allocations: 0.596 MB / 0.5285 GB, free: 93.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/1.278, allocations: 3.14 MB / 0.5315 GB, free: 92.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004075/1.279, allocations: 236 kB / 0.5318 GB, free: 92.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/1.28, allocations: 312.2 kB / 0.5321 GB, free: 92.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/1.295, allocations: 4.008 MB / 0.536 GB, free: 92.42 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/1.296, allocations: 6.766 kB / 0.536 GB, free: 92.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007503/1.296, allocations: 130 kB / 0.5361 GB, free: 92.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002425/1.297, allocations: 145 kB / 0.5362 GB, free: 92.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/1.309, allocations: 3.219 MB / 0.5394 GB, free: 92.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03755/1.346, allocations: 13.8 MB / 0.5529 GB, free: 88.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007901/1.354, allocations: 5.834 MB / 0.5586 GB, free: 84.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003275/1.358, allocations: 1.337 MB / 0.5599 GB, free: 84.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008788/1.367, allocations: 3.189 MB / 0.563 GB, free: 84.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/1.367, allocations: 47.25 kB / 0.563 GB, free: 84.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 4.428e-06/1.367, allocations: 0 / 0.563 GB, free: 84.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.0116/1.378, allocations: 4.532 MB / 0.5674 GB, free: 81.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/1.378, allocations: 93.33 kB / 0.5675 GB, free: 81.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003768/1.382, allocations: 1.676 MB / 0.5692 GB, free: 80.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003796/1.383, allocations: 52.67 kB / 0.5692 GB, free: 80.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/1.384, allocations: 1.384 MB / 0.5706 GB, free: 79.74 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006893/1.384, allocations: 484.7 kB / 0.571 GB, free: 79.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/1.385, allocations: 31.88 kB / 0.5711 GB, free: 79.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/1.385, allocations: 383.5 kB / 0.5714 GB, free: 79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/1.386, allocations: 0.7111 MB / 0.5721 GB, free: 78.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/1.389, allocations: 1.234 MB / 0.5733 GB, free: 77.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/1.391, allocations: 0.9099 MB / 0.5742 GB, free: 77.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-05/1.391, allocations: 7.219 kB / 0.5742 GB, free: 77.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006238/1.397, allocations: 2.492 MB / 0.5767 GB, free: 76.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001429/1.399, allocations: 6.364 MB / 0.5829 GB, free: 69.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.985e-05/1.399, allocations: 18.09 kB / 0.5829 GB, free: 69.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00206/1.401, allocations: 0.5138 MB / 0.5834 GB, free: 69.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/1.404, allocations: 368 kB / 0.5837 GB, free: 69.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.414, allocations: 7.232 MB / 0.5908 GB, free: 64.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002957/1.417, allocations: 99.67 kB / 0.5909 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003973/1.417, allocations: 71.72 kB / 0.591 GB, free: 64.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/1.417, allocations: 6.406 kB / 0.591 GB, free: 64.1 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006024/1.423, allocations: 2.428 MB / 0.5933 GB, free: 63.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-05/1.424, allocations: 17.84 kB / 0.5934 GB, free: 63.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001652/1.425, allocations: 0.5035 MB / 0.5939 GB, free: 62.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/1.428, allocations: 358.4 kB / 0.5942 GB, free: 62.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009968/1.438, allocations: 7.31 MB / 0.6013 GB, free: 57.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/1.44, allocations: 87.53 kB / 0.6014 GB, free: 57.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/1.44, allocations: 72.34 kB / 0.6015 GB, free: 57.44 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.0005665/1.441, allocations: 218.1 kB / 0.6017 GB, free: 57.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007203/1.441, allocations: 209.8 kB / 0.6019 GB, free: 57.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005965/1.447, allocations: 2.436 MB / 0.6043 GB, free: 56.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/1.447, allocations: 11.81 kB / 0.6043 GB, free: 56.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/1.447, allocations: 7.344 kB / 0.6043 GB, free: 56.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.034e-05/1.447, allocations: 11.06 kB / 0.6043 GB, free: 56.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/1.46, allocations: 5.264 MB / 0.6094 GB, free: 53.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.461, allocations: 7.062 kB / 0.6095 GB, free: 53.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/1.462, allocations: 179.9 kB / 0.6096 GB, free: 53.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002597/1.465, allocations: 0.6552 MB / 0.6103 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/1.465, allocations: 27.44 kB / 0.6103 GB, free: 53.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/1.481, allocations: 11.27 MB / 0.6213 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.481, allocations: 6.281 kB / 0.6213 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008051/1.489, allocations: 3.675 MB / 0.6249 GB, free: 42.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001668/1.491, allocations: 467.7 kB / 0.6253 GB, free: 42.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004525/1.491, allocations: 30.28 kB / 0.6254 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/1.493, allocations: 84.97 kB / 0.6254 GB, free: 42.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/1.493, allocations: 110.6 kB / 0.6256 GB, free: 42.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.494, allocations: 48.23 kB / 0.6256 GB, free: 42.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002788/1.496, allocations: 1.275 MB / 0.6268 GB, free: 41.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.843e-06/1.496, allocations: 1.969 kB / 0.6268 GB, free: 41.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005787/1.502, allocations: 1.11 MB / 0.6279 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.008901/1.511, allocations: 5.164 MB / 0.633 GB, free: 37.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008235/1.52, allocations: 3.965 MB / 0.6368 GB, free: 33.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.627e-06/1.52, allocations: 0 / 0.6368 GB, free: 33.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003505/1.523, allocations: 1.698 MB / 0.6385 GB, free: 32.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005127/1.528, allocations: 0.6022 MB / 0.6391 GB, free: 31.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01712/1.545, allocations: 5.383 MB / 0.6444 GB, free: 27.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002853/1.548, allocations: 2.335 MB / 0.6466 GB, free: 25.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002612/1.551, allocations: 1.162 MB / 0.6478 GB, free: 24.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.563e-06/1.551, allocations: 0 / 0.6478 GB, free: 24.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.599/6.15, allocations: 122.2 MB / 0.7671 GB, free: 83.31 MB / 458.7 MB