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_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.783e-05, allocations: 4 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 44.5 MB / 299.9 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.4851, allocations: 78.16 MB / 378 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.4854, allocations: 72.3 kB / 378.1 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08871/0.5741, allocations: 32.75 MB / 410.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.523e-06/0.5742, allocations: 0 / 410.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.456e-05/0.5742, allocations: 19.47 kB / 410.9 MB, free: 15.14 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001643/0.5759, allocations: 1.29 MB / 412.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.5759, allocations: 11.81 kB / 412.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.5762, allocations: 128.7 kB / 412.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008242/0.577, allocations: 0.5131 MB / 412.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.5771, allocations: 22.25 kB / 412.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.5772, allocations: 30.91 kB / 412.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.5784, allocations: 0.6188 MB / 413.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.5785, allocations: 3.984 kB / 413.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.5786, allocations: 23.17 kB / 413.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.255e-06/0.5786, allocations: 7.906 kB / 413.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008256/0.5794, allocations: 461 kB / 414 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.5819, allocations: 1.086 MB / 415.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.5831, allocations: 0.6841 MB / 415.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009552/0.5841, allocations: 0.6734 MB / 416.4 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.5841, allocations: 3.875 kB / 416.4 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.5853, allocations: 0.7546 MB / 417.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.871e-06/0.5853, allocations: 0 / 417.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002397/0.5877, allocations: 1.414 MB / 418.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/0.5879, allocations: 329.9 kB / 418.9 MB, free: 11.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.5912, allocations: 1.599 MB / 420.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.5915, allocations: 44.33 kB / 420.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.5917, allocations: 231.5 kB / 420.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.5919, allocations: 89.02 kB / 420.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/0.592, allocations: 11.56 kB / 420.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.5922, allocations: 387.1 kB / 421.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008343/0.593, allocations: 458.3 kB / 421.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007897/0.5938, allocations: 449.3 kB / 422.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007306/0.5946, allocations: 0.576 MB / 422.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.895e-06/0.5946, allocations: 0 / 422.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002266/0.5969, allocations: 1.35 MB / 424.1 MB, free: 9.395 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.5971, allocations: 291.8 kB / 424.4 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.837e-06/0.5971, allocations: 0 / 424.4 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.5972, allocations: 0 / 424.4 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.599e-05/0.5972, allocations: 11.69 kB / 424.4 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.071e-06/0.5972, allocations: 0 / 424.4 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.5977, allocations: 55.02 kB / 424.4 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/0.598, allocations: 149.5 kB / 424.6 MB, free: 9.082 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: 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.0004552/0.5984, allocations: 470.9 kB / 425 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.5987, allocations: 130.9 kB / 425.2 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007796/0.5995, allocations: 250.8 kB / 425.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.804e-06/0.5995, allocations: 0 / 425.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.12e-06/0.5995, allocations: 7.984 kB / 425.4 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.163e-06/0.5995, allocations: 3.219 kB / 425.4 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004152/0.6037, allocations: 2.391 MB / 427.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.18e-06/0.6037, allocations: 0 / 427.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.359e-05/0.6038, allocations: 3.875 kB / 427.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.249e-06/0.6038, allocations: 0 / 427.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.6039, allocations: 39.55 kB / 427.9 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.833e-06/0.6039, allocations: 11.77 kB / 427.9 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.857e-06/0.6039, allocations: 3.984 kB / 427.9 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.6066, allocations: 1.612 MB / 429.5 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/0.6082, allocations: 0.6787 MB / 430.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.6085, allocations: 66.3 kB / 430.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.6091, allocations: 48.56 kB / 430.3 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006899/0.6098, allocations: 353.1 kB / 430.6 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/0.61, allocations: 158.1 kB / 430.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002688/0.6127, allocations: 1.318 MB / 432.1 MB, free: 5.766 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.116e-06/0.6128, allocations: 0 / 432.1 MB, free: 5.766 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008229/0.6136, allocations: 148.9 kB / 432.2 MB, free: 5.766 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.0002993/0.6139, allocations: 192.5 kB / 432.4 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002335/0.6163, allocations: 1.918 MB / 434.3 MB, free: 5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.528e-06/0.6163, allocations: 0 / 434.3 MB, free: 5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.6178, allocations: 1.388 MB / 435.7 MB, free: 3.766 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.6193, allocations: 309.4 kB / 436 MB, free: 3.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004834/0.6241, allocations: 2.476 MB / 438.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001386/0.6256, allocations: 1.217 MB / 439.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003871/0.626, allocations: 155 kB / 439.9 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.626, allocations: 27.44 kB / 439.9 MB, free: 15.54 MB / 330.7 MB Notification: Performance of SimCode: time 2.117e-06/0.6261, allocations: 0 / 439.9 MB, free: 15.54 MB / 330.7 MB Notification: Performance of Templates: time 0.03541/0.6615, allocations: 16.66 MB / 456.6 MB, free: 14.49 MB / 346.7 MB