Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.85e-05, allocations: 4 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 50.41 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4801/0.5854, allocations: 107.8 MB / 450.5 MB, free: 2.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.5857, allocations: 89 kB / 450.6 MB, free: 2.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2369/0.8226, allocations: 58.23 MB / 0.4969 GB, free: 12.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.8227, allocations: 0 / 0.4969 GB, free: 12.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003661/0.823, allocations: 83.81 kB / 0.497 GB, free: 12.06 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01115/0.8342, allocations: 2.9 MB / 0.4998 GB, free: 9.102 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.8343, allocations: 8.031 kB / 0.4998 GB, free: 9.094 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001377/0.8357, allocations: 416.8 kB / 0.5002 GB, free: 8.676 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.8376, allocations: 403.5 kB / 0.5006 GB, free: 8.277 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006617/0.8442, allocations: 2.047 MB / 0.5026 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/0.8445, allocations: 221.7 kB / 0.5028 GB, free: 5.957 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000874/0.8454, allocations: 276 kB / 0.503 GB, free: 5.688 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.8563, allocations: 3.717 MB / 0.5067 GB, free: 1.809 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.8565, allocations: 7.906 kB / 0.5067 GB, free: 1.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004816/0.857, allocations: 124 kB / 0.5068 GB, free: 1.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.8572, allocations: 117.5 kB / 0.5069 GB, free: 1.562 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009946/0.8672, allocations: 2.951 MB / 0.5098 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.033/0.9002, allocations: 11.78 MB / 0.5213 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3185/1.219, allocations: 3.632 MB / 0.5248 GB, free: 105.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003647/1.222, allocations: 1.128 MB / 0.526 GB, free: 105.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000519/1.223, allocations: 138 kB / 0.5261 GB, free: 105.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.021e-05/1.223, allocations: 53.83 kB / 0.5261 GB, free: 105.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 4.298e-06/1.223, allocations: 0 / 0.5261 GB, free: 105.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.0247/1.248, allocations: 6.505 MB / 0.5325 GB, free: 104.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/1.248, allocations: 68.92 kB / 0.5326 GB, free: 104.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005004/1.253, allocations: 1.782 MB / 0.5343 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004013/1.253, allocations: 54.55 kB / 0.5343 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/1.255, allocations: 1.353 MB / 0.5357 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008365/1.256, allocations: 0.5401 MB / 0.5362 GB, free: 103.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/1.256, allocations: 34.66 kB / 0.5362 GB, free: 103.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/1.256, allocations: 384.8 kB / 0.5366 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/1.259, allocations: 0.8835 MB / 0.5375 GB, free: 103.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002834/1.262, allocations: 1.325 MB / 0.5387 GB, free: 103 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/1.265, allocations: 1.11 MB / 0.5398 GB, free: 103 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.083e-05/1.265, allocations: 4.641 kB / 0.5398 GB, free: 103 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.01064/1.275, allocations: 3.333 MB / 0.5431 GB, free: 102.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/1.275, allocations: 11 kB / 0.5431 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.649e-05/1.275, allocations: 13.75 kB / 0.5431 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004883/1.28, allocations: 1.031 MB / 0.5441 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/1.283, allocations: 332.5 kB / 0.5444 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02316/1.306, allocations: 19.2 MB / 0.5632 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002768/1.309, allocations: 101.7 kB / 0.5633 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003881/1.309, allocations: 77.31 kB / 0.5634 GB, free: 89.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000511/1.31, allocations: 216.8 kB / 0.5636 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000699/1.311, allocations: 220.5 kB / 0.5638 GB, free: 89.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007586/1.318, allocations: 2.795 MB / 0.5665 GB, free: 88.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/1.318, allocations: 13.84 kB / 0.5665 GB, free: 88.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.476e-05/1.318, allocations: 7.5 kB / 0.5665 GB, free: 88.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.986e-05/1.318, allocations: 11.11 kB / 0.5665 GB, free: 88.53 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01647/1.335, allocations: 5.992 MB / 0.5724 GB, free: 86.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.335, allocations: 3.469 kB / 0.5724 GB, free: 86.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/1.336, allocations: 189.2 kB / 0.5726 GB, free: 86.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004012/1.34, allocations: 0.921 MB / 0.5735 GB, free: 85.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002718/1.341, allocations: 35.3 kB / 0.5735 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/1.361, allocations: 17.09 MB / 0.5902 GB, free: 72.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.361, allocations: 10.98 kB / 0.5902 GB, free: 72.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009465/1.371, allocations: 4.121 MB / 0.5942 GB, free: 70.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/1.372, allocations: 492.1 kB / 0.5947 GB, free: 69.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006381/1.373, allocations: 29.94 kB / 0.5947 GB, free: 69.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002708/1.376, allocations: 121.7 kB / 0.5948 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006388/1.376, allocations: 142.2 kB / 0.595 GB, free: 69.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/1.377, allocations: 42.8 kB / 0.595 GB, free: 69.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00314/1.38, allocations: 1.356 MB / 0.5963 GB, free: 69.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.38, allocations: 0 / 0.5963 GB, free: 69.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004211/1.384, allocations: 0.7308 MB / 0.5971 GB, free: 69.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01072/1.395, allocations: 5.562 MB / 0.6025 GB, free: 66.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007485/1.402, allocations: 3.419 MB / 0.6058 GB, free: 64.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.402, allocations: 2.156 kB / 0.6058 GB, free: 64.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004345/1.407, allocations: 2.166 MB / 0.6079 GB, free: 63.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005189/1.412, allocations: 0.636 MB / 0.6086 GB, free: 62.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/1.427, allocations: 5.387 MB / 0.6138 GB, free: 60.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/1.429, allocations: 2.361 MB / 0.6161 GB, free: 58.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002497/1.432, allocations: 480.9 kB / 0.6166 GB, free: 58.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/1.434, allocations: 1.079 MB / 0.6176 GB, free: 57.45 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/1.434, allocations: 3.469 kB / 0.6176 GB, free: 57.45 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1448/1.579, allocations: 63.81 MB / 0.68 GB, free: 2.133 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/1.579, allocations: 210.7 kB / 0.6802 GB, free: 1.902 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.686/6.265, allocations: 3.938 kB / 0.6802 GB, free: 1.898 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat