Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.213e-05, allocations: 11.98 kB / 292.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09177, allocations: 50.41 MB / 342.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3687/0.4605, allocations: 84.42 MB / 427 MB, free: 9.707 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.4607, allocations: 73.45 kB / 427 MB, free: 9.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1344/0.5951, allocations: 35 MB / 462 MB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.061e-06/0.5952, allocations: 3.938 kB / 462 MB, free: 11.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.493e-05/0.5952, allocations: 12 kB / 462.1 MB, free: 11.69 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.00118/0.5964, allocations: 0.8624 MB / 462.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.5964, allocations: 8.031 kB / 462.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.5966, allocations: 86.97 kB / 463 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000675/0.5973, allocations: 403.6 kB / 463.4 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.5974, allocations: 12 kB / 463.4 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.492e-05/0.5975, allocations: 20 kB / 463.4 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00071/0.5982, allocations: 289.5 kB / 463.7 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5982, allocations: 7.891 kB / 463.7 MB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.5983, allocations: 12 kB / 463.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-06/0.5983, allocations: 0 / 463.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005236/0.5989, allocations: 199.9 kB / 463.9 MB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.6006, allocations: 0.8865 MB / 464.8 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.6012, allocations: 218.5 kB / 465 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.6015, allocations: 148.8 kB / 465.2 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.6016, allocations: 0 / 465.2 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006562/0.6022, allocations: 389.8 kB / 465.6 MB, free: 7.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.258e-06/0.6023, allocations: 4 kB / 465.6 MB, free: 7.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001315/0.6036, allocations: 0.5853 MB / 466.1 MB, free: 7.336 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.6037, allocations: 170.2 kB / 466.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.6054, allocations: 0.8783 MB / 467.2 MB, free: 6.246 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.129e-05/0.6055, allocations: 33.7 kB / 467.2 MB, free: 6.207 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.6057, allocations: 208.2 kB / 467.4 MB, free: 6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.6058, allocations: 55.3 kB / 467.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.6059, allocations: 8 kB / 467.5 MB, free: 5.938 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.606, allocations: 318.8 kB / 467.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.6064, allocations: 124 kB / 467.9 MB, free: 5.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.6067, allocations: 150.5 kB / 468.1 MB, free: 5.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.6071, allocations: 222.8 kB / 468.3 MB, free: 5.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.199e-06/0.6072, allocations: 176 / 468.3 MB, free: 5.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001202/0.6084, allocations: 0.5432 MB / 468.8 MB, free: 4.523 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.6085, allocations: 134.8 kB / 469 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.484e-06/0.6085, allocations: 0 / 469 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.6086, allocations: 4 kB / 469 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.29e-05/0.6087, allocations: 11.94 kB / 469 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.6087, allocations: 11.98 kB / 469 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.6091, allocations: 31.83 kB / 469 MB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/0.6093, allocations: 119.9 kB / 469.1 MB, free: 4.191 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.0003194/0.6096, allocations: 265.9 kB / 469.4 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.6098, allocations: 91.02 kB / 469.5 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003835/0.6102, allocations: 130.2 kB / 469.6 MB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.368e-06/0.6102, allocations: 4 kB / 469.6 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.036e-06/0.6102, allocations: 0 / 469.6 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.303e-06/0.6102, allocations: 0 / 469.6 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.6113, allocations: 0.6142 MB / 470.2 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.6113, allocations: 4.078 kB / 470.2 MB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.6114, allocations: 12 kB / 470.2 MB, free: 3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-05/0.6114, allocations: 8.016 kB / 470.3 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.6115, allocations: 27.98 kB / 470.3 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.6115, allocations: 4 kB / 470.3 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.93e-06/0.6115, allocations: 0 / 470.3 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.6129, allocations: 0.6819 MB / 471 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009407/0.6139, allocations: 0.4996 MB / 471.5 MB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.6141, allocations: 20 kB / 471.5 MB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003336/0.6144, allocations: 35.88 kB / 471.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.6146, allocations: 48.12 kB / 471.6 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/0.6148, allocations: 119.9 kB / 471.7 MB, free: 1.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00134/0.6162, allocations: 0.7251 MB / 472.4 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.04e-07/0.6162, allocations: 0 / 472.4 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004949/0.6167, allocations: 80 kB / 472.5 MB, free: 0.7031 MB / 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.0002277/0.6169, allocations: 135.5 kB / 472.6 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.6181, allocations: 0.6458 MB / 473.3 MB, free: 15.87 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.079e-06/0.6181, allocations: 0 / 473.3 MB, free: 15.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007244/0.6188, allocations: 0.5249 MB / 473.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.6197, allocations: 170.2 kB / 474 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.6223, allocations: 1.156 MB / 475.1 MB, free: 13.94 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000968/0.6233, allocations: 0.9837 MB / 476.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.6237, allocations: 91.23 kB / 476.2 MB, free: 12.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.968e-06/0.6237, allocations: 0 / 476.2 MB, free: 12.84 MB / 394.7 MB Notification: Performance of Templates: time 0.009855/0.6336, allocations: 5.285 MB / 481.5 MB, free: 7.508 MB / 394.7 MB