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_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 171.2 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.262e-05/3.268e-05, allocations: 4 kB / 228.1 MB, free: 8.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08275, allocations: 38.77 MB / 266.9 MB, free: 1.164 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.016/0.09881, allocations: 10.39 MB / 277.3 MB, free: 6.734 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03131/0.1302, allocations: 15.84 MB / 293.1 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002378/0.1326, allocations: 35.81 kB / 293.1 MB, free: 6.816 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003187/0.1358, allocations: 0.7185 MB / 293.9 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008206/0.1441, allocations: 1.756 MB / 295.6 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.1485, allocations: 0.9732 MB / 296.6 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2347/0.3833, allocations: 5.442 MB / 302 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.3838, allocations: 117.8 kB / 302.2 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.3857, allocations: 0.6665 MB / 302.8 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.388, allocations: 0.8248 MB / 303.6 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006058/0.3941, allocations: 1.206 MB / 304.8 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008929/0.3951, allocations: 72.34 kB / 304.9 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005146/0.3956, allocations: 257.5 kB / 305.2 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.3972, allocations: 248.6 kB / 305.4 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005593/0.4028, allocations: 2.517 MB / 307.9 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4029, allocations: 0 / 307.9 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.4029, allocations: 0 / 307.9 MB, free: 6.648 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001597/0.403, allocations: 1 kB / 307.9 MB, free: 6.648 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.006285/0.4093, allocations: 2.457 MB / 310.4 MB, free: 5.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.4094, allocations: 9.906 kB / 310.4 MB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.4107, allocations: 379.1 kB / 310.8 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006525/0.4172, allocations: 2.213 MB / 313 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.567e-05/0.4173, allocations: 31.88 kB / 313 MB, free: 4.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.4176, allocations: 47.19 kB / 313.1 MB, free: 4.473 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.4198, allocations: 0.7151 MB / 313.8 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.4198, allocations: 0 / 313.8 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.42, allocations: 21.19 kB / 313.8 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.415e-05/0.42, allocations: 19.48 kB / 313.8 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002637/0.4227, allocations: 0.8293 MB / 314.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008225/0.4309, allocations: 2.898 MB / 317.5 MB, free: 3.895 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/0.4332, allocations: 0.7384 MB / 318.3 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04674/0.48, allocations: 30.31 MB / 348.6 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.4814, allocations: 388.9 kB / 349 MB, free: 5.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 4.408e-06/0.4814, allocations: 0 / 349 MB, free: 5.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.006028/0.4875, allocations: 1.44 MB / 350.4 MB, free: 4.598 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.4876, allocations: 59.39 kB / 350.5 MB, free: 4.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00586/0.4934, allocations: 2.35 MB / 352.8 MB, free: 2.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.4937, allocations: 36.33 kB / 352.9 MB, free: 2.695 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.4951, allocations: 1.148 MB / 354 MB, free: 2.309 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000388/0.4955, allocations: 163.3 kB / 354.2 MB, free: 2.176 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.335e-05/0.4956, allocations: 17.06 kB / 354.2 MB, free: 2.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4958, allocations: 344 kB / 354.5 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.4969, allocations: 256.1 kB / 354.8 MB, free: 1.652 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.4983, allocations: 0.605 MB / 355.4 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.4995, allocations: 341.4 kB / 355.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.4996, allocations: 7.938 kB / 355.7 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003344/0.5029, allocations: 1.02 MB / 356.7 MB, free: 0 / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.947e-05/0.503, allocations: 8.047 kB / 356.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/0.5032, allocations: 87.97 kB / 356.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008996/0.5041, allocations: 282.5 kB / 357.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.5053, allocations: 180.3 kB / 357.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.5069, allocations: 0.881 MB / 358.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.5092, allocations: 124.7 kB / 358.3 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002522/0.5094, allocations: 64.31 kB / 358.3 MB, free: 14.54 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.001315/0.5108, allocations: 418 kB / 358.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009921/0.5118, allocations: 363.6 kB / 359.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005775/0.5176, allocations: 1.337 MB / 360.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.5176, allocations: 8 kB / 360.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5177, allocations: 0 / 360.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5177, allocations: 3.984 kB / 360.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006647/0.5243, allocations: 2.218 MB / 362.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001685/0.5245, allocations: 77.36 kB / 362.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006206/0.5252, allocations: 70.7 kB / 362.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008004/0.526, allocations: 263.9 kB / 363.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.5261, allocations: 34.61 kB / 363.1 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.5275, allocations: 0.8622 MB / 364 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/0.5276, allocations: 8.016 kB / 364 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003884/0.5315, allocations: 1.282 MB / 365.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/0.5333, allocations: 456.4 kB / 365.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/0.5345, allocations: 19.98 kB / 365.7 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/0.5363, allocations: 39.92 kB / 365.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/0.5366, allocations: 63.94 kB / 365.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.5368, allocations: 39.98 kB / 365.9 MB, free: 7.926 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004606/0.5414, allocations: 1.801 MB / 367.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.5414, allocations: 0 / 367.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002877/0.5443, allocations: 0.5739 MB / 368.2 MB, free: 5.547 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.00182/0.5462, allocations: 0.7441 MB / 369 MB, free: 4.945 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003366/0.5496, allocations: 0.8895 MB / 369.9 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.5497, allocations: 4 kB / 369.9 MB, free: 4.059 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.5514, allocations: 0.5008 MB / 370.4 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/0.5547, allocations: 465.7 kB / 370.8 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.5654, allocations: 4.497 MB / 375.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.5672, allocations: 1.663 MB / 377 MB, free: 12.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.5677, allocations: 151.4 kB / 377.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5677, allocations: 4 kB / 377.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of Templates: time 0.09582/0.6636, allocations: 44.61 MB / 421.8 MB, free: 160 kB / 346.7 MB