Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.437e-05/2.449e-05, allocations: 2.5 kB / 292.7 MB, free: 8.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09349, allocations: 50.42 MB / 343.1 MB, free: 5.938 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3851/0.4786, allocations: 104.3 MB / 447.4 MB, free: 6.133 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4789, allocations: 66.84 kB / 447.4 MB, free: 6.102 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6525/1.131, allocations: 138.4 MB / 0.5721 GB, free: 102.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.89e-06/1.132, allocations: 4 kB / 0.5721 GB, free: 102.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.821e-05/1.132, allocations: 41.16 kB / 0.5721 GB, free: 102.3 MB / 442.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.003829/1.135, allocations: 2.568 MB / 0.5746 GB, free: 100.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/1.135, allocations: 10.03 kB / 0.5747 GB, free: 100.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004006/1.136, allocations: 377.2 kB / 0.575 GB, free: 100.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003659/1.14, allocations: 2.218 MB / 0.5772 GB, free: 99.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/1.14, allocations: 32.06 kB / 0.5772 GB, free: 99.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/1.14, allocations: 53.38 kB / 0.5773 GB, free: 99.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/1.141, allocations: 0.7569 MB / 0.578 GB, free: 99.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/1.141, allocations: 0 / 0.578 GB, free: 99.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.89e-05/1.141, allocations: 19.81 kB / 0.578 GB, free: 99.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/1.141, allocations: 22.09 kB / 0.578 GB, free: 99.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/1.143, allocations: 0.6796 MB / 0.5787 GB, free: 98.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005645/1.148, allocations: 2.926 MB / 0.5816 GB, free: 97.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008801/1.149, allocations: 0.5855 MB / 0.5821 GB, free: 97.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009511/1.15, allocations: 0.5951 MB / 0.5827 GB, free: 96.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03432/1.184, allocations: 35.97 MB / 0.6178 GB, free: 66.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005693/1.185, allocations: 321.5 kB / 0.6181 GB, free: 65.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.53e-06/1.185, allocations: 0 / 0.6181 GB, free: 65.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001602/1.187, allocations: 0.8767 MB / 0.619 GB, free: 65.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/1.187, allocations: 269 kB / 0.6193 GB, free: 64.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003354/1.19, allocations: 2.301 MB / 0.6215 GB, free: 62.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.157e-05/1.19, allocations: 37.7 kB / 0.6215 GB, free: 62.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001124/1.191, allocations: 1.385 MB / 0.6229 GB, free: 60.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/1.191, allocations: 164.1 kB / 0.6231 GB, free: 60.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/1.192, allocations: 19.94 kB / 0.6231 GB, free: 60.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.032e-05/1.192, allocations: 341.9 kB / 0.6234 GB, free: 60.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/1.192, allocations: 178 kB / 0.6236 GB, free: 60.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000563/1.193, allocations: 0.5706 MB / 0.6241 GB, free: 59.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005319/1.193, allocations: 280.7 kB / 0.6244 GB, free: 59.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.771e-06/1.193, allocations: 4 kB / 0.6244 GB, free: 59.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001971/1.195, allocations: 1.15 MB / 0.6255 GB, free: 58.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/1.195, allocations: 12 kB / 0.6255 GB, free: 58.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/1.195, allocations: 79.98 kB / 0.6256 GB, free: 57.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006236/1.196, allocations: 276.9 kB / 0.6259 GB, free: 57.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/1.197, allocations: 171.7 kB / 0.626 GB, free: 57.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/1.198, allocations: 0.8813 MB / 0.6269 GB, free: 56.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/1.199, allocations: 119 kB / 0.627 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/1.199, allocations: 67.98 kB / 0.6271 GB, free: 56.43 MB / 442.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.0001893/1.199, allocations: 168.7 kB / 0.6272 GB, free: 56.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003556/1.2, allocations: 359.7 kB / 0.6276 GB, free: 55.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/1.203, allocations: 1.22 MB / 0.6288 GB, free: 54.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.981e-06/1.203, allocations: 4 kB / 0.6288 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.995e-06/1.203, allocations: 4 kB / 0.6288 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.535e-06/1.203, allocations: 3.984 kB / 0.6288 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003599/1.207, allocations: 2.121 MB / 0.6309 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/1.207, allocations: 71.98 kB / 0.6309 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/1.208, allocations: 71.88 kB / 0.631 GB, free: 52.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005433/1.208, allocations: 255.3 kB / 0.6312 GB, free: 52.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.232e-05/1.208, allocations: 39.98 kB / 0.6313 GB, free: 52.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009473/1.209, allocations: 0.8529 MB / 0.6321 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.983e-06/1.209, allocations: 0 / 0.6321 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/1.211, allocations: 1.147 MB / 0.6332 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007315/1.211, allocations: 472.4 kB / 0.6337 GB, free: 49.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/1.212, allocations: 8 kB / 0.6337 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/1.213, allocations: 55.91 kB / 0.6337 GB, free: 49.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/1.213, allocations: 55.94 kB / 0.6338 GB, free: 49.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-05/1.213, allocations: 39.98 kB / 0.6338 GB, free: 49.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002653/1.216, allocations: 1.755 MB / 0.6355 GB, free: 47.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.15e-07/1.216, allocations: 0 / 0.6355 GB, free: 47.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001585/1.217, allocations: 0.6167 MB / 0.6361 GB, free: 46.93 MB / 442.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.001252/1.219, allocations: 0.8569 MB / 0.637 GB, free: 46.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001397/1.22, allocations: 0.7311 MB / 0.6377 GB, free: 45.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.12e-06/1.22, allocations: 0 / 0.6377 GB, free: 45.49 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007606/1.221, allocations: 436 kB / 0.6381 GB, free: 45.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/1.223, allocations: 0.5515 MB / 0.6386 GB, free: 44.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004562/1.228, allocations: 2.75 MB / 0.6413 GB, free: 41.69 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/1.229, allocations: 1.662 MB / 0.643 GB, free: 40 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001722/1.231, allocations: 337.5 kB / 0.6433 GB, free: 39.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/1.231, allocations: 139.4 kB / 0.6434 GB, free: 39.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/1.231, allocations: 0 / 0.6434 GB, free: 39.54 MB / 442.7 MB Notification: Performance of Templates: time 0.07361/1.305, allocations: 32.84 MB / 0.6755 GB, free: 7.039 MB / 442.7 MB