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.849/1.849, allocations: 195 MB / 203.2 MB, free: 6.746 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.35e-05, allocations: 8.828 kB / 249.6 MB, free: 5.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07947/0.07951, allocations: 44.51 MB / 294.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4195, allocations: 93.22 MB / 387.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4198, allocations: 80.83 kB / 387.4 MB, free: 6.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1068/0.5266, allocations: 28.15 MB / 415.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.139e-06/0.5267, allocations: 3.938 kB / 415.6 MB, free: 7.469 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.058e-05/0.5268, allocations: 27.94 kB / 415.6 MB, free: 7.441 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.002254/0.529, allocations: 1.134 MB / 416.7 MB, free: 6.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.5291, allocations: 8.031 kB / 416.7 MB, free: 6.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008782/0.53, allocations: 194.3 kB / 416.9 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.5319, allocations: 0.7976 MB / 417.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.339e-05/0.532, allocations: 32 kB / 417.8 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.5322, allocations: 67.88 kB / 417.8 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001429/0.5336, allocations: 0.5373 MB / 418.4 MB, free: 5.051 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.5354, allocations: 0.7588 MB / 419.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.553e-05/0.5355, allocations: 8 kB / 419.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-05/0.5356, allocations: 0 / 419.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/0.5357, allocations: 27.94 kB / 419.2 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006806/0.5425, allocations: 3.758 MB / 422.9 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000769/0.5433, allocations: 415.5 kB / 423.3 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005905/0.5439, allocations: 237.2 kB / 423.6 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.544, allocations: 7.938 kB / 423.6 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.544, allocations: 38.19 kB / 423.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.702e-06/0.544, allocations: 0 / 423.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.00278/0.5468, allocations: 1.132 MB / 424.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.5469, allocations: 96.94 kB / 424.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.548, allocations: 0.5901 MB / 425.4 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/0.5481, allocations: 25.7 kB / 425.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004619/0.5485, allocations: 0.5964 MB / 426 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.5487, allocations: 158.7 kB / 426.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.5488, allocations: 0 / 426.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.5489, allocations: 338 kB / 426.5 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.5493, allocations: 141.5 kB / 426.7 MB, free: 14.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005928/0.5499, allocations: 428 kB / 427.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004889/0.5504, allocations: 216.8 kB / 427.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.125e-06/0.5504, allocations: 8 kB / 427.3 MB, free: 13.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001486/0.5519, allocations: 0.6208 MB / 427.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.552, allocations: 12 kB / 427.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.552, allocations: 8 kB / 427.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003742/0.5524, allocations: 100.1 kB / 428 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007428/0.5532, allocations: 162.7 kB / 428.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.5565, allocations: 2.875 MB / 431.1 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000809/0.5574, allocations: 23.98 kB / 431.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.619e-05/0.5574, allocations: 33.81 kB / 431.1 MB, free: 9.867 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.0002009/0.5577, allocations: 139.2 kB / 431.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.5579, allocations: 86.95 kB / 431.4 MB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.559, allocations: 463.4 kB / 431.8 MB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5591, allocations: 7.953 kB / 431.8 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.561e-06/0.5591, allocations: 4 kB / 431.8 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.5591, allocations: 3.984 kB / 431.8 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.5619, allocations: 1.279 MB / 433.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.455e-06/0.5619, allocations: 3.938 kB / 433.1 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004885/0.5624, allocations: 88.11 kB / 433.2 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003346/0.5627, allocations: 77.67 kB / 433.3 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.923e-05/0.5628, allocations: 8.062 kB / 433.3 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.5661, allocations: 2.873 MB / 436.1 MB, free: 4.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.923e-06/0.5661, allocations: 8.094 kB / 436.2 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.5678, allocations: 0.8209 MB / 437 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/0.5682, allocations: 192.2 kB / 437.2 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.5684, allocations: 0 / 437.2 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005533/0.5689, allocations: 27.97 kB / 437.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.5691, allocations: 43.84 kB / 437.2 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.273e-05/0.5691, allocations: 16 kB / 437.2 MB, free: 3.719 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008793/0.57, allocations: 451.2 kB / 437.7 MB, free: 3.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.44e-07/0.57, allocations: 0 / 437.7 MB, free: 3.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001194/0.5712, allocations: 200 kB / 437.9 MB, free: 3.09 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.0004987/0.5718, allocations: 273.8 kB / 438.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.5731, allocations: 0.635 MB / 438.8 MB, free: 2.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.5732, allocations: 4.062 kB / 438.8 MB, free: 2.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008002/0.574, allocations: 427.6 kB / 439.2 MB, free: 1.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.5751, allocations: 172.2 kB / 439.4 MB, free: 1.551 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.5784, allocations: 1.293 MB / 440.7 MB, free: 204 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009335/0.5794, allocations: 1.036 MB / 441.7 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5796, allocations: 59.42 kB / 441.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of SimCode: time 1.877e-06/0.5796, allocations: 0 / 441.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of Templates: time 0.03236/0.612, allocations: 20.52 MB / 462.3 MB, free: 10.55 MB / 362.7 MB