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.98/1.98, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.183e-05, allocations: 4 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2957, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002897/0.2986, allocations: 1.722 MB / 305 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003037/0.3017, allocations: 0.9657 MB / 306 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.302, allocations: 9.219 kB / 306 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.3021, allocations: 25.25 kB / 306 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.3023, allocations: 49.47 kB / 306.1 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.3027, allocations: 73.53 kB / 306.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.3031, allocations: 163.7 kB / 306.3 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.3033, allocations: 58.28 kB / 306.3 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.3044, allocations: 0.6488 MB / 307 MB, free: 10 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.3047, allocations: 175.6 kB / 307.2 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.772e-05/0.3048, allocations: 8 kB / 307.2 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.614e-05/0.3049, allocations: 8 kB / 307.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.3052, allocations: 151.4 kB / 307.3 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3053, allocations: 32 kB / 307.4 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009931/0.3064, allocations: 0.7889 MB / 308.1 MB, free: 8.848 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3064, allocations: 3.938 kB / 308.1 MB, free: 8.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3064, allocations: 0 / 308.1 MB, free: 8.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.3064, allocations: 4 kB / 308.2 MB, free: 8.84 MB / 250.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.001221/0.3076, allocations: 0.8401 MB / 309 MB, free: 7.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3077, allocations: 12.03 kB / 309 MB, free: 7.914 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002483/0.308, allocations: 90.92 kB / 309.1 MB, free: 7.824 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.3087, allocations: 399.5 kB / 309.5 MB, free: 7.391 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.613e-05/0.3087, allocations: 16 kB / 309.5 MB, free: 7.375 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.908e-05/0.3088, allocations: 16 kB / 309.5 MB, free: 7.359 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009667/0.3098, allocations: 301.4 kB / 309.8 MB, free: 7.059 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3099, allocations: 0 / 309.8 MB, free: 7.059 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.3099, allocations: 8 kB / 309.8 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.31, allocations: 4 kB / 309.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007727/0.3107, allocations: 203.9 kB / 310 MB, free: 6.848 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.3129, allocations: 0.8979 MB / 310.9 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007766/0.3137, allocations: 218.4 kB / 311.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.3137, allocations: 0 / 311.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008406/0.3146, allocations: 386 kB / 311.5 MB, free: 5.262 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 4.959e-06/0.3146, allocations: 3.984 kB / 311.5 MB, free: 5.258 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.002372/0.317, allocations: 0.8904 MB / 312.4 MB, free: 4.301 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.3172, allocations: 170.2 kB / 312.6 MB, free: 4.098 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/0.3191, allocations: 0.8821 MB / 313.5 MB, free: 3.211 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.3193, allocations: 37.7 kB / 313.5 MB, free: 3.168 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.3195, allocations: 208.3 kB / 313.7 MB, free: 2.961 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3196, allocations: 63.19 kB / 313.8 MB, free: 2.898 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.3196, allocations: 8 kB / 313.8 MB, free: 2.891 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3198, allocations: 318.8 kB / 314.1 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005062/0.3203, allocations: 120 kB / 314.2 MB, free: 2.453 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.3208, allocations: 156.3 kB / 314.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.3213, allocations: 234.6 kB / 314.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.3214, allocations: 4 kB / 314.6 MB, free: 2.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001546/0.3229, allocations: 0.5431 MB / 315.1 MB, free: 1.453 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.3231, allocations: 136.5 kB / 315.3 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3231, allocations: 0 / 315.3 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.3231, allocations: 4 kB / 315.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3233, allocations: 19.88 kB / 315.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3233, allocations: 7.938 kB / 315.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.3238, allocations: 39.94 kB / 315.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/0.324, allocations: 111.9 kB / 315.4 MB, free: 1.117 MB / 250.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.0009923/0.325, allocations: 0.5289 MB / 316 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3252, allocations: 75.16 kB / 316 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.3256, allocations: 130.4 kB / 316.2 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3256, allocations: 7.938 kB / 316.2 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3256, allocations: 3.953 kB / 316.2 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.3256, allocations: 3.984 kB / 316.2 MB, free: 340 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.3267, allocations: 0.6257 MB / 316.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3268, allocations: 0 / 316.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.3269, allocations: 15.98 kB / 316.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.3269, allocations: 0 / 316.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.07e-05/0.327, allocations: 23.98 kB / 316.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.327, allocations: 4 kB / 316.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.327, allocations: 3.953 kB / 316.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.3289, allocations: 0.6828 MB / 317.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.3301, allocations: 499.6 kB / 318 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.3303, allocations: 24 kB / 318 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.3307, allocations: 32.09 kB / 318.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.331, allocations: 51.94 kB / 318.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/0.3312, allocations: 119.8 kB / 318.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001631/0.3328, allocations: 0.7367 MB / 319 MB, free: 13.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3328, allocations: 0 / 319 MB, free: 13.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005813/0.3334, allocations: 95.84 kB / 319.1 MB, free: 13.33 MB / 266.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.00025/0.3337, allocations: 134.8 kB / 319.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.3353, allocations: 0.6613 MB / 319.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.3353, allocations: 4 kB / 319.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/0.3363, allocations: 0.5288 MB / 320.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.3375, allocations: 172.4 kB / 320.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.3412, allocations: 1.572 MB / 322.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009153/0.3421, allocations: 0.9833 MB / 323.1 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.3426, allocations: 95.23 kB / 323.2 MB, free: 9.016 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3426, allocations: 0 / 323.2 MB, free: 9.016 MB / 266.7 MB Notification: Performance of Templates: time 0.01253/0.3551, allocations: 5.29 MB / 328.5 MB, free: 3.676 MB / 266.7 MB