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_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.189/2.189, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.293e-05/3.297e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.4 MB / 345 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002911/0.1139, allocations: 1.725 MB / 346.7 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.1169, allocations: 0.9282 MB / 347.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.1171, allocations: 11.94 kB / 347.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1173, allocations: 23.83 kB / 347.7 MB, free: 6.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1175, allocations: 47.86 kB / 347.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.1179, allocations: 79.77 kB / 347.8 MB, free: 6.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.1182, allocations: 159.7 kB / 347.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.1185, allocations: 56.92 kB / 348 MB, free: 5.938 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1195, allocations: 0.6551 MB / 348.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003005/0.1199, allocations: 175.6 kB / 348.8 MB, free: 5.109 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.805e-05/0.12, allocations: 8 kB / 348.8 MB, free: 5.102 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.658e-05/0.1201, allocations: 12 kB / 348.8 MB, free: 5.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002378/0.1203, allocations: 143.5 kB / 349 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.1205, allocations: 32 kB / 349 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009928/0.1215, allocations: 0.7874 MB / 349.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1215, allocations: 0 / 349.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1216, allocations: 0 / 349.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.008e-05/0.1216, allocations: 0 / 349.8 MB, free: 4.129 MB / 282.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.001259/0.1228, allocations: 0.8594 MB / 350.7 MB, free: 3.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1229, allocations: 8.031 kB / 350.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.1231, allocations: 79.06 kB / 350.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006912/0.1238, allocations: 391.5 kB / 351.1 MB, free: 2.684 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/0.1239, allocations: 23.94 kB / 351.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.623e-05/0.124, allocations: 20 kB / 351.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.125, allocations: 293.4 kB / 351.5 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1251, allocations: 3.984 kB / 351.5 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.964e-05/0.1251, allocations: 19.95 kB / 351.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1252, allocations: 0 / 351.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007575/0.1259, allocations: 203.9 kB / 351.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.128, allocations: 0.8943 MB / 352.6 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.1288, allocations: 214.6 kB / 352.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.1289, allocations: 4 kB / 352.8 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008428/0.1298, allocations: 390 kB / 353.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.631e-06/0.1298, allocations: 0 / 353.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002409/0.1322, allocations: 0.8933 MB / 354.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.1324, allocations: 174.2 kB / 354.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.1344, allocations: 0.8821 MB / 355.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.1346, allocations: 37.7 kB / 355.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.1348, allocations: 204.2 kB / 355.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.1349, allocations: 51.36 kB / 355.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.1349, allocations: 8 kB / 355.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1351, allocations: 322.8 kB / 355.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.1356, allocations: 123.9 kB / 355.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.1361, allocations: 163.5 kB / 356 MB, free: 13.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/0.1366, allocations: 226.8 kB / 356.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1367, allocations: 0 / 356.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001564/0.1382, allocations: 0.5625 MB / 356.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.1384, allocations: 130.9 kB / 356.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1384, allocations: 7.938 kB / 356.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1384, allocations: 0 / 356.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.1386, allocations: 15.98 kB / 356.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1386, allocations: 4.062 kB / 356.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005367/0.1392, allocations: 39.83 kB / 357 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.1394, allocations: 111.9 kB / 357.1 MB, free: 12.39 MB / 298.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.001066/0.1404, allocations: 0.5259 MB / 357.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/0.1406, allocations: 91.05 kB / 357.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003614/0.141, allocations: 130.4 kB / 357.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.141, allocations: 0 / 357.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1411, allocations: 4 kB / 357.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1411, allocations: 0 / 357.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1422, allocations: 0.6181 MB / 358.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1422, allocations: 0 / 358.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.792e-05/0.1424, allocations: 11.94 kB / 358.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.1424, allocations: 3.953 kB / 358.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.88e-05/0.1425, allocations: 31.97 kB / 358.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.992e-06/0.1425, allocations: 3.984 kB / 358.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1425, allocations: 4 kB / 358.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.1444, allocations: 0.6763 MB / 359.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/0.1456, allocations: 0.4919 MB / 359.7 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.1458, allocations: 23.95 kB / 359.7 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.1462, allocations: 43.75 kB / 359.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.1465, allocations: 47.94 kB / 359.8 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/0.1467, allocations: 123.9 kB / 359.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001673/0.1484, allocations: 0.7289 MB / 360.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.1484, allocations: 0 / 360.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005858/0.149, allocations: 87.94 kB / 360.7 MB, free: 8.609 MB / 298.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.0002614/0.1493, allocations: 142.7 kB / 360.9 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.1508, allocations: 0.6501 MB / 361.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1508, allocations: 0 / 361.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009066/0.1518, allocations: 0.5288 MB / 362 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.153, allocations: 170.3 kB / 362.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.1567, allocations: 1.575 MB / 363.8 MB, free: 5.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009352/0.1577, allocations: 0.9756 MB / 364.8 MB, free: 4.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000397/0.1581, allocations: 91.23 kB / 364.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1582, allocations: 0 / 364.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of Templates: time 0.0127/0.1709, allocations: 5.32 MB / 370.2 MB, free: 14.95 MB / 314.7 MB