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.763/1.763, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.561e-05/2.566e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2582, allocations: 38.76 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.4, allocations: 93.85 MB / 357.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.4003, allocations: 75.95 kB / 357.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6149/1.015, allocations: 125.1 MB / 482.8 MB, free: 5.957 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.349e-06/1.015, allocations: 0 / 482.8 MB, free: 5.957 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.634e-05/1.015, allocations: 40 kB / 482.8 MB, free: 5.918 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.006012/1.021, allocations: 2.587 MB / 485.4 MB, free: 3.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/1.021, allocations: 12.03 kB / 485.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006882/1.022, allocations: 375.4 kB / 485.8 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005353/1.028, allocations: 2.24 MB / 488 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/1.028, allocations: 36.95 kB / 488.1 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/1.028, allocations: 55.84 kB / 488.1 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/1.03, allocations: 0.7541 MB / 488.9 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/1.03, allocations: 3.984 kB / 488.9 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/1.03, allocations: 20 kB / 488.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/1.03, allocations: 19.98 kB / 488.9 MB, free: 15.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/1.031, allocations: 0.6779 MB / 489.6 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007347/1.039, allocations: 2.947 MB / 492.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/1.04, allocations: 0.5879 MB / 493.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/1.041, allocations: 0.6017 MB / 493.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3031/1.344, allocations: 36.06 MB / 0.5174 GB, free: 41.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000626/1.345, allocations: 310.4 kB / 0.5177 GB, free: 41.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.76e-06/1.345, allocations: 0 / 0.5177 GB, free: 41.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001841/1.347, allocations: 0.8917 MB / 0.5185 GB, free: 41.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/1.347, allocations: 267.4 kB / 0.5188 GB, free: 40.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/1.351, allocations: 2.316 MB / 0.5211 GB, free: 40.44 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/1.351, allocations: 36.48 kB / 0.5211 GB, free: 40.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001341/1.352, allocations: 1.399 MB / 0.5225 GB, free: 40.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/1.353, allocations: 164.7 kB / 0.5226 GB, free: 40.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/1.353, allocations: 17.31 kB / 0.5226 GB, free: 40.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.811e-05/1.353, allocations: 342.1 kB / 0.523 GB, free: 39.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/1.353, allocations: 179 kB / 0.5231 GB, free: 39.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006014/1.354, allocations: 0.5865 MB / 0.5237 GB, free: 39.3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005614/1.354, allocations: 273.9 kB / 0.524 GB, free: 39.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/1.355, allocations: 6.281 kB / 0.524 GB, free: 39.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002296/1.357, allocations: 1.14 MB / 0.5251 GB, free: 39.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/1.357, allocations: 16.98 kB / 0.5251 GB, free: 39.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/1.357, allocations: 78.66 kB / 0.5252 GB, free: 39.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006923/1.358, allocations: 282.4 kB / 0.5254 GB, free: 39.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007021/1.358, allocations: 177.9 kB / 0.5256 GB, free: 39.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/1.36, allocations: 0.8835 MB / 0.5265 GB, free: 38.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/1.361, allocations: 117.1 kB / 0.5266 GB, free: 38.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/1.361, allocations: 70.09 kB / 0.5267 GB, free: 38.52 MB / 346.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.0002168/1.362, allocations: 164.8 kB / 0.5268 GB, free: 38.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003664/1.362, allocations: 369.2 kB / 0.5272 GB, free: 38.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004009/1.366, allocations: 1.214 MB / 0.5283 GB, free: 38.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/1.366, allocations: 3.594 kB / 0.5284 GB, free: 38.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/1.366, allocations: 6.359 kB / 0.5284 GB, free: 38.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.268e-06/1.366, allocations: 0 / 0.5284 GB, free: 38.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004185/1.37, allocations: 2.125 MB / 0.5304 GB, free: 37.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001092/1.37, allocations: 70.31 kB / 0.5305 GB, free: 37.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004375/1.371, allocations: 72.77 kB / 0.5306 GB, free: 37.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005937/1.371, allocations: 266.7 kB / 0.5308 GB, free: 37.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.051e-05/1.372, allocations: 30.81 kB / 0.5309 GB, free: 37.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/1.373, allocations: 0.8508 MB / 0.5317 GB, free: 37.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.963e-06/1.373, allocations: 11.22 kB / 0.5317 GB, free: 37.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/1.374, allocations: 1.144 MB / 0.5328 GB, free: 36.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008598/1.375, allocations: 469.7 kB / 0.5333 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004304/1.376, allocations: 17.81 kB / 0.5333 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/1.377, allocations: 46.08 kB / 0.5333 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/1.377, allocations: 68.66 kB / 0.5334 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.962e-05/1.377, allocations: 42.02 kB / 0.5334 GB, free: 36.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003025/1.38, allocations: 1.763 MB / 0.5351 GB, free: 36.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.747e-06/1.38, allocations: 0 / 0.5351 GB, free: 36.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001834/1.382, allocations: 0.6257 MB / 0.5358 GB, free: 36.16 MB / 346.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.001316/1.383, allocations: 0.8653 MB / 0.5366 GB, free: 36.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/1.385, allocations: 0.7261 MB / 0.5373 GB, free: 35.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.13e-06/1.385, allocations: 0 / 0.5373 GB, free: 35.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007969/1.386, allocations: 443.4 kB / 0.5377 GB, free: 35.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.388, allocations: 469.7 kB / 0.5382 GB, free: 35.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005094/1.393, allocations: 2.774 MB / 0.5409 GB, free: 34.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/1.394, allocations: 1.666 MB / 0.5425 GB, free: 34.08 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001657/1.396, allocations: 343.2 kB / 0.5428 GB, free: 34.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002784/1.396, allocations: 140 kB / 0.543 GB, free: 34.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.872e-06/1.396, allocations: 3.156 kB / 0.543 GB, free: 34.05 MB / 346.7 MB Notification: Performance of Templates: time 0.07576/1.472, allocations: 32.9 MB / 0.5751 GB, free: 20.47 MB / 346.7 MB