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.79/1.79, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.73e-05/3.738e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2628, allocations: 38.77 MB / 263.8 MB, free: 9.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.3911, allocations: 69.96 MB / 333.8 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.3914, allocations: 71.95 kB / 333.9 MB, free: 3.711 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04757/0.439, allocations: 10.27 MB / 344.1 MB, free: 9.406 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4391, allocations: 0 / 344.1 MB, free: 9.406 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.78e-05/0.4391, allocations: 20 kB / 344.2 MB, free: 9.387 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.00417/0.4433, allocations: 1.073 MB / 345.2 MB, free: 8.254 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.4434, allocations: 8.031 kB / 345.2 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.4436, allocations: 98.52 kB / 345.3 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.4438, allocations: 75.16 kB / 345.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008195/0.4447, allocations: 423.3 kB / 345.8 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.129e-05/0.4447, allocations: 45.27 kB / 345.9 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.4449, allocations: 52 kB / 345.9 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.4468, allocations: 0.7264 MB / 346.6 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.4468, allocations: 3.984 kB / 346.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.4469, allocations: 27.94 kB / 346.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/0.447, allocations: 16 kB / 346.7 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4488, allocations: 0.5975 MB / 347.3 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007953/0.4568, allocations: 3.158 MB / 350.4 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.4588, allocations: 0.6839 MB / 351.1 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009569/0.4598, allocations: 310 kB / 351.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.964e-05/0.4599, allocations: 12.42 kB / 351.4 MB, free: 1.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009164/0.4608, allocations: 325.4 kB / 351.8 MB, free: 1.418 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.036e-06/0.4608, allocations: 0 / 351.8 MB, free: 1.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001656/0.4625, allocations: 0.5033 MB / 352.3 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.4627, allocations: 273.5 kB / 352.5 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008231/0.4635, allocations: 439.7 kB / 353 MB, free: 148 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.4636, allocations: 45.64 kB / 353 MB, free: 96 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/0.464, allocations: 374.1 kB / 353.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.4643, allocations: 169.6 kB / 353.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.4644, allocations: 12 kB / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.4646, allocations: 342.8 kB / 353.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007953/0.4654, allocations: 249.6 kB / 354.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.4665, allocations: 0.4953 MB / 354.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008656/0.4673, allocations: 334.5 kB / 354.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.4674, allocations: 0 / 354.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002243/0.4696, allocations: 0.8022 MB / 355.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.4697, allocations: 64.25 kB / 355.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.4697, allocations: 4 kB / 355.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/0.4698, allocations: 16 kB / 355.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/0.472, allocations: 251.6 kB / 356.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.11e-05/0.472, allocations: 19.89 kB / 356.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.4741, allocations: 215.1 kB / 356.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.4742, allocations: 28 kB / 356.3 MB, free: 12.59 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.0002885/0.4745, allocations: 160.8 kB / 356.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.4747, allocations: 63.27 kB / 356.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.4749, allocations: 61.38 kB / 356.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4749, allocations: 8 kB / 356.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.475, allocations: 4 kB / 356.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.475, allocations: 7.938 kB / 356.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003408/0.4784, allocations: 1.385 MB / 358 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.4784, allocations: 0 / 358 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.4801, allocations: 183.7 kB / 358.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.4801, allocations: 0 / 358.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.908e-05/0.4802, allocations: 15.98 kB / 358.2 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.4802, allocations: 4 kB / 358.2 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4802, allocations: 0 / 358.2 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.4827, allocations: 0.8965 MB / 359.1 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002206/0.4829, allocations: 136.3 kB / 359.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.4831, allocations: 15.95 kB / 359.3 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.4847, allocations: 139.9 kB / 359.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.4849, allocations: 52.36 kB / 359.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.111e-05/0.485, allocations: 19.98 kB / 359.5 MB, free: 9.359 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006513/0.4857, allocations: 325.6 kB / 359.8 MB, free: 9.043 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4857, allocations: 4 kB / 359.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008766/0.4866, allocations: 171.8 kB / 360 MB, free: 8.871 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.00284/0.4894, allocations: 1.457 MB / 361.4 MB, free: 7.383 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.4914, allocations: 0.7197 MB / 362.1 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.4914, allocations: 4 kB / 362.1 MB, free: 6.637 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008134/0.4922, allocations: 274.4 kB / 362.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007509/0.493, allocations: 83.86 kB / 362.5 MB, free: 6.285 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.4963, allocations: 0.9871 MB / 363.5 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.4969, allocations: 0.8748 MB / 364.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007469/0.4977, allocations: 207.4 kB / 364.6 MB, free: 4.152 MB / 314.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4977, allocations: 0 / 364.6 MB, free: 4.152 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.383, allocations: 10.79 MB / 375.3 MB, free: 89.01 MB / 314.7 MB