Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.949e-05/2.958e-05, allocations: 0 / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09495, allocations: 44.52 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4476/0.5426, allocations: 104.8 MB / 404.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.5429, allocations: 82.7 kB / 404.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2171/0.7601, allocations: 54.92 MB / 459.7 MB, free: 8.781 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.7602, allocations: 4 kB / 459.7 MB, free: 8.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003194/0.7605, allocations: 75.88 kB / 459.8 MB, free: 8.703 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.00989/0.7704, allocations: 2.646 MB / 462.5 MB, free: 6.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.7705, allocations: 8.031 kB / 462.5 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.7718, allocations: 359.3 kB / 462.8 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.7734, allocations: 356 kB / 463.2 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006902/0.7803, allocations: 1.945 MB / 465.1 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.7806, allocations: 181 kB / 465.3 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008027/0.7814, allocations: 251.9 kB / 465.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009657/0.7911, allocations: 3.3 MB / 468.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.7913, allocations: 7.906 kB / 468.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004477/0.7917, allocations: 112 kB / 469 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001815/0.7919, allocations: 104.8 kB / 469.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008799/0.8007, allocations: 2.669 MB / 471.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02977/0.8306, allocations: 10.91 MB / 482.6 MB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004952/0.8356, allocations: 2.394 MB / 485 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002725/0.8383, allocations: 1.059 MB / 486.1 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004699/0.8388, allocations: 146.3 kB / 486.2 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.8389, allocations: 43.88 kB / 486.3 MB, free: 13.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.128e-06/0.8389, allocations: 0 / 486.3 MB, free: 13.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01803/0.857, allocations: 5.491 MB / 491.8 MB, free: 8.129 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.8571, allocations: 94.42 kB / 491.9 MB, free: 8.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/0.8609, allocations: 1.564 MB / 493.4 MB, free: 6.457 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003422/0.8612, allocations: 53.7 kB / 493.5 MB, free: 6.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.8624, allocations: 1.143 MB / 494.6 MB, free: 5.242 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007369/0.8631, allocations: 0.5045 MB / 495.1 MB, free: 4.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.8633, allocations: 36 kB / 495.2 MB, free: 4.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.8635, allocations: 382.7 kB / 495.5 MB, free: 4.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/0.8657, allocations: 0.82 MB / 496.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/0.8682, allocations: 1.267 MB / 497.6 MB, free: 2.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002486/0.8707, allocations: 1.012 MB / 498.6 MB, free: 1.027 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/0.8707, allocations: 7.984 kB / 498.6 MB, free: 1.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007021/0.8777, allocations: 2.636 MB / 0.4895 GB, free: 14.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002276/0.8801, allocations: 5.403 MB / 0.4948 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.557e-05/0.8801, allocations: 12 kB / 0.4948 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002862/0.883, allocations: 0.6668 MB / 0.4955 GB, free: 7.848 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/0.8859, allocations: 375.4 kB / 0.4958 GB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/0.9009, allocations: 8.256 MB / 0.5039 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002696/0.9037, allocations: 115.9 kB / 0.504 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004233/0.9041, allocations: 68 kB / 0.5041 GB, free: 14.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.9042, allocations: 4 kB / 0.5041 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007063/0.9112, allocations: 2.568 MB / 0.5066 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.9113, allocations: 19.97 kB / 0.5066 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/0.9137, allocations: 0.6676 MB / 0.5072 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002693/0.9164, allocations: 363.4 kB / 0.5076 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01465/0.931, allocations: 8.315 MB / 0.5157 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.9328, allocations: 104 kB / 0.5158 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002114/0.933, allocations: 71.98 kB / 0.5159 GB, free: 2.105 MB / 410.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.0005649/0.9336, allocations: 216.5 kB / 0.5161 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007236/0.9343, allocations: 201.5 kB / 0.5163 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2736/1.208, allocations: 2.559 MB / 0.5188 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.292e-05/1.208, allocations: 14.22 kB / 0.5188 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/1.208, allocations: 3.219 kB / 0.5188 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-05/1.208, allocations: 11.44 kB / 0.5188 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02173/1.23, allocations: 5.347 MB / 0.524 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/1.23, allocations: 2.25 kB / 0.524 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002818/1.233, allocations: 230.8 kB / 0.5242 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00413/1.237, allocations: 0.6904 MB / 0.5249 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003333/1.237, allocations: 39.28 kB / 0.525 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02122/1.259, allocations: 9.763 MB / 0.5345 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/1.259, allocations: 2.656 kB / 0.5345 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.27, allocations: 3.86 MB / 0.5383 GB, free: 95.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.273, allocations: 482.3 kB / 0.5387 GB, free: 95.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006068/1.273, allocations: 26.53 kB / 0.5387 GB, free: 95.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002619/1.276, allocations: 100.9 kB / 0.5388 GB, free: 95.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005748/1.276, allocations: 119.9 kB / 0.539 GB, free: 95.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.277, allocations: 41.84 kB / 0.539 GB, free: 95.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003767/1.28, allocations: 1.204 MB / 0.5402 GB, free: 94.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.28, allocations: 0 / 0.5402 GB, free: 94.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006349/1.287, allocations: 1.031 MB / 0.5412 GB, free: 94.89 MB / 410.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.00925/1.296, allocations: 5.321 MB / 0.5464 GB, free: 93.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009351/1.305, allocations: 4.336 MB / 0.5506 GB, free: 92.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.306, allocations: 3.656 kB / 0.5506 GB, free: 92.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003541/1.309, allocations: 1.665 MB / 0.5522 GB, free: 91.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004514/1.314, allocations: 0.5764 MB / 0.5528 GB, free: 91.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01689/1.331, allocations: 5.549 MB / 0.5582 GB, free: 90.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/1.333, allocations: 2.123 MB / 0.5603 GB, free: 89.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002032/1.335, allocations: 0.9915 MB / 0.5613 GB, free: 88.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/1.335, allocations: 0 / 0.5613 GB, free: 88.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.081/5.416, allocations: 96.6 MB / 0.6556 GB, free: 15.82 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat