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.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.254e-05, allocations: 8 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2394, allocations: 38.76 MB / 263.8 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3461, allocations: 69.97 MB / 333.7 MB, free: 3.746 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.3464, allocations: 75.95 kB / 333.8 MB, free: 3.672 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04189/0.3883, allocations: 10.27 MB / 344.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3884, allocations: 0 / 344.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.3884, allocations: 16 kB / 344.1 MB, free: 9.344 MB / 298.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.00304/0.3915, allocations: 1.073 MB / 345.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3915, allocations: 8.031 kB / 345.2 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.3918, allocations: 75.16 kB / 345.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.3926, allocations: 419.3 kB / 345.7 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.778e-05/0.3927, allocations: 45.27 kB / 345.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3929, allocations: 63.92 kB / 345.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.3946, allocations: 0.7238 MB / 346.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.3947, allocations: 0 / 346.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.3948, allocations: 23.94 kB / 346.5 MB, free: 6.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.3948, allocations: 16 kB / 346.5 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.3964, allocations: 0.5916 MB / 347.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00661/0.4031, allocations: 3.162 MB / 350.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.4047, allocations: 0.6782 MB / 351 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007841/0.4055, allocations: 306.1 kB / 351.3 MB, free: 1.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.779e-05/0.4056, allocations: 16.44 kB / 351.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000806/0.4064, allocations: 332.4 kB / 351.6 MB, free: 1.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.329e-06/0.4065, allocations: 0 / 351.6 MB, free: 1.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001437/0.4079, allocations: 0.4956 MB / 352.1 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001847/0.4081, allocations: 273.4 kB / 352.4 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007975/0.4089, allocations: 443.7 kB / 352.8 MB, free: 216 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.439e-05/0.409, allocations: 37.7 kB / 352.9 MB, free: 172 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.4094, allocations: 335.8 kB / 353.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.4096, allocations: 169.6 kB / 353.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.4097, allocations: 12 kB / 353.4 MB, free: 15.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.41, allocations: 362.8 kB / 353.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006867/0.4107, allocations: 253.5 kB / 354 MB, free: 15.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009146/0.4116, allocations: 0.4937 MB / 354.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000751/0.4124, allocations: 329.8 kB / 354.8 MB, free: 14.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.4124, allocations: 8 kB / 354.8 MB, free: 14.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002052/0.4145, allocations: 0.8105 MB / 355.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.562e-05/0.4146, allocations: 59.41 kB / 355.7 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.4146, allocations: 12 kB / 355.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.074e-05/0.4146, allocations: 12 kB / 355.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.4162, allocations: 251.9 kB / 355.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.348e-05/0.4163, allocations: 15.94 kB / 355.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4177, allocations: 222.9 kB / 356.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.4178, allocations: 31.98 kB / 356.2 MB, free: 12.66 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.0002553/0.4181, allocations: 157.4 kB / 356.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.4182, allocations: 59.25 kB / 356.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.4184, allocations: 69.36 kB / 356.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.932e-06/0.4185, allocations: 8 kB / 356.5 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.419e-06/0.4185, allocations: 0 / 356.5 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4185, allocations: 3.953 kB / 356.5 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003045/0.4216, allocations: 1.377 MB / 357.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.054e-06/0.4216, allocations: 0 / 357.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.4228, allocations: 187.7 kB / 358 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.4228, allocations: 4 kB / 358 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-05/0.4229, allocations: 11.98 kB / 358.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.426e-06/0.4229, allocations: 0 / 358.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.577e-06/0.4229, allocations: 0 / 358.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.4251, allocations: 0.8965 MB / 358.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/0.4253, allocations: 140.4 kB / 359.1 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.4255, allocations: 15.95 kB / 359.1 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.4265, allocations: 143.9 kB / 359.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.4267, allocations: 52.36 kB / 359.3 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.638e-05/0.4268, allocations: 15.98 kB / 359.3 MB, free: 9.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005891/0.4274, allocations: 325.6 kB / 359.6 MB, free: 9.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.426e-06/0.4274, allocations: 0 / 359.6 MB, free: 9.121 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008623/0.4283, allocations: 175.7 kB / 359.8 MB, free: 8.949 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.0003596/0.4287, allocations: 123.1 kB / 359.9 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.4316, allocations: 0.7097 MB / 360.6 MB, free: 8.086 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.788e-06/0.4316, allocations: 0 / 360.6 MB, free: 8.086 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.433, allocations: 277.6 kB / 360.9 MB, free: 7.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.434, allocations: 80.14 kB / 361 MB, free: 7.738 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/0.4378, allocations: 0.8426 MB / 361.8 MB, free: 6.867 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009064/0.4387, allocations: 0.8709 MB / 362.7 MB, free: 5.973 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001126/0.4399, allocations: 72.66 kB / 362.8 MB, free: 5.902 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.4404, allocations: 51.42 kB / 362.8 MB, free: 5.852 MB / 314.7 MB Notification: Performance of SimCode: time 2.26e-06/0.4404, allocations: 3.938 kB / 362.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of Templates: time 0.2884/0.7288, allocations: 7.099 MB / 369.9 MB, free: 90.99 MB / 314.7 MB