Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.801/1.801, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.515e-05/2.535e-05, allocations: 0 / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2709, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.4193, allocations: 82.8 MB / 341.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.4196, allocations: 79.95 kB / 341.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09482/0.5144, allocations: 22.7 MB / 363.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5145, allocations: 0 / 363.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.5146, allocations: 20 kB / 363.9 MB, free: 4.129 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00219/0.5168, allocations: 0.9675 MB / 364.9 MB, free: 3.117 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.5168, allocations: 12.03 kB / 364.9 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/0.5176, allocations: 146.6 kB / 365 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.5193, allocations: 0.6797 MB / 365.7 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.916e-05/0.5194, allocations: 24 kB / 365.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.5196, allocations: 55.91 kB / 365.8 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001249/0.5208, allocations: 428 kB / 366.2 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.5224, allocations: 0.6272 MB / 366.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.537e-05/0.5225, allocations: 0 / 366.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.008e-05/0.5226, allocations: 0 / 366.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.5226, allocations: 27.92 kB / 366.9 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2194/0.742, allocations: 3.303 MB / 370.2 MB, free: 82.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005646/0.7426, allocations: 190.5 kB / 370.4 MB, free: 82.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.7429, allocations: 91.64 kB / 370.5 MB, free: 82.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.885e-05/0.7429, allocations: 7.547 kB / 370.5 MB, free: 82.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.743, allocations: 35.88 kB / 370.5 MB, free: 82.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.556e-06/0.743, allocations: 3.203 kB / 370.5 MB, free: 82.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.0017/0.7447, allocations: 0.7532 MB / 371.3 MB, free: 81.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.7447, allocations: 80.09 kB / 371.3 MB, free: 81.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000865/0.7456, allocations: 0.5194 MB / 371.9 MB, free: 81.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.7457, allocations: 32.64 kB / 371.9 MB, free: 81.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.746, allocations: 0.526 MB / 372.4 MB, free: 81.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.7461, allocations: 103.2 kB / 372.5 MB, free: 81.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.7461, allocations: 0 / 372.5 MB, free: 81.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.178e-05/0.7462, allocations: 337.9 kB / 372.8 MB, free: 81.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.7464, allocations: 93.28 kB / 372.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.7468, allocations: 381.6 kB / 373.3 MB, free: 80.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.7472, allocations: 163 kB / 373.5 MB, free: 80.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.7472, allocations: 3.781 kB / 373.5 MB, free: 80.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001063/0.7483, allocations: 462.6 kB / 373.9 MB, free: 80.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.7483, allocations: 9.219 kB / 373.9 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.7483, allocations: 10.34 kB / 373.9 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002002/0.7485, allocations: 33.31 kB / 374 MB, free: 80.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/0.7494, allocations: 147.7 kB / 374.1 MB, free: 80.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008838/0.7503, allocations: 1.243 MB / 375.4 MB, free: 79.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007617/0.7511, allocations: 25.34 kB / 375.4 MB, free: 79.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.7512, allocations: 29.94 kB / 375.4 MB, free: 79.46 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0001297/0.7513, allocations: 131.3 kB / 375.5 MB, free: 79.35 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005411/0.7519, allocations: 259.5 kB / 375.8 MB, free: 79.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.752, allocations: 70.45 kB / 375.9 MB, free: 79.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000611/0.7526, allocations: 263.1 kB / 376.1 MB, free: 79.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.7526, allocations: 2.938 kB / 376.1 MB, free: 79.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.7526, allocations: 0 / 376.1 MB, free: 79.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7527, allocations: 3.25 kB / 376.1 MB, free: 79.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.7544, allocations: 0.916 MB / 377 MB, free: 78.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.7545, allocations: 1.094 kB / 377 MB, free: 78.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005194/0.755, allocations: 61.14 kB / 377.1 MB, free: 78.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.7552, allocations: 21.61 kB / 377.1 MB, free: 78.83 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.7552, allocations: 9.578 kB / 377.1 MB, free: 78.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008336/0.756, allocations: 1.219 MB / 378.4 MB, free: 77.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.7561, allocations: 7.422 kB / 378.4 MB, free: 77.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008645/0.7569, allocations: 0.5553 MB / 378.9 MB, free: 77.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.7573, allocations: 169 kB / 379.1 MB, free: 77.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.7574, allocations: 3.938 kB / 379.1 MB, free: 77.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004963/0.7579, allocations: 15.59 kB / 379.1 MB, free: 77.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.758, allocations: 29.72 kB / 379.1 MB, free: 77.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.758, allocations: 7.281 kB / 379.1 MB, free: 77.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006203/0.7587, allocations: 397.2 kB / 379.5 MB, free: 77.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7587, allocations: 0 / 379.5 MB, free: 77.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00098/0.7597, allocations: 155.5 kB / 379.7 MB, free: 77.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.001318/0.761, allocations: 1.727 MB / 381.4 MB, free: 75.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008255/0.7618, allocations: 384.5 kB / 381.8 MB, free: 75.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7619, allocations: 0 / 381.8 MB, free: 75.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.7622, allocations: 211.4 kB / 382 MB, free: 75.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.7634, allocations: 161.9 kB / 382.1 MB, free: 75.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.7665, allocations: 1.146 MB / 383.3 MB, free: 74.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.767, allocations: 0.9596 MB / 384.2 MB, free: 74.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/0.7675, allocations: 302.3 kB / 384.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of SimCode: time 2.554e-06/0.7675, allocations: 0 / 384.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.732/3.5, allocations: 16.87 MB / 401.4 MB, free: 69.81 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat