Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.248e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2742, allocations: 38.77 MB / 263.9 MB, free: 9.777 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.177/0.4513, allocations: 89.23 MB / 353.1 MB, free: 420 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/0.4517, allocations: 83.95 kB / 353.2 MB, free: 336 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4558/0.9075, allocations: 30.31 MB / 383.5 MB, free: 84.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.9076, allocations: 6.375 kB / 383.5 MB, free: 84.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001576/0.9078, allocations: 24.47 kB / 383.5 MB, free: 84.02 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005591/0.9134, allocations: 1.349 MB / 384.9 MB, free: 83.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.9134, allocations: 10.22 kB / 384.9 MB, free: 83.14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000465/0.9139, allocations: 168.6 kB / 385 MB, free: 83.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.9153, allocations: 203.5 kB / 385.2 MB, free: 82.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/0.919, allocations: 0.8355 MB / 386.1 MB, free: 82.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002869/0.9194, allocations: 115.8 kB / 386.2 MB, free: 82.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004128/0.9198, allocations: 106.7 kB / 386.3 MB, free: 82.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004016/0.9238, allocations: 1.072 MB / 387.4 MB, free: 81.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.521e-05/0.924, allocations: 22.98 kB / 387.4 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.9242, allocations: 47.44 kB / 387.4 MB, free: 81.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.691e-05/0.9243, allocations: 25.28 kB / 387.4 MB, free: 81.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.9274, allocations: 0.6703 MB / 388.1 MB, free: 81.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.9399, allocations: 3.917 MB / 392 MB, free: 78.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003264/0.9433, allocations: 0.5376 MB / 392.6 MB, free: 78.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008477/0.9441, allocations: 239.5 kB / 392.8 MB, free: 78.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-05/0.9442, allocations: 12.56 kB / 392.8 MB, free: 78.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009456/0.9452, allocations: 269.6 kB / 393.1 MB, free: 78.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 6.793e-06/0.9452, allocations: 0 / 393.1 MB, free: 78.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.005697/0.951, allocations: 1.488 MB / 394.6 MB, free: 76.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/0.9512, allocations: 479.2 kB / 395 MB, free: 76.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.9538, allocations: 0.9101 MB / 395.9 MB, free: 75.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.954, allocations: 41.7 kB / 396 MB, free: 75.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000697/0.9547, allocations: 0.6327 MB / 396.6 MB, free: 74.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.9551, allocations: 226.6 kB / 396.8 MB, free: 74.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.287e-05/0.9552, allocations: 20 kB / 396.9 MB, free: 74.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9553, allocations: 349.5 kB / 397.2 MB, free: 74.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009285/0.9563, allocations: 222.1 kB / 397.4 MB, free: 73.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.9576, allocations: 0.6695 MB / 398.1 MB, free: 73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.9588, allocations: 378.9 kB / 398.5 MB, free: 72.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/0.9589, allocations: 4 kB / 398.5 MB, free: 72.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00396/0.9629, allocations: 0.9795 MB / 399.4 MB, free: 71.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8e-05/0.963, allocations: 71.36 kB / 399.5 MB, free: 71.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.132e-05/0.9631, allocations: 12 kB / 399.5 MB, free: 71.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.9643, allocations: 169.8 kB / 399.7 MB, free: 71.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.9665, allocations: 211.1 kB / 399.9 MB, free: 71.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007701/0.9743, allocations: 3.549 MB / 403.4 MB, free: 67.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/0.9764, allocations: 71.97 kB / 403.5 MB, free: 67.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.821e-05/0.9765, allocations: 55.89 kB / 403.6 MB, free: 67.36 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002474/0.9768, allocations: 176.8 kB / 403.7 MB, free: 67.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.977, allocations: 126.5 kB / 403.9 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.9788, allocations: 0.6568 MB / 404.5 MB, free: 66.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.9788, allocations: 8 kB / 404.5 MB, free: 66.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.9788, allocations: 0 / 404.5 MB, free: 66.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001256/0.9801, allocations: 0.8866 MB / 405.4 MB, free: 65.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.9837, allocations: 1.719 MB / 407.1 MB, free: 63.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.9838, allocations: 7.984 kB / 407.1 MB, free: 63.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009179/0.9847, allocations: 115.8 kB / 407.3 MB, free: 63.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000603/0.9853, allocations: 133.7 kB / 407.4 MB, free: 63.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.241e-05/0.9854, allocations: 12 kB / 407.4 MB, free: 63.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/0.989, allocations: 3.267 MB / 410.7 MB, free: 59.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.989, allocations: 3.938 kB / 410.7 MB, free: 59.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.9913, allocations: 1.083 MB / 411.7 MB, free: 58.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/0.9919, allocations: 247.6 kB / 412 MB, free: 58.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.9921, allocations: 16 kB / 412 MB, free: 58.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.9931, allocations: 55.91 kB / 412.1 MB, free: 58.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.9933, allocations: 56.42 kB / 412.1 MB, free: 58.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/0.9934, allocations: 27.94 kB / 412.1 MB, free: 58.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001268/0.9947, allocations: 0.6787 MB / 412.8 MB, free: 57.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9947, allocations: 4 kB / 412.8 MB, free: 57.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0017/0.9964, allocations: 355.9 kB / 413.2 MB, free: 57.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002897/0.9993, allocations: 2.35 MB / 415.5 MB, free: 54.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00226/1.002, allocations: 0.9905 MB / 416.5 MB, free: 53.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.002, allocations: 4 kB / 416.5 MB, free: 53.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/1.003, allocations: 0.5032 MB / 417 MB, free: 53.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/1.005, allocations: 306.3 kB / 417.3 MB, free: 52.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/1.01, allocations: 1.852 MB / 419.2 MB, free: 51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006068/1.011, allocations: 1.105 MB / 420.3 MB, free: 49.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008108/1.012, allocations: 463.3 kB / 420.7 MB, free: 49.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/1.012, allocations: 0 / 420.7 MB, free: 49.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.234/4.246, allocations: 30.87 MB / 451.6 MB, free: 18.52 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_Cooling_res.mat does not exist to compare? outputFormat=mat