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.991/1.991, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.398e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5545, allocations: 104.8 MB / 404.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.5548, allocations: 86.3 kB / 404.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2314/0.7862, allocations: 54.92 MB / 459.7 MB, free: 8.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.7863, allocations: 4 kB / 459.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004035/0.7867, allocations: 75.86 kB / 459.8 MB, free: 8.695 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.01153/0.7982, allocations: 2.642 MB / 462.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.539e-05/0.7983, allocations: 12.03 kB / 462.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001958/0.8003, allocations: 364.1 kB / 462.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002776/0.8031, allocations: 356 kB / 463.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008232/0.8114, allocations: 1.937 MB / 465.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/0.8118, allocations: 185 kB / 465.3 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/0.8132, allocations: 251.9 kB / 465.5 MB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.8264, allocations: 3.325 MB / 468.8 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001765/0.8266, allocations: 7.906 kB / 468.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.8277, allocations: 104 kB / 468.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002189/0.828, allocations: 116.8 kB / 469.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.8383, allocations: 2.701 MB / 471.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04381/0.8822, allocations: 10.91 MB / 482.7 MB, free: 1.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007524/0.8898, allocations: 2.423 MB / 485.1 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004341/0.8942, allocations: 1.055 MB / 486.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006958/0.895, allocations: 142.4 kB / 486.3 MB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.259e-05/0.8951, allocations: 43.88 kB / 486.3 MB, free: 13.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 7.003e-06/0.8951, allocations: 4 kB / 486.3 MB, free: 13.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02852/0.9236, allocations: 5.492 MB / 491.8 MB, free: 8.035 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.748e-05/0.9238, allocations: 94.42 kB / 491.9 MB, free: 7.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004989/0.9288, allocations: 1.571 MB / 493.5 MB, free: 6.359 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004398/0.9293, allocations: 49.7 kB / 493.5 MB, free: 6.305 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.9307, allocations: 1.147 MB / 494.7 MB, free: 5.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009761/0.9318, allocations: 0.4968 MB / 495.2 MB, free: 4.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.932, allocations: 36 kB / 495.2 MB, free: 4.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002752/0.9323, allocations: 378.8 kB / 495.6 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002617/0.9349, allocations: 0.8239 MB / 496.4 MB, free: 3.402 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/0.9383, allocations: 1.271 MB / 497.7 MB, free: 1.941 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003154/0.9415, allocations: 1.012 MB / 498.7 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/0.9416, allocations: 4 kB / 498.7 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.008869/0.9504, allocations: 2.678 MB / 0.4896 GB, free: 14.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002716/0.9532, allocations: 5.403 MB / 0.4949 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.224e-05/0.9533, allocations: 16 kB / 0.4949 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00305/0.9564, allocations: 0.6746 MB / 0.4956 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/0.9595, allocations: 371.4 kB / 0.4959 GB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/0.9757, allocations: 8.252 MB / 0.504 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/0.9786, allocations: 119.8 kB / 0.5041 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005473/0.9792, allocations: 75.98 kB / 0.5042 GB, free: 14.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.9792, allocations: 4 kB / 0.5042 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008409/0.9876, allocations: 2.603 MB / 0.5067 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.979e-05/0.9878, allocations: 12 kB / 0.5067 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/0.9904, allocations: 0.6635 MB / 0.5074 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.9935, allocations: 363.6 kB / 0.5077 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01601/1.01, allocations: 8.323 MB / 0.5158 GB, free: 2.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/1.011, allocations: 103.8 kB / 0.5159 GB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000386/1.012, allocations: 75.98 kB / 0.516 GB, free: 1.918 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.0006643/1.013, allocations: 212.5 kB / 0.5162 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008019/1.013, allocations: 201.6 kB / 0.5164 GB, free: 1.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2872/1.301, allocations: 2.551 MB / 0.5189 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-05/1.301, allocations: 15.36 kB / 0.5189 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/1.301, allocations: 6.203 kB / 0.5189 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.301e-05/1.301, allocations: 7.906 kB / 0.5189 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/1.318, allocations: 5.353 MB / 0.5242 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.783e-05/1.318, allocations: 2.141 kB / 0.5242 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/1.321, allocations: 231.7 kB / 0.5244 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/1.324, allocations: 0.6987 MB / 0.5251 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004088/1.324, allocations: 40.27 kB / 0.5251 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/1.34, allocations: 9.765 MB / 0.5346 GB, free: 95.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.341, allocations: 6.5 kB / 0.5346 GB, free: 95.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009255/1.35, allocations: 3.854 MB / 0.5384 GB, free: 94.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/1.352, allocations: 474.4 kB / 0.5389 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008219/1.353, allocations: 32.38 kB / 0.5389 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.355, allocations: 98.22 kB / 0.539 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006996/1.356, allocations: 122 kB / 0.5391 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/1.356, allocations: 41.16 kB / 0.5391 GB, free: 94.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003207/1.359, allocations: 1.203 MB / 0.5403 GB, free: 94.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.359, allocations: 6 kB / 0.5403 GB, free: 94.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006222/1.366, allocations: 1.032 MB / 0.5413 GB, free: 94.36 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.01072/1.376, allocations: 5.314 MB / 0.5465 GB, free: 92.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.387, allocations: 4.445 MB / 0.5509 GB, free: 91.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.387, allocations: 0 / 0.5509 GB, free: 91.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003983/1.391, allocations: 1.713 MB / 0.5525 GB, free: 91.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004885/1.396, allocations: 0.5622 MB / 0.5531 GB, free: 91.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/1.415, allocations: 5.557 MB / 0.5585 GB, free: 89.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/1.419, allocations: 2.119 MB / 0.5606 GB, free: 88.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002449/1.421, allocations: 0.9985 MB / 0.5616 GB, free: 87.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/1.421, allocations: 0 / 0.5616 GB, free: 87.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.139/5.56, allocations: 96.85 MB / 0.6561 GB, free: 14.62 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