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.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.132e-05/4.146e-05, allocations: 3.375 kB / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09316, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.5037, allocations: 93.9 MB / 393.8 MB, free: 19.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.504, allocations: 80.45 kB / 393.8 MB, free: 19.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1402/0.6443, allocations: 28.56 MB / 422.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6443, allocations: 0 / 422.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.343e-05/0.6444, allocations: 23.5 kB / 422.4 MB, free: 9.215 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.001844/0.6462, allocations: 1.135 MB / 423.6 MB, free: 8.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.6463, allocations: 11 kB / 423.6 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008013/0.6471, allocations: 191.7 kB / 423.8 MB, free: 8.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.6488, allocations: 0.7997 MB / 424.6 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.836e-05/0.6488, allocations: 74.41 kB / 424.6 MB, free: 7.887 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.649, allocations: 107.3 kB / 424.7 MB, free: 7.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.6508, allocations: 0.8886 MB / 425.6 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/0.6509, allocations: 3.75 kB / 425.6 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.651, allocations: 39.66 kB / 425.7 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.651, allocations: 29.28 kB / 425.7 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.6524, allocations: 0.5778 MB / 426.3 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005861/0.6583, allocations: 3.948 MB / 430.2 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.659, allocations: 427.9 kB / 430.6 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006015/0.6596, allocations: 253.4 kB / 430.9 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.6597, allocations: 7.625 kB / 430.9 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.6597, allocations: 42.31 kB / 430.9 MB, free: 5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.613e-06/0.6597, allocations: 0 / 430.9 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002504/0.6623, allocations: 1.229 MB / 432.2 MB, free: 4.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.6623, allocations: 84.7 kB / 432.2 MB, free: 4.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.6634, allocations: 0.6933 MB / 432.9 MB, free: 4.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.6635, allocations: 36.48 kB / 433 MB, free: 4.102 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.6638, allocations: 0.5739 MB / 433.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.6639, allocations: 169.6 kB / 433.7 MB, free: 3.586 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-05/0.6639, allocations: 14.53 kB / 433.7 MB, free: 3.586 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.664, allocations: 336.8 kB / 434.1 MB, free: 3.266 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.6644, allocations: 160.2 kB / 434.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004522/0.6648, allocations: 445.5 kB / 434.6 MB, free: 2.883 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.6653, allocations: 233.5 kB / 434.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.6653, allocations: 7.906 kB / 434.9 MB, free: 2.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001468/0.6668, allocations: 0.6881 MB / 435.6 MB, free: 2.617 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.6668, allocations: 8 kB / 435.6 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.6669, allocations: 8 kB / 435.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004114/0.6673, allocations: 100.1 kB / 435.7 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.668, allocations: 162.9 kB / 435.8 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002654/0.6706, allocations: 2.996 MB / 438.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008992/0.6716, allocations: 42.45 kB / 438.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-05/0.6717, allocations: 31.69 kB / 438.9 MB, free: 15.29 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.0001971/0.6719, allocations: 158 kB / 439.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.6721, allocations: 94.83 kB / 439.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.6733, allocations: 0.49 MB / 439.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.6733, allocations: 8 kB / 439.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6734, allocations: 0 / 439.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6734, allocations: 3.984 kB / 439.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002936/0.6763, allocations: 1.447 MB / 441.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.6764, allocations: 4 kB / 441.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.6768, allocations: 83.8 kB / 441.2 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003425/0.6772, allocations: 84.3 kB / 441.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/0.6773, allocations: 7.812 kB / 441.3 MB, free: 13.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.6807, allocations: 2.975 MB / 444.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.833e-06/0.6807, allocations: 12.08 kB / 444.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.6824, allocations: 0.8681 MB / 445.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004331/0.6829, allocations: 200.7 kB / 445.3 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.6831, allocations: 11.38 kB / 445.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005873/0.6837, allocations: 33.84 kB / 445.4 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.6838, allocations: 42.77 kB / 445.4 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.6838, allocations: 15.19 kB / 445.4 MB, free: 9.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.6849, allocations: 0.5336 MB / 446 MB, free: 8.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.004e-06/0.6849, allocations: 0 / 446 MB, free: 8.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001267/0.6862, allocations: 251.4 kB / 446.2 MB, free: 8.77 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.0005654/0.6868, allocations: 313.8 kB / 446.5 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.6881, allocations: 0.6462 MB / 447.2 MB, free: 7.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.636e-06/0.6882, allocations: 4.188 kB / 447.2 MB, free: 7.938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008244/0.689, allocations: 427.3 kB / 447.6 MB, free: 7.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.6903, allocations: 212.6 kB / 447.8 MB, free: 7.414 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.6936, allocations: 1.335 MB / 449.1 MB, free: 6.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009555/0.6946, allocations: 1.029 MB / 450.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.6949, allocations: 63.42 kB / 450.2 MB, free: 5.039 MB / 330.7 MB Notification: Performance of SimCode: time 1.955e-06/0.6949, allocations: 0 / 450.2 MB, free: 5.039 MB / 330.7 MB Notification: Performance of Templates: time 0.03348/0.7284, allocations: 21.22 MB / 471.4 MB, free: 15.88 MB / 362.7 MB