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.1_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 171.2 MB / 185.7 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.039e-05, allocations: 6.188 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08484/0.0849, allocations: 38.77 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002976/0.08794, allocations: 1.729 MB / 268.6 MB, free: 14.73 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.091, allocations: 0.9324 MB / 269.6 MB, free: 13.8 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.09123, allocations: 8 kB / 269.6 MB, free: 13.79 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.09141, allocations: 27.78 kB / 269.6 MB, free: 13.76 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.09159, allocations: 47.84 kB / 269.7 MB, free: 13.71 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.092, allocations: 71.86 kB / 269.7 MB, free: 13.64 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.09237, allocations: 163.7 kB / 269.9 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.09259, allocations: 68.78 kB / 270 MB, free: 13.41 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.09368, allocations: 0.6473 MB / 270.6 MB, free: 12.76 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003228/0.09402, allocations: 179.6 kB / 270.8 MB, free: 12.59 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.09414, allocations: 8 kB / 270.8 MB, free: 12.58 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.09426, allocations: 16 kB / 270.8 MB, free: 12.56 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00025/0.09452, allocations: 139.5 kB / 270.9 MB, free: 12.43 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.09472, allocations: 32 kB / 271 MB, free: 12.39 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.09581, allocations: 0.7835 MB / 271.8 MB, free: 11.61 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.09584, allocations: 0 / 271.8 MB, free: 11.61 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.09586, allocations: 0 / 271.8 MB, free: 11.61 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.294e-05/0.09589, allocations: 0 / 271.8 MB, free: 11.61 MB / 234.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.001401/0.0973, allocations: 0.8633 MB / 272.6 MB, free: 10.67 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.09737, allocations: 8.031 kB / 272.6 MB, free: 10.66 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002528/0.09764, allocations: 83.05 kB / 272.7 MB, free: 10.58 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007559/0.09841, allocations: 399.5 kB / 273.1 MB, free: 10.15 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.0985, allocations: 16 kB / 273.1 MB, free: 10.13 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.724e-05/0.09861, allocations: 24 kB / 273.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.09962, allocations: 305.3 kB / 273.4 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.09966, allocations: 0 / 273.4 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.09974, allocations: 12 kB / 273.4 MB, free: 9.793 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.09976, allocations: 0 / 273.4 MB, free: 9.793 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007766/0.1006, allocations: 207.8 kB / 273.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.1027, allocations: 0.8902 MB / 274.5 MB, free: 8.648 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007936/0.1036, allocations: 218.5 kB / 274.8 MB, free: 8.426 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.1037, allocations: 4 kB / 274.8 MB, free: 8.422 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008429/0.1045, allocations: 385.9 kB / 275.1 MB, free: 8.008 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.306e-06/0.1045, allocations: 0 / 275.1 MB, free: 8.008 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002434/0.107, allocations: 0.8765 MB / 276 MB, free: 7.062 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1071, allocations: 178.1 kB / 276.2 MB, free: 6.852 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.1091, allocations: 0.8821 MB / 277.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.059e-05/0.1092, allocations: 37.69 kB / 277.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.1094, allocations: 149.8 kB / 277.2 MB, free: 5.77 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1095, allocations: 55.34 kB / 277.3 MB, free: 5.715 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.1096, allocations: 7.984 kB / 277.3 MB, free: 5.707 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1097, allocations: 342.9 kB / 277.6 MB, free: 5.363 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.1102, allocations: 123.9 kB / 277.8 MB, free: 5.242 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.1107, allocations: 168.2 kB / 277.9 MB, free: 5.062 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.1113, allocations: 226.7 kB / 278.2 MB, free: 4.816 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1113, allocations: 0 / 278.2 MB, free: 4.816 MB / 234.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001603/0.1129, allocations: 0.5662 MB / 278.7 MB, free: 4.219 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.113, allocations: 138.8 kB / 278.9 MB, free: 4.059 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1131, allocations: 0 / 278.9 MB, free: 4.059 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.1131, allocations: 4 kB / 278.9 MB, free: 4.055 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1132, allocations: 16.05 kB / 278.9 MB, free: 4.039 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1132, allocations: 4 kB / 278.9 MB, free: 4.035 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.1138, allocations: 31.91 kB / 278.9 MB, free: 4.004 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002061/0.114, allocations: 119.8 kB / 279 MB, free: 3.887 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,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,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,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.001073/0.1151, allocations: 0.5337 MB / 279.6 MB, free: 3.32 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.1152, allocations: 79.06 kB / 279.6 MB, free: 3.242 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.1156, allocations: 134.4 kB / 279.8 MB, free: 3.105 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1156, allocations: 0 / 279.8 MB, free: 3.105 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1156, allocations: 0 / 279.8 MB, free: 3.105 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1156, allocations: 3.984 kB / 279.8 MB, free: 3.102 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.1168, allocations: 0.6256 MB / 280.4 MB, free: 2.426 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1168, allocations: 0 / 280.4 MB, free: 2.426 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.1169, allocations: 11.98 kB / 280.4 MB, free: 2.414 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/0.117, allocations: 4 kB / 280.4 MB, free: 2.41 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.1171, allocations: 23.98 kB / 280.4 MB, free: 2.387 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.1171, allocations: 8.125 kB / 280.4 MB, free: 2.379 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1171, allocations: 8.031 kB / 280.5 MB, free: 2.371 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.1191, allocations: 0.6816 MB / 281.1 MB, free: 1.648 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.1205, allocations: 0.4957 MB / 281.6 MB, free: 1.133 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.1207, allocations: 24 kB / 281.7 MB, free: 1.109 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004151/0.1212, allocations: 27.97 kB / 281.7 MB, free: 1.082 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.1214, allocations: 59.94 kB / 281.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.1216, allocations: 107.9 kB / 281.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001735/0.1234, allocations: 0.7328 MB / 282.6 MB, free: 196 kB / 234.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1234, allocations: 0 / 282.6 MB, free: 196 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.0006051/0.124, allocations: 91.91 kB / 282.7 MB, free: 104 kB / 234.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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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.0002788/0.1243, allocations: 138.5 kB / 282.8 MB, free: 15.96 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.1259, allocations: 0.6575 MB / 283.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.126, allocations: 0 / 283.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.1269, allocations: 0.5327 MB / 284 MB, free: 14.67 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.1282, allocations: 178.8 kB / 284.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.1321, allocations: 1.5 MB / 285.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.1332, allocations: 0.9756 MB / 286.6 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000578/0.1338, allocations: 165.1 kB / 286.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.1341, allocations: 71.3 kB / 286.9 MB, free: 11.74 MB / 250.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1341, allocations: 0 / 286.9 MB, free: 11.74 MB / 250.7 MB Notification: Performance of Templates: time 0.01823/0.1523, allocations: 6.683 MB / 293.6 MB, free: 5.047 MB / 250.7 MB