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.669/1.669, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.218e-05, allocations: 4 kB / 225 MB, free: 2.789 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.217, allocations: 38.77 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.3377, allocations: 73.68 MB / 337.4 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.338, allocations: 75.95 kB / 337.5 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3689/0.707, allocations: 34.55 MB / 372.1 MB, free: 88.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.714e-06/0.7071, allocations: 0 / 372.1 MB, free: 88.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.279e-05/0.7071, allocations: 18.44 kB / 372.1 MB, free: 88.73 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.001789/0.7089, allocations: 0.8675 MB / 372.9 MB, free: 88.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.423e-05/0.709, allocations: 10.36 kB / 373 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003126/0.7094, allocations: 81.09 kB / 373 MB, free: 88.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.7106, allocations: 394.7 kB / 373.4 MB, free: 87.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-05/0.7107, allocations: 22.12 kB / 373.4 MB, free: 87.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.7109, allocations: 22.84 kB / 373.5 MB, free: 87.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.7123, allocations: 288.5 kB / 373.7 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.7123, allocations: 1.5 kB / 373.7 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.7125, allocations: 11.38 kB / 373.8 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.7125, allocations: 11.06 kB / 373.8 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.7135, allocations: 201.4 kB / 374 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.7167, allocations: 0.8932 MB / 374.9 MB, free: 87.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009833/0.7177, allocations: 204.1 kB / 375.1 MB, free: 87.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006514/0.7184, allocations: 155.4 kB / 375.2 MB, free: 87.49 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.656e-05/0.7185, allocations: 3.938 kB / 375.2 MB, free: 87.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007438/0.7192, allocations: 376.1 kB / 375.6 MB, free: 87.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.109e-06/0.7193, allocations: 0 / 375.6 MB, free: 87.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001092/0.7204, allocations: 0.5904 MB / 376.2 MB, free: 87.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.7205, allocations: 177.3 kB / 376.3 MB, free: 86.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.7218, allocations: 0.8765 MB / 377.2 MB, free: 86.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.7219, allocations: 36.14 kB / 377.3 MB, free: 86.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.121e-05/0.722, allocations: 208.4 kB / 377.5 MB, free: 86.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.631e-05/0.7221, allocations: 55.28 kB / 377.5 MB, free: 86.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.7222, allocations: 11.75 kB / 377.5 MB, free: 86.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.899e-05/0.7222, allocations: 325.7 kB / 377.8 MB, free: 86.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.7225, allocations: 120 kB / 378 MB, free: 86.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.7229, allocations: 152.4 kB / 378.1 MB, free: 86.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.7232, allocations: 222.7 kB / 378.3 MB, free: 85.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.856e-06/0.7232, allocations: 0 / 378.3 MB, free: 85.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001025/0.7242, allocations: 0.5365 MB / 378.9 MB, free: 85.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.233e-05/0.7243, allocations: 136.9 kB / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.836e-06/0.7243, allocations: 0 / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.7244, allocations: 2.781 kB / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.986e-05/0.7245, allocations: 14.03 kB / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.182e-06/0.7245, allocations: 0 / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003917/0.7249, allocations: 39.56 kB / 379.1 MB, free: 85.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.725, allocations: 114.9 kB / 379.2 MB, free: 85.66 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.0002237/0.7253, allocations: 277.1 kB / 379.4 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.7254, allocations: 74.34 kB / 379.5 MB, free: 85.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.7257, allocations: 134.1 kB / 379.6 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.462e-06/0.7258, allocations: 0 / 379.6 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.347e-06/0.7258, allocations: 0 / 379.6 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.3e-06/0.7258, allocations: 0 / 379.6 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007876/0.7266, allocations: 0.6292 MB / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.7266, allocations: 0 / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.169e-05/0.7267, allocations: 15.88 kB / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.142e-06/0.7267, allocations: 0 / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/0.7268, allocations: 30.22 kB / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.913e-06/0.7268, allocations: 0 / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.733e-06/0.7268, allocations: 3.844 kB / 380.3 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.7281, allocations: 0.6748 MB / 381 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008238/0.7289, allocations: 0.495 MB / 381.5 MB, free: 84.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.7291, allocations: 23.66 kB / 381.5 MB, free: 84.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.7294, allocations: 28.28 kB / 381.5 MB, free: 84.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.7297, allocations: 58.59 kB / 381.6 MB, free: 84.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.7298, allocations: 112.2 kB / 381.7 MB, free: 84.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001103/0.7309, allocations: 0.7318 MB / 382.4 MB, free: 84.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.28e-07/0.7309, allocations: 0 / 382.4 MB, free: 84.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000481/0.7314, allocations: 85.03 kB / 382.5 MB, free: 84.35 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.0001893/0.7316, allocations: 146.5 kB / 382.7 MB, free: 84.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008663/0.7325, allocations: 0.641 MB / 383.3 MB, free: 83.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.533e-06/0.7325, allocations: 0 / 383.3 MB, free: 83.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005042/0.733, allocations: 0.5201 MB / 383.8 MB, free: 83.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008253/0.7339, allocations: 174.4 kB / 384 MB, free: 83.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.736, allocations: 1.157 MB / 385.1 MB, free: 82.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006234/0.7367, allocations: 0.9888 MB / 386.1 MB, free: 81.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.737, allocations: 85 kB / 386.2 MB, free: 81.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.635e-06/0.7371, allocations: 0 / 386.2 MB, free: 81.89 MB / 314.7 MB Notification: Performance of Templates: time 0.008173/0.7452, allocations: 5.292 MB / 391.5 MB, free: 79.5 MB / 314.7 MB