Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.1/2.1, allocations: 225.8 MB / 239.3 MB, free: 1.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.208e-05/3.22e-05, allocations: 4 kB / 292.7 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 50.41 MB / 343.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4566/0.56, allocations: 107.6 MB / 450.7 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.5603, allocations: 86.7 kB / 450.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2467/0.8071, allocations: 58.24 MB / 0.4971 GB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.8072, allocations: 0 / 0.4971 GB, free: 11.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004449/0.8076, allocations: 83.81 kB / 0.4972 GB, free: 11.24 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01153/0.8192, allocations: 2.9 MB / 0.5001 GB, free: 8.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.8193, allocations: 8.031 kB / 0.5001 GB, free: 8.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001858/0.8211, allocations: 412.8 kB / 0.5005 GB, free: 7.855 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002724/0.8239, allocations: 403.5 kB / 0.5008 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007779/0.8317, allocations: 2.055 MB / 0.5028 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003367/0.8321, allocations: 209.7 kB / 0.503 GB, free: 5.141 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.8334, allocations: 280 kB / 0.5033 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.8463, allocations: 3.717 MB / 0.5069 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.8465, allocations: 7.906 kB / 0.507 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.8475, allocations: 120 kB / 0.5071 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002031/0.8477, allocations: 121.5 kB / 0.5072 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.8583, allocations: 2.951 MB / 0.5101 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05057/0.909, allocations: 11.79 MB / 0.5216 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007759/0.9168, allocations: 3.637 MB / 0.5251 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004821/0.9217, allocations: 1.132 MB / 0.5262 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006727/0.9224, allocations: 130.4 kB / 0.5264 GB, free: 12.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.603e-05/0.9225, allocations: 59.86 kB / 0.5264 GB, free: 12.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=139): time 6.041e-06/0.9226, allocations: 0 / 0.5264 GB, free: 12.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.0371/0.9597, allocations: 6.498 MB / 0.5328 GB, free: 5.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/0.9598, allocations: 68.72 kB / 0.5328 GB, free: 5.648 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007061/0.9669, allocations: 1.785 MB / 0.5346 GB, free: 3.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004915/0.9675, allocations: 57.7 kB / 0.5346 GB, free: 3.758 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002301/0.9698, allocations: 1.359 MB / 0.5359 GB, free: 2.383 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/0.971, allocations: 0.5381 MB / 0.5365 GB, free: 1.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002942/0.9713, allocations: 36 kB / 0.5365 GB, free: 1.805 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003357/0.9717, allocations: 381.8 kB / 0.5369 GB, free: 1.426 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003687/0.9754, allocations: 0.8902 MB / 0.5377 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00446/0.9799, allocations: 1.32 MB / 0.539 GB, free: 15.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/0.9832, allocations: 1.114 MB / 0.5401 GB, free: 13.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.927e-05/0.9832, allocations: 4 kB / 0.5401 GB, free: 13.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.01112/0.9944, allocations: 3.33 MB / 0.5434 GB, free: 10.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.9945, allocations: 12 kB / 0.5434 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-05/0.9945, allocations: 12 kB / 0.5434 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005231/0.9997, allocations: 1.043 MB / 0.5444 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002589/1.002, allocations: 327.4 kB / 0.5447 GB, free: 9.129 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3754/1.378, allocations: 19.18 MB / 0.5635 GB, free: 99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/1.381, allocations: 98.8 kB / 0.5636 GB, free: 99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004434/1.381, allocations: 74.09 kB / 0.5636 GB, free: 99 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004891/1.382, allocations: 217.2 kB / 0.5638 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007147/1.382, allocations: 217.9 kB / 0.564 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008154/1.391, allocations: 2.792 MB / 0.5668 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.475e-05/1.391, allocations: 22.09 kB / 0.5668 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.845e-05/1.391, allocations: 8.531 kB / 0.5668 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-05/1.391, allocations: 11.88 kB / 0.5668 GB, free: 98.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01851/1.409, allocations: 5.997 MB / 0.5727 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-05/1.409, allocations: 2.75 kB / 0.5727 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00227/1.412, allocations: 189.8 kB / 0.5728 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00639/1.418, allocations: 0.9166 MB / 0.5737 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004094/1.419, allocations: 33.12 kB / 0.5738 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02683/1.446, allocations: 17.09 MB / 0.5905 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.446, allocations: 3.906 kB / 0.5905 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.458, allocations: 4.111 MB / 0.5945 GB, free: 85.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/1.46, allocations: 492.8 kB / 0.595 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005779/1.46, allocations: 39.94 kB / 0.595 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01377/1.474, allocations: 118.9 kB / 0.5951 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001769/1.476, allocations: 143.1 kB / 0.5952 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002206/1.476, allocations: 48.39 kB / 0.5953 GB, free: 85.78 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003573/1.48, allocations: 1.351 MB / 0.5966 GB, free: 85.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.48, allocations: 3.656 kB / 0.5966 GB, free: 85.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01274/1.493, allocations: 0.7295 MB / 0.5973 GB, free: 85.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02487/1.517, allocations: 5.584 MB / 0.6028 GB, free: 82.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009664/1.527, allocations: 3.41 MB / 0.6061 GB, free: 80.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/1.527, allocations: 3.312 kB / 0.6061 GB, free: 80.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005053/1.532, allocations: 2.165 MB / 0.6082 GB, free: 79.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005232/1.538, allocations: 0.6319 MB / 0.6088 GB, free: 79.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01564/1.553, allocations: 5.396 MB / 0.6141 GB, free: 77.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003446/1.557, allocations: 2.367 MB / 0.6164 GB, free: 76.46 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002681/1.56, allocations: 474 kB / 0.6169 GB, free: 76.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002376/1.562, allocations: 1.089 MB / 0.6179 GB, free: 75.53 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/1.562, allocations: 0 / 0.6179 GB, free: 75.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1488/1.711, allocations: 63.8 MB / 0.6802 GB, free: 30.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/1.711, allocations: 206.4 kB / 0.6804 GB, free: 30.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.841/6.552, allocations: 0 / 0.6804 GB, free: 30.27 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat