Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.337e-05/3.323e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.09924, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4136/0.5129, allocations: 75.28 MB / 375.2 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.5132, allocations: 69.34 kB / 375.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04985/0.5631, allocations: 10.16 MB / 385.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5632, allocations: 0 / 385.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.097e-05/0.5632, allocations: 11.88 kB / 385.5 MB, free: 11.82 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.005859/0.5691, allocations: 1.083 MB / 386.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.634e-05/0.5692, allocations: 9.375 kB / 386.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000481/0.5697, allocations: 96.73 kB / 386.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.5701, allocations: 78.8 kB / 386.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.5714, allocations: 426.7 kB / 387.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.459e-05/0.5716, allocations: 41.91 kB / 387.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/0.5718, allocations: 54.72 kB / 387.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.5746, allocations: 0.7218 MB / 388 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.5746, allocations: 1.344 kB / 388 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/0.5748, allocations: 22.94 kB / 388 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.041e-05/0.5749, allocations: 14.44 kB / 388 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/0.5773, allocations: 0.5923 MB / 388.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009713/0.587, allocations: 3.15 MB / 391.7 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002434/0.5895, allocations: 0.6818 MB / 392.4 MB, free: 9.027 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.5908, allocations: 313.8 kB / 392.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.5909, allocations: 15.03 kB / 392.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.5921, allocations: 321.4 kB / 393.1 MB, free: 8.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 5.24e-06/0.5921, allocations: 0 / 393.1 MB, free: 8.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.002023/0.5941, allocations: 0.5046 MB / 393.6 MB, free: 8.883 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.5943, allocations: 268.9 kB / 393.8 MB, free: 8.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009851/0.5953, allocations: 443.6 kB / 394.3 MB, free: 8.441 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.5955, allocations: 37.45 kB / 394.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.5958, allocations: 374.2 kB / 394.7 MB, free: 8.148 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.596, allocations: 167.2 kB / 394.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.5962, allocations: 15.25 kB / 394.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.5963, allocations: 338.6 kB / 395.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009574/0.5972, allocations: 251.3 kB / 395.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.5984, allocations: 499.9 kB / 395.9 MB, free: 7.434 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.5994, allocations: 337 kB / 396.2 MB, free: 7.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.5995, allocations: 0 / 396.2 MB, free: 7.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002709/0.6022, allocations: 0.7889 MB / 397 MB, free: 7.184 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.076e-05/0.6023, allocations: 66.67 kB / 397.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.6023, allocations: 7.781 kB / 397.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.968e-05/0.6024, allocations: 11.59 kB / 397.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002691/0.6051, allocations: 252.1 kB / 397.4 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.12e-05/0.6052, allocations: 15.55 kB / 397.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002734/0.6079, allocations: 220.2 kB / 397.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.6081, allocations: 33.42 kB / 397.6 MB, free: 7.047 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.0003448/0.6085, allocations: 150.8 kB / 397.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.6087, allocations: 62.48 kB / 397.8 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002874/0.609, allocations: 70.48 kB / 397.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.609, allocations: 3.875 kB / 397.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.6091, allocations: 0 / 397.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.6091, allocations: 5.203 kB / 397.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004076/0.6132, allocations: 1.379 MB / 399.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.6132, allocations: 3.875 kB / 399.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/0.6153, allocations: 178.6 kB / 399.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.686e-05/0.6154, allocations: 3.938 kB / 399.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/0.6155, allocations: 11.05 kB / 399.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.6155, allocations: 0 / 399.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6155, allocations: 0 / 399.5 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.6185, allocations: 0.9019 MB / 400.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/0.6188, allocations: 142.3 kB / 400.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.6191, allocations: 16.89 kB / 400.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002049/0.6212, allocations: 140.3 kB / 400.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002676/0.6215, allocations: 53.8 kB / 400.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-05/0.6216, allocations: 15.28 kB / 400.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007392/0.6223, allocations: 329.1 kB / 401.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6223, allocations: 0 / 401.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00137/0.6237, allocations: 163.2 kB / 401.2 MB, free: 6.109 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.003276/0.627, allocations: 1.475 MB / 402.7 MB, free: 5.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.6294, allocations: 0.7002 MB / 403.4 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.6294, allocations: 0.625 kB / 403.4 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009295/0.6303, allocations: 273.3 kB / 403.7 MB, free: 5.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.6315, allocations: 85.36 kB / 403.7 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.636, allocations: 0.9826 MB / 404.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007644/0.6369, allocations: 0.8704 MB / 405.6 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.6379, allocations: 216.3 kB / 405.8 MB, free: 20.1 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.638, allocations: 4 kB / 405.8 MB, free: 20.1 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.68/3.318, allocations: 10.74 MB / 416.6 MB, free: 16.12 MB / 330.7 MB