Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadModel(Modelica): time 2.125/2.125, allocations: 224.7 MB / 241.1 MB, free: 1.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.925e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01119/0.122, allocations: 6.44 MB / 351.4 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006041/0.128, allocations: 2.359 MB / 353.8 MB, free: 116 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.1292, allocations: 39.94 kB / 353.8 MB, free: 76 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.1308, allocations: 369.8 kB / 354.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002043/0.1328, allocations: 422.6 kB / 354.6 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.134, allocations: 243.6 kB / 354.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002598/0.1366, allocations: 0.8589 MB / 355.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007998/0.1375, allocations: 313.2 kB / 356 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007799/0.1383, allocations: 366.8 kB / 356.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007784/0.1391, allocations: 414.3 kB / 356.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004391/0.1395, allocations: 79.97 kB / 356.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002075/0.1398, allocations: 44 kB / 356.9 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.14, allocations: 163.2 kB / 357 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003137/0.1403, allocations: 111.9 kB / 357.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.1424, allocations: 1.289 MB / 358.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1424, allocations: 0 / 358.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1424, allocations: 0 / 358.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.1425, allocations: 0 / 358.4 MB, free: 11.44 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002949/0.1454, allocations: 1.158 MB / 359.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.1455, allocations: 12.02 kB / 359.6 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000842/0.1464, allocations: 170.3 kB / 359.8 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.1485, allocations: 0.7425 MB / 360.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.449e-05/0.1486, allocations: 74 kB / 360.6 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002275/0.1488, allocations: 103.9 kB / 360.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.1514, allocations: 0.9419 MB / 361.6 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/0.1515, allocations: 4 kB / 361.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.1516, allocations: 40 kB / 361.7 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.1517, allocations: 31.94 kB / 361.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.1538, allocations: 0.6402 MB / 362.3 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.1643, allocations: 4.076 MB / 366.4 MB, free: 3.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.1668, allocations: 470.1 kB / 366.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.779e-05/0.1669, allocations: 4 kB / 366.9 MB, free: 2.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.167, allocations: 38.5 kB / 366.9 MB, free: 2.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 4.619e-06/0.167, allocations: 4 kB / 366.9 MB, free: 2.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.005805/0.1728, allocations: 1.339 MB / 368.3 MB, free: 1.156 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.883e-05/0.173, allocations: 110.8 kB / 368.4 MB, free: 1.023 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002182/0.1752, allocations: 0.7249 MB / 369.1 MB, free: 284 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.37e-05/0.1753, allocations: 33.7 kB / 369.1 MB, free: 244 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007872/0.1761, allocations: 0.5977 MB / 369.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/0.1763, allocations: 153.9 kB / 369.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.617e-05/0.1764, allocations: 12 kB / 369.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.1766, allocations: 342.8 kB / 370.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008082/0.1775, allocations: 169.9 kB / 370.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.1786, allocations: 489.7 kB / 370.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.1797, allocations: 239.9 kB / 371.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.1797, allocations: 4 kB / 371.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002726/0.1824, allocations: 0.693 MB / 371.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002531/0.185, allocations: 4.089 MB / 375.9 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-05/0.1851, allocations: 8 kB / 375.9 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.1854, allocations: 44.78 kB / 375.9 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.1871, allocations: 171.7 kB / 376.1 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.1891, allocations: 1.303 MB / 377.4 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.1905, allocations: 43.89 kB / 377.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.1906, allocations: 32 kB / 377.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1907, allocations: 4 kB / 377.5 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002304/0.193, allocations: 0.6179 MB / 378.1 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.193, allocations: 16.23 kB / 378.1 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.1932, allocations: 36.83 kB / 378.2 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.1947, allocations: 163.8 kB / 378.3 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.1964, allocations: 1.288 MB / 379.6 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007888/0.1972, allocations: 28 kB / 379.6 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.1973, allocations: 39.95 kB / 379.7 MB, free: 4.926 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000894/0.1982, allocations: 269.6 kB / 379.9 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.1986, allocations: 98.81 kB / 380 MB, free: 4.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.2005, allocations: 427.2 kB / 380.5 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.2006, allocations: 4 kB / 380.5 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.2006, allocations: 11.95 kB / 380.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.2006, allocations: 3.984 kB / 380.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/0.2052, allocations: 1.356 MB / 381.8 MB, free: 2.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.2053, allocations: 4 kB / 381.8 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009778/0.2063, allocations: 84.11 kB / 381.9 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.2065, allocations: 24.84 kB / 381.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.2065, allocations: 8 kB / 381.9 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.2083, allocations: 1.28 MB / 383.2 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.2083, allocations: 3.938 kB / 383.2 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.2109, allocations: 0.8158 MB / 384 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005741/0.2115, allocations: 196 kB / 384.2 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.2118, allocations: 8 kB / 384.2 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009679/0.2128, allocations: 24.05 kB / 384.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2129, allocations: 27.86 kB / 384.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.213, allocations: 16 kB / 384.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00168/0.2147, allocations: 0.5585 MB / 384.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2147, allocations: 0 / 384.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002861/0.2176, allocations: 344 kB / 385.2 MB, free: 15.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000353/0.218, allocations: 115.2 kB / 385.3 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003641/0.2216, allocations: 0.9839 MB / 386.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/0.2217, allocations: 1.812 kB / 386.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009749/0.2227, allocations: 294.9 kB / 386.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/0.2251, allocations: 219.5 kB / 386.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.2318, allocations: 2.238 MB / 389 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.2331, allocations: 1.04 MB / 390.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004326/0.2335, allocations: 67.44 kB / 390.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2335, allocations: 0 / 390.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of Templates: time 0.3093/0.5428, allocations: 15.88 MB / 406 MB, free: 49.06 MB / 330.7 MB