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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.744e-05/2.769e-05, allocations: 0 / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2124, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1107/0.3231, allocations: 73.68 MB / 337.5 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.3234, allocations: 72.03 kB / 337.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.291/0.6145, allocations: 34.55 MB / 372.1 MB, free: 88.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.773e-06/0.6145, allocations: 1.781 kB / 372.1 MB, free: 88.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.6146, allocations: 8.938 kB / 372.1 MB, free: 88.7 MB / 314.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.0008831/0.6155, allocations: 0.8781 MB / 373 MB, free: 88.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.6155, allocations: 11.69 kB / 373 MB, free: 88.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.6157, allocations: 80.78 kB / 373.1 MB, free: 88.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005538/0.6162, allocations: 406 kB / 373.5 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.6163, allocations: 14.25 kB / 373.5 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.098e-05/0.6164, allocations: 19.38 kB / 373.5 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000649/0.617, allocations: 297.3 kB / 373.8 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.6171, allocations: 0 / 373.8 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-05/0.6171, allocations: 12.75 kB / 373.8 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.917e-06/0.6171, allocations: 0 / 373.8 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004584/0.6176, allocations: 199.9 kB / 374 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.6192, allocations: 0.8892 MB / 374.9 MB, free: 87.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/0.6197, allocations: 210.2 kB / 375.1 MB, free: 87.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.62, allocations: 155.9 kB / 375.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.6201, allocations: 0 / 375.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005073/0.6206, allocations: 380.2 kB / 375.6 MB, free: 87.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.247e-06/0.6206, allocations: 3.938 kB / 375.6 MB, free: 87.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001123/0.6217, allocations: 0.5909 MB / 376.2 MB, free: 87.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.6218, allocations: 175.2 kB / 376.4 MB, free: 86.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.6233, allocations: 0.8704 MB / 377.2 MB, free: 86.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.472e-05/0.6234, allocations: 39.89 kB / 377.3 MB, free: 86.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.555e-05/0.6235, allocations: 159.2 kB / 377.4 MB, free: 86.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.82e-05/0.6236, allocations: 51.44 kB / 377.5 MB, free: 86.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-05/0.6236, allocations: 5.781 kB / 377.5 MB, free: 86.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.09e-05/0.6237, allocations: 340 kB / 377.8 MB, free: 86.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.624, allocations: 129.1 kB / 377.9 MB, free: 86.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.6244, allocations: 145.1 kB / 378.1 MB, free: 86.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.6247, allocations: 223.8 kB / 378.3 MB, free: 85.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.081e-06/0.6247, allocations: 0 / 378.3 MB, free: 85.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00113/0.6259, allocations: 0.5558 MB / 378.9 MB, free: 85.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.727e-05/0.626, allocations: 134 kB / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.252e-06/0.626, allocations: 0 / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.626, allocations: 3.406 kB / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.616e-05/0.6261, allocations: 13.7 kB / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.192e-06/0.6262, allocations: 4 kB / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.6266, allocations: 35.66 kB / 379 MB, free: 85.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.6267, allocations: 116.6 kB / 379.2 MB, free: 85.68 MB / 314.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.0002231/0.6269, allocations: 270.6 kB / 379.4 MB, free: 85.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.6271, allocations: 81.09 kB / 379.5 MB, free: 85.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003802/0.6275, allocations: 130.8 kB / 379.6 MB, free: 85.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.79e-06/0.6275, allocations: 3.984 kB / 379.6 MB, free: 85.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.704e-06/0.6275, allocations: 7.625 kB / 379.6 MB, free: 85.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.555e-06/0.6275, allocations: 0 / 379.6 MB, free: 85.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008739/0.6284, allocations: 0.6297 MB / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.602e-06/0.6284, allocations: 0.75 kB / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.6285, allocations: 17.12 kB / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.252e-06/0.6285, allocations: 0 / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.487e-05/0.6286, allocations: 25.84 kB / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.685e-06/0.6286, allocations: 7.938 kB / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6286, allocations: 0 / 380.3 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.6299, allocations: 0.6746 MB / 381 MB, free: 84.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008691/0.6308, allocations: 0.4925 MB / 381.5 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.631, allocations: 20.16 kB / 381.5 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.6314, allocations: 29.14 kB / 381.5 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.6316, allocations: 54.64 kB / 381.6 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.6317, allocations: 117 kB / 381.7 MB, free: 84.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001233/0.633, allocations: 0.7195 MB / 382.4 MB, free: 84.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.796e-06/0.633, allocations: 0 / 382.4 MB, free: 84.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005172/0.6335, allocations: 89.19 kB / 382.5 MB, free: 84.31 MB / 314.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.0002002/0.6337, allocations: 147.6 kB / 382.7 MB, free: 84.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008995/0.6347, allocations: 0.6425 MB / 383.3 MB, free: 83.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.679e-06/0.6347, allocations: 0 / 383.3 MB, free: 83.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005594/0.6352, allocations: 0.5155 MB / 383.8 MB, free: 83.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008588/0.6361, allocations: 182.3 kB / 384 MB, free: 83.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.6384, allocations: 1.085 MB / 385.1 MB, free: 82.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.6391, allocations: 0.979 MB / 386.1 MB, free: 81.96 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004809/0.6396, allocations: 167.3 kB / 386.2 MB, free: 81.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002314/0.6398, allocations: 76.78 kB / 386.3 MB, free: 81.81 MB / 314.7 MB Notification: Performance of SimCode: time 1.868e-06/0.6398, allocations: 0 / 386.3 MB, free: 81.81 MB / 314.7 MB Notification: Performance of Templates: time 0.01295/0.6528, allocations: 6.686 MB / 393 MB, free: 78 MB / 314.7 MB