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_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.111e-05, allocations: 0 / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09011, allocations: 38.78 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005279/0.09543, allocations: 3.276 MB / 270.2 MB, free: 13.83 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.0981, allocations: 0.9431 MB / 271.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005618/0.09871, allocations: 16 kB / 271.1 MB, free: 12.87 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.09895, allocations: 71.44 kB / 271.2 MB, free: 12.8 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006373/0.0996, allocations: 171.3 kB / 271.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006403/0.1003, allocations: 159.8 kB / 271.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.1014, allocations: 449.4 kB / 272 MB, free: 12.04 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.1018, allocations: 146.2 kB / 272.1 MB, free: 11.89 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004839/0.1023, allocations: 267.4 kB / 272.4 MB, free: 11.63 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006018/0.1029, allocations: 330.9 kB / 272.7 MB, free: 11.3 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.1031, allocations: 40 kB / 272.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.1032, allocations: 40 kB / 272.8 MB, free: 11.23 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.1034, allocations: 127.5 kB / 272.9 MB, free: 11.1 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.1036, allocations: 56 kB / 272.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.1049, allocations: 0.8689 MB / 273.8 MB, free: 10.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1049, allocations: 0 / 273.8 MB, free: 10.18 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.883e-06/0.1049, allocations: 0 / 273.8 MB, free: 10.18 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.13e-05/0.105, allocations: 3.938 kB / 273.8 MB, free: 10.17 MB / 234.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.004653/0.1096, allocations: 1.099 MB / 274.9 MB, free: 9.008 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.1097, allocations: 11.97 kB / 274.9 MB, free: 8.996 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003713/0.1101, allocations: 75.16 kB / 275 MB, free: 8.922 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009385/0.111, allocations: 420.9 kB / 275.4 MB, free: 8.469 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/0.1112, allocations: 45.27 kB / 275.5 MB, free: 8.422 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.1113, allocations: 55.91 kB / 275.5 MB, free: 8.367 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004273/0.1156, allocations: 0.9955 MB / 276.5 MB, free: 7.312 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.1157, allocations: 4 kB / 276.5 MB, free: 7.309 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.1158, allocations: 24 kB / 276.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.1159, allocations: 16 kB / 276.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005973/0.1219, allocations: 1.12 MB / 277.7 MB, free: 6.148 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008452/0.1304, allocations: 3.142 MB / 280.8 MB, free: 2.879 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004619/0.135, allocations: 1.03 MB / 281.8 MB, free: 1.801 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.1352, allocations: 20.48 kB / 281.9 MB, free: 1.781 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00241/0.1376, allocations: 0.5128 MB / 282.4 MB, free: 1.254 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 6.311e-06/0.1377, allocations: 0 / 282.4 MB, free: 1.254 MB / 234.7 MB Notification: Performance of matching and sorting (n=50): time 0.006513/0.1442, allocations: 1.263 MB / 283.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001888/0.1445, allocations: 265.5 kB / 283.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.1456, allocations: 453 kB / 284.3 MB, free: 15.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002267/0.1459, allocations: 37.7 kB / 284.4 MB, free: 15.17 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.1463, allocations: 382 kB / 284.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.1466, allocations: 169.6 kB / 284.9 MB, free: 14.63 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.573e-05/0.1467, allocations: 16 kB / 284.9 MB, free: 14.61 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1468, allocations: 342.8 kB / 285.3 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/0.1493, allocations: 461.7 kB / 285.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00276/0.1521, allocations: 0.704 MB / 286.4 MB, free: 13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.1548, allocations: 0.5364 MB / 287 MB, free: 12.46 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/0.1549, allocations: 0 / 287 MB, free: 12.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005738/0.1606, allocations: 1.209 MB / 288.2 MB, free: 11.23 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.997e-05/0.1607, allocations: 67.39 kB / 288.2 MB, free: 11.15 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.1608, allocations: 4 kB / 288.2 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/0.1608, allocations: 12 kB / 288.2 MB, free: 11.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/0.163, allocations: 252 kB / 288.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.651e-05/0.1631, allocations: 19.92 kB / 288.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002173/0.1653, allocations: 215 kB / 288.7 MB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.1655, allocations: 35.98 kB / 288.8 MB, free: 10.62 MB / 250.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.0005112/0.166, allocations: 213.5 kB / 289 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.1662, allocations: 59.34 kB / 289 MB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.1664, allocations: 69.58 kB / 289.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.1664, allocations: 4 kB / 289.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.1665, allocations: 0 / 289.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.1665, allocations: 7.922 kB / 289.1 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.1726, allocations: 1.747 MB / 290.9 MB, free: 8.453 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.1726, allocations: 0 / 290.9 MB, free: 8.453 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.1743, allocations: 175.8 kB / 291 MB, free: 8.281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.1744, allocations: 0 / 291 MB, free: 8.281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.1745, allocations: 16 kB / 291 MB, free: 8.266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/0.1745, allocations: 7.953 kB / 291 MB, free: 8.258 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1745, allocations: 4 kB / 291 MB, free: 8.254 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006743/0.1813, allocations: 1.462 MB / 292.5 MB, free: 6.777 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/0.1816, allocations: 140.3 kB / 292.6 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.1819, allocations: 15.98 kB / 292.7 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.1835, allocations: 143.9 kB / 292.8 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.1838, allocations: 56.31 kB / 292.9 MB, free: 6.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.487e-05/0.1838, allocations: 16 kB / 292.9 MB, free: 6.395 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008659/0.1847, allocations: 350.8 kB / 293.2 MB, free: 6.055 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1847, allocations: 0 / 293.2 MB, free: 6.055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001008/0.1858, allocations: 171.7 kB / 293.4 MB, free: 5.887 MB / 250.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.0002449/0.186, allocations: 115.2 kB / 293.5 MB, free: 5.766 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005108/0.1911, allocations: 1.115 MB / 294.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.1912, allocations: 0 / 294.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/0.1934, allocations: 466.4 kB / 295.1 MB, free: 4.168 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.1942, allocations: 81.86 kB / 295.1 MB, free: 4.09 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.1984, allocations: 1.434 MB / 296.6 MB, free: 2.617 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007414/0.1992, allocations: 0.8705 MB / 297.5 MB, free: 1.719 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.2003, allocations: 55.42 kB / 297.5 MB, free: 1.664 MB / 250.7 MB Notification: Performance of SimCode: time 2.405e-06/0.2003, allocations: 4 kB / 297.5 MB, free: 1.66 MB / 250.7 MB Notification: Performance of Templates: time 0.2359/0.4362, allocations: 8.376 MB / 305.9 MB, free: 28.43 MB / 250.7 MB