Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.898e-05/2.905e-05, allocations: 4 kB / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08986/0.08991, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3751/0.465, allocations: 99.97 MB / 442.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.4653, allocations: 76.89 kB / 442.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1222/0.5876, allocations: 30.64 MB / 473.2 MB, free: 15.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.04e-06/0.5876, allocations: 0 / 473.2 MB, free: 15.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.329e-05/0.5877, allocations: 27.94 kB / 473.3 MB, free: 15.93 MB / 394.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.00285/0.5906, allocations: 1.36 MB / 474.6 MB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.5906, allocations: 12.03 kB / 474.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000764/0.5914, allocations: 202.1 kB / 474.8 MB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.5935, allocations: 0.8399 MB / 475.7 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.5937, allocations: 115.8 kB / 475.8 MB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.5939, allocations: 115.9 kB / 475.9 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/0.5964, allocations: 1.072 MB / 477 MB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.977e-05/0.5966, allocations: 4 kB / 477 MB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.5969, allocations: 47.98 kB / 477 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/0.597, allocations: 24 kB / 477.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004193/0.6012, allocations: 0.6873 MB / 477.7 MB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01756/0.6188, allocations: 3.942 MB / 481.7 MB, free: 7.113 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/0.6224, allocations: 0.5376 MB / 482.2 MB, free: 6.559 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.6235, allocations: 251.4 kB / 482.5 MB, free: 6.316 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.553e-05/0.6236, allocations: 8.562 kB / 482.5 MB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.6249, allocations: 266 kB / 482.7 MB, free: 6.039 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 7.371e-06/0.625, allocations: 0 / 482.7 MB, free: 6.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.01721/0.6422, allocations: 1.493 MB / 484.2 MB, free: 4.492 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004637/0.6427, allocations: 475.2 kB / 484.7 MB, free: 3.914 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.6463, allocations: 0.921 MB / 485.6 MB, free: 2.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.6465, allocations: 45.7 kB / 485.7 MB, free: 2.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01174/0.6582, allocations: 0.6506 MB / 486.3 MB, free: 2.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005695/0.6589, allocations: 236.6 kB / 486.5 MB, free: 2.035 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.659, allocations: 20 kB / 486.6 MB, free: 2.016 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003323/0.6594, allocations: 345.9 kB / 486.9 MB, free: 1.672 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.6606, allocations: 226.6 kB / 487.1 MB, free: 1.453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.6627, allocations: 0.6716 MB / 487.8 MB, free: 0.5703 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.6643, allocations: 383.5 kB / 488.2 MB, free: 192 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.157e-05/0.6644, allocations: 4 kB / 488.2 MB, free: 188 kB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.01494/0.6793, allocations: 1.059 MB / 489.2 MB, free: 15.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.6795, allocations: 71.39 kB / 489.3 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.143e-05/0.6796, allocations: 12 kB / 489.3 MB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.681, allocations: 157.8 kB / 489.5 MB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/0.6832, allocations: 215.6 kB / 489.7 MB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006123/0.6893, allocations: 3.538 MB / 493.2 MB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.6906, allocations: 67.88 kB / 493.3 MB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.6907, allocations: 51.98 kB / 493.3 MB, free: 10.71 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.0002678/0.691, allocations: 180.8 kB / 493.5 MB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.6912, allocations: 126.5 kB / 493.6 MB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.693, allocations: 0.6532 MB / 494.3 MB, free: 9.734 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.6931, allocations: 8.125 kB / 494.3 MB, free: 9.727 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.6931, allocations: 11.94 kB / 494.3 MB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001507/0.6946, allocations: 0.8866 MB / 495.2 MB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003841/0.6985, allocations: 1.735 MB / 496.9 MB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6985, allocations: 7.938 kB / 496.9 MB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007046/0.6992, allocations: 112.1 kB / 497 MB, free: 6.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005951/0.6998, allocations: 121.6 kB / 497.2 MB, free: 6.656 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.183e-05/0.6999, allocations: 23.98 kB / 497.2 MB, free: 6.633 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004546/0.7045, allocations: 3.256 MB / 0.4887 GB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/0.7045, allocations: 4.031 kB / 0.4887 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.707, allocations: 1.095 MB / 0.4898 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006586/0.7077, allocations: 247.6 kB / 0.49 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.7079, allocations: 20.06 kB / 0.49 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007829/0.7087, allocations: 55.97 kB / 0.4901 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.7089, allocations: 60.42 kB / 0.4902 GB, free: 1.539 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.989e-05/0.709, allocations: 20 kB / 0.4902 GB, free: 1.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001488/0.7105, allocations: 0.6952 MB / 0.4909 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.6e-07/0.7105, allocations: 0 / 0.4909 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001663/0.7121, allocations: 356.1 kB / 0.4912 GB, free: 480 kB / 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.0006424/0.7128, allocations: 381.4 kB / 0.4916 GB, free: 100 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.7165, allocations: 0.9936 MB / 0.4925 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.7165, allocations: 0 / 0.4925 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/0.7189, allocations: 0.5034 MB / 0.493 GB, free: 14.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003801/0.7228, allocations: 304.7 kB / 0.4933 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007526/0.7303, allocations: 1.611 MB / 0.4949 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001792/0.7322, allocations: 1.113 MB / 0.496 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001716/0.7339, allocations: 145.8 kB / 0.4961 GB, free: 11.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004931/0.7344, allocations: 79.38 kB / 0.4962 GB, free: 11.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.451e-06/0.7345, allocations: 0 / 0.4962 GB, free: 11.2 MB / 426.7 MB Notification: Performance of Templates: time 0.08196/0.8164, allocations: 19.04 MB / 0.5148 GB, free: 8.371 MB / 442.7 MB