Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.383e-05/3.393e-05, allocations: 4 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2654, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3934, allocations: 69.98 MB / 333.8 MB, free: 3.684 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.3937, allocations: 75.95 kB / 333.9 MB, free: 3.609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04806/0.4418, allocations: 10.27 MB / 344.2 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4419, allocations: 0 / 344.2 MB, free: 9.301 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.4419, allocations: 12 kB / 344.2 MB, free: 9.289 MB / 298.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.004529/0.4465, allocations: 1.085 MB / 345.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.4465, allocations: 8.031 kB / 345.3 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003027/0.4468, allocations: 94.52 kB / 345.4 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.4471, allocations: 75.16 kB / 345.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.448, allocations: 419.2 kB / 345.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.938e-05/0.4481, allocations: 57.23 kB / 345.9 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.4483, allocations: 52 kB / 346 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.4502, allocations: 0.72 MB / 346.7 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.4503, allocations: 3.938 kB / 346.7 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.4504, allocations: 24 kB / 346.7 MB, free: 6.602 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.4504, allocations: 15.94 kB / 346.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.4523, allocations: 0.5878 MB / 347.3 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008434/0.4608, allocations: 3.162 MB / 350.5 MB, free: 2.703 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001949/0.4628, allocations: 0.6744 MB / 351.1 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009238/0.4637, allocations: 309.7 kB / 351.4 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.796e-05/0.4638, allocations: 16.44 kB / 351.5 MB, free: 1.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008916/0.4647, allocations: 328.5 kB / 351.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.446e-06/0.4647, allocations: 0 / 351.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001612/0.4664, allocations: 0.4994 MB / 352.3 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.4665, allocations: 269.5 kB / 352.5 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.4674, allocations: 439.7 kB / 353 MB, free: 56 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.4676, allocations: 37.7 kB / 353 MB, free: 12 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.4679, allocations: 378.1 kB / 353.4 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.4682, allocations: 169.6 kB / 353.5 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.4683, allocations: 16 kB / 353.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4685, allocations: 342.8 kB / 353.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007823/0.4693, allocations: 249.5 kB / 354.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.4703, allocations: 497.7 kB / 354.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008542/0.4712, allocations: 334.5 kB / 355 MB, free: 13.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4712, allocations: 0 / 355 MB, free: 13.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00219/0.4734, allocations: 0.7913 MB / 355.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.4735, allocations: 59.41 kB / 355.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.4735, allocations: 12.06 kB / 355.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.45e-05/0.4736, allocations: 12 kB / 355.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/0.4757, allocations: 247.7 kB / 356.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/0.4757, allocations: 15.89 kB / 356.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.4778, allocations: 215.1 kB / 356.3 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.478, allocations: 40 kB / 356.3 MB, free: 12.52 MB / 314.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.0002802/0.4783, allocations: 156.7 kB / 356.5 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.4784, allocations: 59.33 kB / 356.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.4787, allocations: 61.38 kB / 356.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4787, allocations: 4 kB / 356.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4787, allocations: 0 / 356.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.4787, allocations: 7.938 kB / 356.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/0.482, allocations: 1.385 MB / 358 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4821, allocations: 0 / 358 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.4837, allocations: 179.8 kB / 358.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.258e-05/0.4838, allocations: 8 kB / 358.2 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/0.4838, allocations: 16 kB / 358.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/0.4839, allocations: 3.984 kB / 358.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4839, allocations: 3.938 kB / 358.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.4863, allocations: 0.8964 MB / 359.1 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002137/0.4865, allocations: 136.4 kB / 359.2 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.4867, allocations: 19.94 kB / 359.3 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.4883, allocations: 139.9 kB / 359.4 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.4886, allocations: 52.36 kB / 359.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.894e-05/0.4886, allocations: 15.98 kB / 359.5 MB, free: 9.289 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006197/0.4893, allocations: 329.6 kB / 359.8 MB, free: 8.969 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4893, allocations: 0 / 359.8 MB, free: 8.969 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009018/0.4902, allocations: 171.8 kB / 359.9 MB, free: 8.801 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.00283/0.493, allocations: 1.453 MB / 361.4 MB, free: 7.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.495, allocations: 0.7056 MB / 362.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4951, allocations: 0 / 362.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.4959, allocations: 281.5 kB / 362.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/0.4967, allocations: 83.17 kB / 362.5 MB, free: 6.238 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.5001, allocations: 0.9824 MB / 363.4 MB, free: 5.207 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.5008, allocations: 0.8786 MB / 364.3 MB, free: 4.305 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007576/0.5016, allocations: 211.4 kB / 364.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5016, allocations: 0 / 364.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.776/3.277, allocations: 10.74 MB / 375.3 MB, free: 88.96 MB / 314.7 MB