Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.833e-05, allocations: 5.906 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09014/0.09019, allocations: 50.41 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3601/0.4503, allocations: 82.73 MB / 425.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.4506, allocations: 74.33 kB / 425.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04384/0.4945, allocations: 11.35 MB / 436.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.232e-06/0.4945, allocations: 0 / 436.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.044e-05/0.4946, allocations: 15.98 kB / 436.7 MB, free: 1.609 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003106/0.4977, allocations: 1.109 MB / 437.8 MB, free: 500 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4977, allocations: 16.02 kB / 437.8 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.498, allocations: 82.97 kB / 437.9 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009851/0.499, allocations: 485.7 kB / 438.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.499, allocations: 41.94 kB / 438.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.4992, allocations: 57.06 kB / 438.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.5009, allocations: 0.7566 MB / 439.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.501, allocations: 19.88 kB / 439.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.5011, allocations: 28.38 kB / 439.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.5011, allocations: 16 kB / 439.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.5027, allocations: 0.6135 MB / 439.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006479/0.5092, allocations: 3.292 MB / 443.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.5107, allocations: 0.6941 MB / 443.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007388/0.5115, allocations: 296.8 kB / 444.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.44e-05/0.5116, allocations: 16.17 kB / 444.2 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000774/0.5124, allocations: 332.7 kB / 444.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.763e-06/0.5124, allocations: 0 / 444.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.00135/0.5138, allocations: 0.5087 MB / 445.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002412/0.514, allocations: 375.7 kB / 445.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008202/0.5149, allocations: 0.4923 MB / 445.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/0.5149, allocations: 38.83 kB / 445.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.5153, allocations: 396.8 kB / 446.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.5155, allocations: 167.5 kB / 446.5 MB, free: 9.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.5156, allocations: 15.12 kB / 446.5 MB, free: 9.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5158, allocations: 345.4 kB / 446.9 MB, free: 9.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006401/0.5164, allocations: 252.4 kB / 447.1 MB, free: 9.094 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.5174, allocations: 0.5244 MB / 447.6 MB, free: 8.574 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007249/0.5181, allocations: 335.6 kB / 448 MB, free: 8.344 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.23e-06/0.5181, allocations: 8 kB / 448 MB, free: 8.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001914/0.52, allocations: 0.7804 MB / 448.7 MB, free: 7.758 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.972e-05/0.5201, allocations: 66.58 kB / 448.8 MB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.5202, allocations: 11.95 kB / 448.8 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.397e-05/0.5202, allocations: 12 kB / 448.8 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.5217, allocations: 251.2 kB / 449.1 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.358e-05/0.5217, allocations: 15.94 kB / 449.1 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.5231, allocations: 230.2 kB / 449.3 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.821e-05/0.5232, allocations: 30.06 kB / 449.3 MB, free: 7.168 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0002895/0.5235, allocations: 157.7 kB / 449.5 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.5237, allocations: 63.25 kB / 449.6 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001864/0.5239, allocations: 73.5 kB / 449.6 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.5239, allocations: 11.95 kB / 449.6 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.586e-06/0.5239, allocations: 0 / 449.6 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.405e-06/0.5239, allocations: 0 / 449.6 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.5268, allocations: 1.403 MB / 451 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.5268, allocations: 0 / 451 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.528, allocations: 183.6 kB / 451.2 MB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.2e-05/0.528, allocations: 7.984 kB / 451.2 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.137e-05/0.5281, allocations: 15.3 kB / 451.2 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-06/0.5281, allocations: 0 / 451.2 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.744e-06/0.5281, allocations: 3.938 kB / 451.3 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.5303, allocations: 0.9003 MB / 452.2 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.5305, allocations: 156.3 kB / 452.3 MB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.5306, allocations: 12 kB / 452.3 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.5317, allocations: 143.8 kB / 452.5 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.5318, allocations: 52.36 kB / 452.5 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-05/0.5319, allocations: 12 kB / 452.5 MB, free: 4.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006481/0.5326, allocations: 381.6 kB / 452.9 MB, free: 4.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.73e-07/0.5326, allocations: 0 / 452.9 MB, free: 4.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008143/0.5334, allocations: 179.7 kB / 453.1 MB, free: 3.859 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002219/0.5337, allocations: 127.1 kB / 453.2 MB, free: 3.727 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.5353, allocations: 0.7018 MB / 453.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.631e-06/0.5353, allocations: 0 / 453.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.536, allocations: 269.6 kB / 454.2 MB, free: 2.734 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006154/0.5366, allocations: 95.45 kB / 454.2 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.539, allocations: 0.9391 MB / 455.2 MB, free: 1.672 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.5397, allocations: 0.8981 MB / 456.1 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.5401, allocations: 59.42 kB / 456.1 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of SimCode: time 1.39e-06/0.5401, allocations: 0 / 456.1 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of Templates: time 0.01802/0.5581, allocations: 8.933 MB / 465.1 MB, free: 7.758 MB / 378.7 MB