Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.777e-05/3.789e-05, allocations: 4 kB / 269.5 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09836, allocations: 47.58 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4698/0.5683, allocations: 110.1 MB / 427.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003715/0.5687, allocations: 82.95 kB / 427.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2461/0.8148, allocations: 54.98 MB / 482.2 MB, free: 10.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.8149, allocations: 0 / 482.2 MB, free: 10.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003725/0.8153, allocations: 71.88 kB / 482.2 MB, free: 9.941 MB / 394.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.01114/0.8265, allocations: 2.64 MB / 484.9 MB, free: 7.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.8265, allocations: 12.03 kB / 484.9 MB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00165/0.8282, allocations: 366.6 kB / 485.3 MB, free: 6.859 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002156/0.8304, allocations: 352 kB / 485.6 MB, free: 6.512 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007466/0.8379, allocations: 1.944 MB / 487.5 MB, free: 4.512 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003205/0.8383, allocations: 185.7 kB / 487.7 MB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/0.8394, allocations: 248 kB / 488 MB, free: 4.086 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.851, allocations: 3.304 MB / 491.3 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001431/0.8512, allocations: 11.84 kB / 491.3 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005062/0.8517, allocations: 111.9 kB / 491.4 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001929/0.8519, allocations: 116.8 kB / 491.5 MB, free: 384 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009926/0.8619, allocations: 2.661 MB / 494.2 MB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03259/0.8945, allocations: 10.92 MB / 0.4932 GB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005065/0.8996, allocations: 2.402 MB / 0.4956 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002812/0.9025, allocations: 1.056 MB / 0.4966 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000504/0.9031, allocations: 142.3 kB / 0.4968 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/0.9031, allocations: 47.88 kB / 0.4968 GB, free: 14.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 5.421e-06/0.9032, allocations: 0 / 0.4968 GB, free: 14.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.0214/0.9246, allocations: 5.488 MB / 0.5022 GB, free: 9.125 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.9247, allocations: 98.36 kB / 0.5023 GB, free: 9.008 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006513/0.9313, allocations: 1.568 MB / 0.5038 GB, free: 7.445 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005241/0.9319, allocations: 49.7 kB / 0.5038 GB, free: 7.391 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002367/0.9343, allocations: 1.218 MB / 0.505 GB, free: 6.156 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001333/0.9357, allocations: 0.5045 MB / 0.5055 GB, free: 5.645 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.936, allocations: 40 kB / 0.5056 GB, free: 5.605 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003685/0.9364, allocations: 377.9 kB / 0.5059 GB, free: 5.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00406/0.9405, allocations: 0.82 MB / 0.5067 GB, free: 4.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004666/0.9452, allocations: 1.263 MB / 0.5079 GB, free: 2.957 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002936/0.9482, allocations: 1.004 MB / 0.5089 GB, free: 1.949 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/0.9483, allocations: 8 kB / 0.5089 GB, free: 1.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.3334/1.282, allocations: 2.758 MB / 0.5116 GB, free: 107.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00133/1.283, allocations: 5.589 MB / 0.5171 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.61e-05/1.283, allocations: 13.75 kB / 0.5171 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003221/1.286, allocations: 0.6588 MB / 0.5177 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003112/1.29, allocations: 373 kB / 0.5181 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/1.305, allocations: 8.261 MB / 0.5262 GB, free: 97.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002928/1.308, allocations: 115 kB / 0.5263 GB, free: 97.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004807/1.309, allocations: 73.14 kB / 0.5263 GB, free: 97.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/1.309, allocations: 4.344 kB / 0.5263 GB, free: 97.94 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007613/1.316, allocations: 2.569 MB / 0.5289 GB, free: 97.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.131e-05/1.316, allocations: 14.78 kB / 0.5289 GB, free: 97.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00288/1.319, allocations: 0.6643 MB / 0.5295 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003742/1.323, allocations: 368 kB / 0.5299 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01693/1.34, allocations: 8.265 MB / 0.5379 GB, free: 93.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/1.343, allocations: 100.7 kB / 0.538 GB, free: 93.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004743/1.343, allocations: 74.78 kB / 0.5381 GB, free: 93.93 MB / 426.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.0005824/1.344, allocations: 217 kB / 0.5383 GB, free: 93.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/1.345, allocations: 202.8 kB / 0.5385 GB, free: 93.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00643/1.351, allocations: 2.564 MB / 0.541 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/1.351, allocations: 15.31 kB / 0.541 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/1.351, allocations: 3.812 kB / 0.541 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.561e-05/1.351, allocations: 7.406 kB / 0.541 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/1.365, allocations: 5.344 MB / 0.5463 GB, free: 93.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/1.365, allocations: 3.688 kB / 0.5463 GB, free: 93.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/1.367, allocations: 236.5 kB / 0.5465 GB, free: 93.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002825/1.37, allocations: 0.694 MB / 0.5472 GB, free: 93.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003138/1.371, allocations: 34.81 kB / 0.5472 GB, free: 93.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/1.385, allocations: 9.771 MB / 0.5567 GB, free: 86.08 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.385, allocations: 3.875 kB / 0.5567 GB, free: 86.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008999/1.394, allocations: 3.862 MB / 0.5605 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.395, allocations: 469.8 kB / 0.561 GB, free: 84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006376/1.396, allocations: 35.27 kB / 0.561 GB, free: 83.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/1.398, allocations: 104.2 kB / 0.5611 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/1.399, allocations: 115.4 kB / 0.5612 GB, free: 83.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/1.399, allocations: 37.34 kB / 0.5612 GB, free: 83.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002703/1.402, allocations: 1.206 MB / 0.5624 GB, free: 83.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.402, allocations: 2.375 kB / 0.5624 GB, free: 83.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005717/1.407, allocations: 1.046 MB / 0.5634 GB, free: 83.38 MB / 426.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.009554/1.417, allocations: 5.319 MB / 0.5686 GB, free: 80.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009618/1.427, allocations: 4.383 MB / 0.5729 GB, free: 78.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.427, allocations: 7 kB / 0.5729 GB, free: 78.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003573/1.43, allocations: 1.657 MB / 0.5745 GB, free: 77.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004692/1.435, allocations: 0.5725 MB / 0.5751 GB, free: 77.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/1.452, allocations: 5.596 MB / 0.5806 GB, free: 75.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/1.454, allocations: 2.158 MB / 0.5827 GB, free: 74.19 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004591/1.459, allocations: 0.8764 MB / 0.5835 GB, free: 74.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/1.461, allocations: 0.9569 MB / 0.5845 GB, free: 73.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.793e-06/1.461, allocations: 0 / 0.5845 GB, free: 73.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1484/1.609, allocations: 64.7 MB / 0.6476 GB, free: 20.61 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003109/1.61, allocations: 212.5 kB / 0.6478 GB, free: 20.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.252/6.862, allocations: 0 / 0.6478 GB, free: 20.39 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat