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 2.243/2.243, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.489e-05/2.492e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.293, allocations: 44.49 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.4756, allocations: 104.1 MB / 398.3 MB, free: 9.715 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.476, allocations: 83.95 kB / 398.4 MB, free: 9.633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4743/0.9503, allocations: 54.17 MB / 452.6 MB, free: 92.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.9504, allocations: 4 kB / 452.6 MB, free: 92.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002754/0.9506, allocations: 76.55 kB / 452.6 MB, free: 92.03 MB / 362.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.007602/0.9583, allocations: 2.635 MB / 455.3 MB, free: 90.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.9583, allocations: 7.125 kB / 455.3 MB, free: 90.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.9597, allocations: 354.3 kB / 455.6 MB, free: 90.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005255/0.965, allocations: 1.934 MB / 457.6 MB, free: 89.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.9651, allocations: 88.67 kB / 457.7 MB, free: 89.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004722/0.9656, allocations: 151.9 kB / 457.8 MB, free: 89.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006071/0.9717, allocations: 2.558 MB / 460.4 MB, free: 88.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006394/0.9781, allocations: 2.963 MB / 463.3 MB, free: 85.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/0.9783, allocations: 7.938 kB / 463.3 MB, free: 85.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/0.9786, allocations: 4 kB / 463.3 MB, free: 85.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.9787, allocations: 108.8 kB / 463.4 MB, free: 85.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02106/0.9998, allocations: 10.43 MB / 473.9 MB, free: 74.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003401/1.003, allocations: 2.345 MB / 476.2 MB, free: 72.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/1.005, allocations: 1.016 MB / 477.2 MB, free: 71.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003914/1.006, allocations: 138.1 kB / 477.4 MB, free: 70.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/1.006, allocations: 47.88 kB / 477.4 MB, free: 70.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 4.047e-06/1.006, allocations: 7.938 kB / 477.4 MB, free: 70.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=150): time 0.01241/1.018, allocations: 4.944 MB / 482.4 MB, free: 65.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/1.018, allocations: 90.42 kB / 482.4 MB, free: 65.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002539/1.021, allocations: 1.318 MB / 483.8 MB, free: 64.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002405/1.021, allocations: 25.7 kB / 483.8 MB, free: 64.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007397/1.022, allocations: 1.17 MB / 485 MB, free: 63.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/1.022, allocations: 0.4888 MB / 485.5 MB, free: 62.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/1.022, allocations: 0 / 485.5 MB, free: 62.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/1.022, allocations: 378.8 kB / 485.8 MB, free: 62.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/1.024, allocations: 0.7848 MB / 486.6 MB, free: 61.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/1.026, allocations: 1.236 MB / 487.8 MB, free: 60.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/1.028, allocations: 0.9743 MB / 488.8 MB, free: 59.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/1.028, allocations: 4 kB / 488.8 MB, free: 59.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.005382/1.033, allocations: 2.495 MB / 491.3 MB, free: 56.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001073/1.034, allocations: 5.399 MB / 496.7 MB, free: 50.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/1.034, allocations: 12 kB / 496.7 MB, free: 50.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/1.037, allocations: 0.6668 MB / 497.4 MB, free: 50.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/1.039, allocations: 367.4 kB / 497.8 MB, free: 49.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.05, allocations: 7.949 MB / 0.4938 GB, free: 41.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/1.052, allocations: 83.7 kB / 0.4939 GB, free: 41.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/1.053, allocations: 71.98 kB / 0.494 GB, free: 41.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/1.053, allocations: 8.062 kB / 0.494 GB, free: 41.32 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005181/1.058, allocations: 2.385 MB / 0.4963 GB, free: 38.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/1.058, allocations: 16.03 kB / 0.4963 GB, free: 38.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/1.06, allocations: 0.6437 MB / 0.497 GB, free: 38.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/1.062, allocations: 371.4 kB / 0.4973 GB, free: 37.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/1.073, allocations: 7.981 MB / 0.5051 GB, free: 29.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/1.075, allocations: 67.88 kB / 0.5052 GB, free: 29.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/1.075, allocations: 75.98 kB / 0.5053 GB, free: 29.43 MB / 362.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.0004643/1.075, allocations: 160.2 kB / 0.5054 GB, free: 29.26 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005359/1.081, allocations: 2.286 MB / 0.5076 GB, free: 26.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003834/1.081, allocations: 189.6 kB / 0.5078 GB, free: 26.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005666/1.087, allocations: 2.409 MB / 0.5102 GB, free: 24.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/1.087, allocations: 20 kB / 0.5102 GB, free: 24.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.087, allocations: 0 / 0.5102 GB, free: 24.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/1.087, allocations: 7.969 kB / 0.5102 GB, free: 24.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/1.098, allocations: 4.903 MB / 0.515 GB, free: 19.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/1.098, allocations: 4 kB / 0.515 GB, free: 19.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/1.1, allocations: 231.7 kB / 0.5152 GB, free: 19.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002546/1.103, allocations: 0.6789 MB / 0.5159 GB, free: 18.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/1.103, allocations: 19.98 kB / 0.5159 GB, free: 18.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/1.115, allocations: 9.377 MB / 0.5251 GB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.115, allocations: 12 kB / 0.5251 GB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007211/1.122, allocations: 3.724 MB / 0.5287 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.124, allocations: 454.6 kB / 0.5291 GB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004665/1.124, allocations: 7.984 kB / 0.5291 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/1.126, allocations: 71.89 kB / 0.5292 GB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004567/1.126, allocations: 129 kB / 0.5293 GB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/1.127, allocations: 39.98 kB / 0.5294 GB, free: 4.008 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00189/1.129, allocations: 0.9904 MB / 0.5303 GB, free: 3.023 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/1.129, allocations: 0 / 0.5303 GB, free: 3.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00434/1.133, allocations: 0.9101 MB / 0.5312 GB, free: 2.113 MB / 362.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.009593/1.143, allocations: 5.147 MB / 0.5363 GB, free: 12.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.153, allocations: 4.236 MB / 0.5404 GB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.153, allocations: 0 / 0.5404 GB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003753/1.157, allocations: 1.639 MB / 0.542 GB, free: 6.887 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004056/1.161, allocations: 483 kB / 0.5425 GB, free: 6.414 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01777/1.179, allocations: 5.334 MB / 0.5477 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003004/1.182, allocations: 2.118 MB / 0.5497 GB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002867/1.184, allocations: 0.9874 MB / 0.5507 GB, free: 13.84 MB / 394.7 MB Notification: Performance of SimCode: time 4.378e-06/1.185, allocations: 0 / 0.5507 GB, free: 13.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.316/5.5, allocations: 95.02 MB / 0.6435 GB, free: 54.88 MB / 394.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