Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.825/1.825, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.261e-05, allocations: 4 kB / 255.4 MB, free: 2.695 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07694/0.077, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3449/0.422, allocations: 75.28 MB / 375.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.4223, allocations: 68.25 kB / 375.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0386/0.4609, allocations: 10.16 MB / 385.4 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.4609, allocations: 0 / 385.4 MB, free: 21.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.461, allocations: 17.03 kB / 385.4 MB, free: 21.45 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002854/0.4638, allocations: 1.067 MB / 386.5 MB, free: 20.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.4639, allocations: 9.344 kB / 386.5 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.4642, allocations: 76.84 kB / 386.6 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006824/0.4649, allocations: 427.2 kB / 387 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.41e-05/0.4649, allocations: 42.91 kB / 387 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.4651, allocations: 54.59 kB / 387.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4666, allocations: 0.7311 MB / 387.8 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.4e-05/0.4666, allocations: 0 / 387.8 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.4668, allocations: 20.88 kB / 387.8 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4668, allocations: 15.59 kB / 387.8 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.4683, allocations: 0.5937 MB / 388.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005736/0.474, allocations: 3.153 MB / 391.6 MB, free: 18.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.4755, allocations: 0.6859 MB / 392.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007458/0.4763, allocations: 301.5 kB / 392.6 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.229e-05/0.4764, allocations: 19.84 kB / 392.6 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006839/0.4771, allocations: 324.6 kB / 392.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.296e-06/0.4771, allocations: 0 / 392.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001311/0.4784, allocations: 0.496 MB / 393.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.4785, allocations: 272.4 kB / 393.7 MB, free: 18.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006547/0.4792, allocations: 440.2 kB / 394.1 MB, free: 18.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.4793, allocations: 36.73 kB / 394.1 MB, free: 18.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.4795, allocations: 336.8 kB / 394.5 MB, free: 17.85 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.4796, allocations: 169.5 kB / 394.6 MB, free: 17.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.999e-05/0.4797, allocations: 10.75 kB / 394.6 MB, free: 17.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.67e-05/0.4798, allocations: 375.1 kB / 395 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/0.4804, allocations: 248 kB / 395.2 MB, free: 17.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.4811, allocations: 498.6 kB / 395.7 MB, free: 17.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006696/0.4818, allocations: 337.9 kB / 396.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.148e-06/0.4818, allocations: 3.906 kB / 396.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001865/0.4837, allocations: 0.8162 MB / 396.9 MB, free: 16.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/0.4838, allocations: 71.97 kB / 396.9 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.4838, allocations: 11.91 kB / 397 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.4839, allocations: 7.812 kB / 397 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.4852, allocations: 252.9 kB / 397.2 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.4852, allocations: 7.75 kB / 397.2 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4867, allocations: 218.7 kB / 397.4 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.4868, allocations: 42.17 kB / 397.5 MB, free: 16.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002288/0.4871, allocations: 146.9 kB / 397.6 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.4873, allocations: 58.09 kB / 397.7 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.4875, allocations: 69.06 kB / 397.7 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.565e-06/0.4875, allocations: 7.844 kB / 397.8 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.521e-06/0.4875, allocations: 0 / 397.8 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.4875, allocations: 3.656 kB / 397.8 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.4902, allocations: 1.387 MB / 399.1 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4902, allocations: 0 / 399.1 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.4914, allocations: 172.7 kB / 399.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.4915, allocations: 7.875 kB / 399.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.4915, allocations: 11.3 kB / 399.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.787e-06/0.4916, allocations: 0 / 399.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.453e-06/0.4916, allocations: 0 / 399.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.4935, allocations: 0.8981 MB / 400.2 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.4937, allocations: 146.2 kB / 400.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.4939, allocations: 11.16 kB / 400.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.495, allocations: 138.4 kB / 400.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.4952, allocations: 56.77 kB / 400.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.077e-05/0.4952, allocations: 15.52 kB / 400.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004883/0.4957, allocations: 334 kB / 400.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.4958, allocations: 0 / 400.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008299/0.4966, allocations: 168.4 kB / 401.1 MB, free: 15.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001959/0.4968, allocations: 117.8 kB / 401.2 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.4982, allocations: 0.7052 MB / 401.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.778e-06/0.4982, allocations: 4.156 kB / 401.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006266/0.4989, allocations: 281.4 kB / 402.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.4995, allocations: 83.17 kB / 402.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.5015, allocations: 0.8438 MB / 403.1 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.5019, allocations: 0.8693 MB / 404 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006351/0.5025, allocations: 84.14 kB / 404.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.5028, allocations: 45.94 kB / 404.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.648e-06/0.5029, allocations: 0 / 404.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of Templates: time 0.0168/0.5197, allocations: 7.105 MB / 411.2 MB, free: 13.45 MB / 314.7 MB