Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.693e-05, allocations: 4 kB / 292.1 MB, free: 8.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.0898, allocations: 50.41 MB / 342.5 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3804/0.4702, allocations: 96.2 MB / 438.7 MB, free: 14.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4705, allocations: 78.08 kB / 438.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1785/0.649, allocations: 44.68 MB / 483.5 MB, free: 5.836 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.769e-06/0.649, allocations: 0 / 483.5 MB, free: 5.836 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001121/0.6492, allocations: 36 kB / 483.5 MB, free: 5.801 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003723/0.6529, allocations: 1.604 MB / 485.1 MB, free: 4.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.653, allocations: 8.031 kB / 485.2 MB, free: 4.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/0.6543, allocations: 285.5 kB / 485.4 MB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/0.6578, allocations: 1.2 MB / 486.6 MB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.658, allocations: 115.1 kB / 486.7 MB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003783/0.6584, allocations: 167.8 kB / 486.9 MB, free: 2.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00353/0.6619, allocations: 1.412 MB / 488.3 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.789e-05/0.662, allocations: 4 kB / 488.3 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/0.6622, allocations: 60 kB / 488.4 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-05/0.6623, allocations: 40 kB / 488.4 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0027/0.665, allocations: 0.9427 MB / 489.4 MB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.6773, allocations: 6.415 MB / 495.8 MB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.679, allocations: 0.5635 MB / 496.3 MB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.6801, allocations: 415 kB / 496.7 MB, free: 8.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/0.6802, allocations: 8.562 kB / 496.8 MB, free: 8.082 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.6802, allocations: 43.12 kB / 496.8 MB, free: 8.031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.964e-06/0.6803, allocations: 0 / 496.8 MB, free: 8.031 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.007302/0.6876, allocations: 1.791 MB / 498.6 MB, free: 6.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.6877, allocations: 111.6 kB / 498.7 MB, free: 6.047 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/0.6917, allocations: 1.09 MB / 499.8 MB, free: 4.945 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001508/0.6919, allocations: 37.7 kB / 499.8 MB, free: 4.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001245/0.6932, allocations: 0.8389 MB / 0.4889 GB, free: 4.055 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004763/0.6937, allocations: 256.3 kB / 0.4892 GB, free: 3.801 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.6938, allocations: 24 kB / 0.4892 GB, free: 3.777 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000305/0.6941, allocations: 358.8 kB / 0.4895 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.6953, allocations: 246.6 kB / 0.4898 GB, free: 3.176 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.6972, allocations: 0.6968 MB / 0.4905 GB, free: 2.266 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.6988, allocations: 381.8 kB / 0.4908 GB, free: 1.895 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.168e-05/0.6988, allocations: 4 kB / 0.4908 GB, free: 1.891 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.005006/0.7038, allocations: 1.08 MB / 0.4919 GB, free: 0.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.7039, allocations: 9.25 kB / 0.4919 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/0.704, allocations: 16.59 kB / 0.4919 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000847/0.7048, allocations: 122.5 kB / 0.492 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.7072, allocations: 259.6 kB / 0.4923 GB, free: 396 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008406/0.7156, allocations: 4.224 MB / 0.4964 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002881/0.7186, allocations: 67.92 kB / 0.4965 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/0.7189, allocations: 52 kB / 0.4965 GB, free: 11.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006053/0.7195, allocations: 184.5 kB / 0.4967 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006397/0.7202, allocations: 142.2 kB / 0.4968 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/0.7234, allocations: 0.7819 MB / 0.4976 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.7235, allocations: 8 kB / 0.4976 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.727e-06/0.7235, allocations: 0 / 0.4976 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.7235, allocations: 7.938 kB / 0.4976 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006246/0.7298, allocations: 2.241 MB / 0.4998 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.7298, allocations: 8 kB / 0.4998 GB, free: 8.125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000997/0.7308, allocations: 136.3 kB / 0.4999 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006056/0.7314, allocations: 114.5 kB / 0.5 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.707e-05/0.7315, allocations: 23.98 kB / 0.5001 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005389/0.737, allocations: 4.313 MB / 0.5043 GB, free: 3.133 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/0.737, allocations: 8.141 kB / 0.5043 GB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003051/0.7401, allocations: 1.438 MB / 0.5057 GB, free: 1.496 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007158/0.7408, allocations: 283.4 kB / 0.5059 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.7411, allocations: 20 kB / 0.506 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008589/0.7419, allocations: 43.92 kB / 0.506 GB, free: 1.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.7421, allocations: 64.42 kB / 0.5061 GB, free: 1.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.967e-05/0.7422, allocations: 27.92 kB / 0.5061 GB, free: 1.043 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001746/0.744, allocations: 0.814 MB / 0.5069 GB, free: 232 kB / 426.7 MB Notification: Performance of sort global known variables: time 3.522e-06/0.744, allocations: 0 / 0.5069 GB, free: 232 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.001871/0.7459, allocations: 383.9 kB / 0.5073 GB, free: 15.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006694/0.7466, allocations: 393.8 kB / 0.5076 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002168/0.7487, allocations: 1.012 MB / 0.5086 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.161e-06/0.7488, allocations: 0 / 0.5086 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.75, allocations: 0.6411 MB / 0.5092 GB, free: 13.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.752, allocations: 340.9 kB / 0.5096 GB, free: 13.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006324/0.7584, allocations: 2.349 MB / 0.5119 GB, free: 11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.7597, allocations: 1.245 MB / 0.5131 GB, free: 9.727 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004846/0.7602, allocations: 99.42 kB / 0.5132 GB, free: 9.629 MB / 442.7 MB Notification: Performance of SimCode: time 1.836e-06/0.7602, allocations: 0 / 0.5132 GB, free: 9.629 MB / 442.7 MB Notification: Performance of Templates: time 0.3342/1.094, allocations: 39.73 MB / 0.552 GB, free: 115.8 MB / 442.7 MB