Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.055/2.055, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.61e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3328, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1669/0.4998, allocations: 93.72 MB / 387.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.5002, allocations: 83.94 kB / 388 MB, free: 4.051 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1347/0.6349, allocations: 29.86 MB / 417.9 MB, free: 6.004 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.635, allocations: 3.938 kB / 417.9 MB, free: 6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001078/0.6351, allocations: 28 kB / 417.9 MB, free: 5.973 MB / 362.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.004112/0.6392, allocations: 1.351 MB / 419.3 MB, free: 4.559 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.6393, allocations: 12.03 kB / 419.3 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.6404, allocations: 198.5 kB / 419.5 MB, free: 4.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002551/0.6429, allocations: 0.84 MB / 420.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.6431, allocations: 75.84 kB / 420.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/0.6434, allocations: 71.89 kB / 420.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001991/0.6454, allocations: 0.6291 MB / 421.1 MB, free: 2.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.6478, allocations: 0.9354 MB / 422 MB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.6478, allocations: 0 / 422 MB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.648, allocations: 7.953 kB / 422 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.352e-05/0.648, allocations: 24 kB / 422 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.264/0.912, allocations: 3.697 MB / 425.7 MB, free: 92.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.9148, allocations: 0.5182 MB / 426.3 MB, free: 92.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007188/0.9156, allocations: 220.1 kB / 426.5 MB, free: 92.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.214e-05/0.9157, allocations: 10.47 kB / 426.5 MB, free: 92.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008278/0.9165, allocations: 259.6 kB / 426.7 MB, free: 92.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 5.451e-06/0.9166, allocations: 0 / 426.7 MB, free: 92.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.005701/0.9223, allocations: 1.399 MB / 428.1 MB, free: 92.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.9225, allocations: 480.1 kB / 428.6 MB, free: 91.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/0.9247, allocations: 0.7217 MB / 429.3 MB, free: 91.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00016/0.9248, allocations: 31.52 kB / 429.4 MB, free: 91.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007084/0.9256, allocations: 0.6514 MB / 430 MB, free: 91.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003282/0.9259, allocations: 221.7 kB / 430.2 MB, free: 91.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/0.926, allocations: 1.562 kB / 430.2 MB, free: 91.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.9262, allocations: 351.9 kB / 430.6 MB, free: 90.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008044/0.927, allocations: 196.2 kB / 430.8 MB, free: 90.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.9282, allocations: 0.6517 MB / 431.4 MB, free: 90.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.9292, allocations: 294.9 kB / 431.7 MB, free: 90.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.9293, allocations: 2.75 kB / 431.7 MB, free: 90.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003594/0.9329, allocations: 0.8881 MB / 432.6 MB, free: 90.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.196e-05/0.933, allocations: 66.22 kB / 432.7 MB, free: 90.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.263e-05/0.933, allocations: 11.56 kB / 432.7 MB, free: 90.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.9345, allocations: 191.8 kB / 432.9 MB, free: 90.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/0.9365, allocations: 211.2 kB / 433.1 MB, free: 90.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007229/0.9437, allocations: 3.411 MB / 436.5 MB, free: 87.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.9459, allocations: 56.03 kB / 436.5 MB, free: 87.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.9461, allocations: 50.47 kB / 436.6 MB, free: 87.59 MB / 362.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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003065/0.9465, allocations: 145.2 kB / 436.7 MB, free: 87.48 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00209/0.9486, allocations: 0.6155 MB / 437.3 MB, free: 87.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.9489, allocations: 107.2 kB / 437.4 MB, free: 87.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.9509, allocations: 0.6219 MB / 438.1 MB, free: 87.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.9509, allocations: 6.156 kB / 438.1 MB, free: 87.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.9509, allocations: 7.578 kB / 438.1 MB, free: 87.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001431/0.9524, allocations: 0.8847 MB / 439 MB, free: 86.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.9563, allocations: 1.584 MB / 440.5 MB, free: 86.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.9564, allocations: 10.05 kB / 440.5 MB, free: 86.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009238/0.9573, allocations: 109.6 kB / 440.7 MB, free: 86.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000666/0.958, allocations: 133.1 kB / 440.8 MB, free: 86.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.9581, allocations: 7.062 kB / 440.8 MB, free: 86.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003805/0.9619, allocations: 3.147 MB / 443.9 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.962, allocations: 4.906 kB / 443.9 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.9644, allocations: 1.037 MB / 445 MB, free: 83.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007103/0.9652, allocations: 226.4 kB / 445.2 MB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.9655, allocations: 15.81 kB / 445.2 MB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000986/0.9665, allocations: 35.86 kB / 445.3 MB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.9667, allocations: 65.33 kB / 445.3 MB, free: 83.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.092e-05/0.9668, allocations: 15.81 kB / 445.3 MB, free: 83.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000982/0.9678, allocations: 0.5354 MB / 445.9 MB, free: 82.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9678, allocations: 0 / 445.9 MB, free: 82.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001951/0.9697, allocations: 290.9 kB / 446.2 MB, free: 82.82 MB / 362.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.003123/0.9729, allocations: 2.273 MB / 448.4 MB, free: 81.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.9756, allocations: 0.9577 MB / 449.4 MB, free: 80.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.9757, allocations: 3.312 kB / 449.4 MB, free: 80.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.9768, allocations: 486.2 kB / 449.9 MB, free: 80.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.9788, allocations: 240.3 kB / 450.1 MB, free: 80.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005283/0.9841, allocations: 1.758 MB / 451.9 MB, free: 79.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/0.9848, allocations: 1.107 MB / 453 MB, free: 78.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008434/0.9856, allocations: 449.3 kB / 453.4 MB, free: 78.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.9857, allocations: 4 kB / 453.4 MB, free: 78.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.411/4.397, allocations: 29.76 MB / 483.2 MB, free: 61.29 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_Cooling_res.mat does not exist to compare? outputFormat=mat