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.641/1.641, allocations: 171.2 MB / 178.8 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.891e-05/2.911e-05, allocations: 3.938 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3004, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.4566, allocations: 88.56 MB / 346.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/0.457, allocations: 83.95 kB / 347 MB, free: 5.152 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3352/0.7922, allocations: 29.9 MB / 376.9 MB, free: 83.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7923, allocations: 0 / 376.9 MB, free: 83.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.446e-05/0.7924, allocations: 23.91 kB / 376.9 MB, free: 83.18 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.003076/0.7954, allocations: 1.364 MB / 378.3 MB, free: 82.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.7955, allocations: 6.781 kB / 378.3 MB, free: 82.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000808/0.7963, allocations: 194 kB / 378.4 MB, free: 82.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.7984, allocations: 0.8314 MB / 379.3 MB, free: 81.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.7986, allocations: 86.66 kB / 379.4 MB, free: 81.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.7988, allocations: 63.81 kB / 379.4 MB, free: 81.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001739/0.8005, allocations: 0.6346 MB / 380.1 MB, free: 81.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.8025, allocations: 0.9368 MB / 381 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/0.8026, allocations: 7.781 kB / 381 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.8027, allocations: 0 / 381 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.8027, allocations: 31.39 kB / 381 MB, free: 81.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007422/0.8102, allocations: 3.711 MB / 384.7 MB, free: 79.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.8121, allocations: 0.517 MB / 385.3 MB, free: 79.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/0.8126, allocations: 215.7 kB / 385.5 MB, free: 79.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.415e-05/0.8127, allocations: 12.06 kB / 385.5 MB, free: 79.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005511/0.8133, allocations: 253.7 kB / 385.7 MB, free: 79.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.466e-06/0.8133, allocations: 0 / 385.7 MB, free: 79.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003565/0.8168, allocations: 1.402 MB / 387.1 MB, free: 78.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.817, allocations: 474.8 kB / 387.6 MB, free: 78.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.8183, allocations: 0.7262 MB / 388.3 MB, free: 77.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.903e-05/0.8184, allocations: 29.17 kB / 388.4 MB, free: 77.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.8188, allocations: 0.6529 MB / 389 MB, free: 77.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.819, allocations: 227 kB / 389.2 MB, free: 77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.8191, allocations: 0 / 389.2 MB, free: 77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.8192, allocations: 345.2 kB / 389.6 MB, free: 76.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.8197, allocations: 210.4 kB / 389.8 MB, free: 76.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007432/0.8204, allocations: 0.6376 MB / 390.4 MB, free: 75.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.8211, allocations: 312.5 kB / 390.7 MB, free: 75.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.8211, allocations: 3.312 kB / 390.7 MB, free: 75.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002288/0.8234, allocations: 0.8732 MB / 391.6 MB, free: 75.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.547e-05/0.8235, allocations: 71.12 kB / 391.7 MB, free: 75.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.8235, allocations: 11.09 kB / 391.7 MB, free: 75.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000994/0.8245, allocations: 181.8 kB / 391.8 MB, free: 75.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.8258, allocations: 213.9 kB / 392.1 MB, free: 75.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.8306, allocations: 3.397 MB / 395.5 MB, free: 72.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.8321, allocations: 61.03 kB / 395.5 MB, free: 72.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.807e-05/0.8322, allocations: 53.28 kB / 395.6 MB, free: 72.3 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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002261/0.8324, allocations: 145.6 kB / 395.7 MB, free: 72.17 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001647/0.8341, allocations: 0.6043 MB / 396.3 MB, free: 71.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.8343, allocations: 107.8 kB / 396.4 MB, free: 71.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.8361, allocations: 0.6328 MB / 397 MB, free: 71.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.8361, allocations: 3.75 kB / 397.1 MB, free: 71.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.8361, allocations: 6.516 kB / 397.1 MB, free: 71.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001384/0.8375, allocations: 0.8804 MB / 397.9 MB, free: 70.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/0.841, allocations: 1.585 MB / 399.5 MB, free: 70.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.8411, allocations: 3.969 kB / 399.5 MB, free: 70.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009009/0.842, allocations: 108.5 kB / 399.6 MB, free: 70 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006384/0.8427, allocations: 126.7 kB / 399.8 MB, free: 69.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-05/0.8427, allocations: 18.89 kB / 399.8 MB, free: 69.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.8461, allocations: 3.139 MB / 402.9 MB, free: 67.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/0.8462, allocations: 2.531 kB / 402.9 MB, free: 67.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.8483, allocations: 1.042 MB / 404 MB, free: 66.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005181/0.8489, allocations: 228.8 kB / 404.2 MB, free: 66.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/0.8491, allocations: 11.7 kB / 404.2 MB, free: 66.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009063/0.8501, allocations: 31.53 kB / 404.2 MB, free: 66.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.8503, allocations: 60.86 kB / 404.3 MB, free: 66.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.687e-05/0.8503, allocations: 23.88 kB / 404.3 MB, free: 66.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009383/0.8513, allocations: 0.5349 MB / 404.8 MB, free: 65.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8513, allocations: 0 / 404.8 MB, free: 65.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001602/0.8529, allocations: 287.8 kB / 405.1 MB, free: 65.32 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.002725/0.8557, allocations: 2.269 MB / 407.4 MB, free: 63.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.8582, allocations: 0.959 MB / 408.4 MB, free: 62.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.8582, allocations: 4 kB / 408.4 MB, free: 62.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009498/0.8592, allocations: 496.4 kB / 408.8 MB, free: 61.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.861, allocations: 236 kB / 409.1 MB, free: 61.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.8661, allocations: 1.786 MB / 410.9 MB, free: 59.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.8667, allocations: 1.1 MB / 412 MB, free: 58.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007622/0.8675, allocations: 452.3 kB / 412.4 MB, free: 58.42 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8675, allocations: 0 / 412.4 MB, free: 58.42 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.055/3.923, allocations: 29.71 MB / 442.1 MB, free: 29.68 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