Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.6e-05/2.593e-05, allocations: 0 / 258.8 MB, free: 8.719 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3412, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01572/0.357, allocations: 10.39 MB / 313.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03025/0.3873, allocations: 15.84 MB / 329.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002549/0.3899, allocations: 31.81 kB / 329.5 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003119/0.393, allocations: 0.7302 MB / 330.3 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007954/0.4011, allocations: 1.744 MB / 332 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004375/0.4055, allocations: 0.9771 MB / 333 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.4207, allocations: 5.502 MB / 338.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005377/0.4213, allocations: 122.1 kB / 338.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.4229, allocations: 0.6581 MB / 339.3 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.4247, allocations: 0.8321 MB / 340.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005525/0.4303, allocations: 1.206 MB / 341.3 MB, free: 7.574 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006935/0.4311, allocations: 72 kB / 341.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004316/0.4315, allocations: 258.1 kB / 341.6 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009884/0.4325, allocations: 252 kB / 341.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005035/0.4376, allocations: 2.518 MB / 344.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4376, allocations: 0 / 344.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.4377, allocations: 0 / 344.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001293/0.4378, allocations: 0 / 344.4 MB, free: 4.48 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005835/0.4436, allocations: 2.457 MB / 346.9 MB, free: 1.965 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.4437, allocations: 12.03 kB / 346.9 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008761/0.4446, allocations: 375.4 kB / 347.2 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006077/0.4507, allocations: 2.208 MB / 349.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.4508, allocations: 37 kB / 349.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/0.451, allocations: 47.98 kB / 349.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.4533, allocations: 0.7148 MB / 350.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.4534, allocations: 0 / 350.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.4535, allocations: 27.92 kB / 350.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.332e-05/0.4535, allocations: 16 kB / 350.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.4564, allocations: 0.828 MB / 351.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008599/0.465, allocations: 2.915 MB / 354 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.4675, allocations: 0.729 MB / 354.8 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04791/0.5155, allocations: 30.3 MB / 385.1 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001295/0.5168, allocations: 385.4 kB / 385.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.037e-06/0.5169, allocations: 0 / 385.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.005831/0.5227, allocations: 1.443 MB / 386.9 MB, free: 5.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.5228, allocations: 55.41 kB / 386.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005335/0.5282, allocations: 2.355 MB / 389.3 MB, free: 3.184 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001497/0.5284, allocations: 37.7 kB / 389.3 MB, free: 3.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.5299, allocations: 1.146 MB / 390.5 MB, free: 1.988 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.5303, allocations: 165.7 kB / 390.6 MB, free: 1.824 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.895e-05/0.5303, allocations: 12 kB / 390.6 MB, free: 1.812 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5305, allocations: 346.8 kB / 391 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.5316, allocations: 253.9 kB / 391.2 MB, free: 1.219 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.5329, allocations: 0.6125 MB / 391.8 MB, free: 448 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.5342, allocations: 336.1 kB / 392.2 MB, free: 112 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/0.5343, allocations: 4 kB / 392.2 MB, free: 108 kB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003478/0.5377, allocations: 1.017 MB / 393.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.5378, allocations: 8 kB / 393.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/0.538, allocations: 87.98 kB / 393.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009242/0.539, allocations: 287.9 kB / 393.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.5402, allocations: 175.7 kB / 393.7 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.5417, allocations: 0.8764 MB / 394.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.5437, allocations: 123.1 kB / 394.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.544, allocations: 67.94 kB / 394.8 MB, free: 13.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.001191/0.5452, allocations: 421.4 kB / 395.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008153/0.546, allocations: 371.5 kB / 395.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005696/0.5517, allocations: 1.337 MB / 396.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.5518, allocations: 4 kB / 396.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.5518, allocations: 4 kB / 396.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.5518, allocations: 3.984 kB / 396.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006776/0.5586, allocations: 2.213 MB / 399.1 MB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001641/0.5588, allocations: 71.98 kB / 399.2 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006179/0.5595, allocations: 71.94 kB / 399.3 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008408/0.5603, allocations: 264.8 kB / 399.5 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.5605, allocations: 31.98 kB / 399.6 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.562, allocations: 0.8752 MB / 400.4 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.562, allocations: 0 / 400.4 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/0.5657, allocations: 1.282 MB / 401.7 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/0.567, allocations: 460.3 kB / 402.2 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000715/0.5678, allocations: 15.98 kB / 402.2 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.5693, allocations: 39.97 kB / 402.2 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.5696, allocations: 67.88 kB / 402.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.5697, allocations: 39.98 kB / 402.3 MB, free: 5.668 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004409/0.5741, allocations: 1.801 MB / 404.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5742, allocations: 0 / 404.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002253/0.5764, allocations: 0.5661 MB / 404.7 MB, free: 3.297 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001745/0.5782, allocations: 0.7455 MB / 405.4 MB, free: 2.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.5815, allocations: 0.8805 MB / 406.3 MB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.5816, allocations: 4 kB / 406.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.5834, allocations: 0.5044 MB / 406.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/0.5863, allocations: 473.7 kB / 407.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.5965, allocations: 4.5 MB / 411.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/0.5983, allocations: 1.671 MB / 413.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005276/0.5989, allocations: 155.4 kB / 413.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.743e-06/0.5989, allocations: 0 / 413.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of Templates: time 0.3362/0.9351, allocations: 44.61 MB / 458.2 MB, free: 84.23 MB / 362.7 MB