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_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.995/1.995, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.854e-05/2.874e-05, allocations: 0 / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08995/0.09001, allocations: 50.42 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4598, allocations: 82.66 MB / 425.7 MB, free: 11.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4601, allocations: 70.53 kB / 425.8 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04333/0.5035, allocations: 11.36 MB / 437.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5035, allocations: 0 / 437.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.873e-05/0.5036, allocations: 12 kB / 437.2 MB, free: 1.789 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003124/0.5067, allocations: 1.119 MB / 438.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.5068, allocations: 8.031 kB / 438.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.507, allocations: 86.97 kB / 438.4 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009852/0.508, allocations: 481.4 kB / 438.9 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.351e-05/0.5081, allocations: 45.31 kB / 438.9 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.5083, allocations: 59.31 kB / 439 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.51, allocations: 0.7608 MB / 439.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.5101, allocations: 7.891 kB / 439.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.5102, allocations: 25.06 kB / 439.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.5102, allocations: 16 kB / 439.8 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.5118, allocations: 0.6231 MB / 440.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006626/0.5184, allocations: 3.287 MB / 443.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.52, allocations: 0.6897 MB / 444.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007298/0.5207, allocations: 301.5 kB / 444.7 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.697e-05/0.5208, allocations: 16.48 kB / 444.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007523/0.5216, allocations: 327.5 kB / 445 MB, free: 11.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 5.038e-06/0.5216, allocations: 4 kB / 445 MB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001377/0.523, allocations: 0.5084 MB / 445.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002428/0.5233, allocations: 375.9 kB / 445.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008741/0.5242, allocations: 0.4896 MB / 446.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.596e-05/0.5243, allocations: 39.2 kB / 446.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.5246, allocations: 371.2 kB / 446.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.5249, allocations: 167.8 kB / 446.9 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.5249, allocations: 14.81 kB / 447 MB, free: 9.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.5252, allocations: 371.5 kB / 447.3 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006344/0.5259, allocations: 246.3 kB / 447.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009245/0.5268, allocations: 0.5288 MB / 448.1 MB, free: 8.781 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/0.5275, allocations: 332.6 kB / 448.4 MB, free: 8.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.166e-06/0.5276, allocations: 0 / 448.4 MB, free: 8.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002003/0.5296, allocations: 0.8255 MB / 449.2 MB, free: 7.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.771e-05/0.5297, allocations: 63.81 kB / 449.3 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.5297, allocations: 11.95 kB / 449.3 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.95e-05/0.5298, allocations: 16 kB / 449.3 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.5312, allocations: 253.8 kB / 449.6 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.388e-05/0.5312, allocations: 11.94 kB / 449.6 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.5327, allocations: 229.8 kB / 449.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.5328, allocations: 35.3 kB / 449.8 MB, free: 7.336 MB / 362.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.0002588/0.5331, allocations: 157.2 kB / 450 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.5332, allocations: 67.25 kB / 450.1 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.5335, allocations: 70.62 kB / 450.1 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.5335, allocations: 7.953 kB / 450.1 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.99e-06/0.5335, allocations: 0 / 450.1 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5335, allocations: 3.984 kB / 450.1 MB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.5366, allocations: 1.4 MB / 451.5 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.685e-06/0.5366, allocations: 7.922 kB / 451.5 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.5378, allocations: 175.8 kB / 451.7 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/0.5378, allocations: 4 kB / 451.7 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.125e-05/0.5379, allocations: 12 kB / 451.7 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.211e-06/0.5379, allocations: 0 / 451.7 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5379, allocations: 3.938 kB / 451.7 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.5401, allocations: 0.9081 MB / 452.6 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.5403, allocations: 152.2 kB / 452.8 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.5405, allocations: 16 kB / 452.8 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.5415, allocations: 143.9 kB / 453 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.5417, allocations: 48.36 kB / 453 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.745e-05/0.5418, allocations: 19.98 kB / 453 MB, free: 4.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006707/0.5425, allocations: 373.6 kB / 453.4 MB, free: 3.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.43e-07/0.5425, allocations: 4 kB / 453.4 MB, free: 3.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008545/0.5434, allocations: 179.7 kB / 453.6 MB, free: 3.566 MB / 362.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.0002375/0.5436, allocations: 131.1 kB / 453.7 MB, free: 3.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.5453, allocations: 0.7027 MB / 454.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.5453, allocations: 4 kB / 454.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006697/0.546, allocations: 270.1 kB / 454.7 MB, free: 2.434 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006678/0.5467, allocations: 97.53 kB / 454.8 MB, free: 2.336 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.5491, allocations: 0.8985 MB / 455.7 MB, free: 1.418 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006723/0.5497, allocations: 0.8981 MB / 456.6 MB, free: 500 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006575/0.5504, allocations: 84.86 kB / 456.6 MB, free: 416 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.5507, allocations: 51.42 kB / 456.7 MB, free: 364 kB / 362.7 MB Notification: Performance of SimCode: time 1.599e-06/0.5507, allocations: 0 / 456.7 MB, free: 364 kB / 362.7 MB Notification: Performance of Templates: time 0.02096/0.5717, allocations: 7.651 MB / 464.3 MB, free: 8.734 MB / 378.7 MB