Running command: translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,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.Multiplexer") Notification: Performance of loadModel(Modelica): time 2.284/2.284, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.221e-05, allocations: 0 / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1131, allocations: 50.42 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Multiplexer): time 0.003416/0.1166, allocations: 2.164 MB / 347.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.1204, allocations: 1.146 MB / 348.3 MB, free: 5.613 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003465/0.1208, allocations: 27.94 kB / 348.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002475/0.1211, allocations: 47.61 kB / 348.4 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.1213, allocations: 51.83 kB / 348.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006741/0.122, allocations: 163.7 kB / 348.6 MB, free: 5.328 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006395/0.1227, allocations: 320.5 kB / 348.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004198/0.1231, allocations: 179.5 kB / 349.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.1243, allocations: 0.6122 MB / 349.7 MB, free: 4.223 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007412/0.1251, allocations: 439.3 kB / 350.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002438/0.1253, allocations: 16 kB / 350.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002466/0.1256, allocations: 16 kB / 350.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004289/0.126, allocations: 215.5 kB / 350.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003348/0.1264, allocations: 36 kB / 350.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.128, allocations: 1.364 MB / 351.7 MB, free: 2.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.128, allocations: 0 / 351.7 MB, free: 2.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.128, allocations: 0 / 351.7 MB, free: 2.148 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.197e-05/0.1281, allocations: 3.938 kB / 351.7 MB, free: 2.145 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002108/0.1302, allocations: 0.9659 MB / 352.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.1302, allocations: 12.02 kB / 352.7 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003819/0.1306, allocations: 75.16 kB / 352.8 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.1317, allocations: 457 kB / 353.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.141e-05/0.1319, allocations: 41.31 kB / 353.3 MB, free: 496 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.1321, allocations: 63.94 kB / 353.3 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.1346, allocations: 0.83 MB / 354.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.1347, allocations: 3.953 kB / 354.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001717/0.1349, allocations: 24 kB / 354.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.1349, allocations: 12 kB / 354.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002241/0.1372, allocations: 0.6415 MB / 354.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005106/0.1423, allocations: 1.744 MB / 356.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002042/0.1444, allocations: 0.6185 MB / 357.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/0.1447, allocations: 4.562 kB / 357.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.1463, allocations: 0.5767 MB / 357.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 4.398e-06/0.1463, allocations: 4 kB / 357.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.004061/0.1504, allocations: 1.334 MB / 359.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.1506, allocations: 196.5 kB / 359.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000684/0.1513, allocations: 368.3 kB / 359.7 MB, free: 9.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002573/0.1515, allocations: 49.7 kB / 359.7 MB, free: 9.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.1518, allocations: 283.3 kB / 360 MB, free: 9.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.1521, allocations: 138.4 kB / 360.1 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.1523, allocations: 20 kB / 360.2 MB, free: 9.426 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1525, allocations: 334.8 kB / 360.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.1536, allocations: 317.1 kB / 360.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.1547, allocations: 396.3 kB / 361.2 MB, free: 8.375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.1561, allocations: 484.2 kB / 361.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.1561, allocations: 0 / 361.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003342/0.1595, allocations: 1.13 MB / 362.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.1597, allocations: 148.5 kB / 362.9 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1597, allocations: 4 kB / 362.9 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.1597, allocations: 4 kB / 362.9 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.1602, allocations: 111.8 kB / 363.1 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.73e-05/0.1602, allocations: 8.062 kB / 363.1 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009112/0.1611, allocations: 83.62 kB / 363.1 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008691/0.162, allocations: 0.5619 MB / 363.7 MB, free: 5.758 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,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,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.x[1],MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.x[3],MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,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,Enable.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 5 * 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.0009369/0.163, allocations: 454 kB / 364.1 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.1633, allocations: 55.42 kB / 364.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.1634, allocations: 56.7 kB / 364.3 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.1634, allocations: 4 kB / 364.3 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.1635, allocations: 0 / 364.3 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.1635, allocations: 3.984 kB / 364.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.165, allocations: 0.6772 MB / 364.9 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1651, allocations: 4 kB / 364.9 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.1654, allocations: 103.8 kB / 365 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.1655, allocations: 0 / 365 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002425/0.1657, allocations: 87.95 kB / 365.1 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.1657, allocations: 4 kB / 365.1 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1657, allocations: 160 / 365.1 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003185/0.1689, allocations: 1.091 MB / 366.2 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007998/0.1698, allocations: 268.4 kB / 366.5 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003351/0.1701, allocations: 24 kB / 366.5 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006924/0.1708, allocations: 67.8 kB / 366.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005295/0.1714, allocations: 160.4 kB / 366.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008772/0.1723, allocations: 0.5658 MB / 367.3 MB, free: 2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004689/0.1728, allocations: 251.2 kB / 367.5 MB, free: 1.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1728, allocations: 0 / 367.5 MB, free: 1.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001021/0.1738, allocations: 167.6 kB / 367.7 MB, free: 1.594 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: 56 ($whenCondition1,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.x[1],MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.x[3],MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,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,Enable.y) * Number of discrete states: 23 (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,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,Enable.y,D3.y,D2.y,D1.y,D0.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 5 * 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.0004044/0.1742, allocations: 168.9 kB / 367.9 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.1771, allocations: 1.071 MB / 368.9 MB, free: 292 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.1772, allocations: 0.5625 kB / 368.9 MB, free: 292 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.1789, allocations: 0.6992 MB / 369.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/0.1825, allocations: 485.2 kB / 370.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.1861, allocations: 1.312 MB / 371.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007479/0.1869, allocations: 0.9064 MB / 372.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003529/0.1905, allocations: 0.6735 MB / 373 MB, free: 12.11 MB / 314.7 MB Notification: Performance of SimCode: time 1.553e-06/0.1905, allocations: 4 kB / 373 MB, free: 12.11 MB / 314.7 MB Notification: Performance of Templates: time 0.03066/0.2212, allocations: 14.55 MB / 387.6 MB, free: 12.83 MB / 330.7 MB