Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadModel(Modelica): time 1.597/1.597, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.569e-05/3.606e-05, allocations: 0 / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2165, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.359, allocations: 88.02 MB / 351.8 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.3594, allocations: 79.95 kB / 351.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2974/0.6568, allocations: 28.21 MB / 380.1 MB, free: 84.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.94e-06/0.6568, allocations: 0 / 380.1 MB, free: 84.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.227e-05/0.6569, allocations: 18.62 kB / 380.1 MB, free: 84.23 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001975/0.6589, allocations: 1.113 MB / 381.2 MB, free: 83.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.659, allocations: 11.22 kB / 381.2 MB, free: 83.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009038/0.6599, allocations: 190.1 kB / 381.4 MB, free: 83.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.6619, allocations: 0.7892 MB / 382.2 MB, free: 83.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.662, allocations: 72.97 kB / 382.3 MB, free: 83.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.6622, allocations: 104.7 kB / 382.4 MB, free: 83.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.6642, allocations: 0.8795 MB / 383.2 MB, free: 83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/0.6643, allocations: 9.328 kB / 383.2 MB, free: 82.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.6644, allocations: 42.75 kB / 383.3 MB, free: 82.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.6644, allocations: 24.44 kB / 383.3 MB, free: 82.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.6659, allocations: 0.5704 MB / 383.9 MB, free: 82.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006645/0.6726, allocations: 3.923 MB / 387.8 MB, free: 80.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007878/0.6734, allocations: 424.1 kB / 388.2 MB, free: 79.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005842/0.674, allocations: 245.2 kB / 388.5 MB, free: 79.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-05/0.6741, allocations: 3.844 kB / 388.5 MB, free: 79.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.6741, allocations: 42.17 kB / 388.5 MB, free: 79.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 3.9e-06/0.6742, allocations: 0 / 388.5 MB, free: 79.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002936/0.6771, allocations: 1.194 MB / 389.7 MB, free: 79.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.6772, allocations: 89.41 kB / 389.8 MB, free: 78.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.6785, allocations: 0.6837 MB / 390.5 MB, free: 78.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.6786, allocations: 41.42 kB / 390.5 MB, free: 78.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003211/0.6789, allocations: 0.5629 MB / 391.1 MB, free: 78.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.6791, allocations: 175.2 kB / 391.2 MB, free: 77.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.6791, allocations: 15.41 kB / 391.3 MB, free: 77.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.012e-05/0.6792, allocations: 340.9 kB / 391.6 MB, free: 77.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003573/0.6796, allocations: 153.1 kB / 391.7 MB, free: 77.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.6801, allocations: 436.2 kB / 392.2 MB, free: 77.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004934/0.6806, allocations: 233.6 kB / 392.4 MB, free: 77.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/0.6806, allocations: 3.375 kB / 392.4 MB, free: 77.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001505/0.6821, allocations: 0.6709 MB / 393.1 MB, free: 76.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.6822, allocations: 8.75 kB / 393.1 MB, free: 76.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.6822, allocations: 9.719 kB / 393.1 MB, free: 76.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.6826, allocations: 103.8 kB / 393.2 MB, free: 76.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/0.6833, allocations: 162.2 kB / 393.3 MB, free: 76.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/0.6859, allocations: 2.986 MB / 396.3 MB, free: 73.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000912/0.6868, allocations: 43.2 kB / 396.4 MB, free: 73.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.222e-05/0.6869, allocations: 35.56 kB / 396.4 MB, free: 73.29 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 (85): * Single equations (assignments): 83 * 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.0001632/0.6871, allocations: 144.7 kB / 396.5 MB, free: 73.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.6873, allocations: 98.3 kB / 396.6 MB, free: 73.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.6885, allocations: 494.9 kB / 397.1 MB, free: 72.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.6885, allocations: 4 kB / 397.1 MB, free: 72.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.277e-06/0.6885, allocations: 4 kB / 397.1 MB, free: 72.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.6885, allocations: 7.031 kB / 397.1 MB, free: 72.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.6913, allocations: 1.418 MB / 398.6 MB, free: 71.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.57e-06/0.6914, allocations: 4 kB / 398.6 MB, free: 71.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.6918, allocations: 70.2 kB / 398.6 MB, free: 71.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003306/0.6922, allocations: 87.14 kB / 398.7 MB, free: 71.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.6922, allocations: 12 kB / 398.7 MB, free: 71.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.6947, allocations: 2.985 MB / 401.7 MB, free: 68.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.113e-06/0.6948, allocations: 0 / 401.7 MB, free: 68.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.6963, allocations: 0.852 MB / 402.6 MB, free: 67.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004186/0.6968, allocations: 192.1 kB / 402.8 MB, free: 66.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.6969, allocations: 14.38 kB / 402.8 MB, free: 66.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005616/0.6975, allocations: 37.77 kB / 402.8 MB, free: 66.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.6976, allocations: 31.02 kB / 402.8 MB, free: 66.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.6977, allocations: 19.94 kB / 402.9 MB, free: 66.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009247/0.6986, allocations: 0.5154 MB / 403.4 MB, free: 66.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.6986, allocations: 0 / 403.4 MB, free: 66.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001318/0.7, allocations: 247.8 kB / 403.6 MB, free: 66.14 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 (39): * Single equations (assignments): 37 * 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.0005155/0.7005, allocations: 298 kB / 403.9 MB, free: 65.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.7018, allocations: 0.6471 MB / 404.6 MB, free: 65.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.325e-06/0.7018, allocations: 0 / 404.6 MB, free: 65.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007193/0.7026, allocations: 429.4 kB / 405 MB, free: 64.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.704, allocations: 209 kB / 405.2 MB, free: 64.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.7071, allocations: 1.294 MB / 406.5 MB, free: 63.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.7077, allocations: 1.031 MB / 407.5 MB, free: 62.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002479/0.708, allocations: 66.94 kB / 407.6 MB, free: 62.44 MB / 314.7 MB Notification: Performance of SimCode: time 1.827e-06/0.708, allocations: 0 / 407.6 MB, free: 62.44 MB / 314.7 MB Notification: Performance of Templates: time 0.02979/0.7378, allocations: 20.81 MB / 428.4 MB, free: 42.27 MB / 314.7 MB