Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 2.358/2.358, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.208e-05/3.181e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01661/0.127, allocations: 10.81 MB / 355.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03254/0.1596, allocations: 16.6 MB / 372.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002539/0.1622, allocations: 31.81 kB / 372.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.1655, allocations: 0.734 MB / 373.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008056/0.1736, allocations: 1.763 MB / 374.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004363/0.1781, allocations: 0.981 MB / 375.9 MB, free: 9.941 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01546/0.1936, allocations: 5.561 MB / 381.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005262/0.1942, allocations: 122.1 kB / 381.6 MB, free: 4.242 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.196, allocations: 0.7905 MB / 382.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.1979, allocations: 0.8477 MB / 383.2 MB, free: 2.598 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006195/0.2042, allocations: 1.429 MB / 384.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006749/0.2049, allocations: 72 kB / 384.7 MB, free: 1.098 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003841/0.2053, allocations: 250.1 kB / 384.9 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.2063, allocations: 248 kB / 385.2 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004966/0.2113, allocations: 2.497 MB / 387.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2114, allocations: 3.938 kB / 387.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.2114, allocations: 0 / 387.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001138/0.2115, allocations: 0 / 387.7 MB, free: 14.1 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005796/0.2173, allocations: 2.446 MB / 390.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.2174, allocations: 12.03 kB / 390.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.2183, allocations: 367.5 kB / 390.5 MB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005991/0.2243, allocations: 2.2 MB / 392.7 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.2244, allocations: 29 kB / 392.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.2246, allocations: 59.83 kB / 392.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002202/0.2268, allocations: 0.7109 MB / 393.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.2269, allocations: 0 / 393.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.227, allocations: 20 kB / 393.5 MB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/0.2271, allocations: 23.94 kB / 393.5 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/0.2298, allocations: 0.828 MB / 394.4 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007852/0.2377, allocations: 2.883 MB / 397.3 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002326/0.2401, allocations: 0.7406 MB / 398 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3149/0.555, allocations: 30.23 MB / 428.2 MB, free: 29.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.5562, allocations: 385.9 kB / 428.6 MB, free: 29.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.067e-06/0.5563, allocations: 2.719 kB / 428.6 MB, free: 29.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.005278/0.5616, allocations: 1.433 MB / 430 MB, free: 28.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.5617, allocations: 63.48 kB / 430.1 MB, free: 28.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.5666, allocations: 2.335 MB / 432.4 MB, free: 27.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.5668, allocations: 41.48 kB / 432.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.568, allocations: 1.146 MB / 433.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.5683, allocations: 162.7 kB / 433.8 MB, free: 25.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.574e-05/0.5683, allocations: 15.75 kB / 433.8 MB, free: 25.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.907e-05/0.5684, allocations: 338.6 kB / 434.1 MB, free: 25.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009791/0.5694, allocations: 262 kB / 434.4 MB, free: 25.44 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.5706, allocations: 0.5983 MB / 435 MB, free: 24.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.5717, allocations: 347 kB / 435.3 MB, free: 24.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.5717, allocations: 3.5 kB / 435.3 MB, free: 24.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003082/0.5748, allocations: 1.018 MB / 436.3 MB, free: 24.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.5749, allocations: 12 kB / 436.4 MB, free: 24.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/0.5751, allocations: 83.98 kB / 436.4 MB, free: 24.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.5758, allocations: 275.8 kB / 436.7 MB, free: 23.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.5769, allocations: 179.7 kB / 436.9 MB, free: 23.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.5782, allocations: 0.8848 MB / 437.8 MB, free: 22.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.58, allocations: 119 kB / 437.9 MB, free: 22.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/0.5802, allocations: 64 kB / 438 MB, free: 22.61 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009774/0.5812, allocations: 429 kB / 438.4 MB, free: 22.19 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005835/0.5818, allocations: 359.7 kB / 438.7 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005038/0.5868, allocations: 1.337 MB / 440.1 MB, free: 20.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.5868, allocations: 4 kB / 440.1 MB, free: 20.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5869, allocations: 0 / 440.1 MB, free: 20.49 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.5869, allocations: 4 kB / 440.1 MB, free: 20.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005482/0.5924, allocations: 2.21 MB / 442.3 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001335/0.5925, allocations: 71.98 kB / 442.3 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.5931, allocations: 72.06 kB / 442.4 MB, free: 18.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007181/0.5939, allocations: 262.6 kB / 442.7 MB, free: 17.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.594, allocations: 36 kB / 442.7 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.5952, allocations: 0.8555 MB / 443.6 MB, free: 16.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.5952, allocations: 4.969 kB / 443.6 MB, free: 16.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003072/0.5983, allocations: 1.272 MB / 444.8 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.5995, allocations: 464.3 kB / 445.3 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007773/0.6003, allocations: 15.95 kB / 445.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.6019, allocations: 36.84 kB / 445.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002326/0.6021, allocations: 75.8 kB / 445.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.6023, allocations: 40 kB / 445.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003511/0.6058, allocations: 1.785 MB / 447.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6058, allocations: 0 / 447.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002011/0.6078, allocations: 0.5622 MB / 447.8 MB, free: 12.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/0.6094, allocations: 0.7388 MB / 448.5 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002894/0.6123, allocations: 0.8851 MB / 449.4 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.6124, allocations: 0 / 449.4 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.6139, allocations: 0.5038 MB / 449.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003952/0.6178, allocations: 0.5523 MB / 450.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008245/0.6261, allocations: 4.482 MB / 455 MB, free: 5.488 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.6273, allocations: 1.662 MB / 456.6 MB, free: 3.797 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004614/0.6278, allocations: 151.4 kB / 456.8 MB, free: 3.648 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6278, allocations: 0 / 456.8 MB, free: 3.648 MB / 330.7 MB Notification: Performance of Templates: time 0.09202/0.7198, allocations: 44.34 MB / 0.4894 GB, free: 7.441 MB / 378.7 MB