Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.079e-05, allocations: 4 kB / 292.2 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09119/0.09124, allocations: 50.42 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.4643, allocations: 95.88 MB / 438.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4646, allocations: 79.08 kB / 438.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1577/0.6223, allocations: 40.76 MB / 479.3 MB, free: 9.797 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.733e-06/0.6224, allocations: 0 / 479.3 MB, free: 9.797 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001281/0.6225, allocations: 28 kB / 479.3 MB, free: 9.77 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003855/0.6264, allocations: 1.554 MB / 480.9 MB, free: 8.156 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.6264, allocations: 8.031 kB / 480.9 MB, free: 8.148 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/0.6277, allocations: 261.6 kB / 481.1 MB, free: 7.891 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002944/0.6307, allocations: 1.086 MB / 482.2 MB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.6308, allocations: 115.1 kB / 482.3 MB, free: 6.645 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003505/0.6312, allocations: 163.9 kB / 482.5 MB, free: 6.484 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003437/0.6346, allocations: 1.403 MB / 483.9 MB, free: 5.008 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.979e-05/0.6347, allocations: 11.84 kB / 483.9 MB, free: 4.996 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001909/0.6349, allocations: 71.98 kB / 484 MB, free: 4.926 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.413e-05/0.635, allocations: 36 kB / 484 MB, free: 4.891 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.6375, allocations: 0.8878 MB / 484.9 MB, free: 4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01239/0.65, allocations: 6.656 MB / 491.6 MB, free: 12.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009061/0.6509, allocations: 371.4 kB / 491.9 MB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.6514, allocations: 198.2 kB / 492.1 MB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.6515, allocations: 8.391 kB / 492.1 MB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005718/0.6521, allocations: 256.8 kB / 492.4 MB, free: 12.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 4.042e-06/0.6521, allocations: 0 / 492.4 MB, free: 12.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.003859/0.656, allocations: 1.616 MB / 494 MB, free: 10.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.6561, allocations: 188.4 kB / 494.2 MB, free: 10.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/0.6584, allocations: 1.065 MB / 495.2 MB, free: 9.156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.971e-05/0.6585, allocations: 37.7 kB / 495.3 MB, free: 9.113 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009855/0.6595, allocations: 0.8789 MB / 496.1 MB, free: 8.223 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/0.6597, allocations: 205.2 kB / 496.3 MB, free: 8.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.6598, allocations: 20 kB / 496.4 MB, free: 8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.66, allocations: 349.9 kB / 496.7 MB, free: 7.652 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/0.6606, allocations: 210.6 kB / 496.9 MB, free: 7.445 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.6617, allocations: 0.7697 MB / 497.7 MB, free: 6.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.6625, allocations: 384.6 kB / 498.1 MB, free: 6.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.6626, allocations: 8 kB / 498.1 MB, free: 6.008 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00269/0.6653, allocations: 1.092 MB / 499.2 MB, free: 4.898 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.517e-05/0.6654, allocations: 37.7 kB / 499.2 MB, free: 4.855 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.389e-05/0.6654, allocations: 20 kB / 499.2 MB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002922/0.6657, allocations: 69.62 kB / 499.3 MB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.6668, allocations: 267.6 kB / 499.5 MB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.6695, allocations: 2.576 MB / 0.4904 GB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.671, allocations: 76.03 kB / 0.4904 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/0.6712, allocations: 56 kB / 0.4905 GB, free: 1.527 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002817/0.6715, allocations: 188.4 kB / 0.4907 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.6717, allocations: 142.3 kB / 0.4908 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.6731, allocations: 0.5097 MB / 0.4913 GB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.6731, allocations: 8 kB / 0.4913 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.562e-06/0.6731, allocations: 0 / 0.4913 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.6731, allocations: 3.984 kB / 0.4913 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.6772, allocations: 1.889 MB / 0.4931 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6773, allocations: 4 kB / 0.4932 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006108/0.6779, allocations: 107.8 kB / 0.4933 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/0.6781, allocations: 46.11 kB / 0.4933 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.6782, allocations: 20 kB / 0.4933 GB, free: 14.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.6807, allocations: 2.537 MB / 0.4958 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.6808, allocations: 7.938 kB / 0.4958 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.6828, allocations: 1.081 MB / 0.4969 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006442/0.6835, allocations: 251.5 kB / 0.4971 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.6837, allocations: 16 kB / 0.4971 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007346/0.6844, allocations: 31.97 kB / 0.4971 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.6846, allocations: 55.83 kB / 0.4972 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/0.6846, allocations: 20 kB / 0.4972 GB, free: 10 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001686/0.6863, allocations: 0.7897 MB / 0.498 GB, free: 9.211 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.6864, allocations: 0 / 0.498 GB, free: 9.211 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001834/0.6882, allocations: 347.9 kB / 0.4983 GB, free: 8.871 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005951/0.6888, allocations: 330.4 kB / 0.4986 GB, free: 8.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.6907, allocations: 0.8449 MB / 0.4995 GB, free: 7.672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.737e-06/0.6907, allocations: 3.938 kB / 0.4995 GB, free: 7.668 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008427/0.6915, allocations: 440.2 kB / 0.4999 GB, free: 7.219 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.6934, allocations: 305.3 kB / 0.5002 GB, free: 6.922 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004666/0.6981, allocations: 1.885 MB / 0.502 GB, free: 4.957 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.6994, allocations: 1.213 MB / 0.5032 GB, free: 3.715 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001096/0.7005, allocations: 175.3 kB / 0.5034 GB, free: 3.539 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.7008, allocations: 87.42 kB / 0.5035 GB, free: 3.453 MB / 426.7 MB Notification: Performance of SimCode: time 1.839e-06/0.7008, allocations: 4 kB / 0.5035 GB, free: 3.449 MB / 426.7 MB Notification: Performance of Templates: time 0.04682/0.7477, allocations: 16.12 MB / 0.5192 GB, free: 3.512 MB / 442.7 MB