Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 1.815/1.815, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.976e-05, allocations: 4 kB / 255.4 MB, free: 2.715 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07723/0.07728, allocations: 44.5 MB / 299.9 MB, free: 6.156 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4249, allocations: 97.66 MB / 397.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.4251, allocations: 73.08 kB / 397.6 MB, free: 18.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.671/1.096, allocations: 123 MB / 0.5085 GB, free: 68.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.957e-06/1.096, allocations: 0.5469 kB / 0.5085 GB, free: 68.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.952e-05/1.096, allocations: 42.31 kB / 0.5085 GB, free: 68.68 MB / 394.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.004986/1.101, allocations: 2.586 MB / 0.511 GB, free: 67.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/1.101, allocations: 9.906 kB / 0.511 GB, free: 67.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006009/1.102, allocations: 374.9 kB / 0.5114 GB, free: 67.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004699/1.107, allocations: 2.236 MB / 0.5136 GB, free: 66.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/1.107, allocations: 34.95 kB / 0.5136 GB, free: 66.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/1.107, allocations: 54.45 kB / 0.5137 GB, free: 66.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/1.109, allocations: 0.7522 MB / 0.5144 GB, free: 66.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/1.109, allocations: 0 / 0.5144 GB, free: 66.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/1.109, allocations: 20.77 kB / 0.5144 GB, free: 66.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.878e-05/1.109, allocations: 21.31 kB / 0.5144 GB, free: 66.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/1.11, allocations: 0.6734 MB / 0.5151 GB, free: 66.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006699/1.117, allocations: 2.938 MB / 0.518 GB, free: 66.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009896/1.118, allocations: 0.5834 MB / 0.5185 GB, free: 66.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/1.119, allocations: 0.6089 MB / 0.5191 GB, free: 66.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03565/1.155, allocations: 36.07 MB / 0.5543 GB, free: 39.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005864/1.155, allocations: 318.6 kB / 0.5546 GB, free: 39.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.678e-06/1.155, allocations: 3.719 kB / 0.5546 GB, free: 39.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002152/1.157, allocations: 0.8801 MB / 0.5555 GB, free: 39.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/1.158, allocations: 267.1 kB / 0.5558 GB, free: 39.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003948/1.162, allocations: 2.314 MB / 0.558 GB, free: 38.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/1.162, allocations: 36.36 kB / 0.5581 GB, free: 38.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/1.163, allocations: 1.398 MB / 0.5594 GB, free: 38.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/1.163, allocations: 170.6 kB / 0.5596 GB, free: 38.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/1.163, allocations: 14.53 kB / 0.5596 GB, free: 38.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.834e-05/1.163, allocations: 345 kB / 0.5599 GB, free: 38.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/1.164, allocations: 183.1 kB / 0.5601 GB, free: 38.08 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000617/1.164, allocations: 0.5828 MB / 0.5607 GB, free: 37.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005859/1.165, allocations: 269.3 kB / 0.5609 GB, free: 37.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.57e-06/1.165, allocations: 3.781 kB / 0.5609 GB, free: 37.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002403/1.167, allocations: 1.149 MB / 0.5621 GB, free: 37.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/1.168, allocations: 7.156 kB / 0.5621 GB, free: 37.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/1.168, allocations: 81.11 kB / 0.5621 GB, free: 37.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006827/1.168, allocations: 280.8 kB / 0.5624 GB, free: 37.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007679/1.169, allocations: 173.7 kB / 0.5626 GB, free: 37.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/1.17, allocations: 0.8849 MB / 0.5634 GB, free: 36.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.172, allocations: 122.8 kB / 0.5636 GB, free: 36.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/1.172, allocations: 66.55 kB / 0.5636 GB, free: 36.77 MB / 394.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.0002151/1.173, allocations: 161.6 kB / 0.5638 GB, free: 36.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004141/1.173, allocations: 365.8 kB / 0.5641 GB, free: 36.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/1.177, allocations: 1.229 MB / 0.5653 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.911e-06/1.177, allocations: 4.875 kB / 0.5653 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.415e-06/1.177, allocations: 0 / 0.5653 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.761e-06/1.177, allocations: 3.891 kB / 0.5653 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004504/1.182, allocations: 2.115 MB / 0.5674 GB, free: 35.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001133/1.182, allocations: 72.05 kB / 0.5675 GB, free: 35.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/1.182, allocations: 74.69 kB / 0.5675 GB, free: 35.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006005/1.183, allocations: 259.1 kB / 0.5678 GB, free: 35.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/1.183, allocations: 35.64 kB / 0.5678 GB, free: 35.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/1.184, allocations: 0.8691 MB / 0.5687 GB, free: 35.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.184, allocations: 0 / 0.5687 GB, free: 35.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/1.186, allocations: 1.139 MB / 0.5698 GB, free: 34.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.187, allocations: 473 kB / 0.5702 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004795/1.188, allocations: 13.91 kB / 0.5702 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/1.189, allocations: 46.09 kB / 0.5703 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/1.189, allocations: 71.7 kB / 0.5704 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.034e-05/1.189, allocations: 36.16 kB / 0.5704 GB, free: 34.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00308/1.192, allocations: 1.768 MB / 0.5721 GB, free: 34.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.192, allocations: 0 / 0.5721 GB, free: 34.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002346/1.195, allocations: 0.6205 MB / 0.5727 GB, free: 34.32 MB / 394.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.001445/1.196, allocations: 0.8629 MB / 0.5736 GB, free: 34.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/1.198, allocations: 0.7281 MB / 0.5743 GB, free: 34.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.419e-06/1.198, allocations: 3.875 kB / 0.5743 GB, free: 34.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008054/1.199, allocations: 433.9 kB / 0.5747 GB, free: 33.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/1.201, allocations: 465.4 kB / 0.5751 GB, free: 33.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/1.206, allocations: 2.769 MB / 0.5778 GB, free: 32.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/1.208, allocations: 1.668 MB / 0.5795 GB, free: 32.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001642/1.209, allocations: 344.5 kB / 0.5798 GB, free: 32.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/1.209, allocations: 140.5 kB / 0.5799 GB, free: 32.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.605e-06/1.209, allocations: 3.938 kB / 0.5799 GB, free: 32.14 MB / 394.7 MB Notification: Performance of Templates: time 0.07508/1.285, allocations: 32.91 MB / 0.6121 GB, free: 20.75 MB / 394.7 MB