Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.207/2.207, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.613e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.002578/0.1135, allocations: 1.459 MB / 346.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003189/0.1168, allocations: 0.9481 MB / 347.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.117, allocations: 4 kB / 347.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.1172, allocations: 19.84 kB / 347.4 MB, free: 6.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000363/0.1175, allocations: 167.7 kB / 347.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004068/0.118, allocations: 95.77 kB / 347.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000438/0.1184, allocations: 199.6 kB / 347.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1187, allocations: 68.45 kB / 347.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.1201, allocations: 0.8112 MB / 348.7 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004169/0.1206, allocations: 215.6 kB / 348.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1207, allocations: 8 kB / 348.9 MB, free: 4.945 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001447/0.1209, allocations: 16 kB / 349 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.1212, allocations: 235.2 kB / 349.2 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000414/0.1216, allocations: 64 kB / 349.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.1233, allocations: 1.177 MB / 350.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1233, allocations: 0 / 350.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1234, allocations: 3.938 kB / 350.4 MB, free: 3.453 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.675e-05/0.1234, allocations: 3.938 kB / 350.4 MB, free: 3.449 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.003134/0.1265, allocations: 1.265 MB / 351.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.1266, allocations: 8.031 kB / 351.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005873/0.1272, allocations: 134.4 kB / 351.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.1288, allocations: 0.5205 MB / 352.4 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.129, allocations: 19.98 kB / 352.4 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.1292, allocations: 28 kB / 352.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/0.1317, allocations: 0.6183 MB / 353 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.1318, allocations: 0 / 353 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.132, allocations: 23.89 kB / 353.1 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.132, allocations: 7.984 kB / 353.1 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.1338, allocations: 467.6 kB / 353.5 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004241/0.1381, allocations: 1.072 MB / 354.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.1406, allocations: 0.6936 MB / 355.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.1407, allocations: 3.984 kB / 355.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002751/0.1434, allocations: 0.7748 MB / 356.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 6.792e-06/0.1435, allocations: 0 / 356.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.007371/0.1509, allocations: 2.121 MB / 358.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004532/0.1514, allocations: 329 kB / 358.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006483/0.1579, allocations: 1.608 MB / 360.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003368/0.1583, allocations: 45.69 kB / 360.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.1589, allocations: 249 kB / 360.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003716/0.1592, allocations: 87 kB / 360.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1594, allocations: 15.98 kB / 360.5 MB, free: 8.926 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.1596, allocations: 326.8 kB / 360.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.1614, allocations: 447.9 kB / 361.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.1633, allocations: 490.6 kB / 361.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.165, allocations: 0.5833 MB / 362.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.1651, allocations: 0 / 362.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.004826/0.1699, allocations: 1.318 MB / 363.6 MB, free: 5.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005345/0.1705, allocations: 289.5 kB / 363.9 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.1706, allocations: 4 kB / 363.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.1706, allocations: 0 / 363.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.398e-05/0.1707, allocations: 11.92 kB / 363.9 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1707, allocations: 3.953 kB / 363.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.1719, allocations: 47.97 kB / 364 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004209/0.1724, allocations: 123.9 kB / 364.1 MB, free: 5.145 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.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.003031/0.1755, allocations: 0.9947 MB / 365.1 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/0.1759, allocations: 134.4 kB / 365.2 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009882/0.1769, allocations: 247.6 kB / 365.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.177, allocations: 0 / 365.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.177, allocations: 0 / 365.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.177, allocations: 11.89 kB / 365.5 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008591/0.1856, allocations: 2.423 MB / 367.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.1857, allocations: 0 / 367.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.438e-05/0.1858, allocations: 0 / 367.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/0.1858, allocations: 4 kB / 367.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/0.1861, allocations: 39.97 kB / 368 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.1861, allocations: 0 / 368 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.1861, allocations: 7.953 kB / 368 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.192, allocations: 1.634 MB / 369.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002885/0.195, allocations: 0.6785 MB / 370.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004208/0.1955, allocations: 63.95 kB / 370.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006613/0.1961, allocations: 43.88 kB / 370.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/0.1974, allocations: 355.6 kB / 370.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004694/0.1979, allocations: 171.8 kB / 370.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.005051/0.203, allocations: 1.325 MB / 372.2 MB, free: 12.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.213e-06/0.203, allocations: 0 / 372.2 MB, free: 12.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001423/0.2045, allocations: 159.9 kB / 372.4 MB, free: 12.6 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0005551/0.2051, allocations: 185.7 kB / 372.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005208/0.2103, allocations: 1.928 MB / 374.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.2104, allocations: 0 / 374.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003289/0.2137, allocations: 1.405 MB / 375.9 MB, free: 8.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/0.2166, allocations: 296.4 kB / 376.2 MB, free: 8.602 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.228, allocations: 3.196 MB / 379.4 MB, free: 5.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/0.2306, allocations: 1.224 MB / 380.6 MB, free: 4.113 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2308, allocations: 27.44 kB / 380.6 MB, free: 4.086 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/0.2308, allocations: 0 / 380.6 MB, free: 4.086 MB / 314.7 MB Notification: Performance of Templates: time 0.03553/0.2664, allocations: 11.36 MB / 392 MB, free: 8.539 MB / 330.7 MB