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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.002e-05, allocations: 4 kB / 258.8 MB, free: 8.059 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3071, allocations: 44.51 MB / 303.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002961/0.3101, allocations: 1.718 MB / 305 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003059/0.3132, allocations: 0.9611 MB / 306 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.3134, allocations: 8.562 kB / 306 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.3136, allocations: 25.66 kB / 306 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.3138, allocations: 45.89 kB / 306.1 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.3143, allocations: 78.3 kB / 306.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.3146, allocations: 158.9 kB / 306.3 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.3149, allocations: 58.97 kB / 306.4 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.316, allocations: 0.659 MB / 307 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.3163, allocations: 167.6 kB / 307.2 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.3164, allocations: 8 kB / 307.2 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.845e-05/0.3165, allocations: 12 kB / 307.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.3167, allocations: 155.4 kB / 307.4 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.3169, allocations: 32 kB / 307.4 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.318, allocations: 0.7817 MB / 308.2 MB, free: 8.75 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.318, allocations: 0 / 308.2 MB, free: 8.75 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.318, allocations: 0 / 308.2 MB, free: 8.75 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.383e-05/0.3181, allocations: 0 / 308.2 MB, free: 8.75 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.001243/0.3193, allocations: 0.8478 MB / 309 MB, free: 7.828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3194, allocations: 11.97 kB / 309 MB, free: 7.816 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.3196, allocations: 86.92 kB / 309.1 MB, free: 7.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007085/0.3203, allocations: 407.5 kB / 309.5 MB, free: 7.289 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.588e-05/0.3204, allocations: 16 kB / 309.5 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.3205, allocations: 20 kB / 309.5 MB, free: 7.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009796/0.3215, allocations: 293.4 kB / 309.8 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3215, allocations: 0 / 309.8 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.697e-05/0.3216, allocations: 8 kB / 309.8 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.3216, allocations: 4 kB / 309.8 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007836/0.3224, allocations: 207.9 kB / 310.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.3245, allocations: 0.894 MB / 310.9 MB, free: 5.801 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.3253, allocations: 222.5 kB / 311.2 MB, free: 5.574 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-05/0.3254, allocations: 4 kB / 311.2 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008656/0.3262, allocations: 377.9 kB / 311.5 MB, free: 5.164 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.436e-06/0.3263, allocations: 0 / 311.5 MB, free: 5.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.002821/0.3291, allocations: 0.8904 MB / 312.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.3293, allocations: 174.2 kB / 312.6 MB, free: 4 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.3313, allocations: 0.886 MB / 313.5 MB, free: 3.109 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.071e-05/0.3314, allocations: 37.7 kB / 313.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3316, allocations: 145.9 kB / 313.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.3317, allocations: 63.19 kB / 313.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.3318, allocations: 8 kB / 313.7 MB, free: 2.848 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3319, allocations: 338.8 kB / 314.1 MB, free: 2.508 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004801/0.3324, allocations: 116 kB / 314.2 MB, free: 2.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/0.333, allocations: 164.2 kB / 314.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005076/0.3335, allocations: 230.7 kB / 314.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3335, allocations: 0 / 314.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001615/0.3351, allocations: 0.5625 MB / 315.1 MB, free: 1.375 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.3353, allocations: 130.8 kB / 315.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3353, allocations: 4 kB / 315.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.3353, allocations: 64 / 315.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.3355, allocations: 27.88 kB / 315.3 MB, free: 1.191 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3355, allocations: 7.938 kB / 315.3 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.336, allocations: 35.88 kB / 315.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.3362, allocations: 111.9 kB / 315.4 MB, free: 1.039 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.0009746/0.3372, allocations: 0.5338 MB / 316 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.3374, allocations: 75.16 kB / 316 MB, free: 404 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.3377, allocations: 126.4 kB / 316.2 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3377, allocations: 4.094 kB / 316.2 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.3377, allocations: 11.88 kB / 316.2 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.3377, allocations: 0 / 316.2 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.3389, allocations: 0.6296 MB / 316.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3389, allocations: 0 / 316.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.791e-05/0.339, allocations: 11.98 kB / 316.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.339, allocations: 0 / 316.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.3391, allocations: 27.98 kB / 316.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3391, allocations: 128 / 316.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.3391, allocations: 7.953 kB / 316.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.3409, allocations: 0.679 MB / 317.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.342, allocations: 0.4957 MB / 318 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.3422, allocations: 23.98 kB / 318.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.3427, allocations: 23.98 kB / 318.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.3429, allocations: 55.94 kB / 318.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.3431, allocations: 123.8 kB / 318.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0016/0.3447, allocations: 0.7328 MB / 319 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3447, allocations: 0 / 319 MB, free: 13.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006004/0.3454, allocations: 91.84 kB / 319.1 MB, free: 13.25 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.0002682/0.3456, allocations: 134.8 kB / 319.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3472, allocations: 0.6575 MB / 319.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.3472, allocations: 0 / 319.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009053/0.3482, allocations: 0.5327 MB / 320.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.3494, allocations: 169.9 kB / 320.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/0.3529, allocations: 1.496 MB / 322.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009847/0.354, allocations: 0.9795 MB / 323 MB, free: 9.117 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005615/0.3546, allocations: 165.1 kB / 323.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.3548, allocations: 67.3 kB / 323.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3548, allocations: 8.219 kB / 323.3 MB, free: 8.879 MB / 266.7 MB Notification: Performance of Templates: time 0.01746/0.3723, allocations: 6.699 MB / 330 MB, free: 2.172 MB / 266.7 MB