Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.695e-05/2.7e-05, allocations: 4 kB / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.0894, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5467, allocations: 104.3 MB / 446.8 MB, free: 6.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.547, allocations: 74.45 kB / 446.9 MB, free: 6.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6455/1.192, allocations: 138.4 MB / 0.5716 GB, free: 101.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.462e-06/1.193, allocations: 0 / 0.5716 GB, free: 101.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.722e-05/1.193, allocations: 41.56 kB / 0.5716 GB, free: 101.9 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.003924/1.197, allocations: 2.57 MB / 0.5741 GB, free: 100.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/1.197, allocations: 9.156 kB / 0.5741 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004132/1.197, allocations: 377.5 kB / 0.5745 GB, free: 100.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/1.201, allocations: 2.222 MB / 0.5767 GB, free: 99.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/1.201, allocations: 35.88 kB / 0.5767 GB, free: 99.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/1.201, allocations: 49.34 kB / 0.5768 GB, free: 99.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/1.202, allocations: 0.7573 MB / 0.5775 GB, free: 98.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/1.202, allocations: 0 / 0.5775 GB, free: 98.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.534e-05/1.202, allocations: 19.28 kB / 0.5775 GB, free: 98.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/1.202, allocations: 18.98 kB / 0.5775 GB, free: 98.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/1.204, allocations: 0.6738 MB / 0.5782 GB, free: 98.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005407/1.209, allocations: 2.93 MB / 0.5811 GB, free: 97.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009113/1.21, allocations: 0.5816 MB / 0.5816 GB, free: 96.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008973/1.211, allocations: 0.5986 MB / 0.5822 GB, free: 96.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04388/1.255, allocations: 35.97 MB / 0.6173 GB, free: 65.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005853/1.256, allocations: 313.5 kB / 0.6176 GB, free: 65.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.613e-06/1.256, allocations: 0 / 0.6176 GB, free: 65.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001676/1.257, allocations: 0.8806 MB / 0.6185 GB, free: 64.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/1.257, allocations: 271.6 kB / 0.6187 GB, free: 64.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003346/1.261, allocations: 2.297 MB / 0.621 GB, free: 62.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/1.261, allocations: 33.7 kB / 0.621 GB, free: 62.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/1.262, allocations: 1.394 MB / 0.6224 GB, free: 60.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/1.262, allocations: 163.6 kB / 0.6225 GB, free: 60.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/1.262, allocations: 16 kB / 0.6226 GB, free: 60.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.485e-05/1.262, allocations: 337.9 kB / 0.6229 GB, free: 60.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004071/1.263, allocations: 182 kB / 0.6231 GB, free: 59.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005641/1.263, allocations: 0.5783 MB / 0.6236 GB, free: 59.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/1.264, allocations: 269.3 kB / 0.6239 GB, free: 58.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.493e-06/1.264, allocations: 7.938 kB / 0.6239 GB, free: 58.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001975/1.266, allocations: 1.152 MB / 0.625 GB, free: 57.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/1.266, allocations: 12.25 kB / 0.625 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/1.266, allocations: 79.98 kB / 0.6251 GB, free: 57.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006304/1.267, allocations: 268.8 kB / 0.6254 GB, free: 57.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006775/1.267, allocations: 183.7 kB / 0.6255 GB, free: 57.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/1.269, allocations: 0.8798 MB / 0.6264 GB, free: 56.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/1.27, allocations: 123 kB / 0.6265 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.27, allocations: 71.92 kB / 0.6266 GB, free: 56.16 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.0002755/1.27, allocations: 168.7 kB / 0.6267 GB, free: 55.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003724/1.271, allocations: 363.7 kB / 0.6271 GB, free: 55.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/1.275, allocations: 1.213 MB / 0.6283 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/1.275, allocations: 4 kB / 0.6283 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.807e-06/1.275, allocations: 0 / 0.6283 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/1.275, allocations: 3.984 kB / 0.6283 GB, free: 54.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003662/1.278, allocations: 2.112 MB / 0.6303 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001049/1.278, allocations: 71.98 kB / 0.6304 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/1.279, allocations: 80 kB / 0.6305 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005417/1.279, allocations: 255.7 kB / 0.6307 GB, free: 51.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/1.279, allocations: 31.98 kB / 0.6308 GB, free: 51.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009468/1.28, allocations: 0.8604 MB / 0.6316 GB, free: 50.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.062e-06/1.28, allocations: 4.031 kB / 0.6316 GB, free: 50.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/1.282, allocations: 1.138 MB / 0.6327 GB, free: 49.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007714/1.283, allocations: 472.4 kB / 0.6332 GB, free: 49.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003989/1.283, allocations: 12 kB / 0.6332 GB, free: 49.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.284, allocations: 51.91 kB / 0.6332 GB, free: 49.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/1.284, allocations: 63.94 kB / 0.6333 GB, free: 49.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.845e-05/1.285, allocations: 43.83 kB / 0.6333 GB, free: 49.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002677/1.287, allocations: 1.752 MB / 0.635 GB, free: 47.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.1e-07/1.287, allocations: 0 / 0.635 GB, free: 47.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001606/1.289, allocations: 0.6166 MB / 0.6356 GB, free: 46.66 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.00126/1.29, allocations: 0.8535 MB / 0.6365 GB, free: 45.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/1.292, allocations: 0.7246 MB / 0.6372 GB, free: 45.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.919e-06/1.292, allocations: 0 / 0.6372 GB, free: 45.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007563/1.292, allocations: 448.1 kB / 0.6376 GB, free: 44.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/1.295, allocations: 0.554 MB / 0.6381 GB, free: 44.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/1.3, allocations: 2.743 MB / 0.6408 GB, free: 41.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/1.301, allocations: 1.662 MB / 0.6424 GB, free: 39.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001607/1.302, allocations: 345.4 kB / 0.6428 GB, free: 39.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/1.303, allocations: 143.4 kB / 0.6429 GB, free: 39.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.527e-06/1.303, allocations: 0 / 0.6429 GB, free: 39.27 MB / 442.7 MB Notification: Performance of Templates: time 0.07162/1.374, allocations: 32.83 MB / 0.675 GB, free: 6.777 MB / 442.7 MB