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_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.236e-05, allocations: 3.25 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07669/0.07675, allocations: 44.51 MB / 299.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3462/0.423, allocations: 93.88 MB / 393.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.4233, allocations: 78.48 kB / 393.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1017/0.525, allocations: 28.56 MB / 422.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.746e-06/0.5251, allocations: 0 / 422.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.389e-05/0.5251, allocations: 27.38 kB / 422.4 MB, free: 9.094 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.001952/0.5271, allocations: 1.127 MB / 423.5 MB, free: 8.312 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.5272, allocations: 15.55 kB / 423.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008401/0.528, allocations: 193.8 kB / 423.7 MB, free: 8.219 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.5297, allocations: 0.8057 MB / 424.5 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.077e-05/0.5298, allocations: 69.06 kB / 424.6 MB, free: 7.762 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.53, allocations: 104.4 kB / 424.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.5318, allocations: 0.8987 MB / 425.6 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.5319, allocations: 3.875 kB / 425.6 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.532, allocations: 44.16 kB / 425.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.532, allocations: 23 kB / 425.7 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.5334, allocations: 0.5939 MB / 426.3 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006514/0.54, allocations: 3.955 MB / 430.2 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.5412, allocations: 435.8 kB / 430.6 MB, free: 4.945 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009668/0.5422, allocations: 256.2 kB / 430.9 MB, free: 4.914 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.5423, allocations: 7.812 kB / 430.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.5423, allocations: 45.5 kB / 430.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 5.538e-06/0.5423, allocations: 0 / 430.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.00438/0.5467, allocations: 1.217 MB / 432.2 MB, free: 4.281 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.5468, allocations: 88.95 kB / 432.3 MB, free: 4.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.5488, allocations: 0.6972 MB / 432.9 MB, free: 3.996 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.5489, allocations: 36.67 kB / 433 MB, free: 3.965 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004482/0.5494, allocations: 0.5752 MB / 433.6 MB, free: 3.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.5496, allocations: 169.3 kB / 433.7 MB, free: 3.449 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.506e-05/0.5497, allocations: 14.75 kB / 433.7 MB, free: 3.449 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5498, allocations: 336.7 kB / 434.1 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006291/0.5504, allocations: 154 kB / 434.2 MB, free: 3.125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008104/0.5513, allocations: 453.1 kB / 434.7 MB, free: 2.746 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/0.5521, allocations: 237 kB / 434.9 MB, free: 2.699 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.5522, allocations: 3.906 kB / 434.9 MB, free: 2.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002529/0.5547, allocations: 0.7091 MB / 435.6 MB, free: 2.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.5548, allocations: 11.62 kB / 435.6 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.5548, allocations: 21.48 kB / 435.6 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005845/0.5554, allocations: 86.25 kB / 435.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.5567, allocations: 168.1 kB / 435.9 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00431/0.561, allocations: 2.999 MB / 438.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.5627, allocations: 34.8 kB / 438.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/0.5629, allocations: 38.75 kB / 439 MB, free: 15.3 MB / 330.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.0003485/0.5633, allocations: 154.2 kB / 439.1 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.5637, allocations: 98.81 kB / 439.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002303/0.566, allocations: 495.6 kB / 439.7 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.5661, allocations: 15.94 kB / 439.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.174e-06/0.5661, allocations: 0 / 439.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.5661, allocations: 0 / 439.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005628/0.5718, allocations: 1.451 MB / 441.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.5718, allocations: 0 / 441.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009926/0.5728, allocations: 87.73 kB / 441.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006566/0.5735, allocations: 80.42 kB / 441.3 MB, free: 13.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.216e-05/0.5736, allocations: 11.44 kB / 441.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005835/0.5795, allocations: 2.988 MB / 444.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.09e-06/0.5795, allocations: 0 / 444.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.5828, allocations: 0.8783 MB / 445.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007601/0.5836, allocations: 202 kB / 445.4 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.5839, allocations: 13.94 kB / 445.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.5851, allocations: 30.61 kB / 445.4 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.5853, allocations: 46.62 kB / 445.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.819e-05/0.5854, allocations: 15.44 kB / 445.5 MB, free: 9.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001867/0.5873, allocations: 0.53 MB / 446 MB, free: 8.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.757e-06/0.5873, allocations: 0 / 446 MB, free: 8.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002508/0.5899, allocations: 256.1 kB / 446.3 MB, free: 8.766 MB / 330.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.0008933/0.5908, allocations: 297.3 kB / 446.6 MB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.5934, allocations: 0.6791 MB / 447.2 MB, free: 7.914 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.877e-06/0.5934, allocations: 0 / 447.2 MB, free: 7.914 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.595, allocations: 448.1 kB / 447.7 MB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.5976, allocations: 204.5 kB / 447.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006401/0.604, allocations: 1.336 MB / 449.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/0.6058, allocations: 1.029 MB / 450.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004944/0.6063, allocations: 75.36 kB / 450.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of SimCode: time 2.615e-06/0.6063, allocations: 0 / 450.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of Templates: time 0.06585/0.6722, allocations: 21.26 MB / 471.6 MB, free: 15.73 MB / 362.7 MB