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.908/1.908, allocations: 194.9 MB / 208.4 MB, free: 3.23 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.979e-05/4e-05, allocations: 3.062 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08502/0.08509, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.4395, allocations: 78.99 MB / 378.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003704/0.44, allocations: 73.17 kB / 378.9 MB, free: 21.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1141/0.5541, allocations: 34.55 MB / 413.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.102e-06/0.5542, allocations: 4 kB / 413.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.5542, allocations: 7.812 kB / 413.5 MB, free: 14.55 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008536/0.5551, allocations: 0.8701 MB / 414.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.5551, allocations: 7.812 kB / 414.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.5552, allocations: 82.03 kB / 414.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.5558, allocations: 408.7 kB / 414.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/0.5558, allocations: 19.61 kB / 414.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.856e-05/0.5559, allocations: 18.91 kB / 414.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005937/0.5565, allocations: 289.8 kB / 415.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5566, allocations: 4 kB / 415.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.458e-05/0.5566, allocations: 11.12 kB / 415.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.5566, allocations: 3.906 kB / 415.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004602/0.5571, allocations: 205.8 kB / 415.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.5587, allocations: 0.8743 MB / 416.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/0.5592, allocations: 216.5 kB / 416.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.5595, allocations: 154.1 kB / 416.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.5595, allocations: 3.906 kB / 416.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005289/0.5601, allocations: 389 kB / 417 MB, free: 12.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.479e-06/0.5601, allocations: 3.875 kB / 417 MB, free: 12.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001151/0.5613, allocations: 0.588 MB / 417.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.5614, allocations: 176.8 kB / 417.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.563, allocations: 0.8712 MB / 418.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.377e-05/0.5631, allocations: 37.5 kB / 418.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.5632, allocations: 204.6 kB / 418.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.458e-05/0.5633, allocations: 58.06 kB / 418.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.5634, allocations: 11.28 kB / 418.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.5635, allocations: 318.6 kB / 419.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003479/0.5638, allocations: 121.3 kB / 419.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.5641, allocations: 157.8 kB / 419.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.5644, allocations: 215.8 kB / 419.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.303e-06/0.5645, allocations: 0 / 419.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001581/0.5661, allocations: 0.5527 MB / 420.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/0.5662, allocations: 133.8 kB / 420.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.88e-06/0.5662, allocations: 0 / 420.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.5663, allocations: 3.906 kB / 420.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5664, allocations: 19.69 kB / 420.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.5665, allocations: 3.906 kB / 420.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.5672, allocations: 35.12 kB / 420.5 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.5674, allocations: 113 kB / 420.6 MB, free: 10.6 MB / 314.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.0003441/0.5678, allocations: 271.3 kB / 420.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.568, allocations: 78.12 kB / 420.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005458/0.5686, allocations: 130.8 kB / 421 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.108e-06/0.5686, allocations: 0 / 421 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.94e-06/0.5686, allocations: 3.953 kB / 421 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.28e-06/0.5686, allocations: 11.83 kB / 421 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.57, allocations: 0.6213 MB / 421.7 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.221e-06/0.5701, allocations: 0 / 421.7 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.5702, allocations: 15.67 kB / 421.7 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.286e-06/0.5702, allocations: 0 / 421.7 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5703, allocations: 27.17 kB / 421.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.376e-06/0.5704, allocations: 4.125 kB / 421.7 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.67e-06/0.5704, allocations: 3.953 kB / 421.7 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.5724, allocations: 0.672 MB / 422.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.5738, allocations: 0.4895 MB / 422.9 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.5741, allocations: 22.31 kB / 422.9 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.5747, allocations: 31.41 kB / 422.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/0.575, allocations: 53.81 kB / 423 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000226/0.5753, allocations: 121.1 kB / 423.1 MB, free: 9.246 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001982/0.5773, allocations: 0.7261 MB / 423.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.78e-06/0.5773, allocations: 0 / 423.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009801/0.5783, allocations: 85.31 kB / 423.9 MB, free: 8.961 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: 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.0002798/0.5786, allocations: 144.7 kB / 424.1 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.5803, allocations: 0.6427 MB / 424.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.481e-06/0.5803, allocations: 0 / 424.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009449/0.5813, allocations: 0.5258 MB / 425.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.5828, allocations: 165 kB / 425.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.5869, allocations: 1.161 MB / 426.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.588, allocations: 0.9799 MB / 427.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000605/0.5886, allocations: 90.3 kB / 427.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of SimCode: time 2.973e-06/0.5886, allocations: 0 / 427.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of Templates: time 0.01445/0.6031, allocations: 5.303 MB / 432.9 MB, free: 4.277 MB / 314.7 MB