Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 3.075/3.075, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.342e-05, allocations: 4.125 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.105, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5888/0.6939, allocations: 108.8 MB / 403.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003819/0.6943, allocations: 86.02 kB / 403.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4141/1.108, allocations: 76.13 MB / 479.3 MB, free: 7.965 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.026e-06/1.108, allocations: 0 / 479.3 MB, free: 7.965 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000475/1.109, allocations: 83.94 kB / 479.4 MB, free: 7.883 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01655/1.126, allocations: 3.195 MB / 482.6 MB, free: 4.621 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/1.126, allocations: 8.031 kB / 482.6 MB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001829/1.127, allocations: 318.9 kB / 482.9 MB, free: 4.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005999/1.134, allocations: 0.5974 MB / 483.5 MB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/1.149, allocations: 3.131 MB / 486.7 MB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002809/1.149, allocations: 134.2 kB / 486.8 MB, free: 376 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/1.15, allocations: 183.9 kB / 487 MB, free: 192 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01234/1.163, allocations: 3.07 MB / 490 MB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/1.177, allocations: 3.601 MB / 493.6 MB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/1.178, allocations: 0 / 493.6 MB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006954/1.178, allocations: 4 kB / 493.6 MB, free: 9.344 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002677/1.179, allocations: 142 kB / 493.8 MB, free: 9.203 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3754/1.554, allocations: 13.21 MB / 0.4951 GB, free: 73.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/1.565, allocations: 5.769 MB / 0.5007 GB, free: 69.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006684/1.572, allocations: 1.285 MB / 0.502 GB, free: 69.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01846/1.591, allocations: 3.079 MB / 0.505 GB, free: 68.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.412e-05/1.591, allocations: 47.92 kB / 0.5051 GB, free: 68.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 9.277e-06/1.591, allocations: 2.344 kB / 0.5051 GB, free: 68.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.01777/1.608, allocations: 4.508 MB / 0.5095 GB, free: 67.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/1.609, allocations: 90.14 kB / 0.5095 GB, free: 67.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003674/1.612, allocations: 1.393 MB / 0.5109 GB, free: 67.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003617/1.613, allocations: 28.77 kB / 0.5109 GB, free: 67.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/1.614, allocations: 1.464 MB / 0.5124 GB, free: 67.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000782/1.615, allocations: 463.2 kB / 0.5128 GB, free: 66.81 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.615, allocations: 0 / 0.5128 GB, free: 66.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/1.615, allocations: 371.1 kB / 0.5132 GB, free: 66.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/1.617, allocations: 0.6866 MB / 0.5138 GB, free: 66.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002844/1.62, allocations: 1.19 MB / 0.515 GB, free: 65.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/1.624, allocations: 0.9528 MB / 0.5159 GB, free: 65.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.011e-05/1.624, allocations: 3.844 kB / 0.5159 GB, free: 65.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.008679/1.632, allocations: 2.549 MB / 0.5184 GB, free: 65.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001712/1.634, allocations: 6.538 MB / 0.5248 GB, free: 58.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.762e-05/1.634, allocations: 17.03 kB / 0.5248 GB, free: 58.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002433/1.637, allocations: 0.5041 MB / 0.5253 GB, free: 58.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003521/1.64, allocations: 372.7 kB / 0.5257 GB, free: 58.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/1.652, allocations: 6.987 MB / 0.5325 GB, free: 54.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003029/1.655, allocations: 60.89 kB / 0.5325 GB, free: 54.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003758/1.656, allocations: 72.81 kB / 0.5326 GB, free: 54.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/1.656, allocations: 3.688 kB / 0.5326 GB, free: 54.84 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007368/1.663, allocations: 2.324 MB / 0.5349 GB, free: 54.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.96e-05/1.663, allocations: 19.41 kB / 0.5349 GB, free: 54.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/1.665, allocations: 0.51 MB / 0.5354 GB, free: 54.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003385/1.669, allocations: 368.4 kB / 0.5357 GB, free: 54.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/1.681, allocations: 6.989 MB / 0.5426 GB, free: 50.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/1.684, allocations: 58.06 kB / 0.5426 GB, free: 50.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000385/1.684, allocations: 81.16 kB / 0.5427 GB, free: 50.81 MB / 394.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.0006065/1.685, allocations: 156.1 kB / 0.5429 GB, free: 50.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000733/1.685, allocations: 193.9 kB / 0.543 GB, free: 50.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007744/1.693, allocations: 2.356 MB / 0.5453 GB, free: 50.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/1.693, allocations: 19.73 kB / 0.5454 GB, free: 50.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/1.693, allocations: 7.406 kB / 0.5454 GB, free: 50.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.982e-05/1.693, allocations: 11.11 kB / 0.5454 GB, free: 50.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01533/1.709, allocations: 4.81 MB / 0.5501 GB, free: 49.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/1.709, allocations: 2.625 kB / 0.5501 GB, free: 49.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/1.711, allocations: 181.3 kB / 0.5503 GB, free: 49.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003178/1.714, allocations: 0.6391 MB / 0.5509 GB, free: 48.87 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002764/1.714, allocations: 10.44 kB / 0.5509 GB, free: 48.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01782/1.732, allocations: 10.88 MB / 0.5615 GB, free: 40.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/1.732, allocations: 4.812 kB / 0.5615 GB, free: 40.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009962/1.742, allocations: 3.584 MB / 0.565 GB, free: 38.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.744, allocations: 441.8 kB / 0.5654 GB, free: 38.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006426/1.745, allocations: 10.61 kB / 0.5654 GB, free: 38.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002422/1.747, allocations: 63.34 kB / 0.5655 GB, free: 38.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/1.748, allocations: 116.4 kB / 0.5656 GB, free: 38.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/1.748, allocations: 37.48 kB / 0.5657 GB, free: 38.22 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002935/1.751, allocations: 1.048 MB / 0.5667 GB, free: 37.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.751, allocations: 0 / 0.5667 GB, free: 37.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007141/1.758, allocations: 0.9884 MB / 0.5676 GB, free: 37.76 MB / 394.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.01128/1.77, allocations: 4.963 MB / 0.5725 GB, free: 34.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01083/1.78, allocations: 3.932 MB / 0.5763 GB, free: 32.81 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.78, allocations: 0 / 0.5763 GB, free: 32.81 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004709/1.785, allocations: 1.669 MB / 0.578 GB, free: 31.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/1.791, allocations: 496 kB / 0.5784 GB, free: 31.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/1.812, allocations: 5.373 MB / 0.5837 GB, free: 29.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004468/1.817, allocations: 2.375 MB / 0.586 GB, free: 28.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005901/1.823, allocations: 0.7355 MB / 0.5867 GB, free: 28.42 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002865/1.826, allocations: 1.116 MB / 0.5878 GB, free: 27.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.654e-06/1.826, allocations: 4 kB / 0.5878 GB, free: 27.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6441/2.47, allocations: 58.76 MB / 0.6452 GB, free: 74.08 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002758/2.47, allocations: 168.4 kB / 0.6454 GB, free: 73.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.587/9.057, allocations: 0 / 0.6454 GB, free: 73.89 MB / 410.7 MB