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 1.827/1.827, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.35e-05, allocations: 3.938 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07635/0.07639, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.4059, allocations: 77.56 MB / 377.4 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.4061, allocations: 67.88 kB / 377.5 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07472/0.4808, allocations: 27.78 MB / 405.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.079e-06/0.4809, allocations: 0 / 405.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.4809, allocations: 3.906 kB / 405.3 MB, free: 18.04 MB / 314.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.0005278/0.4814, allocations: 0.6843 MB / 406 MB, free: 17.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.4815, allocations: 7.812 kB / 406 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.419e-05/0.4816, allocations: 47.11 kB / 406 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.4819, allocations: 271.5 kB / 406.3 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.4819, allocations: 7.812 kB / 406.3 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.482, allocations: 11.25 kB / 406.3 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.4823, allocations: 159.8 kB / 406.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.295e-06/0.4823, allocations: 0 / 406.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.4824, allocations: 7.312 kB / 406.5 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.701e-06/0.4824, allocations: 4 kB / 406.5 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.4826, allocations: 84.83 kB / 406.5 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007213/0.4833, allocations: 0.491 MB / 407 MB, free: 16.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.4836, allocations: 125.5 kB / 407.2 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.4838, allocations: 114.7 kB / 407.3 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.4838, allocations: 3.984 kB / 407.3 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003129/0.4841, allocations: 242.9 kB / 407.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.6e-06/0.4841, allocations: 0 / 407.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007982/0.4849, allocations: 0.4942 MB / 408 MB, free: 16.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.485, allocations: 195.4 kB / 408.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006691/0.4857, allocations: 499.6 kB / 408.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.4858, allocations: 37.59 kB / 408.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.016e-05/0.4858, allocations: 181.1 kB / 408.9 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.221e-05/0.4859, allocations: 26.61 kB / 408.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.4859, allocations: 3.906 kB / 408.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.486, allocations: 318.3 kB / 409.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.4862, allocations: 84.61 kB / 409.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.4864, allocations: 80.25 kB / 409.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.4866, allocations: 208.4 kB / 409.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.878e-06/0.4866, allocations: 7.906 kB / 409.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006959/0.4873, allocations: 469.1 kB / 410.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.205e-05/0.4874, allocations: 155.6 kB / 410.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.939e-06/0.4874, allocations: 3.953 kB / 410.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.4874, allocations: 3.938 kB / 410.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.909e-05/0.4875, allocations: 0 / 410.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4875, allocations: 0 / 410.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.4877, allocations: 15.7 kB / 410.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.4878, allocations: 98.67 kB / 410.3 MB, free: 14.63 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.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.0001689/0.488, allocations: 277.7 kB / 410.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.4881, allocations: 42.28 kB / 410.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.4883, allocations: 71.06 kB / 410.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.507e-06/0.4883, allocations: 3.953 kB / 410.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.306e-06/0.4883, allocations: 0 / 410.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.669e-06/0.4883, allocations: 0 / 410.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.4895, allocations: 0.9422 MB / 411.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.4896, allocations: 0 / 411.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-06/0.4896, allocations: 0 / 411.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.4896, allocations: 7.953 kB / 411.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.496e-05/0.4897, allocations: 19.55 kB / 411.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.052e-06/0.4897, allocations: 0 / 411.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.037e-06/0.4897, allocations: 0 / 411.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.4906, allocations: 0.6234 MB / 412.3 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.491, allocations: 249.9 kB / 412.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.732e-05/0.4911, allocations: 15.52 kB / 412.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.4913, allocations: 19.67 kB / 412.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.4915, allocations: 58.2 kB / 412.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.4916, allocations: 110.6 kB / 412.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006037/0.4923, allocations: 417.2 kB / 413.2 MB, free: 12.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4923, allocations: 0 / 413.2 MB, free: 12.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004093/0.4927, allocations: 46.12 kB / 413.2 MB, free: 12.93 MB / 314.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.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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.0001373/0.4928, allocations: 117.7 kB / 413.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.4934, allocations: 0.5355 MB / 413.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4934, allocations: 0 / 413.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.4938, allocations: 462.3 kB / 414.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006897/0.4945, allocations: 165.4 kB / 414.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.4957, allocations: 0.6473 MB / 415.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006528/0.4963, allocations: 0.832 MB / 416 MB, free: 27.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.4964, allocations: 11.38 kB / 416 MB, free: 27.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.4964, allocations: 0 / 416 MB, free: 27.02 MB / 330.7 MB Notification: Performance of Templates: time 0.006215/0.5026, allocations: 4.203 MB / 420.2 MB, free: 24.83 MB / 330.7 MB