Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.044e-05, allocations: 4 kB / 292.8 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 50.42 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4765/0.5801, allocations: 110.6 MB / 453.7 MB, free: 128 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5805, allocations: 87.27 kB / 453.8 MB, free: 84 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2268/0.8072, allocations: 55.23 MB / 0.4971 GB, free: 12.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.8073, allocations: 4 kB / 0.4971 GB, free: 12.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002982/0.8076, allocations: 71.94 kB / 0.4972 GB, free: 12.42 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.009127/0.8168, allocations: 2.66 MB / 0.4998 GB, free: 9.695 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.8168, allocations: 12.03 kB / 0.4998 GB, free: 9.684 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001008/0.8178, allocations: 354.6 kB / 0.5001 GB, free: 9.328 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.8193, allocations: 360 kB / 0.5005 GB, free: 8.973 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006172/0.8255, allocations: 1.929 MB / 0.5024 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/0.8258, allocations: 197 kB / 0.5026 GB, free: 6.793 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006666/0.8265, allocations: 243.9 kB / 0.5028 GB, free: 6.555 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.8366, allocations: 3.296 MB / 0.506 GB, free: 3.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.8367, allocations: 11.89 kB / 0.506 GB, free: 3.078 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004175/0.8372, allocations: 112.3 kB / 0.5061 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002033/0.8374, allocations: 116.8 kB / 0.5062 GB, free: 2.852 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008377/0.8458, allocations: 2.661 MB / 0.5088 GB, free: 188 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02744/0.8732, allocations: 10.9 MB / 0.5195 GB, free: 4.988 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.8781, allocations: 2.392 MB / 0.5218 GB, free: 2.434 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0028/0.8809, allocations: 1.052 MB / 0.5229 GB, free: 1.383 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004671/0.8814, allocations: 142.3 kB / 0.523 GB, free: 1.227 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.8815, allocations: 51.88 kB / 0.523 GB, free: 1.168 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.767e-06/0.8815, allocations: 0 / 0.523 GB, free: 1.168 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.3189/1.2, allocations: 5.469 MB / 0.5284 GB, free: 92.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/1.2, allocations: 93.95 kB / 0.5285 GB, free: 92.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/1.204, allocations: 1.567 MB / 0.53 GB, free: 92.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003618/1.205, allocations: 52.14 kB / 0.53 GB, free: 92.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/1.206, allocations: 1.218 MB / 0.5312 GB, free: 91.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008226/1.207, allocations: 0.4962 MB / 0.5317 GB, free: 91.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/1.207, allocations: 36.53 kB / 0.5318 GB, free: 91.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/1.207, allocations: 374.9 kB / 0.5321 GB, free: 91.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/1.21, allocations: 0.8226 MB / 0.5329 GB, free: 91.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002454/1.212, allocations: 1.266 MB / 0.5342 GB, free: 90.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/1.215, allocations: 1.009 MB / 0.5351 GB, free: 90.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.197e-05/1.215, allocations: 3.875 kB / 0.5351 GB, free: 90.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007806/1.223, allocations: 2.761 MB / 0.5378 GB, free: 90.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001201/1.224, allocations: 5.587 MB / 0.5433 GB, free: 84.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.223e-05/1.224, allocations: 17.03 kB / 0.5433 GB, free: 84.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003449/1.227, allocations: 0.668 MB / 0.544 GB, free: 84.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002922/1.23, allocations: 376.2 kB / 0.5443 GB, free: 84.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01339/1.244, allocations: 8.264 MB / 0.5524 GB, free: 80.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/1.247, allocations: 114.9 kB / 0.5525 GB, free: 80.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000299/1.247, allocations: 76.58 kB / 0.5526 GB, free: 80.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/1.247, allocations: 2.562 kB / 0.5526 GB, free: 80.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00655/1.253, allocations: 2.565 MB / 0.5551 GB, free: 80.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.423e-05/1.254, allocations: 15.5 kB / 0.5551 GB, free: 80.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/1.256, allocations: 0.6674 MB / 0.5558 GB, free: 80.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002613/1.258, allocations: 365.2 kB / 0.5561 GB, free: 80.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/1.27, allocations: 8.29 MB / 0.5642 GB, free: 76.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/1.273, allocations: 99.94 kB / 0.5643 GB, free: 76.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/1.273, allocations: 72.25 kB / 0.5644 GB, free: 76.69 MB / 442.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.0005995/1.274, allocations: 217.2 kB / 0.5646 GB, free: 76.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005727/1.274, allocations: 199.1 kB / 0.5648 GB, free: 76.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006304/1.281, allocations: 2.562 MB / 0.5673 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/1.281, allocations: 18.05 kB / 0.5673 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/1.281, allocations: 3.688 kB / 0.5673 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/1.281, allocations: 7.547 kB / 0.5673 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/1.294, allocations: 5.352 MB / 0.5725 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/1.294, allocations: 3.406 kB / 0.5725 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001927/1.296, allocations: 233.5 kB / 0.5727 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0027/1.299, allocations: 0.6877 MB / 0.5734 GB, free: 75.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/1.299, allocations: 34.91 kB / 0.5734 GB, free: 75.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/1.313, allocations: 9.762 MB / 0.583 GB, free: 68.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.313, allocations: 4.312 kB / 0.583 GB, free: 68.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008241/1.321, allocations: 3.864 MB / 0.5868 GB, free: 66.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.323, allocations: 477.8 kB / 0.5872 GB, free: 66.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000587/1.323, allocations: 27.53 kB / 0.5872 GB, free: 66.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/1.325, allocations: 100.2 kB / 0.5873 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.326, allocations: 129 kB / 0.5875 GB, free: 66.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.326, allocations: 45.66 kB / 0.5875 GB, free: 66.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002441/1.328, allocations: 1.199 MB / 0.5887 GB, free: 65.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.328, allocations: 0 / 0.5887 GB, free: 65.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005129/1.333, allocations: 1.048 MB / 0.5897 GB, free: 65.56 MB / 442.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.008916/1.342, allocations: 5.332 MB / 0.5949 GB, free: 62.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008905/1.351, allocations: 4.386 MB / 0.5992 GB, free: 60.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.351, allocations: 3.938 kB / 0.5992 GB, free: 60.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00328/1.355, allocations: 1.659 MB / 0.6008 GB, free: 59.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004426/1.359, allocations: 0.5677 MB / 0.6014 GB, free: 59.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/1.374, allocations: 5.213 MB / 0.6065 GB, free: 57.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002438/1.376, allocations: 2.148 MB / 0.6085 GB, free: 55.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004342/1.381, allocations: 0.8801 MB / 0.6094 GB, free: 55.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/1.382, allocations: 0.9616 MB / 0.6103 GB, free: 54.53 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.382, allocations: 0 / 0.6103 GB, free: 54.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1497/1.532, allocations: 64.65 MB / 0.6735 GB, free: 15.91 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002805/1.532, allocations: 204.1 kB / 0.6737 GB, free: 15.69 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.246/6.778, allocations: 0 / 0.6737 GB, free: 15.69 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat