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_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadModel(Modelica): time 2.313/2.313, allocations: 224.7 MB / 241.1 MB, free: 15.96 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.682e-05, allocations: 0 / 294.5 MB, free: 4.457 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 50.43 MB / 345 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003044/0.1091, allocations: 1.731 MB / 346.7 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.1125, allocations: 1.014 MB / 347.7 MB, free: 8.316 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1127, allocations: 15.94 kB / 347.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1129, allocations: 31.77 kB / 347.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.1131, allocations: 31.88 kB / 347.8 MB, free: 8.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.1136, allocations: 111.8 kB / 347.9 MB, free: 8.129 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.114, allocations: 196.1 kB / 348.1 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1143, allocations: 99.33 kB / 348.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008672/0.1152, allocations: 0.5108 MB / 348.7 MB, free: 7.324 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004121/0.1156, allocations: 239.6 kB / 348.9 MB, free: 7.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1158, allocations: 8 kB / 348.9 MB, free: 7.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.1159, allocations: 12 kB / 349 MB, free: 7.07 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.1161, allocations: 119.7 kB / 349.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.1163, allocations: 24 kB / 349.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009187/0.1173, allocations: 0.7714 MB / 349.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1173, allocations: 3.938 kB / 349.9 MB, free: 6.152 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1173, allocations: 0 / 349.9 MB, free: 6.152 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.1173, allocations: 0 / 349.9 MB, free: 6.152 MB / 282.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.001323/0.1187, allocations: 0.6944 MB / 350.6 MB, free: 5.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.1187, allocations: 8.031 kB / 350.6 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002722/0.119, allocations: 51.53 kB / 350.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007158/0.1198, allocations: 342.2 kB / 351 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.346e-05/0.1198, allocations: 28.66 kB / 351 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.12, allocations: 36 kB / 351 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1215, allocations: 485.7 kB / 351.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.1215, allocations: 3.953 kB / 351.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.1216, allocations: 19.98 kB / 351.5 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.1216, allocations: 12 kB / 351.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.123, allocations: 382.4 kB / 351.9 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002948/0.1259, allocations: 1.109 MB / 353 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.1278, allocations: 463.5 kB / 353.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.128, allocations: 12.23 kB / 353.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009928/0.129, allocations: 355 kB / 353.8 MB, free: 2.016 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 3.717e-06/0.129, allocations: 0 / 353.8 MB, free: 2.016 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.002416/0.1315, allocations: 0.7423 MB / 354.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.1316, allocations: 110.8 kB / 354.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.132, allocations: 273.6 kB / 354.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.1322, allocations: 37.7 kB / 355 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1324, allocations: 235.2 kB / 355.2 MB, free: 0.582 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.1325, allocations: 79.09 kB / 355.3 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-05/0.1326, allocations: 8 kB / 355.3 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1328, allocations: 330.8 kB / 355.6 MB, free: 168 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007211/0.1335, allocations: 180.9 kB / 355.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006977/0.1342, allocations: 244.5 kB / 356 MB, free: 15.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.135, allocations: 262 kB / 356.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.135, allocations: 0 / 356.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001917/0.1369, allocations: 0.6488 MB / 356.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.137, allocations: 63.39 kB / 357 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1371, allocations: 0 / 357 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.1371, allocations: 4 kB / 357 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.1373, allocations: 55.91 kB / 357.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.1374, allocations: 8 kB / 357.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.138, allocations: 59.73 kB / 357.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003995/0.1384, allocations: 279.7 kB / 357.4 MB, free: 14.33 MB / 298.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 (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.0005403/0.1389, allocations: 289 kB / 357.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.1391, allocations: 39.61 kB / 357.7 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.1392, allocations: 38.95 kB / 357.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1392, allocations: 4 kB / 357.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1392, allocations: 0 / 357.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1393, allocations: 0 / 357.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009084/0.1402, allocations: 481.2 kB / 358.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1402, allocations: 0 / 358.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.1404, allocations: 51.91 kB / 358.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.1404, allocations: 4 kB / 358.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/0.1406, allocations: 47.92 kB / 358.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/0.1406, allocations: 8 kB / 358.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1406, allocations: 0 / 358.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.1425, allocations: 0.61 MB / 359 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004756/0.143, allocations: 192.6 kB / 359.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.1432, allocations: 27.98 kB / 359.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.1437, allocations: 39.92 kB / 359.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.144, allocations: 83.91 kB / 359.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004017/0.1444, allocations: 291.5 kB / 359.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.1447, allocations: 198 kB / 359.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1447, allocations: 0 / 359.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006917/0.1454, allocations: 95.75 kB / 359.9 MB, free: 11.75 MB / 298.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 (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.0003438/0.1458, allocations: 145.8 kB / 360 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.1475, allocations: 0.5647 MB / 360.6 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1475, allocations: 0 / 360.6 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008468/0.1484, allocations: 354.6 kB / 360.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.1505, allocations: 281.3 kB / 361.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.1527, allocations: 0.8377 MB / 362 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.1533, allocations: 0.8075 MB / 362.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00175/0.155, allocations: 366.5 kB / 363.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of SimCode: time 1.293e-06/0.1551, allocations: 0 / 363.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of Templates: time 0.01689/0.172, allocations: 8.204 MB / 371.4 MB, free: 15.75 MB / 314.7 MB