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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.286e-05, allocations: 4 kB / 292.1 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.0906, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4526, allocations: 83.55 MB / 426.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.4529, allocations: 70.83 kB / 426.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09855/0.5515, allocations: 33.09 MB / 459.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.451e-06/0.5515, allocations: 0 / 459.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.952e-05/0.5516, allocations: 16 kB / 459.3 MB, free: 14.08 MB / 378.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.001895/0.5535, allocations: 1.299 MB / 460.6 MB, free: 12.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.5535, allocations: 8.031 kB / 460.6 MB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/0.5538, allocations: 134.4 kB / 460.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009448/0.5548, allocations: 0.5051 MB / 461.2 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.155e-05/0.5548, allocations: 23.95 kB / 461.2 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.555, allocations: 31.98 kB / 461.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.5563, allocations: 0.6196 MB / 461.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.5563, allocations: 0 / 461.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-05/0.5565, allocations: 27.92 kB / 461.9 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.049e-06/0.5565, allocations: 0 / 461.9 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009499/0.5574, allocations: 463.8 kB / 462.4 MB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.5598, allocations: 1.084 MB / 463.5 MB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.561, allocations: 0.6859 MB / 464.1 MB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.5622, allocations: 0.6728 MB / 464.8 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.5622, allocations: 4 kB / 464.8 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.5636, allocations: 0.7617 MB / 465.6 MB, free: 7.516 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 4.518e-06/0.5636, allocations: 0 / 465.6 MB, free: 7.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002791/0.5664, allocations: 1.411 MB / 467 MB, free: 6.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002752/0.5667, allocations: 328.9 kB / 467.3 MB, free: 5.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003326/0.57, allocations: 1.602 MB / 468.9 MB, free: 4.047 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.5702, allocations: 45.69 kB / 469 MB, free: 3.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003251/0.5705, allocations: 238.4 kB / 469.2 MB, free: 3.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.5707, allocations: 83.23 kB / 469.3 MB, free: 3.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-05/0.5708, allocations: 19.98 kB / 469.3 MB, free: 3.656 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002693/0.5711, allocations: 378.7 kB / 469.7 MB, free: 3.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009111/0.572, allocations: 448 kB / 470.1 MB, free: 2.836 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008795/0.5729, allocations: 455.9 kB / 470.6 MB, free: 2.391 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008908/0.5738, allocations: 0.5795 MB / 471.1 MB, free: 1.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.418e-06/0.5738, allocations: 0 / 471.1 MB, free: 1.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002554/0.5764, allocations: 1.343 MB / 472.5 MB, free: 372 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002919/0.5767, allocations: 297.5 kB / 472.8 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.481e-06/0.5767, allocations: 0 / 472.8 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.5767, allocations: 0 / 472.8 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.64e-05/0.5768, allocations: 15.89 kB / 472.8 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.367e-06/0.5768, allocations: 0 / 472.8 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.5773, allocations: 43.88 kB / 472.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/0.5776, allocations: 151.9 kB / 473 MB, free: 15.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,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.000587/0.5782, allocations: 470.4 kB / 473.4 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.5785, allocations: 126.5 kB / 473.6 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006843/0.5792, allocations: 255.7 kB / 473.8 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.705e-06/0.5792, allocations: 4 kB / 473.8 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.5792, allocations: 3.953 kB / 473.8 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.5792, allocations: 0 / 473.8 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/0.5836, allocations: 2.388 MB / 476.2 MB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.65e-06/0.5837, allocations: 4 kB / 476.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.601e-05/0.5837, allocations: 4 kB / 476.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.435e-06/0.5837, allocations: 0 / 476.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.5838, allocations: 43.97 kB / 476.2 MB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.29e-06/0.5838, allocations: 3.953 kB / 476.3 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.5839, allocations: 4 kB / 476.3 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002957/0.5868, allocations: 1.618 MB / 477.9 MB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5883, allocations: 0.6825 MB / 478.6 MB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.5886, allocations: 59.97 kB / 478.6 MB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005061/0.5891, allocations: 47.81 kB / 478.7 MB, free: 9.863 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007624/0.5899, allocations: 355.6 kB / 479 MB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002504/0.5902, allocations: 159.9 kB / 479.2 MB, free: 9.359 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002655/0.5928, allocations: 1.319 MB / 480.5 MB, free: 8.035 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.139e-06/0.5928, allocations: 0 / 480.5 MB, free: 8.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007093/0.5936, allocations: 152 kB / 480.6 MB, free: 7.887 MB / 394.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.000349/0.5939, allocations: 197.7 kB / 480.8 MB, free: 7.684 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002913/0.5969, allocations: 1.909 MB / 482.7 MB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.123e-06/0.5969, allocations: 0 / 482.7 MB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.5988, allocations: 1.39 MB / 484.1 MB, free: 4.188 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.6001, allocations: 305.3 kB / 484.4 MB, free: 3.898 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.6053, allocations: 2.473 MB / 486.9 MB, free: 1.391 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.6068, allocations: 1.221 MB / 488.1 MB, free: 148 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004034/0.6072, allocations: 151 kB / 488.3 MB, free: 0 / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.6073, allocations: 31.48 kB / 488.3 MB, free: 15.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.735e-06/0.6073, allocations: 0 / 488.3 MB, free: 15.96 MB / 410.7 MB Notification: Performance of Templates: time 0.03455/0.6419, allocations: 16.65 MB / 0.4931 GB, free: 14.98 MB / 426.7 MB