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.197/2.197, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.289e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 44.5 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.5188, allocations: 75.28 MB / 375.3 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.5191, allocations: 68.19 kB / 375.3 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04585/0.5649, allocations: 10.16 MB / 385.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.565, allocations: 3.938 kB / 385.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.739e-05/0.5651, allocations: 16.94 kB / 385.5 MB, free: 11.74 MB / 314.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.004259/0.5693, allocations: 1.077 MB / 386.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.5694, allocations: 11.75 kB / 386.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003536/0.5698, allocations: 95.09 kB / 386.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.5701, allocations: 81.67 kB / 386.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008428/0.5709, allocations: 417.3 kB / 387.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.571, allocations: 48.03 kB / 387.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.5712, allocations: 50.16 kB / 387.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.573, allocations: 0.7287 MB / 388 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.5731, allocations: 3.938 kB / 388 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.5732, allocations: 19.22 kB / 388 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.5732, allocations: 19.62 kB / 388 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.5749, allocations: 0.5884 MB / 388.6 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007317/0.5822, allocations: 3.146 MB / 391.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002492/0.5847, allocations: 0.6841 MB / 392.5 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.5862, allocations: 305.7 kB / 392.8 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.5864, allocations: 18.59 kB / 392.8 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.5876, allocations: 323.5 kB / 393.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 5.901e-06/0.5877, allocations: 0 / 393.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.002275/0.5899, allocations: 0.498 MB / 393.6 MB, free: 8.801 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.5901, allocations: 275.3 kB / 393.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.5912, allocations: 440.3 kB / 394.3 MB, free: 8.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.5915, allocations: 36.05 kB / 394.3 MB, free: 8.332 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/0.5919, allocations: 335.8 kB / 394.7 MB, free: 8.137 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/0.5922, allocations: 173.2 kB / 394.8 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.5923, allocations: 13.97 kB / 394.8 MB, free: 8.031 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.5925, allocations: 366.2 kB / 395.2 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.5936, allocations: 248.4 kB / 395.4 MB, free: 7.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.5949, allocations: 0.4955 MB / 395.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.5961, allocations: 331 kB / 396.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.5961, allocations: 0 / 396.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003036/0.5991, allocations: 0.8184 MB / 397.1 MB, free: 7.156 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.484e-05/0.5993, allocations: 69.3 kB / 397.1 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.5993, allocations: 3.875 kB / 397.1 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.076e-05/0.5994, allocations: 11.62 kB / 397.2 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.6023, allocations: 248.1 kB / 397.4 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.95e-05/0.6024, allocations: 18.09 kB / 397.4 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002978/0.6054, allocations: 217.9 kB / 397.6 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.6056, allocations: 36.67 kB / 397.7 MB, free: 7.023 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.0003638/0.606, allocations: 156.2 kB / 397.8 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.6062, allocations: 65.06 kB / 397.9 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.6065, allocations: 59.92 kB / 397.9 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.6065, allocations: 7.875 kB / 397.9 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6066, allocations: 4 kB / 397.9 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.6066, allocations: 3.047 kB / 398 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004311/0.6109, allocations: 1.377 MB / 399.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.611, allocations: 0 / 399.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002129/0.6131, allocations: 180.5 kB / 399.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-05/0.6132, allocations: 3.875 kB / 399.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.6134, allocations: 13.92 kB / 399.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/0.6134, allocations: 0 / 399.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6134, allocations: 0 / 399.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/0.6166, allocations: 0.8961 MB / 400.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003632/0.617, allocations: 142.1 kB / 400.6 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.6173, allocations: 15.47 kB / 400.6 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/0.6195, allocations: 135.8 kB / 400.7 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/0.6198, allocations: 61.47 kB / 400.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.633e-05/0.6199, allocations: 18.2 kB / 400.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000774/0.6207, allocations: 326.5 kB / 401.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6207, allocations: 0 / 401.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001527/0.6223, allocations: 169.6 kB / 401.3 MB, free: 6.086 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.00356/0.6258, allocations: 1.474 MB / 402.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.6285, allocations: 0.6983 MB / 403.4 MB, free: 5.211 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.6285, allocations: 0 / 403.4 MB, free: 5.211 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.6296, allocations: 277.5 kB / 403.7 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.6309, allocations: 81.39 kB / 403.8 MB, free: 5.191 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.6355, allocations: 0.9538 MB / 404.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008247/0.6363, allocations: 0.8718 MB / 405.6 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.6376, allocations: 75.8 kB / 405.7 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008206/0.6385, allocations: 200.6 kB / 405.9 MB, free: 20.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.863e-06/0.6385, allocations: 0 / 405.9 MB, free: 20.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04561/0.6842, allocations: 11.99 MB / 417.9 MB, free: 15.54 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003039/0.6845, allocations: 145.7 kB / 418 MB, free: 15.31 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/3.736, allocations: 0 / 418 MB, free: 15.31 MB / 330.7 MB