Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.861e-05/2.883e-05, allocations: 4 kB / 255.4 MB, free: 2.699 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.07799, allocations: 44.5 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3386/0.4167, allocations: 77.87 MB / 377.8 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.4169, allocations: 67.36 kB / 377.8 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09239/0.5093, allocations: 27.92 MB / 405.7 MB, free: 17.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.449e-06/0.5094, allocations: 0 / 405.7 MB, free: 17.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.5094, allocations: 11.78 kB / 405.8 MB, free: 17.51 MB / 314.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.0009581/0.5104, allocations: 1.01 MB / 406.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.5104, allocations: 11.72 kB / 406.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.5106, allocations: 89.98 kB / 406.9 MB, free: 16.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005652/0.5112, allocations: 410.9 kB / 407.3 MB, free: 16.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/0.5113, allocations: 22.62 kB / 407.3 MB, free: 16.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.439e-05/0.5113, allocations: 27.47 kB / 407.3 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.5123, allocations: 0.5074 MB / 407.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.5123, allocations: 0 / 407.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.211e-05/0.5124, allocations: 19.39 kB / 407.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.945e-06/0.5124, allocations: 0 / 407.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006015/0.513, allocations: 355.9 kB / 408.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.5145, allocations: 0.8753 MB / 409.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000719/0.5152, allocations: 0.5036 MB / 409.6 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.5159, allocations: 0.4902 MB / 410.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.516, allocations: 3.969 kB / 410.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008868/0.5169, allocations: 0.6487 MB / 410.7 MB, free: 15.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.288e-06/0.5169, allocations: 0 / 410.7 MB, free: 15.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001921/0.5188, allocations: 1.175 MB / 411.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.519, allocations: 281.3 kB / 412.2 MB, free: 14.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.5206, allocations: 1.028 MB / 413.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.205e-05/0.5207, allocations: 44.97 kB / 413.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.856e-05/0.5209, allocations: 144.9 kB / 413.4 MB, free: 13.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.521, allocations: 85.17 kB / 413.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.97e-05/0.5211, allocations: 7.844 kB / 413.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.225e-05/0.5212, allocations: 340.8 kB / 413.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006206/0.5218, allocations: 355.4 kB / 414.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006081/0.5224, allocations: 354 kB / 414.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005884/0.523, allocations: 495.2 kB / 415 MB, free: 13.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.388e-06/0.5231, allocations: 0 / 415 MB, free: 13.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001877/0.5249, allocations: 1.123 MB / 416.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001645/0.5251, allocations: 243.9 kB / 416.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.362e-06/0.5252, allocations: 4 kB / 416.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.5252, allocations: 3.938 kB / 416.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.963e-05/0.5252, allocations: 3.906 kB / 416.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.848e-06/0.5252, allocations: 0 / 416.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.5257, allocations: 38.78 kB / 416.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.5259, allocations: 151.7 kB / 416.5 MB, free: 12.45 MB / 314.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.0003849/0.5263, allocations: 423.5 kB / 416.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.5264, allocations: 93.64 kB / 417 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004387/0.5269, allocations: 141.1 kB / 417.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.115e-06/0.5269, allocations: 0 / 417.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.66e-06/0.5269, allocations: 0 / 417.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.5269, allocations: 11.88 kB / 417.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.5305, allocations: 1.948 MB / 419.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.961e-06/0.5306, allocations: 4 kB / 419.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.838e-05/0.5306, allocations: 3.969 kB / 419.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.264e-06/0.5306, allocations: 0 / 419.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.13e-05/0.5307, allocations: 38.69 kB / 419.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.5307, allocations: 0 / 419.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.935e-06/0.5307, allocations: 0 / 419.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.5329, allocations: 1.384 MB / 420.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.534, allocations: 0.5594 MB / 421.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.5342, allocations: 60.41 kB / 421.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.5347, allocations: 43.33 kB / 421.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004623/0.5352, allocations: 238.3 kB / 421.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.5354, allocations: 160.2 kB / 421.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001489/0.5369, allocations: 0.8545 MB / 422.5 MB, free: 9.789 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.35e-07/0.5369, allocations: 3.906 kB / 422.5 MB, free: 9.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006465/0.5375, allocations: 120.3 kB / 422.6 MB, free: 9.789 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.000274/0.5378, allocations: 198 kB / 422.8 MB, free: 9.664 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.5396, allocations: 1.502 MB / 424.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.5396, allocations: 0 / 424.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.5408, allocations: 1.107 MB / 425.4 MB, free: 8.609 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.5422, allocations: 281.8 kB / 425.7 MB, free: 8.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.5455, allocations: 1.722 MB / 427.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000982/0.5466, allocations: 1.037 MB / 428.4 MB, free: 23.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.5468, allocations: 43.61 kB / 428.5 MB, free: 23.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.384e-05/0.5468, allocations: 14.53 kB / 428.5 MB, free: 23.04 MB / 330.7 MB Notification: Performance of SimCode: time 1.814e-06/0.5468, allocations: 0 / 428.5 MB, free: 23.04 MB / 330.7 MB Notification: Performance of Templates: time 0.02393/0.5708, allocations: 13.54 MB / 442 MB, free: 12.41 MB / 330.7 MB