Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.374/2.374, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.171e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3963, allocations: 44.5 MB / 294.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.5611, allocations: 74.62 MB / 368.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004011/0.5616, allocations: 63.97 kB / 368.9 MB, free: 7.242 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06207/0.6237, allocations: 10.06 MB / 379 MB, free: 13.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.6238, allocations: 0 / 379 MB, free: 13.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.056e-05/0.6238, allocations: 12 kB / 379 MB, free: 13.14 MB / 330.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.005522/0.6294, allocations: 1.069 MB / 380.1 MB, free: 12.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.058e-05/0.6295, allocations: 11.97 kB / 380.1 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004351/0.6299, allocations: 79.16 kB / 380.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.6312, allocations: 423.3 kB / 380.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.292e-05/0.6313, allocations: 27.98 kB / 380.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.6315, allocations: 36 kB / 380.6 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002511/0.634, allocations: 0.5571 MB / 381.2 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002399/0.6365, allocations: 0.6502 MB / 381.8 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/0.6365, allocations: 7.938 kB / 381.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/0.6367, allocations: 0 / 381.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-05/0.6368, allocations: 16 kB / 381.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/0.6475, allocations: 3.065 MB / 384.9 MB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.6501, allocations: 0.6623 MB / 385.6 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.6514, allocations: 286.5 kB / 385.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.6516, allocations: 16.48 kB / 385.9 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.6528, allocations: 312.5 kB / 386.2 MB, free: 5.594 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 4.709e-06/0.6528, allocations: 0 / 386.2 MB, free: 5.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.002132/0.655, allocations: 483.4 kB / 386.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002298/0.6552, allocations: 273.4 kB / 386.9 MB, free: 4.785 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.6563, allocations: 405 kB / 387.3 MB, free: 4.383 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.6565, allocations: 33.7 kB / 387.3 MB, free: 4.344 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004583/0.6569, allocations: 331.6 kB / 387.7 MB, free: 4.016 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.6572, allocations: 157.7 kB / 387.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.6573, allocations: 4 kB / 387.8 MB, free: 3.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.6576, allocations: 366.8 kB / 388.2 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009672/0.6586, allocations: 233.6 kB / 388.4 MB, free: 3.262 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.6599, allocations: 490.3 kB / 388.9 MB, free: 2.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.661, allocations: 262 kB / 389.2 MB, free: 2.418 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/0.661, allocations: 4 kB / 389.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002691/0.6637, allocations: 0.7056 MB / 389.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.887e-05/0.6638, allocations: 71.52 kB / 389.9 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.6638, allocations: 8 kB / 389.9 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.428e-05/0.6639, allocations: 11.94 kB / 389.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/0.6659, allocations: 255.6 kB / 390.2 MB, free: 1.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.666, allocations: 8 kB / 390.2 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.6679, allocations: 203 kB / 390.4 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.6681, allocations: 36 kB / 390.4 MB, free: 1.105 MB / 330.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.000267/0.6683, allocations: 140.5 kB / 390.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001309/0.6697, allocations: 487.4 kB / 391.1 MB, free: 492 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.6698, allocations: 55.34 kB / 391.1 MB, free: 436 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000233/0.6701, allocations: 57.25 kB / 391.2 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.6701, allocations: 8 kB / 391.2 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.6701, allocations: 4 kB / 391.2 MB, free: 368 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.6701, allocations: 3.984 kB / 391.2 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.6732, allocations: 1.272 MB / 392.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.6732, allocations: 0 / 392.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/0.6748, allocations: 183.7 kB / 392.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.6749, allocations: 0 / 392.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.049e-05/0.6749, allocations: 11.98 kB / 392.6 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.313e-06/0.675, allocations: 4 kB / 392.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.675, allocations: 0 / 392.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.6771, allocations: 0.8652 MB / 393.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.6773, allocations: 148.3 kB / 393.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.6775, allocations: 64 / 393.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.679, allocations: 131.9 kB / 393.8 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.6792, allocations: 56.36 kB / 393.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/0.6793, allocations: 19.98 kB / 393.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000561/0.6799, allocations: 295 kB / 394.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6799, allocations: 0 / 394.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000932/0.6808, allocations: 159.7 kB / 394.3 MB, free: 13.15 MB / 346.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.002527/0.6834, allocations: 1.41 MB / 395.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.6851, allocations: 0.6821 MB / 396.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6851, allocations: 0 / 396.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.6859, allocations: 269.6 kB / 396.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007362/0.6866, allocations: 67.69 kB / 396.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003152/0.6898, allocations: 0.8939 MB / 397.6 MB, free: 9.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.6904, allocations: 0.8706 MB / 398.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001166/0.6916, allocations: 76.52 kB / 398.6 MB, free: 8.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008958/0.6925, allocations: 211.4 kB / 398.8 MB, free: 8.562 MB / 346.7 MB Notification: Performance of SimCode: time 1.924e-06/0.6925, allocations: 0 / 398.8 MB, free: 8.562 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09525/0.7878, allocations: 11.03 MB / 409.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003831/0.7883, allocations: 126.9 kB / 409.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/3.812, allocations: 3.938 kB / 409.9 MB, free: 13.36 MB / 362.7 MB