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.026/2.026, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.26e-05/4.279e-05, allocations: 11.98 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09755/0.09763, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4976/0.5953, allocations: 88.61 MB / 388.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.5957, allocations: 80.41 kB / 388.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09364/0.6893, allocations: 22.94 MB / 411.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6894, allocations: 0 / 411.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.415e-05/0.6895, allocations: 19.56 kB / 411.6 MB, free: 6.492 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.002412/0.6919, allocations: 0.9745 MB / 412.6 MB, free: 5.785 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.6919, allocations: 7.75 kB / 412.6 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003024/0.6923, allocations: 131.1 kB / 412.7 MB, free: 5.727 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007908/0.6931, allocations: 147 kB / 412.9 MB, free: 5.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.695, allocations: 0.6726 MB / 413.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.6951, allocations: 62.69 kB / 413.6 MB, free: 5.266 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.6953, allocations: 82.27 kB / 413.7 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.6972, allocations: 0.7231 MB / 414.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.908e-05/0.6973, allocations: 7.719 kB / 414.4 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.6974, allocations: 36.53 kB / 414.4 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.6974, allocations: 23.2 kB / 414.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.6987, allocations: 470.8 kB / 414.9 MB, free: 5.039 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00654/0.7053, allocations: 3.452 MB / 418.4 MB, free: 2.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005663/0.7059, allocations: 207.8 kB / 418.6 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.7061, allocations: 93.95 kB / 418.7 MB, free: 2.738 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.7062, allocations: 7.844 kB / 418.7 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.7062, allocations: 33.75 kB / 418.7 MB, free: 2.695 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 2.505e-06/0.7062, allocations: 0 / 418.7 MB, free: 2.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001972/0.7082, allocations: 0.8044 MB / 419.5 MB, free: 2.223 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.7083, allocations: 93.22 kB / 419.6 MB, free: 2.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.7094, allocations: 0.6189 MB / 420.2 MB, free: 1.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.005e-05/0.7095, allocations: 33.33 kB / 420.3 MB, free: 1.898 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.7098, allocations: 0.509 MB / 420.8 MB, free: 1.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.684e-05/0.7099, allocations: 100.2 kB / 420.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.71, allocations: 14.31 kB / 420.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.189e-05/0.7101, allocations: 332.8 kB / 421.2 MB, free: 1.156 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.7104, allocations: 105.9 kB / 421.3 MB, free: 1.152 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.7108, allocations: 399.9 kB / 421.7 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.7112, allocations: 184.8 kB / 421.9 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/0.7112, allocations: 4 kB / 421.9 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001161/0.7124, allocations: 0.4937 MB / 422.4 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.7124, allocations: 15.86 kB / 422.4 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.7125, allocations: 11.62 kB / 422.4 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002109/0.7127, allocations: 33.36 kB / 422.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008295/0.7135, allocations: 146 kB / 422.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.7149, allocations: 1.292 MB / 423.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009858/0.7159, allocations: 43.67 kB / 423.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.332e-05/0.716, allocations: 27.03 kB / 423.9 MB, free: 15.21 MB / 330.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.0001958/0.7162, allocations: 157.5 kB / 424.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.7164, allocations: 66.03 kB / 424.2 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008211/0.7172, allocations: 291.7 kB / 424.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.7173, allocations: 3.875 kB / 424.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7173, allocations: 0 / 424.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.7173, allocations: 3.984 kB / 424.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.7196, allocations: 1.043 MB / 425.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.7197, allocations: 4.094 kB / 425.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.7202, allocations: 62.53 kB / 425.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001436/0.7204, allocations: 23.84 kB / 425.6 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.7204, allocations: 7.75 kB / 425.6 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.7217, allocations: 1.272 MB / 426.9 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/0.7218, allocations: 7.891 kB / 426.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.7229, allocations: 0.5807 MB / 427.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003812/0.7233, allocations: 173.9 kB / 427.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.7234, allocations: 13.5 kB / 427.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.7241, allocations: 22.58 kB / 427.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.966e-05/0.7242, allocations: 26.66 kB / 427.7 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.7242, allocations: 14.91 kB / 427.7 MB, free: 12.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009006/0.7251, allocations: 471 kB / 428.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7252, allocations: 0 / 428.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001223/0.7264, allocations: 199.8 kB / 428.3 MB, free: 12.37 MB / 330.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.002184/0.7286, allocations: 1.794 MB / 430.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.7297, allocations: 401.8 kB / 430.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.7297, allocations: 3.938 kB / 430.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004385/0.7302, allocations: 216.4 kB / 430.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.7317, allocations: 163.8 kB / 430.9 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003933/0.7357, allocations: 1.189 MB / 432.1 MB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007022/0.7365, allocations: 0.9525 MB / 433.1 MB, free: 9.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005667/0.7371, allocations: 313.3 kB / 433.4 MB, free: 9.055 MB / 330.7 MB Notification: Performance of SimCode: time 1.814e-06/0.7371, allocations: 4 kB / 433.4 MB, free: 9.051 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.026/3.763, allocations: 17.42 MB / 450.8 MB, free: 11.09 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.DCPM_Start_res.mat does not exist to compare? outputFormat=mat