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.715/1.715, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.901e-05, allocations: 4 kB / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08389, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005304/0.08925, allocations: 3.274 MB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.09144, allocations: 0.9512 MB / 271.1 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.09173, allocations: 12 kB / 271.2 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.0919, allocations: 71.38 kB / 271.2 MB, free: 12.15 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004759/0.09239, allocations: 167.5 kB / 271.4 MB, free: 11.98 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005044/0.09291, allocations: 163.8 kB / 271.5 MB, free: 11.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007643/0.09369, allocations: 449.4 kB / 272 MB, free: 11.38 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.09404, allocations: 146.2 kB / 272.1 MB, free: 11.24 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.09444, allocations: 259.4 kB / 272.4 MB, free: 10.98 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005836/0.09504, allocations: 338.9 kB / 272.7 MB, free: 10.65 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.09521, allocations: 40 kB / 272.7 MB, free: 10.61 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.09534, allocations: 36 kB / 272.8 MB, free: 10.58 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.09553, allocations: 131.5 kB / 272.9 MB, free: 10.45 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.09574, allocations: 56 kB / 273 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.09693, allocations: 0.8686 MB / 273.8 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.09695, allocations: 4 kB / 273.8 MB, free: 9.52 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.09696, allocations: 3.938 kB / 273.8 MB, free: 9.516 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.09698, allocations: 0 / 273.8 MB, free: 9.516 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.004257/0.1013, allocations: 1.1 MB / 274.9 MB, free: 8.352 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1013, allocations: 8.031 kB / 275 MB, free: 8.344 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.1015, allocations: 71.16 kB / 275 MB, free: 8.273 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008065/0.1024, allocations: 424.9 kB / 275.4 MB, free: 7.816 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.532e-05/0.1024, allocations: 45.27 kB / 275.5 MB, free: 7.77 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.1026, allocations: 55.91 kB / 275.5 MB, free: 7.715 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.1064, allocations: 0.9934 MB / 276.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1064, allocations: 4 kB / 276.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.1066, allocations: 28 kB / 276.6 MB, free: 6.633 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.1066, allocations: 19.98 kB / 276.6 MB, free: 6.613 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005655/0.1123, allocations: 1.124 MB / 277.7 MB, free: 5.488 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007833/0.1201, allocations: 3.142 MB / 280.8 MB, free: 2.219 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004508/0.1247, allocations: 1.026 MB / 281.9 MB, free: 1.141 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.773e-05/0.1249, allocations: 16.48 kB / 281.9 MB, free: 1.125 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002285/0.1271, allocations: 0.5088 MB / 282.4 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 3.827e-06/0.1272, allocations: 4 kB / 282.4 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of matching and sorting (n=50): time 0.006221/0.1334, allocations: 1.26 MB / 283.7 MB, free: 15.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.1336, allocations: 265.5 kB / 283.9 MB, free: 15.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.1347, allocations: 453.1 kB / 284.4 MB, free: 14.57 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.1349, allocations: 37.7 kB / 284.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.1352, allocations: 339.5 kB / 284.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.1355, allocations: 165.6 kB / 284.9 MB, free: 14.02 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.393e-05/0.1356, allocations: 23.94 kB / 284.9 MB, free: 14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1358, allocations: 370.7 kB / 285.3 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.1382, allocations: 465.6 kB / 285.7 MB, free: 13.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002599/0.1408, allocations: 0.7041 MB / 286.4 MB, free: 12.36 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/0.1433, allocations: 0.5247 MB / 287 MB, free: 11.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.1433, allocations: 4 kB / 287 MB, free: 11.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00551/0.1488, allocations: 1.239 MB / 288.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/0.149, allocations: 63.41 kB / 288.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.149, allocations: 4 kB / 288.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.637e-05/0.149, allocations: 12 kB / 288.3 MB, free: 10.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/0.1511, allocations: 256 kB / 288.5 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.49e-05/0.1511, allocations: 12 kB / 288.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/0.1532, allocations: 215 kB / 288.8 MB, free: 9.996 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.1533, allocations: 36 kB / 288.8 MB, free: 9.961 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.0004707/0.1538, allocations: 217.5 kB / 289 MB, free: 9.738 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.1539, allocations: 59.25 kB / 289.1 MB, free: 9.68 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002081/0.1542, allocations: 69.59 kB / 289.1 MB, free: 9.605 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.324e-05/0.1542, allocations: 7.984 kB / 289.1 MB, free: 9.598 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1542, allocations: 3.938 kB / 289.1 MB, free: 9.594 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.1542, allocations: 3.984 kB / 289.1 MB, free: 9.59 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005849/0.1601, allocations: 1.751 MB / 290.9 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.1602, allocations: 0 / 290.9 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.1618, allocations: 175.8 kB / 291.1 MB, free: 7.609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.1618, allocations: 0 / 291.1 MB, free: 7.609 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.056e-05/0.1619, allocations: 15.98 kB / 291.1 MB, free: 7.594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.054e-05/0.1619, allocations: 7.953 kB / 291.1 MB, free: 7.586 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1619, allocations: 0 / 291.1 MB, free: 7.586 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006542/0.1684, allocations: 1.462 MB / 292.5 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000245/0.1687, allocations: 144.2 kB / 292.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/0.169, allocations: 12 kB / 292.7 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/0.1705, allocations: 143.9 kB / 292.8 MB, free: 5.797 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.1707, allocations: 56.31 kB / 292.9 MB, free: 5.742 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/0.1708, allocations: 15.98 kB / 292.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008232/0.1717, allocations: 346.8 kB / 293.3 MB, free: 5.391 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1717, allocations: 0 / 293.3 MB, free: 5.391 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008506/0.1725, allocations: 171.7 kB / 293.4 MB, free: 5.223 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.0002314/0.1728, allocations: 119.2 kB / 293.5 MB, free: 5.098 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004937/0.1777, allocations: 1.111 MB / 294.6 MB, free: 3.957 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.1778, allocations: 12.11 kB / 294.7 MB, free: 3.945 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.18, allocations: 466.2 kB / 295.1 MB, free: 3.492 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.1808, allocations: 81.75 kB / 295.2 MB, free: 3.414 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004033/0.1849, allocations: 1.405 MB / 296.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.1855, allocations: 0.8783 MB / 297.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0008394/0.1863, allocations: 80.64 kB / 297.6 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.1867, allocations: 47.44 kB / 297.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1867, allocations: 0 / 297.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of Templates: time 0.2536/0.4403, allocations: 7.007 MB / 304.6 MB, free: 29.57 MB / 250.7 MB