Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.899e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3083, allocations: 44.5 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.4693, allocations: 87.94 MB / 382.1 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.4697, allocations: 75.95 kB / 382.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0971/0.5668, allocations: 22.62 MB / 404.8 MB, free: 3.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5668, allocations: 0 / 404.8 MB, free: 3.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.375e-05/0.5669, allocations: 16 kB / 404.9 MB, free: 3.129 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002272/0.5692, allocations: 0.9817 MB / 405.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5692, allocations: 12.03 kB / 405.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000709/0.57, allocations: 142.7 kB / 406 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001767/0.5717, allocations: 0.6797 MB / 406.7 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.5718, allocations: 24 kB / 406.7 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.572, allocations: 47.94 kB / 406.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001258/0.5732, allocations: 432 kB / 407.2 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.5749, allocations: 0.6311 MB / 407.8 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.5749, allocations: 7.906 kB / 407.8 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.61e-05/0.575, allocations: 0 / 407.8 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.699e-05/0.575, allocations: 20 kB / 407.8 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006226/0.5813, allocations: 3.303 MB / 411.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005407/0.5819, allocations: 202.4 kB / 411.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.5821, allocations: 88.86 kB / 411.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.5822, allocations: 4 kB / 411.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.5822, allocations: 34.56 kB / 411.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.615e-06/0.5822, allocations: 0 / 411.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001833/0.584, allocations: 0.7544 MB / 412.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.5841, allocations: 85.28 kB / 412.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000988/0.5851, allocations: 0.5152 MB / 412.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.5852, allocations: 29.7 kB / 412.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004559/0.5856, allocations: 0.5314 MB / 413.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.5858, allocations: 94.66 kB / 413.4 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.458e-05/0.5858, allocations: 4 kB / 413.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.586, allocations: 334.8 kB / 413.8 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.5862, allocations: 93.56 kB / 413.9 MB, free: 9.672 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.5868, allocations: 381.9 kB / 414.2 MB, free: 9.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.5872, allocations: 159.9 kB / 414.4 MB, free: 9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.5872, allocations: 4 kB / 414.4 MB, free: 8.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00115/0.5884, allocations: 470.6 kB / 414.9 MB, free: 8.527 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.5884, allocations: 8 kB / 414.9 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.5884, allocations: 12.06 kB / 414.9 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.5886, allocations: 36.84 kB / 414.9 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000899/0.5896, allocations: 143.8 kB / 415.1 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.5909, allocations: 1.248 MB / 416.3 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007191/0.5917, allocations: 27.84 kB / 416.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.625e-05/0.5917, allocations: 32 kB / 416.4 MB, free: 6.906 MB / 362.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.0001596/0.5919, allocations: 136.5 kB / 416.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006021/0.5925, allocations: 257.6 kB / 416.8 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.5927, allocations: 63.3 kB / 416.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006857/0.5934, allocations: 265.5 kB / 417.1 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5934, allocations: 0 / 417.1 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.5934, allocations: 4 kB / 417.1 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5934, allocations: 0 / 417.1 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.5953, allocations: 0.9189 MB / 418 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.5953, allocations: 4.031 kB / 418 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/0.5959, allocations: 59.91 kB / 418.1 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001275/0.596, allocations: 24.84 kB / 418.1 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.5961, allocations: 4 kB / 418.1 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.5972, allocations: 1.217 MB / 419.3 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/0.5972, allocations: 11.92 kB / 419.3 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009604/0.5982, allocations: 0.5526 MB / 419.9 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002985/0.5985, allocations: 168.2 kB / 420 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.5987, allocations: 7.938 kB / 420 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005112/0.5992, allocations: 23.92 kB / 420.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.103e-05/0.5993, allocations: 23.97 kB / 420.1 MB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.5993, allocations: 12 kB / 420.1 MB, free: 2.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007292/0.6001, allocations: 395.2 kB / 420.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6001, allocations: 0 / 420.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009866/0.6011, allocations: 148 kB / 420.6 MB, free: 2.332 MB / 362.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.001836/0.6029, allocations: 1.721 MB / 422.3 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009324/0.6039, allocations: 387.5 kB / 422.7 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6039, allocations: 0 / 422.7 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2676/0.8716, allocations: 205 kB / 422.9 MB, free: 99.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.8731, allocations: 154.8 kB / 423.1 MB, free: 99.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.8769, allocations: 1.136 MB / 424.2 MB, free: 99.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006334/0.8776, allocations: 0.9646 MB / 425.2 MB, free: 98.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005733/0.8782, allocations: 305.1 kB / 425.5 MB, free: 98.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8782, allocations: 0 / 425.5 MB, free: 98.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.865, allocations: 16.86 MB / 442.3 MB, free: 96.85 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat