Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.186e-05/2.172e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2523, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.126/0.3784, allocations: 78.32 MB / 372.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.3787, allocations: 79.89 kB / 372.5 MB, free: 3.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1122/0.4909, allocations: 34.32 MB / 406.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.491, allocations: 0 / 406.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.98e-05/0.491, allocations: 12 kB / 406.8 MB, free: 1.281 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001241/0.4923, allocations: 0.8756 MB / 407.7 MB, free: 344 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.4923, allocations: 12.03 kB / 407.7 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.4925, allocations: 86.95 kB / 407.8 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007303/0.4933, allocations: 399.5 kB / 408.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.4933, allocations: 12 kB / 408.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.09e-05/0.4934, allocations: 12 kB / 408.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005121/0.4939, allocations: 191.9 kB / 408.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006492/0.4946, allocations: 273.2 kB / 408.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4946, allocations: 0 / 408.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.074e-05/0.4947, allocations: 15.98 kB / 408.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.929e-06/0.4947, allocations: 3.984 kB / 408.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.4965, allocations: 0.8325 MB / 409.5 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.4971, allocations: 202.5 kB / 409.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.4974, allocations: 147.8 kB / 409.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.4974, allocations: 4.094 kB / 409.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006132/0.4981, allocations: 377.8 kB / 410.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 3.766e-06/0.4981, allocations: 0 / 410.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001176/0.4993, allocations: 460.7 kB / 410.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.4994, allocations: 174.2 kB / 410.9 MB, free: 13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.5011, allocations: 0.8431 MB / 411.7 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.978e-05/0.5012, allocations: 33.7 kB / 411.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.5014, allocations: 204.2 kB / 411.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.5015, allocations: 55.34 kB / 412 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.5016, allocations: 7.938 kB / 412 MB, free: 11.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5018, allocations: 322.8 kB / 412.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.5021, allocations: 116 kB / 412.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.5024, allocations: 138.5 kB / 412.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002373/0.5027, allocations: 95.89 kB / 412.7 MB, free: 11.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.402e-06/0.5027, allocations: 0 / 412.7 MB, free: 11.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001141/0.5039, allocations: 417.3 kB / 413.1 MB, free: 10.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/0.504, allocations: 138.7 kB / 413.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.473e-06/0.5041, allocations: 8 kB / 413.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5041, allocations: 0 / 413.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.5042, allocations: 16.08 kB / 413.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.5042, allocations: 3.938 kB / 413.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.5046, allocations: 31.84 kB / 413.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001812/0.5048, allocations: 115.9 kB / 413.4 MB, free: 10.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0003289/0.5052, allocations: 266 kB / 413.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.5054, allocations: 83.05 kB / 413.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004022/0.5058, allocations: 126.2 kB / 413.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.893e-06/0.5058, allocations: 4 kB / 413.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.5058, allocations: 0 / 413.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.423e-06/0.5058, allocations: 0 / 413.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.5069, allocations: 0.5873 MB / 414.4 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.341e-06/0.5069, allocations: 0 / 414.4 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.117e-05/0.507, allocations: 12 kB / 414.4 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.821e-06/0.507, allocations: 7.984 kB / 414.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.351e-05/0.5071, allocations: 27.98 kB / 414.5 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.5071, allocations: 0 / 414.5 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.18e-06/0.5071, allocations: 0 / 414.5 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.5084, allocations: 0.5309 MB / 415 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009831/0.5094, allocations: 0.4958 MB / 415.5 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.5095, allocations: 20 kB / 415.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000338/0.5099, allocations: 31.88 kB / 415.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.5101, allocations: 55.92 kB / 415.6 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/0.5103, allocations: 115.9 kB / 415.7 MB, free: 7.965 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001337/0.5117, allocations: 0.6861 MB / 416.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.79e-07/0.5117, allocations: 0 / 416.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005185/0.5122, allocations: 80 kB / 416.5 MB, free: 7.203 MB / 362.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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.0002421/0.5125, allocations: 146.7 kB / 416.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.5135, allocations: 0.6147 MB / 417.2 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.638e-06/0.5136, allocations: 0 / 417.2 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006755/0.5143, allocations: 0.5132 MB / 417.8 MB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008566/0.5151, allocations: 173.6 kB / 417.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.5179, allocations: 1.139 MB / 419.1 MB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.5189, allocations: 0.9796 MB / 420 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/0.5194, allocations: 91.23 kB / 420.1 MB, free: 3.379 MB / 362.7 MB Notification: Performance of SimCode: time 5.03e-06/0.5194, allocations: 0 / 420.1 MB, free: 3.379 MB / 362.7 MB Notification: Performance of Templates: time 0.2453/0.7647, allocations: 5.278 MB / 425.4 MB, free: 104.5 MB / 362.7 MB