Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGL.dFFR.clock|dFFREGL.dFFR.reset|dFFREGL.delay.inertialDelaySensitive.1..x|dFFREGL.delay.inertialDelaySensitive.1..y|dFFREGL.delay.inertialDelaySensitive.2..x|dFFREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.202e-05/3.208e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGL): time 0.003159/0.118, allocations: 1.42 MB / 346.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003893/0.1219, allocations: 0.8897 MB / 347.3 MB, free: 6.637 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1221, allocations: 4 kB / 347.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.1223, allocations: 15.86 kB / 347.3 MB, free: 6.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.1225, allocations: 35.86 kB / 347.3 MB, free: 6.582 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.1229, allocations: 75.8 kB / 347.4 MB, free: 6.508 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.1234, allocations: 147.8 kB / 347.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.1236, allocations: 64.12 kB / 347.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001523/0.1252, allocations: 0.6942 MB / 348.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.1256, allocations: 175.6 kB / 348.5 MB, free: 5.43 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1258, allocations: 12 kB / 348.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1259, allocations: 8 kB / 348.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002766/0.1262, allocations: 155.5 kB / 348.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004154/0.1267, allocations: 40 kB / 348.7 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.1282, allocations: 0.8732 MB / 349.6 MB, free: 4.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1282, allocations: 0 / 349.6 MB, free: 4.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1282, allocations: 0 / 349.6 MB, free: 4.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1283, allocations: 0 / 349.6 MB, free: 4.344 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001845/0.1301, allocations: 0.9932 MB / 350.6 MB, free: 3.258 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.1302, allocations: 15.97 kB / 350.6 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003052/0.1305, allocations: 86.97 kB / 350.7 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1316, allocations: 411.5 kB / 351.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.905e-05/0.1317, allocations: 16 kB / 351.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/0.1319, allocations: 24 kB / 351.1 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.1339, allocations: 0.506 MB / 351.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.134, allocations: 0 / 351.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.1341, allocations: 23.92 kB / 351.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1341, allocations: 8 kB / 351.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.1356, allocations: 367.9 kB / 352 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.1384, allocations: 0.8558 MB / 352.9 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.1401, allocations: 0.514 MB / 353.4 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.1401, allocations: 0 / 353.4 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001939/0.1421, allocations: 0.6516 MB / 354 MB, free: 15.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.236e-06/0.1421, allocations: 0 / 354 MB, free: 15.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.005733/0.1479, allocations: 1.783 MB / 355.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003128/0.1482, allocations: 287.3 kB / 356.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.1518, allocations: 1.027 MB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.152, allocations: 41.7 kB / 357.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.1523, allocations: 196.4 kB / 357.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.1525, allocations: 79.06 kB / 357.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.1527, allocations: 12 kB / 357.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.1529, allocations: 330.7 kB / 357.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.1542, allocations: 352.1 kB / 358.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.1556, allocations: 385.4 kB / 358.5 MB, free: 11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.157, allocations: 491.7 kB / 359 MB, free: 10.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.834e-06/0.157, allocations: 4 kB / 359 MB, free: 10.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003713/0.1607, allocations: 1.106 MB / 360.1 MB, free: 9.316 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003447/0.1611, allocations: 243.8 kB / 360.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.1611, allocations: 0 / 360.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.1612, allocations: 4 kB / 360.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.589e-05/0.1612, allocations: 8.062 kB / 360.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.1613, allocations: 7.938 kB / 360.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008018/0.1621, allocations: 39.81 kB / 360.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003146/0.1624, allocations: 124.2 kB / 360.5 MB, free: 8.855 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.dFFREGL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002003/0.1644, allocations: 0.7718 MB / 361.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.1648, allocations: 83.06 kB / 361.3 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005958/0.1654, allocations: 159.7 kB / 361.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.1654, allocations: 4 kB / 361.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1654, allocations: 0 / 361.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1654, allocations: 0 / 361.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/0.1701, allocations: 1.978 MB / 363.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.1702, allocations: 3.938 kB / 363.5 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/0.1702, allocations: 0 / 363.5 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.1702, allocations: 11.98 kB / 363.5 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.1703, allocations: 31.98 kB / 363.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.8e-06/0.1704, allocations: 3.938 kB / 363.5 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1704, allocations: 4 kB / 363.5 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003275/0.1737, allocations: 1.388 MB / 364.9 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/0.1752, allocations: 0.5504 MB / 365.5 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003039/0.1755, allocations: 67.95 kB / 365.5 MB, free: 3.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005708/0.1761, allocations: 35.88 kB / 365.6 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006867/0.1768, allocations: 243.7 kB / 365.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/0.1771, allocations: 151.9 kB / 366 MB, free: 3.145 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00205/0.1792, allocations: 0.8654 MB / 366.8 MB, free: 2.281 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1792, allocations: 0 / 366.8 MB, free: 2.281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008051/0.18, allocations: 127.9 kB / 366.9 MB, free: 2.156 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003917/0.1804, allocations: 188.4 kB / 367.1 MB, free: 1.965 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.1834, allocations: 1.531 MB / 368.7 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.1835, allocations: 0 / 368.7 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.1854, allocations: 1.113 MB / 369.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.1874, allocations: 285.6 kB / 370.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005409/0.1928, allocations: 2.234 MB / 372.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.1941, allocations: 1.042 MB / 373.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.735e-05/0.1942, allocations: 15.44 kB / 373.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.1942, allocations: 0 / 373.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of Templates: time 0.01838/0.2126, allocations: 7.914 MB / 381.3 MB, free: 3.5 MB / 314.7 MB