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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.119e-05, allocations: 4 kB / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.08682, allocations: 38.77 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003102/0.08998, allocations: 1.724 MB / 268.6 MB, free: 15.4 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003186/0.09323, allocations: 0.9365 MB / 269.5 MB, free: 14.46 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.09347, allocations: 12 kB / 269.6 MB, free: 14.45 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.09368, allocations: 23.78 kB / 269.6 MB, free: 14.43 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.09387, allocations: 51.83 kB / 269.6 MB, free: 14.38 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.09431, allocations: 67.92 kB / 269.7 MB, free: 14.31 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.09467, allocations: 163.6 kB / 269.9 MB, free: 14.15 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.09491, allocations: 68.78 kB / 269.9 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.09612, allocations: 0.6474 MB / 270.6 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003306/0.09648, allocations: 175.6 kB / 270.7 MB, free: 13.25 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.09661, allocations: 12 kB / 270.8 MB, free: 13.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.09672, allocations: 12 kB / 270.8 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.09696, allocations: 147.5 kB / 270.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.09715, allocations: 31.94 kB / 270.9 MB, free: 13.05 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.09826, allocations: 0.7835 MB / 271.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.09829, allocations: 0 / 271.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.09831, allocations: 0 / 271.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.09834, allocations: 0 / 271.7 MB, free: 12.27 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.001465/0.09982, allocations: 0.8555 MB / 272.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.09989, allocations: 8.031 kB / 272.6 MB, free: 11.33 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.1002, allocations: 87.06 kB / 272.7 MB, free: 11.25 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007601/0.1009, allocations: 403.5 kB / 273.1 MB, free: 10.81 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.747e-05/0.101, allocations: 12 kB / 273.1 MB, free: 10.8 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.1011, allocations: 20 kB / 273.1 MB, free: 10.78 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1021, allocations: 297.4 kB / 273.4 MB, free: 10.48 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1022, allocations: 3.938 kB / 273.4 MB, free: 10.48 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-05/0.1023, allocations: 15.98 kB / 273.4 MB, free: 10.46 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1023, allocations: 7.938 kB / 273.4 MB, free: 10.45 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000798/0.1031, allocations: 203.9 kB / 273.6 MB, free: 10.25 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.1054, allocations: 0.898 MB / 274.5 MB, free: 9.305 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008067/0.1063, allocations: 218.5 kB / 274.7 MB, free: 9.082 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.1063, allocations: 0 / 274.7 MB, free: 9.082 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009236/0.1073, allocations: 385.9 kB / 275.1 MB, free: 8.668 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.1073, allocations: 0 / 275.1 MB, free: 8.668 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002599/0.1099, allocations: 0.8804 MB / 276 MB, free: 7.719 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.1101, allocations: 178.2 kB / 276.2 MB, free: 7.508 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.1123, allocations: 0.8782 MB / 277 MB, free: 6.625 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.1125, allocations: 33.7 kB / 277.1 MB, free: 6.586 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.1127, allocations: 212.1 kB / 277.3 MB, free: 6.375 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1129, allocations: 55.34 kB / 277.3 MB, free: 6.32 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.1129, allocations: 4 kB / 277.3 MB, free: 6.316 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1131, allocations: 327 kB / 277.7 MB, free: 5.988 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004856/0.1136, allocations: 119.9 kB / 277.8 MB, free: 5.871 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/0.1141, allocations: 172.2 kB / 277.9 MB, free: 5.688 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.1147, allocations: 222.7 kB / 278.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1147, allocations: 0 / 278.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001621/0.1163, allocations: 0.5431 MB / 278.7 MB, free: 4.871 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.1165, allocations: 136.3 kB / 278.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1165, allocations: 7.984 kB / 278.8 MB, free: 4.707 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1165, allocations: 4.062 kB / 278.8 MB, free: 4.703 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.1167, allocations: 15.94 kB / 278.9 MB, free: 4.688 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1167, allocations: 0 / 278.9 MB, free: 4.688 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.1172, allocations: 43.81 kB / 278.9 MB, free: 4.645 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.1175, allocations: 115.9 kB / 279 MB, free: 4.531 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.001068/0.1185, allocations: 0.5336 MB / 279.6 MB, free: 3.965 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.1187, allocations: 79.06 kB / 279.6 MB, free: 3.887 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003221/0.1191, allocations: 126.4 kB / 279.8 MB, free: 3.758 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.1191, allocations: 4 kB / 279.8 MB, free: 3.754 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1191, allocations: 0 / 279.8 MB, free: 3.754 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1191, allocations: 48 / 279.8 MB, free: 3.754 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.1203, allocations: 0.6296 MB / 280.4 MB, free: 3.074 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.1203, allocations: 0 / 280.4 MB, free: 3.074 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.17e-05/0.1204, allocations: 8 kB / 280.4 MB, free: 3.066 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.1205, allocations: 4 kB / 280.4 MB, free: 3.062 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-05/0.1205, allocations: 27.98 kB / 280.4 MB, free: 3.035 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1206, allocations: 96 / 280.4 MB, free: 3.035 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1206, allocations: 3.938 kB / 280.4 MB, free: 3.031 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.1225, allocations: 0.6893 MB / 281.1 MB, free: 2.301 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.1238, allocations: 0.4996 MB / 281.6 MB, free: 1.781 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.124, allocations: 20 kB / 281.6 MB, free: 1.762 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.1244, allocations: 36.05 kB / 281.7 MB, free: 1.727 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.1247, allocations: 59.91 kB / 281.7 MB, free: 1.668 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/0.1249, allocations: 111.9 kB / 281.8 MB, free: 1.559 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001656/0.1265, allocations: 0.7289 MB / 282.6 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.1266, allocations: 0 / 282.6 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000539/0.1271, allocations: 91.91 kB / 282.7 MB, free: 0.7461 MB / 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.0002665/0.1274, allocations: 142.5 kB / 282.8 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.129, allocations: 0.6575 MB / 283.5 MB, free: 15.89 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.129, allocations: 0 / 283.5 MB, free: 15.89 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009577/0.13, allocations: 0.5288 MB / 284 MB, free: 15.31 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.1311, allocations: 170.8 kB / 284.2 MB, free: 15.15 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.135, allocations: 1.576 MB / 285.7 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/0.1361, allocations: 0.9834 MB / 286.7 MB, free: 12.53 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.1366, allocations: 87.25 kB / 286.8 MB, free: 12.45 MB / 250.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1366, allocations: 0 / 286.8 MB, free: 12.45 MB / 250.7 MB Notification: Performance of Templates: time 0.01365/0.1503, allocations: 5.33 MB / 292.1 MB, free: 7.07 MB / 250.7 MB