Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.197/2.197, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.82e-05, allocations: 2.75 kB / 249.8 MB, free: 5.234 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5138/0.6153, allocations: 104.1 MB / 398.4 MB, free: 236 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.6157, allocations: 87.16 kB / 398.5 MB, free: 220 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.264/0.8797, allocations: 54.17 MB / 452.7 MB, free: 3.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.8797, allocations: 0 / 452.7 MB, free: 3.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003971/0.8802, allocations: 83.8 kB / 452.7 MB, free: 3.008 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.01122/0.8914, allocations: 2.636 MB / 455.4 MB, free: 316 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.8915, allocations: 8.031 kB / 455.4 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/0.8936, allocations: 360.9 kB / 455.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007399/0.901, allocations: 1.936 MB / 457.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.9013, allocations: 83.98 kB / 457.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000915/0.9022, allocations: 151.9 kB / 457.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009414/0.9116, allocations: 2.556 MB / 460.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.9218, allocations: 2.964 MB / 463.4 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.922, allocations: 4 kB / 463.4 MB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003689/0.9223, allocations: 4 kB / 463.4 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002275/0.9226, allocations: 112.8 kB / 463.5 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03228/0.9549, allocations: 10.42 MB / 474 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005/0.9599, allocations: 2.356 MB / 476.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002632/0.9626, allocations: 1.017 MB / 477.3 MB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005082/0.9631, allocations: 138.3 kB / 477.5 MB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.185e-05/0.9632, allocations: 47.88 kB / 477.5 MB, free: 9.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 5.2e-06/0.9632, allocations: 0 / 477.5 MB, free: 9.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.0165/0.9797, allocations: 4.951 MB / 482.5 MB, free: 4.465 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.9798, allocations: 94.42 kB / 482.6 MB, free: 4.352 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/0.9832, allocations: 1.326 MB / 483.9 MB, free: 3.023 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.9835, allocations: 29.64 kB / 483.9 MB, free: 2.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.9849, allocations: 1.213 MB / 485.1 MB, free: 1.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007138/0.9857, allocations: 492.6 kB / 485.6 MB, free: 1.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.9858, allocations: 4 kB / 485.6 MB, free: 1.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002431/0.9861, allocations: 377.9 kB / 486 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.9882, allocations: 0.7887 MB / 486.8 MB, free: 104 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/0.9908, allocations: 1.232 MB / 488 MB, free: 14.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002671/0.9935, allocations: 0.9704 MB / 489 MB, free: 13.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/0.9936, allocations: 7.938 kB / 489 MB, free: 13.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007757/1.001, allocations: 2.607 MB / 491.6 MB, free: 11.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002693/1.004, allocations: 5.533 MB / 497.1 MB, free: 5.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-05/1.004, allocations: 12 kB / 497.1 MB, free: 4.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/1.007, allocations: 0.6513 MB / 497.8 MB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003293/1.011, allocations: 371.5 kB / 498.1 MB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3176/1.328, allocations: 7.932 MB / 0.4942 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/1.331, allocations: 74.92 kB / 0.4943 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002951/1.332, allocations: 69.62 kB / 0.4944 GB, free: 91.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/1.332, allocations: 3.844 kB / 0.4944 GB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007342/1.339, allocations: 2.396 MB / 0.4967 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.665e-05/1.339, allocations: 14.31 kB / 0.4967 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/1.342, allocations: 0.6543 MB / 0.4974 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003327/1.345, allocations: 362.5 kB / 0.4977 GB, free: 91.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/1.361, allocations: 7.962 MB / 0.5055 GB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002703/1.364, allocations: 63.8 kB / 0.5055 GB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002346/1.364, allocations: 80.39 kB / 0.5056 GB, free: 87.57 MB / 394.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.0005764/1.364, allocations: 151.3 kB / 0.5058 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006947/1.371, allocations: 2.295 MB / 0.508 GB, free: 87.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008615/1.372, allocations: 187.5 kB / 0.5082 GB, free: 87.35 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007095/1.379, allocations: 2.418 MB / 0.5105 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/1.379, allocations: 15.75 kB / 0.5106 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.379, allocations: 6.5 kB / 0.5106 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.104e-05/1.38, allocations: 15.53 kB / 0.5106 GB, free: 87.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/1.394, allocations: 4.881 MB / 0.5153 GB, free: 86.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/1.394, allocations: 3.562 kB / 0.5153 GB, free: 86.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/1.397, allocations: 238.4 kB / 0.5156 GB, free: 86.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00312/1.4, allocations: 0.6812 MB / 0.5162 GB, free: 86.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002723/1.4, allocations: 17.86 kB / 0.5163 GB, free: 86.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/1.416, allocations: 9.395 MB / 0.5254 GB, free: 81.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/1.416, allocations: 7.656 kB / 0.5254 GB, free: 81.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008916/1.425, allocations: 3.727 MB / 0.5291 GB, free: 80.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/1.426, allocations: 451.9 kB / 0.5295 GB, free: 80.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005368/1.427, allocations: 2.5 kB / 0.5295 GB, free: 80.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/1.429, allocations: 76.73 kB / 0.5296 GB, free: 80.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005023/1.429, allocations: 118.1 kB / 0.5297 GB, free: 80.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/1.43, allocations: 41.03 kB / 0.5297 GB, free: 80.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002237/1.432, allocations: 0.9984 MB / 0.5307 GB, free: 79.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.432, allocations: 0 / 0.5307 GB, free: 79.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005329/1.437, allocations: 0.9185 MB / 0.5316 GB, free: 79.64 MB / 394.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.009697/1.447, allocations: 5.145 MB / 0.5366 GB, free: 76.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01052/1.458, allocations: 4.286 MB / 0.5408 GB, free: 74.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.458, allocations: 0 / 0.5408 GB, free: 74.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003897/1.461, allocations: 1.631 MB / 0.5424 GB, free: 73.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004791/1.466, allocations: 475.5 kB / 0.5429 GB, free: 73.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/1.485, allocations: 5.354 MB / 0.5481 GB, free: 71.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002952/1.488, allocations: 2.149 MB / 0.5502 GB, free: 70.87 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0055/1.494, allocations: 0.8184 MB / 0.551 GB, free: 70.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0022/1.496, allocations: 0.9572 MB / 0.5519 GB, free: 70.01 MB / 394.7 MB Notification: Performance of SimCode: time 1.734e-06/1.496, allocations: 3.281 kB / 0.5519 GB, free: 70.01 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2002/1.696, allocations: 55.62 MB / 0.6062 GB, free: 26.56 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003376/1.697, allocations: 189.6 kB / 0.6064 GB, free: 26.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.704/7.401, allocations: 4 kB / 0.6064 GB, free: 26.35 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat