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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.213/2.213, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.791e-05, allocations: 0 / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09101/0.09106, allocations: 50.42 MB / 343.1 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3669/0.458, allocations: 84.37 MB / 427.4 MB, free: 9.801 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4582, allocations: 75.95 kB / 427.5 MB, free: 9.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1358/0.5941, allocations: 35 MB / 462.5 MB, free: 11.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.619e-06/0.5942, allocations: 0 / 462.5 MB, free: 11.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.564e-05/0.5942, allocations: 8 kB / 462.5 MB, free: 11.43 MB / 378.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.002028/0.5963, allocations: 0.8663 MB / 463.4 MB, free: 10.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.5964, allocations: 8.031 kB / 463.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.5967, allocations: 82.97 kB / 463.5 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.598, allocations: 399.6 kB / 463.9 MB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.5981, allocations: 16 kB / 463.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.5983, allocations: 20 kB / 463.9 MB, free: 9.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.5996, allocations: 297.4 kB / 464.2 MB, free: 9.637 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.5996, allocations: 3.953 kB / 464.2 MB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.5998, allocations: 11.98 kB / 464.2 MB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.5998, allocations: 8 kB / 464.2 MB, free: 9.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009639/0.6008, allocations: 195.9 kB / 464.4 MB, free: 9.422 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003185/0.604, allocations: 0.8787 MB / 465.3 MB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009733/0.605, allocations: 214.5 kB / 465.5 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006326/0.6057, allocations: 156.8 kB / 465.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.6058, allocations: 0 / 465.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.6069, allocations: 389.9 kB / 466 MB, free: 7.695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 5.651e-06/0.6069, allocations: 0 / 466 MB, free: 7.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.002413/0.6094, allocations: 0.5815 MB / 466.6 MB, free: 7.082 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001979/0.6096, allocations: 174.2 kB / 466.8 MB, free: 6.875 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003201/0.6128, allocations: 0.8744 MB / 467.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.613, allocations: 33.7 kB / 467.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.6133, allocations: 157.8 kB / 467.8 MB, free: 5.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.6135, allocations: 51.34 kB / 467.9 MB, free: 5.742 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.339e-05/0.6136, allocations: 11.94 kB / 467.9 MB, free: 5.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.6139, allocations: 338.9 kB / 468.2 MB, free: 5.391 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/0.6146, allocations: 123.9 kB / 468.4 MB, free: 5.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006495/0.6152, allocations: 154.5 kB / 468.5 MB, free: 5.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006723/0.6159, allocations: 222.8 kB / 468.7 MB, free: 4.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.496e-06/0.616, allocations: 176 / 468.7 MB, free: 4.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002305/0.6183, allocations: 0.5547 MB / 469.3 MB, free: 4.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002241/0.6186, allocations: 138.8 kB / 469.4 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.6186, allocations: 4 kB / 469.4 MB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.6186, allocations: 0 / 469.4 MB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.6188, allocations: 19.92 kB / 469.4 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.6189, allocations: 0 / 469.4 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008078/0.6197, allocations: 39.81 kB / 469.5 MB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/0.62, allocations: 115.9 kB / 469.6 MB, free: 3.945 MB / 378.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.0005261/0.6206, allocations: 269.9 kB / 469.9 MB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003479/0.6209, allocations: 83.02 kB / 469.9 MB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006318/0.6216, allocations: 130.2 kB / 470.1 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.445e-06/0.6216, allocations: 0 / 470.1 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.247e-06/0.6217, allocations: 4 kB / 470.1 MB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.6217, allocations: 3.984 kB / 470.1 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.6236, allocations: 0.6142 MB / 470.7 MB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.6237, allocations: 3.953 kB / 470.7 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.6238, allocations: 11.98 kB / 470.7 MB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.6239, allocations: 4 kB / 470.7 MB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.624, allocations: 27.98 kB / 470.7 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.096e-06/0.6241, allocations: 0 / 470.7 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.895e-06/0.6241, allocations: 0 / 470.7 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.6259, allocations: 0.678 MB / 471.4 MB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.627, allocations: 0.4996 MB / 471.9 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.6272, allocations: 20 kB / 471.9 MB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.6275, allocations: 31.88 kB / 472 MB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.6278, allocations: 55.94 kB / 472 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/0.628, allocations: 115.9 kB / 472.1 MB, free: 1.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001517/0.6295, allocations: 0.7173 MB / 472.8 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.81e-07/0.6295, allocations: 0 / 472.8 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005896/0.6301, allocations: 84 kB / 472.9 MB, free: 484 kB / 378.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.0002672/0.6304, allocations: 138.8 kB / 473.1 MB, free: 336 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.6316, allocations: 0.6458 MB / 473.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.252e-06/0.6317, allocations: 0 / 473.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007603/0.6324, allocations: 0.5249 MB / 474.2 MB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009496/0.6334, allocations: 169.8 kB / 474.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.6361, allocations: 1.076 MB / 475.5 MB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.6372, allocations: 0.9837 MB / 476.5 MB, free: 12.78 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008121/0.638, allocations: 156.9 kB / 476.6 MB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004071/0.6384, allocations: 75.28 kB / 476.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of SimCode: time 2.261e-06/0.6385, allocations: 0 / 476.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of Templates: time 0.02161/0.6601, allocations: 6.696 MB / 483.4 MB, free: 5.863 MB / 394.7 MB