Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.768e-05/2.783e-05, allocations: 0 / 292.1 MB, free: 8.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09188, allocations: 50.41 MB / 342.5 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.4603, allocations: 83.68 MB / 426.2 MB, free: 10.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4605, allocations: 70.09 kB / 426.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1346/0.5951, allocations: 43.38 MB / 469.7 MB, free: 4.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.046e-06/0.5952, allocations: 0 / 469.7 MB, free: 4.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.811e-05/0.5952, allocations: 8 kB / 469.7 MB, free: 4.043 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001219/0.5964, allocations: 0.6897 MB / 470.4 MB, free: 3.289 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.5965, allocations: 12.03 kB / 470.4 MB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.5967, allocations: 47.44 kB / 470.4 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006781/0.5974, allocations: 347.2 kB / 470.8 MB, free: 2.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.5975, allocations: 28.78 kB / 470.8 MB, free: 2.824 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.5976, allocations: 35.98 kB / 470.8 MB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.5987, allocations: 465.9 kB / 471.3 MB, free: 2.328 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.5988, allocations: 4 kB / 471.3 MB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.812e-05/0.5989, allocations: 23.89 kB / 471.3 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.5989, allocations: 8 kB / 471.3 MB, free: 2.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008952/0.5998, allocations: 353.4 kB / 471.7 MB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.6022, allocations: 1.07 MB / 472.7 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.6034, allocations: 399.4 kB / 473.1 MB, free: 432 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003898/0.6038, allocations: 157.4 kB / 473.3 MB, free: 272 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-05/0.6039, allocations: 12.23 kB / 473.3 MB, free: 260 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006828/0.6046, allocations: 319.3 kB / 473.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.85e-06/0.6046, allocations: 0 / 473.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.001302/0.606, allocations: 0.5276 MB / 474.1 MB, free: 15.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.566e-05/0.6061, allocations: 114.8 kB / 474.2 MB, free: 15.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.6065, allocations: 270.8 kB / 474.5 MB, free: 14.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.048e-05/0.6066, allocations: 37.7 kB / 474.5 MB, free: 14.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.6068, allocations: 231.2 kB / 474.8 MB, free: 14.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.607, allocations: 86.98 kB / 474.8 MB, free: 14.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/0.6071, allocations: 8 kB / 474.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.6073, allocations: 326.8 kB / 475.2 MB, free: 14.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/0.6077, allocations: 156.8 kB / 475.3 MB, free: 14.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.6082, allocations: 215.7 kB / 475.5 MB, free: 13.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.6087, allocations: 251.7 kB / 475.8 MB, free: 13.65 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.211e-06/0.6088, allocations: 0 / 475.8 MB, free: 13.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001378/0.6101, allocations: 0.5892 MB / 476.4 MB, free: 13.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.032e-05/0.6102, allocations: 59.41 kB / 476.4 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.6103, allocations: 0 / 476.4 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.6103, allocations: 7.984 kB / 476.4 MB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.6105, allocations: 59.91 kB / 476.5 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.946e-06/0.6105, allocations: 0 / 476.5 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.6111, allocations: 55.75 kB / 476.6 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/0.6114, allocations: 283.7 kB / 476.8 MB, free: 12.58 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0003163/0.6118, allocations: 216.2 kB / 477 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.6119, allocations: 31.67 kB / 477.1 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.612, allocations: 39.08 kB / 477.1 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.559e-06/0.612, allocations: 4 kB / 477.1 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.98e-06/0.6121, allocations: 0 / 477.1 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.167e-06/0.6121, allocations: 0 / 477.1 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000828/0.6129, allocations: 469.2 kB / 477.6 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.493e-06/0.6129, allocations: 0 / 477.6 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.6131, allocations: 47.91 kB / 477.6 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.627e-06/0.6131, allocations: 3.984 kB / 477.6 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/0.6132, allocations: 47.94 kB / 477.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.782e-06/0.6133, allocations: 0 / 477.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6133, allocations: 4 kB / 477.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.6146, allocations: 0.5637 MB / 478.2 MB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.6149, allocations: 196.6 kB / 478.4 MB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.6151, allocations: 23.98 kB / 478.5 MB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.6155, allocations: 43.83 kB / 478.5 MB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.6158, allocations: 79.91 kB / 478.6 MB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003626/0.6161, allocations: 283.7 kB / 478.9 MB, free: 10.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002984/0.6165, allocations: 207 kB / 479.1 MB, free: 10.24 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.083e-06/0.6165, allocations: 0 / 479.1 MB, free: 10.24 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005877/0.6171, allocations: 84 kB / 479.1 MB, free: 10.16 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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.0002539/0.6174, allocations: 133.4 kB / 479.3 MB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.6185, allocations: 0.5102 MB / 479.8 MB, free: 9.484 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.73e-06/0.6185, allocations: 4 kB / 479.8 MB, free: 9.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005973/0.6191, allocations: 330.6 kB / 480.1 MB, free: 9.133 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.6205, allocations: 293.3 kB / 480.4 MB, free: 8.859 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.622, allocations: 0.5672 MB / 481 MB, free: 8.262 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.6226, allocations: 0.8199 MB / 481.8 MB, free: 7.418 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/0.6241, allocations: 358.5 kB / 482.1 MB, free: 7.066 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/0.6241, allocations: 0 / 482.1 MB, free: 7.066 MB / 394.7 MB Notification: Performance of Templates: time 0.01396/0.6381, allocations: 8.11 MB / 490.2 MB, free: 14.6 MB / 410.7 MB