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.889/1.889, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.05e-05, allocations: 7.984 kB / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07568/0.07573, allocations: 44.5 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.573, allocations: 79 MB / 378.9 MB, free: 22.19 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.5733, allocations: 72.53 kB / 378.9 MB, free: 22.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09791/0.6712, allocations: 34.55 MB / 413.5 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.408e-06/0.6713, allocations: 0 / 413.5 MB, free: 14.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.529e-05/0.6713, allocations: 11.72 kB / 413.5 MB, free: 14.61 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.0008525/0.6722, allocations: 0.8685 MB / 414.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.6722, allocations: 15.62 kB / 414.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.6724, allocations: 82.03 kB / 414.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.6729, allocations: 397.5 kB / 414.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.673, allocations: 19.03 kB / 414.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.673, allocations: 19.19 kB / 414.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.6737, allocations: 290 kB / 415.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.6737, allocations: 4 kB / 415.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.6738, allocations: 11.45 kB / 415.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.497e-06/0.6738, allocations: 3.906 kB / 415.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.6742, allocations: 205.5 kB / 415.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.6757, allocations: 0.8819 MB / 416.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.6762, allocations: 211.1 kB / 416.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.6765, allocations: 161.6 kB / 416.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.6765, allocations: 0 / 416.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005255/0.6771, allocations: 388.8 kB / 417 MB, free: 12.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.972e-06/0.6771, allocations: 3.938 kB / 417 MB, free: 12.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001126/0.6782, allocations: 0.5881 MB / 417.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.6783, allocations: 173.2 kB / 417.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.6797, allocations: 0.8735 MB / 418.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.901e-05/0.6798, allocations: 37.23 kB / 418.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.6799, allocations: 152.8 kB / 418.8 MB, free: 11.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.68, allocations: 54.14 kB / 418.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.68, allocations: 7.875 kB / 418.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.103e-05/0.6801, allocations: 337.4 kB / 419.2 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.6804, allocations: 124.2 kB / 419.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.6808, allocations: 154.3 kB / 419.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.6811, allocations: 216.3 kB / 419.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.957e-06/0.6811, allocations: 0 / 419.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009684/0.6821, allocations: 0.5611 MB / 420.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.854e-05/0.6822, allocations: 137.2 kB / 420.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.93e-06/0.6822, allocations: 0 / 420.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.6822, allocations: 3.906 kB / 420.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.832e-05/0.6823, allocations: 23.69 kB / 420.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.52e-06/0.6823, allocations: 3.906 kB / 420.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.6827, allocations: 35.34 kB / 420.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.6828, allocations: 112.5 kB / 420.6 MB, free: 10.71 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.0002193/0.6831, allocations: 271.4 kB / 420.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.6832, allocations: 78.31 kB / 420.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.6835, allocations: 135.2 kB / 421.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.6835, allocations: 0 / 421.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.6835, allocations: 3.953 kB / 421.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.466e-06/0.6835, allocations: 11.83 kB / 421.1 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008486/0.6844, allocations: 0.614 MB / 421.7 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.683e-06/0.6844, allocations: 0 / 421.7 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.293e-05/0.6845, allocations: 11.7 kB / 421.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.539e-06/0.6845, allocations: 0 / 421.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.6846, allocations: 31.19 kB / 421.7 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.801e-06/0.6846, allocations: 4 kB / 421.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.812e-06/0.6846, allocations: 3.953 kB / 421.7 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.6858, allocations: 0.6766 MB / 422.4 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007908/0.6866, allocations: 0.4923 MB / 422.9 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.6868, allocations: 22.5 kB / 422.9 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.6871, allocations: 27.5 kB / 423 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.6873, allocations: 60.69 kB / 423 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.6875, allocations: 117.5 kB / 423.1 MB, free: 9.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001174/0.6887, allocations: 0.7251 MB / 423.9 MB, free: 9.062 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.6887, allocations: 0 / 423.9 MB, free: 9.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004582/0.6892, allocations: 88.34 kB / 423.9 MB, free: 9.059 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.0001736/0.6893, allocations: 135.7 kB / 424.1 MB, free: 8.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008469/0.6902, allocations: 0.6418 MB / 424.7 MB, free: 8.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.967e-06/0.6902, allocations: 0 / 424.7 MB, free: 8.688 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005006/0.6907, allocations: 0.522 MB / 425.2 MB, free: 8.422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.6915, allocations: 166.8 kB / 425.4 MB, free: 8.375 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.6936, allocations: 1.077 MB / 426.5 MB, free: 7.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006199/0.6942, allocations: 0.9848 MB / 427.5 MB, free: 7.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004674/0.6947, allocations: 167.1 kB / 427.6 MB, free: 6.957 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.6949, allocations: 73.64 kB / 427.7 MB, free: 6.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.882e-06/0.6949, allocations: 0 / 427.7 MB, free: 6.91 MB / 314.7 MB Notification: Performance of Templates: time 0.01278/0.7077, allocations: 6.695 MB / 434.4 MB, free: 3.594 MB / 314.7 MB