Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 2.125/2.125, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/3.012e-05, allocations: 4 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3131, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002263/0.3154, allocations: 1.23 MB / 304.5 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.3182, allocations: 0.8286 MB / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.3184, allocations: 3.031 kB / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.671e-05/0.3185, allocations: 3.938 kB / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.3186, allocations: 20.72 kB / 305.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.3189, allocations: 35.28 kB / 305.4 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.3191, allocations: 62.17 kB / 305.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.972e-05/0.3192, allocations: 10.33 kB / 305.5 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008498/0.32, allocations: 477.8 kB / 305.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.3203, allocations: 96.53 kB / 306 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.544e-05/0.3204, allocations: 4.562 kB / 306 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.3205, allocations: 4.219 kB / 306.1 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.3206, allocations: 69.98 kB / 306.1 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.3208, allocations: 21.59 kB / 306.1 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.3213, allocations: 373.8 kB / 306.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3213, allocations: 0 / 306.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3213, allocations: 0 / 306.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.3213, allocations: 0 / 306.5 MB, free: 10.47 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008236/0.3222, allocations: 0.6609 MB / 307.2 MB, free: 9.734 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3222, allocations: 11.97 kB / 307.2 MB, free: 9.723 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.3224, allocations: 47.39 kB / 307.2 MB, free: 9.676 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.3228, allocations: 281.2 kB / 307.5 MB, free: 9.359 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.3229, allocations: 8 kB / 307.5 MB, free: 9.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.3229, allocations: 12 kB / 307.5 MB, free: 9.34 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.3235, allocations: 166.4 kB / 307.7 MB, free: 9.172 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3235, allocations: 4 kB / 307.7 MB, free: 9.168 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.3236, allocations: 11.92 kB / 307.7 MB, free: 9.156 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3236, allocations: 0 / 307.7 MB, free: 9.156 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.3239, allocations: 83.95 kB / 307.8 MB, free: 9.074 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.3251, allocations: 0.5005 MB / 308.3 MB, free: 8.523 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.3254, allocations: 122.5 kB / 308.4 MB, free: 8.395 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.3255, allocations: 0 / 308.4 MB, free: 8.395 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005333/0.326, allocations: 242.7 kB / 308.6 MB, free: 8.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 2.104e-06/0.326, allocations: 0 / 308.6 MB, free: 8.133 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.001649/0.3277, allocations: 0.7613 MB / 309.4 MB, free: 7.297 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.3279, allocations: 195.9 kB / 309.6 MB, free: 7.062 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.329, allocations: 0.4929 MB / 310.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.329, allocations: 29.7 kB / 310.1 MB, free: 6.527 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3292, allocations: 175.5 kB / 310.3 MB, free: 6.355 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.6e-05/0.3293, allocations: 39.77 kB / 310.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.3293, allocations: 4 kB / 310.3 MB, free: 6.312 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3294, allocations: 310.8 kB / 310.6 MB, free: 6 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.3297, allocations: 91.89 kB / 310.7 MB, free: 5.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.33, allocations: 96.06 kB / 310.8 MB, free: 5.812 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.3304, allocations: 216.3 kB / 311 MB, free: 5.57 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3304, allocations: 0 / 311 MB, free: 5.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001096/0.3315, allocations: 477.9 kB / 311.5 MB, free: 5.066 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.3317, allocations: 160.4 kB / 311.6 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3317, allocations: 0 / 311.6 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3317, allocations: 0 / 311.6 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.896e-05/0.3318, allocations: 7.984 kB / 311.7 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3318, allocations: 4 kB / 311.7 MB, free: 4.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003321/0.3321, allocations: 16.09 kB / 311.7 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/0.3323, allocations: 97.19 kB / 311.8 MB, free: 4.758 MB / 250.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.000694/0.333, allocations: 396.1 kB / 312.2 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3331, allocations: 43.53 kB / 312.2 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.3333, allocations: 75.45 kB / 312.3 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3334, allocations: 3.984 kB / 312.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.3334, allocations: 7.953 kB / 312.3 MB, free: 4.195 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3334, allocations: 0 / 312.3 MB, free: 4.195 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.3353, allocations: 0.9399 MB / 313.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3353, allocations: 0 / 313.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.358e-05/0.3354, allocations: 0 / 313.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.3354, allocations: 0 / 313.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.3355, allocations: 19.98 kB / 313.2 MB, free: 3.148 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3355, allocations: 7.891 kB / 313.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3355, allocations: 0 / 313.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.3369, allocations: 0.6364 MB / 313.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000649/0.3376, allocations: 252.4 kB / 314.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.3377, allocations: 16 kB / 314.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.338, allocations: 19.92 kB / 314.2 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.3383, allocations: 63.88 kB / 314.2 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.3385, allocations: 93.31 kB / 314.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009571/0.3394, allocations: 418.8 kB / 314.7 MB, free: 1.594 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3395, allocations: 4 kB / 314.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005237/0.34, allocations: 55.94 kB / 314.8 MB, free: 1.535 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: 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.0002346/0.3403, allocations: 115.2 kB / 314.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3413, allocations: 0.536 MB / 315.4 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3414, allocations: 3.938 kB / 315.4 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006425/0.342, allocations: 461 kB / 315.9 MB, free: 308 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.3433, allocations: 159.6 kB / 316 MB, free: 156 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.3457, allocations: 0.8745 MB / 316.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007096/0.3465, allocations: 0.838 MB / 317.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.3466, allocations: 11.44 kB / 317.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.3466, allocations: 4 kB / 317.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Templates: time 0.01049/0.3571, allocations: 4.225 MB / 322 MB, free: 10.03 MB / 266.7 MB