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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.66e-05/3.67e-05, allocations: 11.92 kB / 292.1 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09031, allocations: 50.41 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4915/0.5819, allocations: 83.29 MB / 425.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.5821, allocations: 70.33 kB / 425.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1171/0.6993, allocations: 38.04 MB / 464 MB, free: 9.398 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6993, allocations: 0 / 464 MB, free: 9.398 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.91e-05/0.6994, allocations: 12 kB / 464 MB, free: 9.387 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001308/0.7007, allocations: 1.008 MB / 465 MB, free: 8.289 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.7007, allocations: 8.031 kB / 465 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.701, allocations: 90.97 kB / 465.1 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007446/0.7017, allocations: 419.6 kB / 465.5 MB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.7018, allocations: 19.98 kB / 465.5 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.435e-05/0.7019, allocations: 24 kB / 465.5 MB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.703, allocations: 0.5022 MB / 466 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.703, allocations: 3.953 kB / 466 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.7031, allocations: 12 kB / 466 MB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.057e-06/0.7031, allocations: 8 kB / 466.1 MB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.7039, allocations: 360.1 kB / 466.4 MB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.7056, allocations: 0.8651 MB / 467.3 MB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008795/0.7065, allocations: 0.4984 MB / 467.8 MB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008455/0.7074, allocations: 0.4889 MB / 468.3 MB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.7074, allocations: 4 kB / 468.3 MB, free: 4.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.7086, allocations: 0.6516 MB / 468.9 MB, free: 4.203 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.678e-06/0.7086, allocations: 0 / 468.9 MB, free: 4.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002366/0.711, allocations: 1.175 MB / 470.1 MB, free: 2.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002314/0.7112, allocations: 287.3 kB / 470.4 MB, free: 2.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/0.7133, allocations: 1.027 MB / 471.4 MB, free: 1.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.7135, allocations: 41.7 kB / 471.4 MB, free: 1.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.7136, allocations: 150 kB / 471.6 MB, free: 1.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.7138, allocations: 75.16 kB / 471.7 MB, free: 1.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.7139, allocations: 12 kB / 471.7 MB, free: 1.324 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.7141, allocations: 346.8 kB / 472 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007163/0.7148, allocations: 360.1 kB / 472.4 MB, free: 0.625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006896/0.7155, allocations: 348.5 kB / 472.7 MB, free: 292 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007651/0.7163, allocations: 497.2 kB / 473.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.6e-06/0.7163, allocations: 0 / 473.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002204/0.7185, allocations: 1.114 MB / 474.3 MB, free: 14.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002443/0.7188, allocations: 243.9 kB / 474.5 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.7188, allocations: 3.984 kB / 474.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.7189, allocations: 0 / 474.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.44e-05/0.7189, allocations: 7.891 kB / 474.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.7189, allocations: 4 kB / 474.6 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.7194, allocations: 47.81 kB / 474.6 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002386/0.7196, allocations: 152.2 kB / 474.7 MB, free: 14.1 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: 40 ($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,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,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.0005013/0.7202, allocations: 405.8 kB / 475.1 MB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.7204, allocations: 91.05 kB / 475.2 MB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004501/0.7208, allocations: 155.7 kB / 475.4 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.704e-06/0.7208, allocations: 4 kB / 475.4 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.7209, allocations: 7.953 kB / 475.4 MB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.213e-06/0.7209, allocations: 0 / 475.4 MB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.7245, allocations: 1.958 MB / 477.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.355e-06/0.7245, allocations: 0 / 477.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.704e-05/0.7246, allocations: 0 / 477.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.365e-06/0.7246, allocations: 0 / 477.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.7247, allocations: 35.98 kB / 477.4 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.345e-06/0.7247, allocations: 3.953 kB / 477.4 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.267e-06/0.7247, allocations: 8 kB / 477.4 MB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.7273, allocations: 1.369 MB / 478.8 MB, free: 9.859 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.7286, allocations: 0.5543 MB / 479.3 MB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002895/0.7289, allocations: 63.95 kB / 479.4 MB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.7294, allocations: 31.92 kB / 479.4 MB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005617/0.7299, allocations: 239.7 kB / 479.7 MB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002435/0.7302, allocations: 163.9 kB / 479.8 MB, free: 8.797 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001777/0.732, allocations: 0.8539 MB / 480.7 MB, free: 7.949 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.77e-07/0.732, allocations: 0 / 480.7 MB, free: 7.949 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006838/0.7327, allocations: 128 kB / 480.8 MB, free: 7.824 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: 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.0003308/0.7331, allocations: 184.4 kB / 481 MB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004068/0.7371, allocations: 1.511 MB / 482.5 MB, free: 6.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.7372, allocations: 3.938 kB / 482.5 MB, free: 6.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002601/0.7398, allocations: 1.105 MB / 483.6 MB, free: 4.844 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.7423, allocations: 280.1 kB / 483.9 MB, free: 4.574 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006239/0.7486, allocations: 1.718 MB / 485.6 MB, free: 2.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.7504, allocations: 1.042 MB / 486.6 MB, free: 1.758 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003063/0.7507, allocations: 41.48 kB / 486.7 MB, free: 1.719 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.7508, allocations: 19.44 kB / 486.7 MB, free: 1.699 MB / 394.7 MB Notification: Performance of SimCode: time 2.108e-06/0.7508, allocations: 0 / 486.7 MB, free: 1.699 MB / 394.7 MB Notification: Performance of Templates: time 0.03477/0.7856, allocations: 13.53 MB / 0.4885 GB, free: 3.992 MB / 410.7 MB