Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 1.605/1.605, allocations: 171.2 MB / 185.7 MB, free: 1.383 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.003e-05/2.996e-05, allocations: 4 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08094, allocations: 38.76 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01617/0.09715, allocations: 10.39 MB / 277.3 MB, free: 6.055 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03004/0.1272, allocations: 15.84 MB / 293.1 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.1296, allocations: 31.81 kB / 293.2 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003113/0.1327, allocations: 0.7185 MB / 293.9 MB, free: 5.418 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007575/0.1403, allocations: 1.752 MB / 295.6 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004151/0.1445, allocations: 0.9772 MB / 296.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2746/0.4192, allocations: 5.444 MB / 302.1 MB, free: 6.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004853/0.4197, allocations: 118.9 kB / 302.2 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.4214, allocations: 0.6642 MB / 302.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.4229, allocations: 0.8278 MB / 303.7 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005069/0.428, allocations: 1.203 MB / 304.9 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006844/0.4288, allocations: 72.19 kB / 304.9 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003593/0.4291, allocations: 258.8 kB / 305.2 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.4305, allocations: 248.6 kB / 305.4 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004744/0.4352, allocations: 2.521 MB / 308 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4353, allocations: 0 / 308 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4353, allocations: 0 / 308 MB, free: 6.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001049/0.4354, allocations: 5.188 kB / 308 MB, free: 6.535 MB / 250.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.005156/0.4406, allocations: 2.448 MB / 310.4 MB, free: 5.18 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4406, allocations: 11.64 kB / 310.4 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007743/0.4414, allocations: 381.8 kB / 310.8 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005618/0.4471, allocations: 2.209 MB / 313 MB, free: 4.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.281e-05/0.4472, allocations: 36.53 kB / 313 MB, free: 4.363 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.4474, allocations: 47.62 kB / 313.1 MB, free: 4.363 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.4499, allocations: 0.7158 MB / 313.8 MB, free: 4.316 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.45, allocations: 0 / 313.8 MB, free: 4.316 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.4501, allocations: 17.06 kB / 313.8 MB, free: 4.316 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.084e-05/0.4502, allocations: 26.52 kB / 313.8 MB, free: 4.312 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.4527, allocations: 0.8293 MB / 314.7 MB, free: 4.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00724/0.46, allocations: 2.895 MB / 317.6 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.462, allocations: 0.74 MB / 318.3 MB, free: 3.551 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04647/0.5085, allocations: 30.31 MB / 348.6 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.5098, allocations: 383.7 kB / 349 MB, free: 5.266 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 4.208e-06/0.5099, allocations: 0 / 349 MB, free: 5.266 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.005817/0.5157, allocations: 1.439 MB / 350.4 MB, free: 4.004 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.5158, allocations: 59.39 kB / 350.5 MB, free: 3.934 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005513/0.5213, allocations: 2.353 MB / 352.8 MB, free: 2.137 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001985/0.5216, allocations: 36.77 kB / 352.9 MB, free: 2.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.5232, allocations: 1.391 MB / 354.3 MB, free: 1.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.5235, allocations: 165.2 kB / 354.4 MB, free: 1.453 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.5236, allocations: 18.25 kB / 354.5 MB, free: 1.449 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5238, allocations: 339.6 kB / 354.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.5249, allocations: 257.2 kB / 355 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.5262, allocations: 0.6038 MB / 355.6 MB, free: 264 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.5274, allocations: 339.9 kB / 356 MB, free: 32 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.5274, allocations: 4 kB / 356 MB, free: 28 kB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004147/0.5315, allocations: 1.325 MB / 357.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.5316, allocations: 9.406 kB / 357.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001808/0.5318, allocations: 84.12 kB / 357.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008999/0.5327, allocations: 281 kB / 357.7 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.5339, allocations: 181.1 kB / 357.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.5354, allocations: 0.8933 MB / 358.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/0.5376, allocations: 110.2 kB / 358.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/0.5378, allocations: 67.88 kB / 358.9 MB, free: 13.53 MB / 298.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.001357/0.5392, allocations: 426.6 kB / 359.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/0.5403, allocations: 370.2 kB / 359.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00557/0.5458, allocations: 1.336 MB / 361 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.5459, allocations: 10.5 kB / 361 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5459, allocations: 0 / 361 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.546, allocations: 3.984 kB / 361 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006845/0.5528, allocations: 2.216 MB / 363.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001683/0.553, allocations: 71.98 kB / 363.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/0.5537, allocations: 79.34 kB / 363.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008445/0.5545, allocations: 268.4 kB / 363.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.5547, allocations: 28 kB / 363.7 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.5562, allocations: 0.8561 MB / 364.5 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.5562, allocations: 4 kB / 364.6 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/0.5601, allocations: 1.277 MB / 365.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/0.5618, allocations: 460.4 kB / 366.3 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007709/0.5626, allocations: 12 kB / 366.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.5641, allocations: 39.92 kB / 366.3 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.5643, allocations: 71.92 kB / 366.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.5645, allocations: 39.38 kB / 366.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004578/0.5691, allocations: 1.797 MB / 368.2 MB, free: 4.988 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.5691, allocations: 4 kB / 368.2 MB, free: 4.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002977/0.5721, allocations: 0.57 MB / 368.8 MB, free: 4.414 MB / 298.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.002656/0.5748, allocations: 0.7527 MB / 369.6 MB, free: 3.805 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003386/0.5782, allocations: 0.8897 MB / 370.4 MB, free: 2.926 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.5783, allocations: 0 / 370.4 MB, free: 2.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.5801, allocations: 0.5023 MB / 371 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003331/0.5835, allocations: 461.7 kB / 371.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.594, allocations: 4.43 MB / 375.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/0.5958, allocations: 1.663 MB / 377.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002104/0.5979, allocations: 353 kB / 377.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003626/0.5983, allocations: 147.4 kB / 378 MB, free: 11.3 MB / 314.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5983, allocations: 0 / 378 MB, free: 11.3 MB / 314.7 MB Notification: Performance of Templates: time 0.09218/0.6905, allocations: 30.9 MB / 408.9 MB, free: 12.53 MB / 346.7 MB