Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 1.661/1.661, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.723e-05/3.727e-05, allocations: 6.812 kB / 225 MB, free: 2.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2106, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1085/0.3191, allocations: 72.25 MB / 336 MB, free: 1.523 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.3194, allocations: 67.95 kB / 336.1 MB, free: 1.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09061/0.41, allocations: 28.25 MB / 364.3 MB, free: 5.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.227e-06/0.4101, allocations: 0 / 364.3 MB, free: 5.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.4101, allocations: 8 kB / 364.3 MB, free: 5.242 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.0009699/0.4111, allocations: 0.6737 MB / 365 MB, free: 4.492 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.4112, allocations: 11.97 kB / 365 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.4113, allocations: 43.44 kB / 365.1 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.4118, allocations: 281.3 kB / 365.3 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.4118, allocations: 4 kB / 365.3 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.029e-05/0.4119, allocations: 8 kB / 365.3 MB, free: 4.109 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.4123, allocations: 169.6 kB / 365.5 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.503e-06/0.4123, allocations: 0 / 365.5 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.4124, allocations: 4 kB / 365.5 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-06/0.4124, allocations: 4 kB / 365.5 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.4127, allocations: 87.91 kB / 365.6 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009893/0.4137, allocations: 0.4926 MB / 366.1 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002752/0.414, allocations: 126.5 kB / 366.2 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.4142, allocations: 112.9 kB / 366.3 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.4142, allocations: 0 / 366.3 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.4147, allocations: 241.1 kB / 366.6 MB, free: 2.797 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.746e-06/0.4147, allocations: 0 / 366.6 MB, free: 2.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001036/0.4157, allocations: 0.4938 MB / 367.1 MB, free: 2.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/0.4159, allocations: 195.9 kB / 367.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009254/0.4168, allocations: 0.5026 MB / 367.8 MB, free: 1.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.4169, allocations: 37.62 kB / 367.8 MB, free: 1.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.417, allocations: 167.6 kB / 368 MB, free: 1.316 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.196e-05/0.4171, allocations: 27.77 kB / 368 MB, free: 1.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.4172, allocations: 8 kB / 368 MB, free: 1.281 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4173, allocations: 320.5 kB / 368.3 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.4176, allocations: 83.92 kB / 368.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.4178, allocations: 79.97 kB / 368.5 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.4181, allocations: 212.5 kB / 368.7 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4181, allocations: 4 kB / 368.7 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009134/0.419, allocations: 473.9 kB / 369.1 MB, free: 60 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1786/0.5977, allocations: 146.7 kB / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.946e-06/0.5977, allocations: 0 / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.5977, allocations: 2.938 kB / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.478e-05/0.5978, allocations: 0.625 kB / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.905e-06/0.5978, allocations: 1.094 kB / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.5981, allocations: 16.97 kB / 369.3 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.5983, allocations: 99.34 kB / 369.4 MB, free: 89.91 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.0002103/0.5985, allocations: 272.1 kB / 369.7 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5986, allocations: 45.66 kB / 369.7 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002208/0.5989, allocations: 67.84 kB / 369.8 MB, free: 89.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.246e-06/0.5989, allocations: 0.5312 kB / 369.8 MB, free: 89.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.635e-06/0.5989, allocations: 4.922 kB / 369.8 MB, free: 89.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.121e-06/0.5989, allocations: 9.297 kB / 369.8 MB, free: 89.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.6006, allocations: 0.9253 MB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.044e-06/0.6006, allocations: 0.5938 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.354e-05/0.6006, allocations: 1.25 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.6006, allocations: 0.5 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-05/0.6007, allocations: 21.23 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.357e-06/0.6007, allocations: 5.609 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.6007, allocations: 0.6875 kB / 370.7 MB, free: 89.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.6019, allocations: 0.632 MB / 371.4 MB, free: 88.83 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004359/0.6023, allocations: 261.7 kB / 371.6 MB, free: 88.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-05/0.6025, allocations: 10.22 kB / 371.6 MB, free: 88.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.6027, allocations: 16.91 kB / 371.7 MB, free: 88.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.6029, allocations: 58.55 kB / 371.7 MB, free: 88.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.6031, allocations: 103.5 kB / 371.8 MB, free: 88.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006535/0.6037, allocations: 417.7 kB / 372.2 MB, free: 88.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.95e-07/0.6037, allocations: 0 / 372.2 MB, free: 88.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004438/0.6042, allocations: 58.03 kB / 372.3 MB, free: 88.55 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.000145/0.6044, allocations: 113.3 kB / 372.4 MB, free: 88.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006182/0.605, allocations: 0.5312 MB / 372.9 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.52e-06/0.605, allocations: 0 / 372.9 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.6054, allocations: 463.2 kB / 373.4 MB, free: 87.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007226/0.6061, allocations: 157.5 kB / 373.5 MB, free: 87.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.6075, allocations: 0.6551 MB / 374.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.6079, allocations: 0.8207 MB / 375 MB, free: 86.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.37e-05/0.6079, allocations: 11.38 kB / 375 MB, free: 86.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.736e-06/0.6079, allocations: 3.156 kB / 375 MB, free: 86.84 MB / 314.7 MB Notification: Performance of Templates: time 0.006578/0.6145, allocations: 4.197 MB / 379.2 MB, free: 86.39 MB / 314.7 MB