Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadModel(Modelica): time 2.018/2.018, allocations: 194.9 MB / 211.2 MB, free: 8.836 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.17e-05, allocations: 3.984 kB / 258.8 MB, free: 9.199 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3114, allocations: 44.51 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003026/0.3144, allocations: 1.725 MB / 305 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.318, allocations: 1.035 MB / 306 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3182, allocations: 13.53 kB / 306.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.3184, allocations: 37 kB / 306.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.3186, allocations: 32.94 kB / 306.1 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.3192, allocations: 108.7 kB / 306.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004943/0.3197, allocations: 200.8 kB / 306.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/0.32, allocations: 96.77 kB / 306.5 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.321, allocations: 0.5067 MB / 307 MB, free: 9.984 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.3215, allocations: 238.7 kB / 307.3 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.3217, allocations: 12 kB / 307.3 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.3218, allocations: 12 kB / 307.3 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.3221, allocations: 123.7 kB / 307.4 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.3223, allocations: 20 kB / 307.4 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009549/0.3233, allocations: 0.7636 MB / 308.2 MB, free: 8.848 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3233, allocations: 0 / 308.2 MB, free: 8.848 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3233, allocations: 0 / 308.2 MB, free: 8.848 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.3233, allocations: 0 / 308.2 MB, free: 8.848 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001541/0.3249, allocations: 0.6873 MB / 308.9 MB, free: 8.102 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3249, allocations: 12.03 kB / 308.9 MB, free: 8.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.3252, allocations: 51.39 kB / 308.9 MB, free: 8.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007088/0.3259, allocations: 330.4 kB / 309.3 MB, free: 7.672 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.273e-05/0.326, allocations: 24.66 kB / 309.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.3261, allocations: 32 kB / 309.3 MB, free: 7.617 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.3276, allocations: 489.7 kB / 309.8 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3277, allocations: 3.984 kB / 309.8 MB, free: 7.129 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.773e-05/0.3278, allocations: 16 kB / 309.8 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.3278, allocations: 8 kB / 309.8 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3292, allocations: 386.3 kB / 310.2 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.3323, allocations: 1.1 MB / 311.3 MB, free: 5.574 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/0.3344, allocations: 470.5 kB / 311.8 MB, free: 5.105 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.3346, allocations: 4 kB / 311.8 MB, free: 5.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.3356, allocations: 341.2 kB / 312.1 MB, free: 4.758 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 4.108e-06/0.3356, allocations: 0 / 312.1 MB, free: 4.758 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002545/0.3382, allocations: 0.7315 MB / 312.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.3384, allocations: 118.8 kB / 312.9 MB, free: 3.867 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005012/0.3389, allocations: 269.6 kB / 313.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.3391, allocations: 45.7 kB / 313.3 MB, free: 3.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.3393, allocations: 231.1 kB / 313.5 MB, free: 3.324 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.3395, allocations: 79.08 kB / 313.6 MB, free: 3.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.398e-05/0.3396, allocations: 12 kB / 313.6 MB, free: 3.234 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3397, allocations: 322.8 kB / 313.9 MB, free: 2.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007286/0.3405, allocations: 180.6 kB / 314.1 MB, free: 2.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007335/0.3412, allocations: 237.4 kB / 314.3 MB, free: 2.484 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008031/0.3421, allocations: 257.8 kB / 314.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.3421, allocations: 4 kB / 314.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002033/0.3441, allocations: 0.6294 MB / 315.2 MB, free: 1.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.3443, allocations: 61.44 kB / 315.2 MB, free: 1.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3443, allocations: 4 kB / 315.2 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.119e-05/0.3443, allocations: 3.938 kB / 315.2 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.3446, allocations: 67.83 kB / 315.3 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.3446, allocations: 7.938 kB / 315.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005868/0.3452, allocations: 51.86 kB / 315.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004306/0.3456, allocations: 279.7 kB / 315.6 MB, free: 1.094 MB / 250.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[1],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,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],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,$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[2],FF.And3.auxiliary_n,FF.And4.x[1],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.x[1],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,$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 (46): * Single equations (assignments): 44 * 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.0006334/0.3463, allocations: 293 kB / 315.9 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3465, allocations: 31.62 kB / 316 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.3466, allocations: 38.95 kB / 316 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.3466, allocations: 4 kB / 316 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.3466, allocations: 3.953 kB / 316 MB, free: 0.707 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3466, allocations: 0 / 316 MB, free: 0.707 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009778/0.3476, allocations: 461.3 kB / 316.5 MB, free: 212 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3476, allocations: 0 / 316.5 MB, free: 212 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.3478, allocations: 51.91 kB / 316.5 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.3478, allocations: 0 / 316.5 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.348, allocations: 51.97 kB / 316.6 MB, free: 108 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.348, allocations: 4 kB / 316.6 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.348, allocations: 0 / 316.6 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/0.3499, allocations: 0.6102 MB / 317.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/0.3505, allocations: 200.6 kB / 317.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.3507, allocations: 16 kB / 317.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.3511, allocations: 35.97 kB / 317.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003434/0.3515, allocations: 83.84 kB / 317.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004146/0.3519, allocations: 283.7 kB / 317.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003623/0.3523, allocations: 194 kB / 318 MB, free: 14.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3523, allocations: 0 / 318 MB, free: 14.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007155/0.353, allocations: 107.7 kB / 318.1 MB, free: 14.54 MB / 266.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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * 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.0003124/0.3534, allocations: 137.8 kB / 318.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.3551, allocations: 0.556 MB / 318.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3551, allocations: 0 / 318.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008747/0.356, allocations: 354.5 kB / 319.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.3581, allocations: 279.3 kB / 319.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.3605, allocations: 0.82 MB / 320.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.361, allocations: 0.8191 MB / 321 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/0.3629, allocations: 362.5 kB / 321.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3629, allocations: 0 / 321.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01768/0.3806, allocations: 8.127 MB / 329.5 MB, free: 2.633 MB / 266.7 MB