Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.969e-05, allocations: 4 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.0922, allocations: 44.52 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4319/0.5242, allocations: 92.69 MB / 392.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.5245, allocations: 78.77 kB / 392.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1363/0.6608, allocations: 26.16 MB / 418.9 MB, free: 4.383 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6609, allocations: 0 / 418.9 MB, free: 4.383 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.896e-05/0.661, allocations: 27.22 kB / 418.9 MB, free: 4.375 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002589/0.6636, allocations: 1.103 MB / 420 MB, free: 3.609 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.6636, allocations: 11.5 kB / 420 MB, free: 3.609 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003106/0.664, allocations: 148.2 kB / 420.2 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000884/0.6648, allocations: 175.3 kB / 420.3 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/0.667, allocations: 0.7649 MB / 421.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.028e-05/0.6671, allocations: 70.22 kB / 421.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.6673, allocations: 97.5 kB / 421.3 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002101/0.6694, allocations: 0.8613 MB / 422.1 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.6695, allocations: 10.38 kB / 422.1 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.6696, allocations: 36.75 kB / 422.2 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.6697, allocations: 23.5 kB / 422.2 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.6712, allocations: 0.5593 MB / 422.8 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008009/0.6792, allocations: 3.951 MB / 426.7 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/0.6799, allocations: 321 kB / 427 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.6802, allocations: 137 kB / 427.2 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.56e-05/0.6803, allocations: 4.156 kB / 427.2 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.6803, allocations: 37.58 kB / 427.2 MB, free: 132 kB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.545e-06/0.6803, allocations: 0 / 427.2 MB, free: 132 kB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002415/0.6828, allocations: 0.9513 MB / 428.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.6829, allocations: 80.98 kB / 428.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.6842, allocations: 0.6866 MB / 428.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.6842, allocations: 36.33 kB / 429 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004528/0.6847, allocations: 0.5699 MB / 429.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.6849, allocations: 136.7 kB / 429.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.685, allocations: 14.81 kB / 429.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6851, allocations: 339.1 kB / 430 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.6855, allocations: 123 kB / 430.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005931/0.6861, allocations: 441.1 kB / 430.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.6866, allocations: 206.5 kB / 430.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.6866, allocations: 3.844 kB / 430.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001322/0.6879, allocations: 0.5586 MB / 431.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.688, allocations: 13.75 kB / 431.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.688, allocations: 11.5 kB / 431.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002139/0.6882, allocations: 38.97 kB / 431.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009662/0.6892, allocations: 167.2 kB / 431.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.6905, allocations: 1.286 MB / 432.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000946/0.6915, allocations: 41.17 kB / 432.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/0.6915, allocations: 30.22 kB / 432.9 MB, free: 12.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.6917, allocations: 154.2 kB / 433 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.6919, allocations: 81.59 kB / 433.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008936/0.6928, allocations: 351.3 kB / 433.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.6928, allocations: 6.625 kB / 433.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6928, allocations: 0 / 433.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.6928, allocations: 0 / 433.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.6952, allocations: 1.209 MB / 434.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.6953, allocations: 3.75 kB / 434.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/0.6959, allocations: 78.11 kB / 434.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001296/0.6961, allocations: 25.39 kB / 434.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.6961, allocations: 11.06 kB / 434.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.6973, allocations: 1.27 MB / 436.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6973, allocations: 7.047 kB / 436.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.6984, allocations: 0.6673 MB / 436.7 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003619/0.6988, allocations: 189.3 kB / 436.9 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.6989, allocations: 7.375 kB / 436.9 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.6996, allocations: 25.92 kB / 437 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.6997, allocations: 34.56 kB / 437 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.6998, allocations: 26.48 kB / 437 MB, free: 9.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009568/0.7007, allocations: 0.5128 MB / 437.5 MB, free: 9.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7007, allocations: 0 / 437.5 MB, free: 9.586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001158/0.7019, allocations: 228.2 kB / 437.8 MB, free: 9.578 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002586/0.7045, allocations: 1.889 MB / 439.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.7058, allocations: 458.3 kB / 440.1 MB, free: 7.617 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.7058, allocations: 0 / 440.1 MB, free: 7.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004972/0.7063, allocations: 238.8 kB / 440.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.708, allocations: 197.5 kB / 440.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.7122, allocations: 1.446 MB / 442 MB, free: 5.883 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007674/0.713, allocations: 1.016 MB / 443 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.7136, allocations: 375.2 kB / 443.4 MB, free: 4.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.7136, allocations: 0 / 443.4 MB, free: 4.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.039/3.753, allocations: 20.43 MB / 463.8 MB, free: 0.6523 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat