Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.508e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09211, allocations: 50.43 MB / 342.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4603, allocations: 83.35 MB / 425.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.4606, allocations: 62.47 kB / 426 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08592/0.5465, allocations: 28.25 MB / 454.2 MB, free: 2.637 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.844e-06/0.5466, allocations: 4 kB / 454.2 MB, free: 2.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.5466, allocations: 15.88 kB / 454.2 MB, free: 2.617 MB / 362.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.001393/0.548, allocations: 0.9998 MB / 455.2 MB, free: 1.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.5481, allocations: 12.03 kB / 455.2 MB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.5483, allocations: 94.34 kB / 455.3 MB, free: 1.477 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007615/0.5491, allocations: 421.5 kB / 455.7 MB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.309e-05/0.5492, allocations: 18 kB / 455.8 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.511e-05/0.5493, allocations: 22.94 kB / 455.8 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.5503, allocations: 0.5079 MB / 456.3 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.5503, allocations: 0 / 456.3 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.537e-05/0.5504, allocations: 18.36 kB / 456.3 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.5505, allocations: 4 kB / 456.3 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007155/0.5512, allocations: 352 kB / 456.7 MB, free: 372 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.5529, allocations: 0.8734 MB / 457.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008254/0.5538, allocations: 0.4984 MB / 458 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008402/0.5547, allocations: 0.4941 MB / 458.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.5547, allocations: 0 / 458.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.5558, allocations: 0.64 MB / 459.2 MB, free: 14.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.348e-06/0.5558, allocations: 3.938 kB / 459.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002368/0.5582, allocations: 1.179 MB / 460.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002312/0.5585, allocations: 275.3 kB / 460.6 MB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.5606, allocations: 1.035 MB / 461.6 MB, free: 11.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.5607, allocations: 45.64 kB / 461.7 MB, free: 11.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.5609, allocations: 200.5 kB / 461.9 MB, free: 11.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.5611, allocations: 79.09 kB / 462 MB, free: 11.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.637e-05/0.5611, allocations: 12 kB / 462 MB, free: 11.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.5614, allocations: 326.9 kB / 462.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007399/0.5621, allocations: 348.2 kB / 462.6 MB, free: 10.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006968/0.5628, allocations: 350.9 kB / 463 MB, free: 10.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.5636, allocations: 0.4972 MB / 463.5 MB, free: 9.684 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.32e-06/0.5636, allocations: 0 / 463.5 MB, free: 9.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002143/0.5658, allocations: 1.094 MB / 464.6 MB, free: 8.539 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002464/0.566, allocations: 243.9 kB / 464.8 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.321e-06/0.5661, allocations: 7.891 kB / 464.8 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.5661, allocations: 0 / 464.8 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.366e-05/0.5661, allocations: 7.938 kB / 464.8 MB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.049e-06/0.5662, allocations: 0 / 464.8 MB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004468/0.5666, allocations: 39.88 kB / 464.9 MB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/0.5669, allocations: 160.1 kB / 465 MB, free: 8.047 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: 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.0005212/0.5674, allocations: 414 kB / 465.4 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.5676, allocations: 87.06 kB / 465.5 MB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004578/0.5681, allocations: 147.8 kB / 465.7 MB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.644e-06/0.5681, allocations: 3.953 kB / 465.7 MB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.758e-06/0.5681, allocations: 3.984 kB / 465.7 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.418e-06/0.5681, allocations: 0 / 465.7 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00364/0.5718, allocations: 1.962 MB / 467.6 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5718, allocations: 0 / 467.6 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.932e-05/0.5719, allocations: 3.938 kB / 467.6 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.5719, allocations: 7.953 kB / 467.6 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.914e-05/0.572, allocations: 35.97 kB / 467.7 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.719e-06/0.572, allocations: 0 / 467.7 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.246e-06/0.572, allocations: 4 kB / 467.7 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.5746, allocations: 1.365 MB / 469 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.5759, allocations: 0.5659 MB / 469.6 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002312/0.5761, allocations: 59.92 kB / 469.7 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.5766, allocations: 31.97 kB / 469.7 MB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000561/0.5772, allocations: 239.7 kB / 469.9 MB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000252/0.5774, allocations: 159.9 kB / 470.1 MB, free: 2.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001716/0.5792, allocations: 0.8578 MB / 470.9 MB, free: 1.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.39e-07/0.5792, allocations: 0 / 470.9 MB, free: 1.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006451/0.5798, allocations: 124 kB / 471.1 MB, free: 1.773 MB / 378.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.0003303/0.5802, allocations: 188.4 kB / 471.2 MB, free: 1.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.5826, allocations: 1.499 MB / 472.7 MB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5826, allocations: 3.938 kB / 472.8 MB, free: 15.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.5841, allocations: 1.113 MB / 473.9 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.5854, allocations: 277.4 kB / 474.1 MB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.5894, allocations: 1.802 MB / 475.9 MB, free: 12.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.5906, allocations: 1.042 MB / 477 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.5907, allocations: 15.44 kB / 477 MB, free: 11.59 MB / 394.7 MB Notification: Performance of SimCode: time 1.777e-06/0.5907, allocations: 0 / 477 MB, free: 11.59 MB / 394.7 MB Notification: Performance of Templates: time 0.01394/0.6046, allocations: 7.983 MB / 485 MB, free: 3.504 MB / 394.7 MB