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 1.978/1.978, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.09e-05, allocations: 0 / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09128, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5205, allocations: 94.39 MB / 394.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.5208, allocations: 80.41 kB / 394.4 MB, free: 12.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.125/0.6458, allocations: 30.27 MB / 424.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6459, allocations: 3.938 kB / 424.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.477e-05/0.646, allocations: 30.69 kB / 424.7 MB, free: 2.656 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.003547/0.6496, allocations: 1.353 MB / 426.1 MB, free: 1.719 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.6496, allocations: 10.81 kB / 426.1 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003735/0.65, allocations: 166.4 kB / 426.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009149/0.651, allocations: 198.4 kB / 426.4 MB, free: 1.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002466/0.6534, allocations: 0.8304 MB / 427.3 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.6537, allocations: 109.6 kB / 427.4 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002457/0.6539, allocations: 112.6 kB / 427.5 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/0.6565, allocations: 1.092 MB / 428.6 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.546e-05/0.6566, allocations: 0 / 428.6 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.6567, allocations: 57.44 kB / 428.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.6568, allocations: 24.06 kB / 428.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.6587, allocations: 0.6883 MB / 429.3 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00929/0.668, allocations: 3.92 MB / 433.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.6703, allocations: 0.5471 MB / 433.8 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006699/0.671, allocations: 247.2 kB / 434 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.277e-05/0.6711, allocations: 12.31 kB / 434.1 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007385/0.6718, allocations: 271.8 kB / 434.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.527e-06/0.6719, allocations: 0 / 434.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004824/0.6767, allocations: 1.524 MB / 435.8 MB, free: 12.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002752/0.677, allocations: 478.3 kB / 436.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.6792, allocations: 0.9064 MB / 437.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.6794, allocations: 43.7 kB / 437.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.6801, allocations: 0.6241 MB / 437.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.6804, allocations: 237.2 kB / 438.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.507e-05/0.6805, allocations: 22.06 kB / 438.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6807, allocations: 349.3 kB / 438.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006962/0.6814, allocations: 219.9 kB / 438.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.6825, allocations: 0.6848 MB / 439.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000937/0.6835, allocations: 377.3 kB / 439.7 MB, free: 9.355 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.6835, allocations: 4 kB / 439.8 MB, free: 9.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003052/0.6866, allocations: 1.047 MB / 440.8 MB, free: 8.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.528e-05/0.6867, allocations: 73.86 kB / 440.9 MB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.6867, allocations: 12 kB / 440.9 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.6879, allocations: 193.2 kB / 441.1 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.6894, allocations: 215 kB / 441.3 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.6959, allocations: 3.518 MB / 444.8 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.6978, allocations: 78.98 kB / 444.9 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.698, allocations: 53.7 kB / 444.9 MB, free: 4.609 MB / 330.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,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003126/0.6983, allocations: 187.5 kB / 445.1 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.6986, allocations: 122.6 kB / 445.2 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.7009, allocations: 0.6956 MB / 445.9 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.701, allocations: 4 kB / 445.9 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.701, allocations: 4 kB / 445.9 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001927/0.703, allocations: 0.9178 MB / 446.9 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00464/0.7076, allocations: 1.762 MB / 448.6 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.7077, allocations: 0 / 448.6 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009906/0.7087, allocations: 116 kB / 448.7 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007541/0.7095, allocations: 129.6 kB / 448.9 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.561e-05/0.7096, allocations: 16 kB / 448.9 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004783/0.7144, allocations: 3.271 MB / 452.1 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.7144, allocations: 0 / 452.1 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.7173, allocations: 1.121 MB / 453.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007476/0.7181, allocations: 243.7 kB / 453.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.7184, allocations: 19.98 kB / 453.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.7194, allocations: 44.09 kB / 453.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.7197, allocations: 68.44 kB / 453.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.736e-05/0.7197, allocations: 16 kB / 453.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0016/0.7214, allocations: 0.6865 MB / 454.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7214, allocations: 0 / 454.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001982/0.7234, allocations: 359.9 kB / 454.7 MB, free: 10.29 MB / 346.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.004408/0.7278, allocations: 2.371 MB / 457.1 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003644/0.7315, allocations: 1.046 MB / 458.1 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.7316, allocations: 4.125 kB / 458.1 MB, free: 6.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.7331, allocations: 0.5079 MB / 458.6 MB, free: 6.242 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/0.7359, allocations: 308.8 kB / 458.9 MB, free: 5.941 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006292/0.7422, allocations: 1.842 MB / 460.8 MB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009017/0.7432, allocations: 1.105 MB / 461.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.7442, allocations: 463.3 kB / 462.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7442, allocations: 0 / 462.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.127/3.871, allocations: 31.05 MB / 493.4 MB, free: 3.383 MB / 378.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