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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.149/2.149, allocations: 225.8 MB / 238.9 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.934e-05, allocations: 4 kB / 292.1 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09036, allocations: 50.41 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4068/0.4972, allocations: 84.37 MB / 426.9 MB, free: 9.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4975, allocations: 65.28 kB / 427 MB, free: 9.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1105/0.608, allocations: 35 MB / 462 MB, free: 11.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.439e-06/0.608, allocations: 7.984 kB / 462 MB, free: 11.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.634e-05/0.6081, allocations: 8 kB / 462 MB, free: 11.42 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.00122/0.6093, allocations: 0.863 MB / 462.9 MB, free: 10.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.6094, allocations: 12.02 kB / 462.9 MB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.6095, allocations: 82.97 kB / 463 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007117/0.6103, allocations: 411.6 kB / 463.4 MB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.6103, allocations: 16 kB / 463.4 MB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.482e-05/0.6104, allocations: 16 kB / 463.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007229/0.6112, allocations: 285.5 kB / 463.7 MB, free: 9.629 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.6112, allocations: 11.88 kB / 463.7 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.6113, allocations: 12 kB / 463.7 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.702e-06/0.6113, allocations: 0 / 463.7 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005252/0.6118, allocations: 207.9 kB / 463.9 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.6136, allocations: 0.8709 MB / 464.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.6141, allocations: 214.5 kB / 465 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.6145, allocations: 152.8 kB / 465.1 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.6145, allocations: 0 / 465.1 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.6152, allocations: 393.6 kB / 465.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.974e-06/0.6152, allocations: 0 / 465.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001307/0.6166, allocations: 0.5814 MB / 466.1 MB, free: 7.074 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.6167, allocations: 178.3 kB / 466.3 MB, free: 6.863 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.6184, allocations: 0.8783 MB / 467.1 MB, free: 5.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.315e-05/0.6185, allocations: 37.7 kB / 467.2 MB, free: 5.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.6186, allocations: 149.8 kB / 467.3 MB, free: 5.781 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.6188, allocations: 55.34 kB / 467.4 MB, free: 5.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.6188, allocations: 11.94 kB / 467.4 MB, free: 5.715 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.619, allocations: 334.8 kB / 467.7 MB, free: 5.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.6194, allocations: 120 kB / 467.8 MB, free: 5.262 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.6197, allocations: 150.5 kB / 468 MB, free: 5.105 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.6201, allocations: 226.8 kB / 468.2 MB, free: 4.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.468e-06/0.6201, allocations: 4.172 kB / 468.2 MB, free: 4.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001239/0.6214, allocations: 0.5547 MB / 468.8 MB, free: 4.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.6215, allocations: 130.8 kB / 468.9 MB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.679e-06/0.6216, allocations: 4 kB / 468.9 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.6216, allocations: 0 / 468.9 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.97e-05/0.6217, allocations: 15.94 kB / 468.9 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.6217, allocations: 3.984 kB / 468.9 MB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003909/0.6221, allocations: 39.83 kB / 469 MB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/0.6223, allocations: 115.9 kB / 469.1 MB, free: 3.941 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.000325/0.6227, allocations: 270 kB / 469.3 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.6228, allocations: 83.02 kB / 469.4 MB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003568/0.6232, allocations: 138.2 kB / 469.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.934e-06/0.6232, allocations: 0 / 469.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.671e-06/0.6232, allocations: 0 / 469.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.165e-06/0.6232, allocations: 0 / 469.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.6243, allocations: 0.622 MB / 470.2 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.638e-06/0.6243, allocations: 3.953 kB / 470.2 MB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.6244, allocations: 12 kB / 470.2 MB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.737e-06/0.6244, allocations: 3.984 kB / 470.2 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/0.6245, allocations: 23.98 kB / 470.2 MB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.222e-06/0.6245, allocations: 4 kB / 470.2 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.16e-06/0.6245, allocations: 128 / 470.2 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.626, allocations: 0.6784 MB / 470.9 MB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009401/0.6269, allocations: 0.4957 MB / 471.4 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.6271, allocations: 24 kB / 471.4 MB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.6274, allocations: 31.88 kB / 471.4 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.6277, allocations: 55.94 kB / 471.5 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/0.6279, allocations: 107.9 kB / 471.6 MB, free: 1.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001359/0.6292, allocations: 0.729 MB / 472.3 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.6292, allocations: 0 / 472.3 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005043/0.6298, allocations: 88 kB / 472.4 MB, free: 460 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.0002309/0.63, allocations: 134.8 kB / 472.6 MB, free: 316 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.6312, allocations: 0.6498 MB / 473.2 MB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.802e-06/0.6312, allocations: 0 / 473.2 MB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007189/0.6319, allocations: 0.5171 MB / 473.7 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.6328, allocations: 159.5 kB / 473.9 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.6353, allocations: 1.092 MB / 475 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009509/0.6363, allocations: 0.972 MB / 475.9 MB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000507/0.6368, allocations: 165 kB / 476.1 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.637, allocations: 79.3 kB / 476.2 MB, free: 12.53 MB / 394.7 MB Notification: Performance of SimCode: time 2.195e-06/0.6371, allocations: 192 / 476.2 MB, free: 12.53 MB / 394.7 MB Notification: Performance of Templates: time 0.0177/0.6548, allocations: 6.695 MB / 482.9 MB, free: 5.852 MB / 394.7 MB