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.1_cpp_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 171.1 MB / 186.3 MB, free: 1.328 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.729e-05, allocations: 10.17 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09364, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Multiplexer): time 0.003631/0.09733, allocations: 2.151 MB / 269 MB, free: 14.96 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003853/0.1012, allocations: 1.147 MB / 270.2 MB, free: 13.81 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003553/0.1017, allocations: 19.94 kB / 270.2 MB, free: 13.79 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.1019, allocations: 59.59 kB / 270.3 MB, free: 13.73 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.1022, allocations: 43.84 kB / 270.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.1029, allocations: 167.6 kB / 270.5 MB, free: 13.52 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008203/0.1037, allocations: 328.4 kB / 270.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.1042, allocations: 171.6 kB / 271 MB, free: 13.03 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.1055, allocations: 0.6122 MB / 271.6 MB, free: 12.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008467/0.1064, allocations: 431.4 kB / 272 MB, free: 11.99 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002577/0.1067, allocations: 16 kB / 272 MB, free: 11.98 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002697/0.107, allocations: 16 kB / 272 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004462/0.1074, allocations: 219.5 kB / 272.2 MB, free: 11.75 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003381/0.1078, allocations: 44 kB / 272.3 MB, free: 11.7 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.1095, allocations: 1.348 MB / 273.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1096, allocations: 3.938 kB / 273.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1096, allocations: 0 / 273.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.452e-05/0.1097, allocations: 0 / 273.6 MB, free: 10.35 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002471/0.1121, allocations: 0.9618 MB / 274.6 MB, free: 9.309 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.1122, allocations: 8.031 kB / 274.6 MB, free: 9.301 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005646/0.1128, allocations: 83.09 kB / 274.7 MB, free: 9.219 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.1141, allocations: 453 kB / 275.1 MB, free: 8.734 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-05/0.1142, allocations: 45.31 kB / 275.2 MB, free: 8.688 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.1145, allocations: 56 kB / 275.2 MB, free: 8.633 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.1173, allocations: 0.8299 MB / 276.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.1174, allocations: 0 / 276.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001827/0.1176, allocations: 24 kB / 276.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.1176, allocations: 12 kB / 276.1 MB, free: 7.762 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002626/0.1203, allocations: 0.6415 MB / 276.7 MB, free: 7.121 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006053/0.1264, allocations: 1.724 MB / 278.5 MB, free: 5.344 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002514/0.129, allocations: 0.6224 MB / 279.1 MB, free: 4.715 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002631/0.1293, allocations: 8.562 kB / 279.1 MB, free: 4.707 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001746/0.1311, allocations: 0.5767 MB / 279.7 MB, free: 4.117 MB / 234.7 MB Notification: Performance of pre-optimization done (n=56): time 5.32e-06/0.1311, allocations: 0 / 279.7 MB, free: 4.117 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.004552/0.1357, allocations: 1.323 MB / 281 MB, free: 2.758 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/0.1359, allocations: 196.5 kB / 281.2 MB, free: 2.523 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007747/0.1367, allocations: 368.3 kB / 281.5 MB, free: 2.156 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003791/0.1371, allocations: 49.7 kB / 281.6 MB, free: 2.102 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/0.1374, allocations: 283.3 kB / 281.9 MB, free: 1.824 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004065/0.1379, allocations: 130.5 kB / 282 MB, free: 1.695 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.138, allocations: 16 kB / 282 MB, free: 1.68 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.1382, allocations: 334.8 kB / 282.3 MB, free: 1.344 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.1395, allocations: 313.1 kB / 282.6 MB, free: 1.039 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.1408, allocations: 388.4 kB / 283 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.1425, allocations: 480.3 kB / 283.5 MB, free: 140 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.1425, allocations: 0 / 283.5 MB, free: 140 kB / 234.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003772/0.1463, allocations: 1.134 MB / 284.6 MB, free: 14.96 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.1465, allocations: 144.5 kB / 284.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.1466, allocations: 7.953 kB / 284.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.97e-05/0.1466, allocations: 4 kB / 284.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.1471, allocations: 103.9 kB / 284.9 MB, free: 14.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.016e-05/0.1471, allocations: 12.14 kB / 284.9 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.1482, allocations: 91.62 kB / 285 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009879/0.1492, allocations: 0.558 MB / 285.5 MB, free: 14.02 MB / 250.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.001078/0.1503, allocations: 446.1 kB / 286 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002597/0.1506, allocations: 51.44 kB / 286 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.1507, allocations: 52.77 kB / 286.1 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.1508, allocations: 11.94 kB / 286.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.1508, allocations: 0 / 286.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.1508, allocations: 3.984 kB / 286.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1524, allocations: 0.6773 MB / 286.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.1525, allocations: 0 / 286.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.1528, allocations: 87.89 kB / 286.9 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/0.1528, allocations: 7.938 kB / 286.9 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002453/0.1531, allocations: 87.94 kB / 286.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.176e-05/0.1531, allocations: 4 kB / 287 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1531, allocations: 3.953 kB / 287 MB, free: 12.51 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003242/0.1564, allocations: 1.083 MB / 288 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008721/0.1573, allocations: 260.4 kB / 288.3 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/0.1577, allocations: 24 kB / 288.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007671/0.1585, allocations: 67.8 kB / 288.4 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005121/0.159, allocations: 160.3 kB / 288.5 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009391/0.16, allocations: 0.5696 MB / 289.1 MB, free: 10.29 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005119/0.1605, allocations: 251.2 kB / 289.4 MB, free: 10.04 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.1605, allocations: 0 / 289.4 MB, free: 10.04 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001164/0.1617, allocations: 159.7 kB / 289.5 MB, free: 9.887 MB / 250.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.0004275/0.1622, allocations: 176.8 kB / 289.7 MB, free: 9.707 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002958/0.1652, allocations: 1.052 MB / 290.7 MB, free: 8.59 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.1652, allocations: 0.5625 kB / 290.7 MB, free: 8.59 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.1669, allocations: 0.6875 MB / 291.4 MB, free: 7.844 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003644/0.1706, allocations: 483.9 kB / 291.9 MB, free: 7.391 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.1743, allocations: 1.308 MB / 293.2 MB, free: 6.043 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007358/0.1751, allocations: 0.9024 MB / 294.1 MB, free: 5.113 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00396/0.1791, allocations: 0.6774 MB / 294.8 MB, free: 4.434 MB / 250.7 MB Notification: Performance of SimCode: time 2.014e-06/0.1792, allocations: 4 kB / 294.8 MB, free: 4.43 MB / 250.7 MB Notification: Performance of Templates: time 0.2484/0.4275, allocations: 14.47 MB / 309.3 MB, free: 25.56 MB / 250.7 MB