Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.943/1.943, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.03e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4246/0.5267, allocations: 84.44 MB / 427.1 MB, free: 9.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.527, allocations: 69.97 kB / 427.1 MB, free: 9.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1212/0.6483, allocations: 35 MB / 462.1 MB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6483, allocations: 4 kB / 462.1 MB, free: 11.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.302e-05/0.6484, allocations: 12 kB / 462.1 MB, free: 11.51 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.001213/0.6496, allocations: 0.8779 MB / 463 MB, free: 10.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.6497, allocations: 8.031 kB / 463 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.6498, allocations: 50.55 kB / 463.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.65, allocations: 79.06 kB / 463.2 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007547/0.6507, allocations: 403.5 kB / 463.6 MB, free: 9.977 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.6508, allocations: 20 kB / 463.6 MB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-05/0.6509, allocations: 20 kB / 463.6 MB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008047/0.6517, allocations: 293.4 kB / 463.9 MB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.6517, allocations: 4 kB / 463.9 MB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.6518, allocations: 8 kB / 463.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.6518, allocations: 4 kB / 463.9 MB, free: 9.629 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006141/0.6525, allocations: 203.9 kB / 464.1 MB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.6544, allocations: 0.8787 MB / 465 MB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.655, allocations: 210.5 kB / 465.2 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000377/0.6554, allocations: 156.8 kB / 465.3 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.344e-05/0.6555, allocations: 8.094 kB / 465.3 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007037/0.6562, allocations: 377.8 kB / 465.7 MB, free: 7.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.966e-06/0.6562, allocations: 0 / 465.7 MB, free: 7.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001463/0.6577, allocations: 0.585 MB / 466.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.6578, allocations: 182.1 kB / 466.5 MB, free: 6.883 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.6597, allocations: 0.8744 MB / 467.3 MB, free: 6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.682e-05/0.6598, allocations: 37.7 kB / 467.4 MB, free: 5.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.6599, allocations: 204.2 kB / 467.6 MB, free: 5.754 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.6601, allocations: 55.34 kB / 467.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-05/0.6601, allocations: 11.98 kB / 467.6 MB, free: 5.688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.6603, allocations: 318.8 kB / 468 MB, free: 5.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.6607, allocations: 124 kB / 468.1 MB, free: 5.246 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003911/0.6611, allocations: 150.5 kB / 468.2 MB, free: 5.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.6615, allocations: 226.9 kB / 468.4 MB, free: 4.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.6615, allocations: 3.953 kB / 468.5 MB, free: 4.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001336/0.6629, allocations: 0.5393 MB / 469 MB, free: 4.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.663, allocations: 134.8 kB / 469.1 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.663, allocations: 4 kB / 469.1 MB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.663, allocations: 0 / 469.1 MB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.6632, allocations: 15.98 kB / 469.1 MB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.6632, allocations: 0 / 469.1 MB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/0.6637, allocations: 35.81 kB / 469.2 MB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.6639, allocations: 115.9 kB / 469.3 MB, free: 3.945 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.0003201/0.6643, allocations: 278 kB / 469.6 MB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.6644, allocations: 83.02 kB / 469.6 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004055/0.6648, allocations: 138.2 kB / 469.8 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.6649, allocations: 0 / 469.8 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6649, allocations: 0 / 469.8 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.6649, allocations: 4 kB / 469.8 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.666, allocations: 0.618 MB / 470.4 MB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.666, allocations: 0 / 470.4 MB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.879e-05/0.6661, allocations: 8 kB / 470.4 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.6661, allocations: 4 kB / 470.4 MB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.312e-05/0.6662, allocations: 23.98 kB / 470.4 MB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.6662, allocations: 4 kB / 470.4 MB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.6662, allocations: 0 / 470.4 MB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.6677, allocations: 0.6784 MB / 471.1 MB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.6689, allocations: 0.4996 MB / 471.6 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.669, allocations: 20.19 kB / 471.6 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.6695, allocations: 27.89 kB / 471.7 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.6697, allocations: 67.84 kB / 471.7 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.6699, allocations: 111.9 kB / 471.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00148/0.6714, allocations: 0.7173 MB / 472.6 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6714, allocations: 0 / 472.6 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005421/0.672, allocations: 88 kB / 472.6 MB, free: 464 kB / 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.002008/0.674, allocations: 1.258 MB / 473.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.6752, allocations: 0.6384 MB / 474.5 MB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6752, allocations: 0 / 474.5 MB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.676, allocations: 0.5249 MB / 475.1 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.6772, allocations: 162.4 kB / 475.2 MB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003481/0.6807, allocations: 1.298 MB / 476.5 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.6817, allocations: 0.976 MB / 477.5 MB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/0.6822, allocations: 155.8 kB / 477.6 MB, free: 11.22 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6822, allocations: 0 / 477.6 MB, free: 11.22 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.611/3.293, allocations: 6.499 MB / 484.1 MB, free: 4.684 MB / 394.7 MB