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_3.2.2_cpp_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadModel(Modelica): time 2.231/2.231, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.058e-05/3.056e-05, allocations: 4 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3455, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Multiplexer): time 0.003558/0.3492, allocations: 2.148 MB / 305.4 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.3531, allocations: 1.175 MB / 306.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.3536, allocations: 17.41 kB / 306.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002739/0.3539, allocations: 57.72 kB / 306.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.3541, allocations: 52.28 kB / 306.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/0.3549, allocations: 150.1 kB / 306.9 MB, free: 9.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007409/0.3556, allocations: 337.3 kB / 307.2 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004266/0.3561, allocations: 172.1 kB / 307.4 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001262/0.3573, allocations: 0.6161 MB / 308 MB, free: 8.988 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008093/0.3582, allocations: 439.3 kB / 308.4 MB, free: 8.559 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.3584, allocations: 16 kB / 308.4 MB, free: 8.543 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.3587, allocations: 16 kB / 308.5 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004114/0.3591, allocations: 207.5 kB / 308.7 MB, free: 8.324 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.3595, allocations: 36 kB / 308.7 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.3611, allocations: 1.354 MB / 310 MB, free: 6.934 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3612, allocations: 0 / 310 MB, free: 6.934 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3612, allocations: 0 / 310 MB, free: 6.934 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.958e-05/0.3612, allocations: 4 kB / 310 MB, free: 6.93 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002272/0.3635, allocations: 0.9647 MB / 311 MB, free: 5.891 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/0.3636, allocations: 12.02 kB / 311 MB, free: 5.879 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004288/0.364, allocations: 79.11 kB / 311.1 MB, free: 5.801 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.3652, allocations: 449.1 kB / 311.5 MB, free: 5.32 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.53e-05/0.3653, allocations: 45.31 kB / 311.6 MB, free: 5.277 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.3655, allocations: 60 kB / 311.6 MB, free: 5.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.3681, allocations: 0.83 MB / 312.5 MB, free: 4.379 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.3682, allocations: 0 / 312.5 MB, free: 4.379 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.3684, allocations: 24 kB / 312.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.3684, allocations: 12 kB / 312.5 MB, free: 4.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/0.3707, allocations: 0.6492 MB / 313.2 MB, free: 3.695 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005206/0.376, allocations: 1.724 MB / 314.9 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002051/0.3781, allocations: 0.6147 MB / 315.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.3784, allocations: 4.562 kB / 315.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001557/0.3799, allocations: 0.5766 MB / 316.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 4.729e-06/0.38, allocations: 0 / 316.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.004086/0.3841, allocations: 1.319 MB / 317.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.3843, allocations: 196.5 kB / 317.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006733/0.3849, allocations: 372.3 kB / 318 MB, free: 14.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002886/0.3852, allocations: 45.69 kB / 318 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.3855, allocations: 283.3 kB / 318.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003573/0.3859, allocations: 130.3 kB / 318.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.3861, allocations: 20 kB / 318.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3862, allocations: 330.8 kB / 318.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.3874, allocations: 321.1 kB / 319.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3886, allocations: 388.3 kB / 319.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.39, allocations: 484.3 kB / 319.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.39, allocations: 0 / 319.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003332/0.3934, allocations: 1.138 MB / 321 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.3936, allocations: 148.5 kB / 321.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.3936, allocations: 7.922 kB / 321.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.3936, allocations: 4 kB / 321.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.394, allocations: 103.8 kB / 321.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.3941, allocations: 4 kB / 321.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009762/0.395, allocations: 87.7 kB / 321.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000852/0.3959, allocations: 0.5658 MB / 322 MB, free: 10.59 MB / 266.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 (76): * Single equations (assignments): 71 * 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.0009355/0.3969, allocations: 450.1 kB / 322.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/0.3971, allocations: 47.52 kB / 322.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.3973, allocations: 56.7 kB / 322.5 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3973, allocations: 4 kB / 322.5 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.3973, allocations: 4 kB / 322.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3973, allocations: 3.984 kB / 322.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.3989, allocations: 0.6656 MB / 323.2 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.3989, allocations: 3.953 kB / 323.2 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.3992, allocations: 95.88 kB / 323.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3992, allocations: 0 / 323.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002274/0.3995, allocations: 91.94 kB / 323.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.3995, allocations: 4 kB / 323.4 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3995, allocations: 0 / 323.4 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00312/0.4026, allocations: 1.079 MB / 324.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007804/0.4035, allocations: 268.3 kB / 324.7 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003433/0.4038, allocations: 28 kB / 324.7 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006742/0.4045, allocations: 67.73 kB / 324.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005441/0.4051, allocations: 152.4 kB / 325 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008532/0.4059, allocations: 0.5619 MB / 325.5 MB, free: 6.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004652/0.4064, allocations: 251.2 kB / 325.8 MB, free: 6.621 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.4064, allocations: 0 / 325.8 MB, free: 6.621 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001043/0.4075, allocations: 171.6 kB / 325.9 MB, free: 6.453 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: 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 (56): * Single equations (assignments): 50 * 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.0004032/0.4079, allocations: 169.8 kB / 326.1 MB, free: 6.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002868/0.4108, allocations: 1.048 MB / 327.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.4109, allocations: 0.5625 kB / 327.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.4125, allocations: 0.7032 MB / 327.8 MB, free: 4.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/0.416, allocations: 480.9 kB / 328.3 MB, free: 3.949 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003435/0.4195, allocations: 1.293 MB / 329.6 MB, free: 2.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/0.4203, allocations: 0.9024 MB / 330.5 MB, free: 1.695 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003557/0.4238, allocations: 0.6735 MB / 331.2 MB, free: 1.02 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/0.4239, allocations: 0 / 331.2 MB, free: 1.02 MB / 266.7 MB Notification: Performance of Templates: time 0.03517/0.4591, allocations: 14.48 MB / 345.7 MB, free: 1.801 MB / 282.7 MB