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_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 2.142/2.142, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.287e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 50.42 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005405/0.1171, allocations: 3.332 MB / 348.3 MB, free: 5.613 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.1199, allocations: 0.9969 MB / 349.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004669/0.1204, allocations: 19.94 kB / 349.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.1206, allocations: 63.45 kB / 349.4 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005876/0.1212, allocations: 183.4 kB / 349.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.1219, allocations: 191.7 kB / 349.8 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008839/0.1228, allocations: 0.494 MB / 350.2 MB, free: 3.664 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003636/0.1231, allocations: 154 kB / 350.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004369/0.1236, allocations: 287.3 kB / 350.7 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000595/0.1242, allocations: 350.9 kB / 351 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.1244, allocations: 40 kB / 351.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1245, allocations: 40 kB / 351.1 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.1247, allocations: 135.5 kB / 351.2 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.125, allocations: 68 kB / 351.3 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.1262, allocations: 0.9234 MB / 352.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1262, allocations: 0 / 352.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1262, allocations: 0 / 352.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.1263, allocations: 4 kB / 352.2 MB, free: 1.68 MB / 282.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.004514/0.1308, allocations: 1.135 MB / 353.4 MB, free: 488 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.1309, allocations: 16.02 kB / 353.4 MB, free: 472 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.1312, allocations: 90.86 kB / 353.5 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009135/0.1322, allocations: 452.8 kB / 353.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.084e-05/0.1322, allocations: 49.3 kB / 354 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.1324, allocations: 56 kB / 354 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003993/0.1364, allocations: 1.046 MB / 355.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/0.1365, allocations: 0 / 355.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.1366, allocations: 24 kB / 355.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.1367, allocations: 16 kB / 355.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005847/0.1425, allocations: 1.155 MB / 356.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008431/0.151, allocations: 3.274 MB / 359.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004659/0.1557, allocations: 1.041 MB / 360.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.1559, allocations: 16.52 kB / 360.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002456/0.1584, allocations: 0.505 MB / 361.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 5.43e-06/0.1584, allocations: 0 / 361.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.006355/0.1648, allocations: 1.275 MB / 362.4 MB, free: 7.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002363/0.1651, allocations: 376.3 kB / 362.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.1663, allocations: 0.5059 MB / 363.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.1665, allocations: 41.7 kB / 363.3 MB, free: 6.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.1669, allocations: 406 kB / 363.7 MB, free: 5.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.1671, allocations: 169.6 kB / 363.8 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.544e-05/0.1672, allocations: 16 kB / 363.9 MB, free: 5.582 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1674, allocations: 334.8 kB / 364.2 MB, free: 5.246 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002414/0.1698, allocations: 461.7 kB / 364.6 MB, free: 4.797 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002676/0.1725, allocations: 0.7319 MB / 365.4 MB, free: 3.945 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.1751, allocations: 0.5286 MB / 365.9 MB, free: 3.406 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.1752, allocations: 4 kB / 365.9 MB, free: 3.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00559/0.1808, allocations: 1.217 MB / 367.1 MB, free: 2.172 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.1809, allocations: 63.41 kB / 367.2 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.181, allocations: 4 kB / 367.2 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.723e-05/0.181, allocations: 15.94 kB / 367.2 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002069/0.1831, allocations: 251.8 kB / 367.4 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.881e-05/0.1831, allocations: 19.92 kB / 367.5 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/0.1853, allocations: 223 kB / 367.7 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.1855, allocations: 35.95 kB / 367.7 MB, free: 1.559 MB / 298.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.0005194/0.1861, allocations: 225.6 kB / 367.9 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.1863, allocations: 67.16 kB / 368 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002234/0.1865, allocations: 70.41 kB / 368.1 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.1865, allocations: 8 kB / 368.1 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.1865, allocations: 4 kB / 368.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.1866, allocations: 7.922 kB / 368.1 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00607/0.1926, allocations: 1.775 MB / 369.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.1927, allocations: 0 / 369.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/0.1944, allocations: 183.7 kB / 370 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-05/0.1944, allocations: 4 kB / 370 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.1e-05/0.1945, allocations: 15.95 kB / 370.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.194e-06/0.1945, allocations: 0 / 370.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1945, allocations: 0 / 370.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006723/0.2013, allocations: 1.478 MB / 371.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.2016, allocations: 144.2 kB / 371.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.2019, allocations: 12 kB / 371.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.2034, allocations: 147.9 kB / 371.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.2037, allocations: 56.3 kB / 371.9 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.37e-05/0.2038, allocations: 19.98 kB / 371.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009685/0.2047, allocations: 394.8 kB / 372.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2048, allocations: 0 / 372.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00103/0.2058, allocations: 183.7 kB / 372.5 MB, free: 12.69 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.0002592/0.2061, allocations: 123.1 kB / 372.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005282/0.2114, allocations: 1.11 MB / 373.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/0.2114, allocations: 7.938 kB / 373.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002257/0.2137, allocations: 459.4 kB / 374.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/0.2146, allocations: 94.2 kB / 374.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.2189, allocations: 1.529 MB / 375.8 MB, free: 9.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000569/0.2195, allocations: 0.894 MB / 376.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006232/0.2202, allocations: 63.42 kB / 376.7 MB, free: 8.336 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.2202, allocations: 0 / 376.7 MB, free: 8.336 MB / 314.7 MB Notification: Performance of Templates: time 0.02218/0.2424, allocations: 9.007 MB / 385.7 MB, free: 15.34 MB / 330.7 MB