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.1_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.354e-05/3.387e-05, allocations: 7.984 kB / 228.1 MB, free: 8 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.08921, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003044/0.09231, allocations: 1.722 MB / 268.6 MB, free: 15.39 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003348/0.09572, allocations: 1.018 MB / 269.6 MB, free: 14.37 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.09596, allocations: 8 kB / 269.6 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001941/0.09616, allocations: 35.75 kB / 269.7 MB, free: 14.33 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.09634, allocations: 35.88 kB / 269.7 MB, free: 14.29 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005348/0.09689, allocations: 107.8 kB / 269.8 MB, free: 14.19 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.09732, allocations: 204.1 kB / 270 MB, free: 13.98 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.09761, allocations: 95.33 kB / 270.1 MB, free: 13.89 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009483/0.09858, allocations: 0.507 MB / 270.6 MB, free: 13.38 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004278/0.09903, allocations: 235.6 kB / 270.9 MB, free: 13.15 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.09917, allocations: 8 kB / 270.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.09932, allocations: 12 kB / 270.9 MB, free: 13.13 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000252/0.09958, allocations: 127.6 kB / 271 MB, free: 13.01 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.09977, allocations: 20 kB / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009514/0.1007, allocations: 0.7675 MB / 271.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1008, allocations: 0 / 271.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1008, allocations: 0 / 271.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.1008, allocations: 0 / 271.8 MB, free: 12.22 MB / 234.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.00142/0.1022, allocations: 0.6857 MB / 272.5 MB, free: 11.47 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.1023, allocations: 12.03 kB / 272.5 MB, free: 11.46 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.1025, allocations: 43.53 kB / 272.5 MB, free: 11.42 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000713/0.1032, allocations: 342.2 kB / 272.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.1033, allocations: 24.66 kB / 272.9 MB, free: 11.02 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.1035, allocations: 36 kB / 272.9 MB, free: 10.99 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.105, allocations: 485.8 kB / 273.4 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.1051, allocations: 0 / 273.4 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1052, allocations: 16 kB / 273.4 MB, free: 10.49 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.1052, allocations: 8 kB / 273.4 MB, free: 10.48 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.1066, allocations: 378.4 kB / 273.8 MB, free: 10.11 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003008/0.1096, allocations: 1.108 MB / 274.9 MB, free: 8.953 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.1117, allocations: 474.7 kB / 275.4 MB, free: 8.48 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.1118, allocations: 4 kB / 275.4 MB, free: 8.477 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.1129, allocations: 345.2 kB / 275.7 MB, free: 8.125 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 8.496e-06/0.1129, allocations: 4 kB / 275.7 MB, free: 8.121 MB / 234.7 MB Notification: Performance of matching and sorting (n=33): time 0.00248/0.1154, allocations: 0.7284 MB / 276.4 MB, free: 7.375 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.1155, allocations: 114.8 kB / 276.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004982/0.116, allocations: 277.6 kB / 276.8 MB, free: 6.965 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.1162, allocations: 41.7 kB / 276.9 MB, free: 6.918 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.1164, allocations: 223.2 kB / 277.1 MB, free: 6.695 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.1166, allocations: 83.08 kB / 277.2 MB, free: 6.613 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/0.1167, allocations: 8 kB / 277.2 MB, free: 6.605 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1169, allocations: 330.8 kB / 277.5 MB, free: 6.273 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006967/0.1176, allocations: 184.6 kB / 277.7 MB, free: 6.09 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000715/0.1183, allocations: 237.4 kB / 277.9 MB, free: 5.844 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007742/0.1191, allocations: 255.3 kB / 278.1 MB, free: 5.582 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1191, allocations: 0 / 278.1 MB, free: 5.582 MB / 234.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001931/0.121, allocations: 0.6236 MB / 278.8 MB, free: 4.941 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.764e-05/0.1212, allocations: 68.95 kB / 278.8 MB, free: 4.863 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1212, allocations: 4.031 kB / 278.8 MB, free: 4.859 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.1212, allocations: 4 kB / 278.8 MB, free: 4.855 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.1215, allocations: 55.91 kB / 278.9 MB, free: 4.801 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.1215, allocations: 4 kB / 278.9 MB, free: 4.797 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.1221, allocations: 55.7 kB / 279 MB, free: 4.742 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004819/0.1226, allocations: 279.7 kB / 279.2 MB, free: 4.469 MB / 234.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.0005841/0.1232, allocations: 297 kB / 279.5 MB, free: 4.156 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1233, allocations: 27.72 kB / 279.5 MB, free: 4.129 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.1234, allocations: 34.95 kB / 279.6 MB, free: 4.094 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1235, allocations: 4 kB / 279.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.1235, allocations: 0 / 279.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1235, allocations: 0 / 279.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009366/0.1244, allocations: 477.1 kB / 280.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1245, allocations: 0 / 280.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.1246, allocations: 47.97 kB / 280.1 MB, free: 3.527 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.1246, allocations: 0 / 280.1 MB, free: 3.527 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.1248, allocations: 51.97 kB / 280.1 MB, free: 3.477 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1248, allocations: 3.938 kB / 280.2 MB, free: 3.473 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1248, allocations: 0 / 280.2 MB, free: 3.473 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.1266, allocations: 0.6102 MB / 280.8 MB, free: 2.832 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004571/0.1271, allocations: 188.8 kB / 280.9 MB, free: 2.629 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.1273, allocations: 19.94 kB / 281 MB, free: 2.609 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004172/0.1277, allocations: 39.88 kB / 281 MB, free: 2.57 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/0.1281, allocations: 79.91 kB / 281.1 MB, free: 2.492 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004082/0.1285, allocations: 279.7 kB / 281.4 MB, free: 2.219 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0003243/0.1288, allocations: 205.9 kB / 281.6 MB, free: 2.016 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1288, allocations: 0 / 281.6 MB, free: 2.016 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000653/0.1295, allocations: 103.7 kB / 281.7 MB, free: 1.914 MB / 234.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.0003033/0.1298, allocations: 145.8 kB / 281.8 MB, free: 1.766 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.1316, allocations: 0.557 MB / 282.4 MB, free: 1.184 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.1316, allocations: 0 / 282.4 MB, free: 1.184 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008651/0.1325, allocations: 362.5 kB / 282.7 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.1346, allocations: 274.8 kB / 283 MB, free: 0.543 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.1367, allocations: 0.8123 MB / 283.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.1373, allocations: 0.8191 MB / 284.6 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/0.1391, allocations: 362.5 kB / 285 MB, free: 14.49 MB / 250.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1391, allocations: 0 / 285 MB, free: 14.49 MB / 250.7 MB Notification: Performance of Templates: time 0.01738/0.1565, allocations: 8.131 MB / 293.1 MB, free: 6 MB / 250.7 MB