Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.759e-05/4.79e-05, allocations: 4 kB / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09387, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.386/0.4799, allocations: 99.71 MB / 442.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.4802, allocations: 80.52 kB / 442.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1108/0.591, allocations: 28.73 MB / 471.1 MB, free: 2.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5911, allocations: 4 kB / 471.1 MB, free: 2.086 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.715e-05/0.5912, allocations: 27.94 kB / 471.1 MB, free: 2.059 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002229/0.5934, allocations: 1.133 MB / 472.2 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.5934, allocations: 8.031 kB / 472.3 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008392/0.5943, allocations: 194.3 kB / 472.4 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.5962, allocations: 0.7972 MB / 473.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.97e-05/0.5963, allocations: 74 kB / 473.3 MB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/0.5965, allocations: 103.9 kB / 473.4 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.5987, allocations: 0.888 MB / 474.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.059e-05/0.5988, allocations: 0 / 474.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.599, allocations: 47.95 kB / 474.4 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.792e-05/0.5991, allocations: 24 kB / 474.4 MB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.6008, allocations: 0.5819 MB / 475 MB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007089/0.6079, allocations: 3.947 MB / 478.9 MB, free: 9.926 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/0.6088, allocations: 432.5 kB / 479.3 MB, free: 9.473 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.6094, allocations: 252.8 kB / 479.6 MB, free: 9.223 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.6095, allocations: 4 kB / 479.6 MB, free: 9.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.6095, allocations: 38.56 kB / 479.6 MB, free: 9.172 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 3.157e-06/0.6096, allocations: 0 / 479.6 MB, free: 9.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.003006/0.6126, allocations: 1.217 MB / 480.8 MB, free: 7.895 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.6127, allocations: 89.55 kB / 480.9 MB, free: 7.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.614, allocations: 0.7075 MB / 481.6 MB, free: 7.078 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.6141, allocations: 33.7 kB / 481.7 MB, free: 7.039 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000561/0.6147, allocations: 0.5643 MB / 482.2 MB, free: 6.465 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.6149, allocations: 165.7 kB / 482.4 MB, free: 6.301 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.6149, allocations: 12 kB / 482.4 MB, free: 6.289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.6151, allocations: 337.9 kB / 482.7 MB, free: 5.953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/0.6155, allocations: 153.6 kB / 482.9 MB, free: 5.801 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006631/0.6162, allocations: 448.4 kB / 483.3 MB, free: 5.234 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000549/0.6168, allocations: 233.5 kB / 483.5 MB, free: 5.008 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.835e-06/0.6168, allocations: 0 / 483.5 MB, free: 5.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001774/0.6186, allocations: 0.7548 MB / 484.3 MB, free: 4.238 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.6186, allocations: 8 kB / 484.3 MB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.6187, allocations: 16 kB / 484.3 MB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003917/0.6191, allocations: 89.67 kB / 484.4 MB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000719/0.6198, allocations: 167.7 kB / 484.6 MB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.6233, allocations: 2.983 MB / 487.6 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008597/0.6242, allocations: 47.84 kB / 487.6 MB, free: 0.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/0.6243, allocations: 32 kB / 487.6 MB, free: 0.6367 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002032/0.6245, allocations: 153.5 kB / 487.8 MB, free: 492 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.6247, allocations: 91.03 kB / 487.9 MB, free: 400 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.626, allocations: 0.4948 MB / 488.4 MB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.6261, allocations: 4 kB / 488.4 MB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.018e-06/0.6261, allocations: 7.922 kB / 488.4 MB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.808e-06/0.6261, allocations: 0 / 488.4 MB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.6292, allocations: 1.447 MB / 489.8 MB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.921e-06/0.6292, allocations: 4 kB / 489.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.6297, allocations: 87.78 kB / 489.9 MB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003425/0.6301, allocations: 85.89 kB / 490 MB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.6301, allocations: 12 kB / 490 MB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.6336, allocations: 2.974 MB / 493 MB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.432e-06/0.6336, allocations: 7.969 kB / 493 MB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.6353, allocations: 0.8678 MB / 493.9 MB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.6357, allocations: 192.1 kB / 494 MB, free: 9.719 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.6359, allocations: 20 kB / 494.1 MB, free: 9.699 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.6365, allocations: 31.97 kB / 494.1 MB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.6366, allocations: 47.62 kB / 494.1 MB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/0.6367, allocations: 20 kB / 494.2 MB, free: 9.602 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.6377, allocations: 0.5304 MB / 494.7 MB, free: 9.078 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.6377, allocations: 3.938 kB / 494.7 MB, free: 9.074 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001234/0.639, allocations: 243.9 kB / 494.9 MB, free: 8.836 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005221/0.6395, allocations: 309.7 kB / 495.2 MB, free: 8.531 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.6409, allocations: 0.654 MB / 495.9 MB, free: 7.855 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.821e-06/0.6409, allocations: 0 / 495.9 MB, free: 7.855 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008292/0.6418, allocations: 440.1 kB / 496.3 MB, free: 7.406 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.6429, allocations: 213.6 kB / 496.5 MB, free: 7.199 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.646, allocations: 1.283 MB / 497.8 MB, free: 5.871 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009302/0.6469, allocations: 1.04 MB / 498.9 MB, free: 4.805 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006088/0.6475, allocations: 103.4 kB / 499 MB, free: 4.699 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.6477, allocations: 67.42 kB / 499 MB, free: 4.633 MB / 410.7 MB Notification: Performance of SimCode: time 1.377e-06/0.6478, allocations: 0 / 499 MB, free: 4.633 MB / 410.7 MB Notification: Performance of Templates: time 0.03376/0.6815, allocations: 12.38 MB / 0.4994 GB, free: 8.387 MB / 426.7 MB