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.3_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.575e-05, allocations: 0 / 269.3 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.08118, allocations: 47.58 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/0.4251, allocations: 83.24 MB / 400.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.4254, allocations: 70.28 kB / 400.2 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1084/0.5339, allocations: 34.58 MB / 434.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.008e-06/0.534, allocations: 4 kB / 434.8 MB, free: 8.312 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.885e-05/0.534, allocations: 15.94 kB / 434.8 MB, free: 8.297 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.001281/0.5353, allocations: 0.8703 MB / 435.7 MB, free: 7.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5354, allocations: 12.02 kB / 435.7 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.5356, allocations: 79.06 kB / 435.8 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000714/0.5363, allocations: 403.9 kB / 436.2 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.691e-05/0.5364, allocations: 15 kB / 436.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/0.5364, allocations: 19.5 kB / 436.2 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.5372, allocations: 297 kB / 436.5 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.5372, allocations: 3.938 kB / 436.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.873e-05/0.5373, allocations: 11.38 kB / 436.5 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.5373, allocations: 0 / 436.5 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005136/0.5378, allocations: 208.7 kB / 436.7 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.5397, allocations: 0.8756 MB / 437.6 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.5403, allocations: 217.8 kB / 437.8 MB, free: 5.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/0.5406, allocations: 155.1 kB / 438 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.5406, allocations: 0 / 438 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006523/0.5413, allocations: 382.6 kB / 438.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.696e-06/0.5413, allocations: 0 / 438.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001356/0.5427, allocations: 0.5832 MB / 438.9 MB, free: 4.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.5429, allocations: 172.3 kB / 439.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.5448, allocations: 0.8825 MB / 440 MB, free: 3.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.545, allocations: 37.33 kB / 440 MB, free: 3.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.5451, allocations: 151.1 kB / 440.2 MB, free: 3.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.5452, allocations: 50.92 kB / 440.2 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.5453, allocations: 6.625 kB / 440.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.5455, allocations: 343.4 kB / 440.5 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.5458, allocations: 117.3 kB / 440.7 MB, free: 3.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/0.5462, allocations: 158 kB / 440.8 MB, free: 3.035 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.5466, allocations: 234.2 kB / 441 MB, free: 2.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.5466, allocations: 4 kB / 441 MB, free: 2.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001239/0.5479, allocations: 0.5548 MB / 441.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001389/0.548, allocations: 130.2 kB / 441.7 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.548, allocations: 4 kB / 441.7 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.5481, allocations: 0 / 441.7 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.5482, allocations: 19.56 kB / 441.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.5482, allocations: 3.984 kB / 441.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.5487, allocations: 35.91 kB / 441.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.5489, allocations: 119.5 kB / 441.9 MB, free: 2.031 MB / 346.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.0003292/0.5492, allocations: 268.6 kB / 442.2 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.5494, allocations: 79.06 kB / 442.2 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004166/0.5498, allocations: 132.8 kB / 442.4 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.213e-06/0.5498, allocations: 3.938 kB / 442.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.147e-06/0.5498, allocations: 0 / 442.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5499, allocations: 0 / 442.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.551, allocations: 0.63 MB / 443 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.713e-06/0.551, allocations: 0 / 443 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.715e-05/0.5511, allocations: 11.94 kB / 443 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.501e-06/0.5511, allocations: 4 kB / 443 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/0.5512, allocations: 27.66 kB / 443.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.349e-06/0.5512, allocations: 4 kB / 443.1 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.549e-06/0.5513, allocations: 128 / 443.1 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.5527, allocations: 0.6815 MB / 443.7 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.5539, allocations: 0.4957 MB / 444.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.554, allocations: 20 kB / 444.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.5544, allocations: 31.91 kB / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.5546, allocations: 55.94 kB / 444.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.5548, allocations: 115.9 kB / 444.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00153/0.5563, allocations: 0.7251 MB / 445.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.58e-07/0.5564, allocations: 0 / 445.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005612/0.5569, allocations: 88 kB / 445.3 MB, free: 14.82 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.0002407/0.5572, allocations: 138.6 kB / 445.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.5584, allocations: 0.6421 MB / 446 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5584, allocations: 7.938 kB / 446 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.5592, allocations: 0.5248 MB / 446.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008761/0.5601, allocations: 171.1 kB / 446.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.5629, allocations: 1.076 MB / 447.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009851/0.5639, allocations: 0.9799 MB / 448.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005967/0.5645, allocations: 160.9 kB / 449 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.5648, allocations: 71.3 kB / 449 MB, free: 10.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.764e-06/0.5648, allocations: 4 kB / 449 MB, free: 10.89 MB / 362.7 MB Notification: Performance of Templates: time 0.01614/0.581, allocations: 6.694 MB / 455.7 MB, free: 4.176 MB / 362.7 MB