Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 2.357/2.357, allocations: 224.8 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3.006e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1222, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRL): time 0.003469/0.1257, allocations: 1.462 MB / 346.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004326/0.1301, allocations: 0.9482 MB / 347.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.1304, allocations: 4 kB / 347.4 MB, free: 6.512 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.1306, allocations: 23.84 kB / 347.4 MB, free: 6.488 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004882/0.1311, allocations: 163.7 kB / 347.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.1317, allocations: 91.75 kB / 347.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.1323, allocations: 203.6 kB / 347.9 MB, free: 6.039 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1326, allocations: 60.47 kB / 347.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.1345, allocations: 0.819 MB / 348.7 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005855/0.1351, allocations: 211.6 kB / 348.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1353, allocations: 19.94 kB / 349 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.1355, allocations: 12 kB / 349 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004413/0.136, allocations: 235.2 kB / 349.2 MB, free: 4.688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005102/0.1365, allocations: 60 kB / 349.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.1388, allocations: 1.2 MB / 350.5 MB, free: 3.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.1389, allocations: 4 kB / 350.5 MB, free: 3.422 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.1389, allocations: 0 / 350.5 MB, free: 3.422 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.798e-05/0.1389, allocations: 0 / 350.5 MB, free: 3.422 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.003019/0.142, allocations: 1.268 MB / 351.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.415e-05/0.1421, allocations: 12.03 kB / 351.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005707/0.1427, allocations: 134.4 kB / 351.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.1442, allocations: 0.5088 MB / 352.4 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.1443, allocations: 27.98 kB / 352.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.1446, allocations: 31.94 kB / 352.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002509/0.1471, allocations: 0.6144 MB / 353.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1472, allocations: 0 / 353.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000145/0.1473, allocations: 19.94 kB / 353.1 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1473, allocations: 7.984 kB / 353.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.1492, allocations: 471.6 kB / 353.5 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.1531, allocations: 1.076 MB / 354.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.1555, allocations: 0.6936 MB / 355.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.1556, allocations: 15.92 kB / 355.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002449/0.1581, allocations: 0.7591 MB / 356.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 5.921e-06/0.1581, allocations: 0 / 356.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.00713/0.1653, allocations: 2.117 MB / 358.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003945/0.1657, allocations: 328.9 kB / 358.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00662/0.1724, allocations: 1.608 MB / 360.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003013/0.1727, allocations: 53.69 kB / 360.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005075/0.1733, allocations: 245 kB / 360.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000385/0.1737, allocations: 79.16 kB / 360.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.1739, allocations: 19.98 kB / 360.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.1741, allocations: 330.8 kB / 360.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.1759, allocations: 447.9 kB / 361.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.1777, allocations: 482.6 kB / 361.8 MB, free: 7.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001682/0.1795, allocations: 0.5872 MB / 362.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.1796, allocations: 0 / 362.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005803/0.1854, allocations: 1.318 MB / 363.7 MB, free: 5.637 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004038/0.1858, allocations: 289.5 kB / 363.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1859, allocations: 0 / 363.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.1859, allocations: 4 kB / 364 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.169e-05/0.186, allocations: 7.922 kB / 364 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.186, allocations: 15.89 kB / 364 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009434/0.187, allocations: 51.91 kB / 364 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003285/0.1873, allocations: 127.9 kB / 364.2 MB, free: 5.102 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: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.002604/0.1899, allocations: 0.9908 MB / 365.1 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004103/0.1904, allocations: 130.4 kB / 365.3 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.1914, allocations: 251.6 kB / 365.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.1914, allocations: 4 kB / 365.5 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1915, allocations: 4 kB / 365.5 MB, free: 3.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.1915, allocations: 3.953 kB / 365.5 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007723/0.1992, allocations: 2.411 MB / 367.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.1993, allocations: 4 kB / 367.9 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.893e-05/0.1993, allocations: 0 / 367.9 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.1994, allocations: 4 kB / 367.9 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.1996, allocations: 43.97 kB / 368 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.1996, allocations: 4 kB / 368 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1996, allocations: 3.953 kB / 368 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00493/0.2045, allocations: 1.637 MB / 369.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002586/0.2072, allocations: 0.6747 MB / 370.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005038/0.2077, allocations: 67.95 kB / 370.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008504/0.2086, allocations: 35.88 kB / 370.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001218/0.2098, allocations: 367.5 kB / 370.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003874/0.2103, allocations: 155.9 kB / 370.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004613/0.2149, allocations: 1.325 MB / 372.2 MB, free: 12.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.2149, allocations: 0 / 372.2 MB, free: 12.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001332/0.2163, allocations: 156 kB / 372.4 MB, free: 12.58 MB / 314.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0005238/0.2168, allocations: 189.7 kB / 372.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004883/0.2217, allocations: 1.932 MB / 374.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.2218, allocations: 0 / 374.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003066/0.2249, allocations: 1.409 MB / 375.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.2275, allocations: 296.5 kB / 376.2 MB, free: 8.566 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.2377, allocations: 3.2 MB / 379.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002465/0.2402, allocations: 1.22 MB / 380.6 MB, free: 4.078 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2404, allocations: 27.44 kB / 380.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of SimCode: time 1.272e-06/0.2404, allocations: 0 / 380.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of Templates: time 0.03324/0.2737, allocations: 11.37 MB / 392 MB, free: 8.5 MB / 330.7 MB