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.2_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.088e-05, allocations: 4 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3588, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005264/0.3641, allocations: 3.285 MB / 306.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.3669, allocations: 0.9561 MB / 307.5 MB, free: 9.348 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005796/0.3675, allocations: 15.47 kB / 307.5 MB, free: 9.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.3677, allocations: 70.75 kB / 307.6 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006104/0.3684, allocations: 165.9 kB / 307.8 MB, free: 9.129 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006095/0.369, allocations: 168 kB / 307.9 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.3701, allocations: 448.1 kB / 308.4 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.3705, allocations: 142.2 kB / 308.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.371, allocations: 267.4 kB / 308.8 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005856/0.3716, allocations: 334.9 kB / 309.1 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.3717, allocations: 36 kB / 309.1 MB, free: 7.824 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.3719, allocations: 40 kB / 309.2 MB, free: 7.785 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.3721, allocations: 131.5 kB / 309.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.3723, allocations: 56 kB / 309.4 MB, free: 7.602 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.3735, allocations: 0.8626 MB / 310.2 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3735, allocations: 4 kB / 310.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3735, allocations: 0 / 310.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.3736, allocations: 0 / 310.2 MB, free: 6.734 MB / 250.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.00447/0.378, allocations: 1.096 MB / 311.3 MB, free: 5.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.3781, allocations: 12.03 kB / 311.3 MB, free: 5.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.3784, allocations: 75.16 kB / 311.4 MB, free: 5.488 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008563/0.3793, allocations: 436.7 kB / 311.8 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.066e-05/0.3794, allocations: 37.31 kB / 311.9 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.3796, allocations: 56 kB / 311.9 MB, free: 4.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003999/0.3836, allocations: 0.9916 MB / 312.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.3837, allocations: 0 / 312.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3838, allocations: 32 kB / 313 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.3838, allocations: 12 kB / 313 MB, free: 3.828 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005834/0.3897, allocations: 1.128 MB / 314.1 MB, free: 2.703 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00823/0.398, allocations: 3.142 MB / 317.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004673/0.4027, allocations: 1.038 MB / 318.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.4029, allocations: 16.42 kB / 318.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002303/0.4052, allocations: 0.5089 MB / 318.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 4.038e-06/0.4052, allocations: 0 / 318.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.00641/0.4116, allocations: 1.267 MB / 320.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.4119, allocations: 269.5 kB / 320.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.413, allocations: 457 kB / 320.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.4131, allocations: 37.7 kB / 320.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.4135, allocations: 370.1 kB / 321.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.4137, allocations: 173.6 kB / 321.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.565e-05/0.4138, allocations: 20 kB / 321.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.414, allocations: 334.8 kB / 321.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.4164, allocations: 461.7 kB / 322.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002737/0.4192, allocations: 0.7003 MB / 322.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.4219, allocations: 0.5285 MB / 323.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.4219, allocations: 4 kB / 323.4 MB, free: 9.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005771/0.4277, allocations: 1.208 MB / 324.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.952e-05/0.4279, allocations: 63.39 kB / 324.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.4279, allocations: 8 kB / 324.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.966e-05/0.4279, allocations: 8 kB / 324.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/0.43, allocations: 260 kB / 324.9 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/0.4301, allocations: 15.92 kB / 324.9 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/0.4321, allocations: 211.1 kB / 325.1 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.4322, allocations: 35.98 kB / 325.2 MB, free: 7.184 MB / 266.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.0004602/0.4327, allocations: 205.7 kB / 325.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.4329, allocations: 55.34 kB / 325.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.4331, allocations: 73.52 kB / 325.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4331, allocations: 4 kB / 325.5 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.4331, allocations: 3.953 kB / 325.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4331, allocations: 11.92 kB / 325.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005802/0.4389, allocations: 1.747 MB / 327.3 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.439, allocations: 3.953 kB / 327.3 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/0.4406, allocations: 175.8 kB / 327.4 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/0.4406, allocations: 4 kB / 327.4 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.4407, allocations: 12 kB / 327.5 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.4407, allocations: 3.938 kB / 327.5 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4407, allocations: 0 / 327.5 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006437/0.4472, allocations: 1.462 MB / 328.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/0.4475, allocations: 144.3 kB / 329.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.4477, allocations: 15.98 kB / 329.1 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/0.4492, allocations: 139.9 kB / 329.2 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.4494, allocations: 60.36 kB / 329.3 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.47e-05/0.4495, allocations: 11.94 kB / 329.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008235/0.4503, allocations: 346.8 kB / 329.6 MB, free: 2.629 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4504, allocations: 4 kB / 329.6 MB, free: 2.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008895/0.4513, allocations: 167.8 kB / 329.8 MB, free: 2.461 MB / 266.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.0002332/0.4515, allocations: 129 kB / 329.9 MB, free: 2.324 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00486/0.4564, allocations: 1.107 MB / 331 MB, free: 1.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4564, allocations: 4.125 kB / 331 MB, free: 1.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.4586, allocations: 470.2 kB / 331.5 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007475/0.4594, allocations: 77.86 kB / 331.6 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004077/0.4635, allocations: 1.442 MB / 333 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.464, allocations: 0.8708 MB / 333.9 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005918/0.4647, allocations: 55.42 kB / 333.9 MB, free: 14.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4647, allocations: 0 / 333.9 MB, free: 14.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02045/0.4851, allocations: 8.385 MB / 342.3 MB, free: 5.852 MB / 282.7 MB