Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.418e-05/5.445e-05, allocations: 4 kB / 292.1 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09618, allocations: 50.41 MB / 342.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4545, allocations: 82.67 MB / 425.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4548, allocations: 73.77 kB / 425.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04408/0.4989, allocations: 11.36 MB / 436.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.139e-06/0.499, allocations: 0 / 436.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.499, allocations: 12 kB / 436.7 MB, free: 1.789 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.003053/0.5021, allocations: 1.111 MB / 437.8 MB, free: 0.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.5021, allocations: 8.031 kB / 437.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.5024, allocations: 86.97 kB / 437.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009789/0.5034, allocations: 492.2 kB / 438.3 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.388e-05/0.5035, allocations: 44.19 kB / 438.4 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.5036, allocations: 58.25 kB / 438.4 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.5053, allocations: 0.7582 MB / 439.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.5054, allocations: 7.891 kB / 439.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.5055, allocations: 28.48 kB / 439.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.5055, allocations: 16 kB / 439.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.5071, allocations: 0.612 MB / 439.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006611/0.5137, allocations: 3.288 MB / 443.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.5153, allocations: 0.6874 MB / 443.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007401/0.5161, allocations: 307.2 kB / 444.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.495e-05/0.5162, allocations: 16.56 kB / 444.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007545/0.5169, allocations: 327.7 kB / 444.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 4.428e-06/0.517, allocations: 4 kB / 444.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001376/0.5184, allocations: 0.5126 MB / 445 MB, free: 11.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002367/0.5186, allocations: 374.5 kB / 445.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000842/0.5195, allocations: 499.2 kB / 445.9 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.472e-05/0.5196, allocations: 40.62 kB / 445.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.5199, allocations: 368 kB / 446.2 MB, free: 9.934 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.5201, allocations: 166.9 kB / 446.4 MB, free: 9.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.361e-05/0.5202, allocations: 15.06 kB / 446.4 MB, free: 9.789 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.5205, allocations: 373 kB / 446.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.5211, allocations: 254.5 kB / 447 MB, free: 9.301 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009008/0.522, allocations: 0.5246 MB / 447.6 MB, free: 8.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007455/0.5228, allocations: 336 kB / 447.9 MB, free: 8.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.233e-06/0.5228, allocations: 0 / 447.9 MB, free: 8.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001962/0.5248, allocations: 0.8241 MB / 448.7 MB, free: 7.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.598e-05/0.5249, allocations: 63.39 kB / 448.8 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.5249, allocations: 11.98 kB / 448.8 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.5249, allocations: 16 kB / 448.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.5263, allocations: 246.3 kB / 449 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-05/0.5264, allocations: 15.92 kB / 449.1 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.5278, allocations: 232.5 kB / 449.3 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.917e-05/0.5279, allocations: 30.25 kB / 449.3 MB, free: 7.344 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.0002578/0.5282, allocations: 156.2 kB / 449.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.5283, allocations: 67.25 kB / 449.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.5286, allocations: 70.19 kB / 449.6 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5286, allocations: 7.953 kB / 449.6 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.502e-06/0.5286, allocations: 3.984 kB / 449.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.279e-06/0.5286, allocations: 0 / 449.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.5317, allocations: 1.408 MB / 451 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.305e-06/0.5317, allocations: 4 kB / 451 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.5328, allocations: 179.7 kB / 451.2 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.5329, allocations: 8 kB / 451.2 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.66e-05/0.5329, allocations: 15.98 kB / 451.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.342e-06/0.533, allocations: 0 / 451.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.299e-06/0.533, allocations: 3.938 kB / 451.2 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.5352, allocations: 0.9081 MB / 452.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002155/0.5354, allocations: 144.2 kB / 452.3 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.5355, allocations: 12 kB / 452.3 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5366, allocations: 143.9 kB / 452.4 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.5368, allocations: 52.36 kB / 452.5 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.786e-05/0.5369, allocations: 15.98 kB / 452.5 MB, free: 4.074 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006732/0.5376, allocations: 381.6 kB / 452.9 MB, free: 3.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.59e-07/0.5376, allocations: 0 / 452.9 MB, free: 3.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008663/0.5385, allocations: 179.7 kB / 453 MB, free: 3.531 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.0002313/0.5387, allocations: 123.1 kB / 453.2 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.5403, allocations: 0.707 MB / 453.9 MB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.5404, allocations: 4 kB / 453.9 MB, free: 2.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006706/0.5411, allocations: 269.7 kB / 454.1 MB, free: 2.406 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006487/0.5417, allocations: 101.9 kB / 454.2 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.5441, allocations: 0.8946 MB / 455.1 MB, free: 1.387 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006512/0.5447, allocations: 0.8981 MB / 456 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000632/0.5454, allocations: 84.86 kB / 456.1 MB, free: 384 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.5457, allocations: 51.42 kB / 456.2 MB, free: 332 kB / 362.7 MB Notification: Performance of SimCode: time 1.632e-06/0.5457, allocations: 0 / 456.2 MB, free: 332 kB / 362.7 MB Notification: Performance of Templates: time 0.02041/0.5661, allocations: 7.655 MB / 463.8 MB, free: 8.699 MB / 378.7 MB