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.747/1.747, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.535e-05/2.525e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2697, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.3959, allocations: 69.3 MB / 327.6 MB, free: 8.516 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.3963, allocations: 71.97 kB / 327.7 MB, free: 8.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04689/0.4432, allocations: 10.17 MB / 337.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4432, allocations: 0 / 337.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.813e-05/0.4433, allocations: 16 kB / 337.9 MB, free: 14.23 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.004296/0.4476, allocations: 1.073 MB / 338.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.4477, allocations: 8.031 kB / 339 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003368/0.448, allocations: 79.16 kB / 339 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008614/0.4489, allocations: 423.2 kB / 339.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.449, allocations: 27.94 kB / 339.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.4491, allocations: 35.94 kB / 339.5 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001725/0.4509, allocations: 0.5572 MB / 340.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.4525, allocations: 0.6502 MB / 340.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.4526, allocations: 7.984 kB / 340.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.953e-05/0.4527, allocations: 0 / 340.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.4527, allocations: 24 kB / 340.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007669/0.4604, allocations: 3.068 MB / 343.8 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.4622, allocations: 0.6584 MB / 344.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.4631, allocations: 290.7 kB / 344.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.375e-05/0.4632, allocations: 16.41 kB / 344.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008027/0.464, allocations: 315.7 kB / 345.1 MB, free: 6.676 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.417e-06/0.464, allocations: 0 / 345.1 MB, free: 6.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001437/0.4654, allocations: 483.5 kB / 345.6 MB, free: 6.199 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.4656, allocations: 273.5 kB / 345.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007282/0.4664, allocations: 405.1 kB / 346.2 MB, free: 5.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.385e-05/0.4665, allocations: 25.7 kB / 346.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.4668, allocations: 382 kB / 346.6 MB, free: 5.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.4671, allocations: 161.6 kB / 346.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.4671, allocations: 0 / 346.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4673, allocations: 342.8 kB / 347.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006503/0.468, allocations: 233.6 kB / 347.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008705/0.4688, allocations: 493.6 kB / 347.8 MB, free: 3.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006948/0.4696, allocations: 266.7 kB / 348.1 MB, free: 3.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.4696, allocations: 0 / 348.1 MB, free: 3.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001937/0.4715, allocations: 0.6825 MB / 348.8 MB, free: 2.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.4716, allocations: 63.41 kB / 348.8 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.4717, allocations: 8 kB / 348.8 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.338e-05/0.4717, allocations: 12 kB / 348.8 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.4738, allocations: 247.8 kB / 349.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.4738, allocations: 11.94 kB / 349.1 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.4759, allocations: 207.1 kB / 349.3 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.476, allocations: 32 kB / 349.3 MB, free: 2.203 MB / 298.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.0002645/0.4763, allocations: 134.1 kB / 349.5 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001336/0.4776, allocations: 483.4 kB / 349.9 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.4778, allocations: 55.34 kB / 350 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.478, allocations: 57.3 kB / 350 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.478, allocations: 15.97 kB / 350.1 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4781, allocations: 0 / 350.1 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.4781, allocations: 0 / 350.1 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.481, allocations: 1.284 MB / 351.3 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4811, allocations: 3.938 kB / 351.3 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.4827, allocations: 179.8 kB / 351.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.4828, allocations: 0 / 351.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/0.4828, allocations: 11.94 kB / 351.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.718e-06/0.4829, allocations: 4 kB / 351.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4829, allocations: 0 / 351.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.485, allocations: 0.8536 MB / 352.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.4852, allocations: 152.2 kB / 352.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4854, allocations: 4 kB / 352.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.487, allocations: 135.8 kB / 352.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.4872, allocations: 56.36 kB / 352.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/0.4873, allocations: 11.98 kB / 352.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000522/0.4878, allocations: 299 kB / 353 MB, free: 14.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4878, allocations: 0 / 353 MB, free: 14.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009131/0.4888, allocations: 155.7 kB / 353.2 MB, free: 14.26 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.002519/0.4913, allocations: 1.41 MB / 354.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.4931, allocations: 0.682 MB / 355.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4931, allocations: 1.75 kB / 355.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007395/0.4939, allocations: 265.5 kB / 355.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008475/0.4947, allocations: 68.67 kB / 355.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.4979, allocations: 0.9307 MB / 356.5 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005223/0.4985, allocations: 0.8783 MB / 357.4 MB, free: 9.898 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007407/0.4992, allocations: 207.4 kB / 357.6 MB, free: 9.695 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.4992, allocations: 0 / 357.6 MB, free: 9.695 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.738/3.238, allocations: 10.6 MB / 368.2 MB, free: 92.81 MB / 314.7 MB