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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.172/2.172, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.732e-05, allocations: 4 kB / 292.1 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.08977, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3646/0.4544, allocations: 83.5 MB / 426.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.4547, allocations: 71.45 kB / 426.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09921/0.5539, allocations: 31.54 MB / 457.7 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.467e-06/0.554, allocations: 0 / 457.7 MB, free: 15.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.026e-05/0.554, allocations: 12 kB / 457.7 MB, free: 15.71 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.001878/0.5559, allocations: 1.303 MB / 459 MB, free: 14.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.556, allocations: 12.03 kB / 459 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002679/0.5563, allocations: 130.5 kB / 459.1 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009598/0.5572, allocations: 0.509 MB / 459.6 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-05/0.5573, allocations: 27.94 kB / 459.7 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.5575, allocations: 31.94 kB / 459.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.5588, allocations: 0.6105 MB / 460.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.5588, allocations: 3.938 kB / 460.3 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.763e-05/0.5589, allocations: 16 kB / 460.3 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.559, allocations: 4 kB / 460.3 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009545/0.5599, allocations: 459.7 kB / 460.8 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.5623, allocations: 1.096 MB / 461.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.5635, allocations: 0.6936 MB / 462.6 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.5647, allocations: 0.6727 MB / 463.2 MB, free: 9.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.5647, allocations: 4 kB / 463.2 MB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.566, allocations: 0.7502 MB / 464 MB, free: 9.145 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.944e-06/0.5661, allocations: 0 / 464 MB, free: 9.145 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002831/0.5689, allocations: 1.407 MB / 465.4 MB, free: 7.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002791/0.5692, allocations: 328.9 kB / 465.7 MB, free: 7.297 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003455/0.5727, allocations: 1.61 MB / 467.3 MB, free: 5.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.5729, allocations: 41.7 kB / 467.4 MB, free: 5.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.5732, allocations: 226.5 kB / 467.6 MB, free: 5.398 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.5734, allocations: 91.12 kB / 467.7 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.5735, allocations: 15.94 kB / 467.7 MB, free: 5.293 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.5738, allocations: 382.7 kB / 468.1 MB, free: 4.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009227/0.5748, allocations: 452 kB / 468.5 MB, free: 4.465 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00089/0.5757, allocations: 455.9 kB / 468.9 MB, free: 4.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009119/0.5766, allocations: 0.5872 MB / 469.5 MB, free: 3.383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.689e-06/0.5766, allocations: 3.953 kB / 469.5 MB, free: 3.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002614/0.5792, allocations: 1.347 MB / 470.9 MB, free: 1.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002968/0.5796, allocations: 285.5 kB / 471.2 MB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.5796, allocations: 3.984 kB / 471.2 MB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.5796, allocations: 4 kB / 471.2 MB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.011e-05/0.5797, allocations: 0 / 471.2 MB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.218e-06/0.5797, allocations: 0 / 471.2 MB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/0.5802, allocations: 47.91 kB / 471.2 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002519/0.5805, allocations: 155.9 kB / 471.4 MB, free: 1.441 MB / 378.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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,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.0005976/0.5811, allocations: 466.5 kB / 471.8 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.5814, allocations: 138.4 kB / 472 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007538/0.5821, allocations: 247.7 kB / 472.2 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.524e-06/0.5821, allocations: 0 / 472.2 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.984e-06/0.5822, allocations: 0 / 472.2 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.593e-06/0.5822, allocations: 7.984 kB / 472.2 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004504/0.5867, allocations: 2.392 MB / 474.6 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5867, allocations: 0 / 474.6 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.479e-05/0.5868, allocations: 7.938 kB / 474.6 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.159e-06/0.5868, allocations: 0 / 474.6 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.5869, allocations: 39.98 kB / 474.6 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.842e-06/0.5869, allocations: 0 / 474.6 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.138e-06/0.5869, allocations: 4 kB / 474.7 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003/0.5899, allocations: 1.629 MB / 476.3 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/0.5916, allocations: 0.6785 MB / 477 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.5919, allocations: 59.97 kB / 477 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005288/0.5925, allocations: 43.95 kB / 477.1 MB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008004/0.5933, allocations: 351.7 kB / 477.4 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002723/0.5936, allocations: 163.8 kB / 477.6 MB, free: 10.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002911/0.5965, allocations: 1.319 MB / 478.9 MB, free: 9.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.37e-07/0.5966, allocations: 0 / 478.9 MB, free: 9.656 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008704/0.5974, allocations: 152 kB / 479 MB, free: 9.508 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,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.0003547/0.5978, allocations: 189.7 kB / 479.2 MB, free: 9.312 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00296/0.6008, allocations: 1.905 MB / 481.1 MB, free: 7.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.663e-06/0.6008, allocations: 4 kB / 481.1 MB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.6027, allocations: 1.39 MB / 482.5 MB, free: 5.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.6041, allocations: 312.2 kB / 482.8 MB, free: 5.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.6098, allocations: 2.464 MB / 485.3 MB, free: 3.016 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001531/0.6114, allocations: 1.225 MB / 486.5 MB, free: 1.766 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004873/0.6119, allocations: 198.9 kB / 486.7 MB, free: 1.574 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.612, allocations: 27.44 kB / 486.7 MB, free: 1.547 MB / 394.7 MB Notification: Performance of SimCode: time 2.32e-06/0.612, allocations: 0 / 486.7 MB, free: 1.547 MB / 394.7 MB Notification: Performance of Templates: time 0.03515/0.6471, allocations: 16.65 MB / 0.4916 GB, free: 0.5703 MB / 410.7 MB