Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/3.007e-05, allocations: 2.812 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1478, allocations: 50.4 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.47/0.6179, allocations: 100 MB / 442.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/0.6182, allocations: 85.58 kB / 442.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1349/0.7532, allocations: 30.64 MB / 473.4 MB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.7533, allocations: 0 / 473.4 MB, free: 128 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001194/0.7534, allocations: 35.92 kB / 473.4 MB, free: 92 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.004003/0.7574, allocations: 1.371 MB / 474.8 MB, free: 14.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.7575, allocations: 8.031 kB / 474.8 MB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003845/0.7579, allocations: 160.8 kB / 474.9 MB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009618/0.7589, allocations: 202 kB / 475.1 MB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/0.7614, allocations: 0.8399 MB / 476 MB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.7617, allocations: 119.8 kB / 476.1 MB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/0.762, allocations: 111.9 kB / 476.2 MB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.7648, allocations: 1.076 MB / 477.3 MB, free: 12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.7649, allocations: 0 / 477.3 MB, free: 12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/0.7651, allocations: 48 kB / 477.3 MB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.7651, allocations: 28 kB / 477.4 MB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.7673, allocations: 0.6795 MB / 478 MB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009743/0.7771, allocations: 3.938 MB / 482 MB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.7795, allocations: 0.5397 MB / 482.5 MB, free: 6.555 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006473/0.7801, allocations: 243.5 kB / 482.8 MB, free: 6.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.838e-05/0.7802, allocations: 8.562 kB / 482.8 MB, free: 6.312 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000727/0.781, allocations: 266 kB / 483 MB, free: 6.043 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 4.359e-06/0.781, allocations: 0 / 483 MB, free: 6.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.004397/0.7854, allocations: 1.501 MB / 484.5 MB, free: 4.488 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002735/0.7857, allocations: 475.2 kB / 485 MB, free: 3.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.7878, allocations: 0.9249 MB / 485.9 MB, free: 2.973 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.788, allocations: 37.7 kB / 485.9 MB, free: 2.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006907/0.7887, allocations: 0.6333 MB / 486.6 MB, free: 2.289 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.789, allocations: 232.6 kB / 486.8 MB, free: 2.059 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.17e-05/0.7891, allocations: 20 kB / 486.8 MB, free: 2.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.7893, allocations: 362.7 kB / 487.2 MB, free: 1.676 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.79, allocations: 222.6 kB / 487.4 MB, free: 1.461 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.7912, allocations: 0.6639 MB / 488.1 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009357/0.7921, allocations: 395.3 kB / 488.4 MB, free: 192 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.7921, allocations: 0 / 488.4 MB, free: 192 kB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002751/0.7949, allocations: 0.9735 MB / 489.4 MB, free: 15.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-05/0.795, allocations: 64 kB / 489.5 MB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.795, allocations: 16 kB / 489.5 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008576/0.7959, allocations: 165.6 kB / 489.7 MB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.7973, allocations: 215.6 kB / 489.9 MB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/0.8034, allocations: 3.538 MB / 493.4 MB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.8051, allocations: 76.03 kB / 493.5 MB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.8052, allocations: 44 kB / 493.5 MB, free: 10.8 MB / 410.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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002989/0.8055, allocations: 184.7 kB / 493.7 MB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.8058, allocations: 126.5 kB / 493.8 MB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.8079, allocations: 0.6532 MB / 494.5 MB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.808, allocations: 15.92 kB / 494.5 MB, free: 9.801 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.808, allocations: 3.938 kB / 494.5 MB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001575/0.8096, allocations: 0.8906 MB / 495.4 MB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.8141, allocations: 1.735 MB / 497.1 MB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.8141, allocations: 4 kB / 497.1 MB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/0.8151, allocations: 112 kB / 497.2 MB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006847/0.8159, allocations: 125.9 kB / 497.4 MB, free: 6.734 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/0.8159, allocations: 23.98 kB / 497.4 MB, free: 6.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.8207, allocations: 3.244 MB / 0.4889 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8207, allocations: 8.188 kB / 0.4889 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.8234, allocations: 1.103 MB / 0.49 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006821/0.8241, allocations: 255.6 kB / 0.4902 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.8244, allocations: 16 kB / 0.4902 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8255, allocations: 43.97 kB / 0.4903 GB, free: 1.684 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.8257, allocations: 64.44 kB / 0.4903 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.848e-05/0.8257, allocations: 19.98 kB / 0.4904 GB, free: 1.602 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001557/0.8273, allocations: 0.6991 MB / 0.491 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8273, allocations: 0 / 0.491 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001814/0.8291, allocations: 352 kB / 0.4914 GB, free: 0.5508 MB / 410.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.003727/0.8329, allocations: 2.376 MB / 0.4937 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.8356, allocations: 0.9992 MB / 0.4947 GB, free: 13.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.8357, allocations: 4.125 kB / 0.4947 GB, free: 13.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.8369, allocations: 497.4 kB / 0.4952 GB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.8393, allocations: 300.8 kB / 0.4954 GB, free: 12.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006006/0.8454, allocations: 1.852 MB / 0.4973 GB, free: 10.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009684/0.8464, allocations: 1.116 MB / 0.4983 GB, free: 9.184 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009923/0.8474, allocations: 475.3 kB / 0.4988 GB, free: 8.719 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8474, allocations: 3.938 kB / 0.4988 GB, free: 8.715 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.506/4.354, allocations: 31.29 MB / 0.5294 GB, free: 127.6 MB / 442.7 MB