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.805/1.805, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.895e-05/2.906e-05, allocations: 3.375 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07672/0.07677, allocations: 44.5 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4406, allocations: 79 MB / 378.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4409, allocations: 71.53 kB / 378.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09672/0.5376, allocations: 34.55 MB / 413.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.269e-06/0.5377, allocations: 0 / 413.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.571e-05/0.5377, allocations: 15.66 kB / 413.5 MB, free: 14.74 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.0008774/0.5386, allocations: 0.8746 MB / 414.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.5387, allocations: 11.72 kB / 414.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.5388, allocations: 82.03 kB / 414.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005229/0.5393, allocations: 399.1 kB / 414.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.5394, allocations: 19.44 kB / 414.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.5395, allocations: 18.62 kB / 414.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.5401, allocations: 297.8 kB / 415.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.5401, allocations: 0 / 415.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.5402, allocations: 10.72 kB / 415.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.5402, allocations: 3.906 kB / 415.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.5406, allocations: 198.4 kB / 415.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.542, allocations: 0.871 MB / 416.3 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.5425, allocations: 219.5 kB / 416.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.5428, allocations: 152 kB / 416.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.5428, allocations: 0 / 416.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005062/0.5434, allocations: 385.7 kB / 417 MB, free: 12.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.026e-06/0.5434, allocations: 0 / 417 MB, free: 12.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001142/0.5445, allocations: 0.5881 MB / 417.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.5446, allocations: 173.5 kB / 417.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.546, allocations: 0.8802 MB / 418.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.5461, allocations: 32.86 kB / 418.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.5462, allocations: 209.2 kB / 418.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.05e-05/0.5463, allocations: 62.19 kB / 418.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.5463, allocations: 7.094 kB / 418.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.576e-05/0.5464, allocations: 322.5 kB / 419.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.5467, allocations: 117.5 kB / 419.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.547, allocations: 151.1 kB / 419.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.5473, allocations: 231.9 kB / 419.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.27e-06/0.5473, allocations: 0 / 419.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001024/0.5484, allocations: 0.545 MB / 420.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.484e-05/0.5485, allocations: 133.5 kB / 420.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.009e-06/0.5485, allocations: 3.906 kB / 420.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.5485, allocations: 0 / 420.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.935e-05/0.5486, allocations: 23.47 kB / 420.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.422e-06/0.5486, allocations: 0 / 420.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.549, allocations: 35.36 kB / 420.5 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.5491, allocations: 116.2 kB / 420.6 MB, free: 10.8 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.0002094/0.5494, allocations: 267.8 kB / 420.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.5495, allocations: 77.94 kB / 420.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.5498, allocations: 131.3 kB / 421.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.074e-06/0.5498, allocations: 7.906 kB / 421.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.844e-06/0.5498, allocations: 3.953 kB / 421.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.551e-06/0.5499, allocations: 3.938 kB / 421.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008414/0.5507, allocations: 0.6216 MB / 421.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.5507, allocations: 0 / 421.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.358e-05/0.5508, allocations: 11.8 kB / 421.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.13e-06/0.5508, allocations: 0 / 421.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/0.5509, allocations: 31.17 kB / 421.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.723e-06/0.5509, allocations: 3.906 kB / 421.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.738e-06/0.5509, allocations: 3.953 kB / 421.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.5522, allocations: 0.6779 MB / 422.4 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007829/0.553, allocations: 498.7 kB / 422.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.5531, allocations: 20.34 kB / 422.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/0.5535, allocations: 33.78 kB / 423 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.5537, allocations: 52.44 kB / 423 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.5538, allocations: 125.3 kB / 423.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.5549, allocations: 0.7262 MB / 423.9 MB, free: 9.156 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.84e-07/0.5549, allocations: 4 kB / 423.9 MB, free: 9.152 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004746/0.5554, allocations: 85.69 kB / 423.9 MB, free: 9.152 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.000184/0.5556, allocations: 133.6 kB / 424.1 MB, free: 9.055 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008609/0.5565, allocations: 0.6451 MB / 424.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.122e-06/0.5565, allocations: 0 / 424.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005576/0.5571, allocations: 0.5239 MB / 425.2 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.5579, allocations: 158.9 kB / 425.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.5601, allocations: 1.161 MB / 426.6 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006483/0.5607, allocations: 0.9741 MB / 427.5 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003652/0.5611, allocations: 95.77 kB / 427.6 MB, free: 7.062 MB / 314.7 MB Notification: Performance of SimCode: time 1.768e-06/0.5611, allocations: 0 / 427.6 MB, free: 7.062 MB / 314.7 MB Notification: Performance of Templates: time 0.008091/0.5692, allocations: 5.288 MB / 432.9 MB, free: 4.484 MB / 314.7 MB