Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 2.182/2.182, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.951e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002025/0.1082, allocations: 1.244 MB / 346.2 MB, free: 7.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.1106, allocations: 0.8 MB / 347 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.313e-05/0.1107, allocations: 4 kB / 347 MB, free: 6.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.386e-05/0.1108, allocations: 7.922 kB / 347 MB, free: 6.887 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1109, allocations: 15.92 kB / 347 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.1112, allocations: 39.94 kB / 347.1 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.1113, allocations: 59.88 kB / 347.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.44e-05/0.1114, allocations: 19.97 kB / 347.2 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007638/0.1122, allocations: 475.2 kB / 347.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1124, allocations: 95.81 kB / 347.7 MB, free: 6.195 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.192e-05/0.1125, allocations: 4 kB / 347.7 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.086e-05/0.1125, allocations: 4 kB / 347.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.1127, allocations: 79.69 kB / 347.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1128, allocations: 16 kB / 347.8 MB, free: 6.094 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.1132, allocations: 359.1 kB / 348.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1132, allocations: 7.875 kB / 348.2 MB, free: 5.734 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.359e-06/0.1133, allocations: 4 kB / 348.2 MB, free: 5.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1133, allocations: 4 kB / 348.2 MB, free: 5.727 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007456/0.114, allocations: 0.6593 MB / 348.8 MB, free: 4.988 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1141, allocations: 12.03 kB / 348.9 MB, free: 4.977 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.1142, allocations: 39.53 kB / 348.9 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.1146, allocations: 281.2 kB / 349.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.1147, allocations: 12 kB / 349.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.1147, allocations: 8 kB / 349.2 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005054/0.1152, allocations: 165.6 kB / 349.3 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1153, allocations: 3.984 kB / 349.4 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.1153, allocations: 11.95 kB / 349.4 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1153, allocations: 0 / 349.4 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.1156, allocations: 87.89 kB / 349.4 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.1167, allocations: 0.4926 MB / 349.9 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.117, allocations: 134.4 kB / 350.1 MB, free: 3.648 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.1171, allocations: 0 / 350.1 MB, free: 3.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005025/0.1176, allocations: 242.7 kB / 350.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.1176, allocations: 0 / 350.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.001595/0.1192, allocations: 0.738 MB / 351 MB, free: 2.574 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.1193, allocations: 199.9 kB / 351.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009988/0.1204, allocations: 0.4929 MB / 351.7 MB, free: 1.836 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.1204, allocations: 37.7 kB / 351.8 MB, free: 1.793 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1205, allocations: 179.5 kB / 351.9 MB, free: 1.617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.452e-05/0.1206, allocations: 23.83 kB / 352 MB, free: 1.594 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.1207, allocations: 3.938 kB / 352 MB, free: 1.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1208, allocations: 322.8 kB / 352.3 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.1211, allocations: 75.97 kB / 352.4 MB, free: 1.191 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1214, allocations: 101.7 kB / 352.5 MB, free: 1.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.1217, allocations: 216.4 kB / 352.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1217, allocations: 0 / 352.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001069/0.1228, allocations: 486.1 kB / 353.1 MB, free: 340 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.1229, allocations: 148.5 kB / 353.3 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.123, allocations: 0 / 353.3 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.123, allocations: 4 kB / 353.3 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.492e-05/0.123, allocations: 3.938 kB / 353.3 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.123, allocations: 0 / 353.3 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.1234, allocations: 15.98 kB / 353.3 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.1236, allocations: 113.3 kB / 353.4 MB, free: 20 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * 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.0006168/0.1242, allocations: 392 kB / 353.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1243, allocations: 55.38 kB / 353.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.1245, allocations: 71.47 kB / 353.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.1245, allocations: 4 kB / 353.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1245, allocations: 0 / 353.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1246, allocations: 0 / 353.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.1264, allocations: 0.9323 MB / 354.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.1264, allocations: 11.95 kB / 354.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-06/0.1265, allocations: 0 / 354.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1265, allocations: 0 / 354.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.1265, allocations: 27.97 kB / 354.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.1265, allocations: 0 / 354.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1266, allocations: 4 kB / 354.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.1278, allocations: 0.6206 MB / 355.5 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005526/0.1284, allocations: 268.2 kB / 355.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.1285, allocations: 19.98 kB / 355.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.1288, allocations: 12 kB / 355.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.1291, allocations: 55.92 kB / 355.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.1292, allocations: 105.2 kB / 356 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000807/0.13, allocations: 418.8 kB / 356.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1301, allocations: 4 kB / 356.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004213/0.1305, allocations: 48 kB / 356.4 MB, free: 12.81 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0002072/0.1307, allocations: 119.2 kB / 356.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009283/0.1316, allocations: 0.5321 MB / 357.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1317, allocations: 0 / 357.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006256/0.1323, allocations: 468.9 kB / 357.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.1334, allocations: 156.7 kB / 357.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.1354, allocations: 0.886 MB / 358.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.1361, allocations: 0.8224 MB / 359.4 MB, free: 9.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.869e-05/0.1361, allocations: 11.44 kB / 359.4 MB, free: 9.641 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1361, allocations: 0 / 359.4 MB, free: 9.641 MB / 298.7 MB Notification: Performance of Templates: time 0.009337/0.1455, allocations: 4.219 MB / 363.6 MB, free: 5.332 MB / 298.7 MB