Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.341e-05, allocations: 8 kB / 225 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2172, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.3506, allocations: 88.79 MB / 352.6 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.3509, allocations: 87.94 kB / 352.6 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2903/0.6413, allocations: 28.68 MB / 381.3 MB, free: 84.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.196e-06/0.6414, allocations: 0 / 381.3 MB, free: 84.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.912e-05/0.6414, allocations: 31.03 kB / 381.4 MB, free: 84.71 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00193/0.6434, allocations: 1.127 MB / 382.5 MB, free: 84.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.6434, allocations: 14.81 kB / 382.5 MB, free: 84.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008092/0.6443, allocations: 191.8 kB / 382.7 MB, free: 83.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.6461, allocations: 0.8152 MB / 383.5 MB, free: 83.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.139e-05/0.6461, allocations: 72.75 kB / 383.6 MB, free: 83.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.6463, allocations: 98.56 kB / 383.7 MB, free: 83.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.6481, allocations: 0.8899 MB / 384.6 MB, free: 83.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.6482, allocations: 0 / 384.6 MB, free: 83.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.6483, allocations: 43.72 kB / 384.6 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.6483, allocations: 23.44 kB / 384.6 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.6497, allocations: 0.5855 MB / 385.2 MB, free: 82.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005968/0.6557, allocations: 3.946 MB / 389.1 MB, free: 80.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007213/0.6565, allocations: 435.6 kB / 389.6 MB, free: 80.01 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.6571, allocations: 252.9 kB / 389.8 MB, free: 79.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.6572, allocations: 7.969 kB / 389.8 MB, free: 79.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.6572, allocations: 34.56 kB / 389.9 MB, free: 79.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.625e-06/0.6572, allocations: 0 / 389.9 MB, free: 79.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002642/0.6599, allocations: 1.232 MB / 391.1 MB, free: 79.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.6599, allocations: 84.14 kB / 391.2 MB, free: 79.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.6611, allocations: 0.695 MB / 391.9 MB, free: 78.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.6611, allocations: 36.8 kB / 391.9 MB, free: 78.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.6615, allocations: 0.5679 MB / 392.5 MB, free: 78.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.6616, allocations: 180.4 kB / 392.7 MB, free: 78.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.6617, allocations: 15.25 kB / 392.7 MB, free: 78.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.581e-05/0.6618, allocations: 341.6 kB / 393 MB, free: 77.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.6621, allocations: 157 kB / 393.2 MB, free: 77.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.6626, allocations: 444.4 kB / 393.6 MB, free: 77.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/0.6631, allocations: 240 kB / 393.8 MB, free: 76.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.722e-06/0.6631, allocations: 4 kB / 393.8 MB, free: 76.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00141/0.6646, allocations: 0.6874 MB / 394.5 MB, free: 76.15 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.6646, allocations: 14.91 kB / 394.5 MB, free: 76.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.6646, allocations: 8 kB / 394.5 MB, free: 76.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003657/0.665, allocations: 99.52 kB / 394.6 MB, free: 76.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006781/0.6657, allocations: 159.8 kB / 394.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/0.6681, allocations: 2.983 MB / 397.8 MB, free: 72.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008997/0.6691, allocations: 46.17 kB / 397.8 MB, free: 72.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.6692, allocations: 38.8 kB / 397.9 MB, free: 72.66 MB / 314.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.0001544/0.6693, allocations: 160.3 kB / 398 MB, free: 72.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.6695, allocations: 94.44 kB / 398.1 MB, free: 72.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.6706, allocations: 0.4904 MB / 398.6 MB, free: 71.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.55e-06/0.6706, allocations: 4 kB / 398.6 MB, free: 71.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.561e-06/0.6707, allocations: 4 kB / 398.6 MB, free: 71.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.955e-06/0.6707, allocations: 3.047 kB / 398.6 MB, free: 71.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.6732, allocations: 1.452 MB / 400.1 MB, free: 70.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.125e-06/0.6733, allocations: 0 / 400.1 MB, free: 70.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.6738, allocations: 90.78 kB / 400.1 MB, free: 70.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003127/0.6741, allocations: 79.38 kB / 400.2 MB, free: 70.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.6742, allocations: 11.33 kB / 400.2 MB, free: 70.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.6765, allocations: 2.972 MB / 403.2 MB, free: 67.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.302e-06/0.6765, allocations: 7.406 kB / 403.2 MB, free: 67.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.678, allocations: 0.8724 MB / 404.1 MB, free: 66.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004071/0.6784, allocations: 200.6 kB / 404.3 MB, free: 66.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.6786, allocations: 12 kB / 404.3 MB, free: 66.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.6792, allocations: 34.94 kB / 404.3 MB, free: 66.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6793, allocations: 34.72 kB / 404.4 MB, free: 66.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.6793, allocations: 18.53 kB / 404.4 MB, free: 66.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008885/0.6802, allocations: 0.5314 MB / 404.9 MB, free: 65.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.54e-07/0.6803, allocations: 4 kB / 404.9 MB, free: 65.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001202/0.6815, allocations: 247.5 kB / 405.2 MB, free: 65.43 MB / 314.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.0004538/0.6819, allocations: 300.9 kB / 405.5 MB, free: 65.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.6831, allocations: 0.649 MB / 406.1 MB, free: 64.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.651e-06/0.6832, allocations: 4.125 kB / 406.1 MB, free: 64.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006695/0.6839, allocations: 435 kB / 406.5 MB, free: 64.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.6851, allocations: 215 kB / 406.7 MB, free: 63.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.6878, allocations: 1.321 MB / 408.1 MB, free: 62.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.6884, allocations: 1.035 MB / 409.1 MB, free: 61.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.6887, allocations: 63.38 kB / 409.2 MB, free: 61.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.722e-06/0.6887, allocations: 0 / 409.2 MB, free: 61.66 MB / 314.7 MB Notification: Performance of Templates: time 0.02614/0.7148, allocations: 21.21 MB / 430.4 MB, free: 40.46 MB / 314.7 MB