Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.734/1.734, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.833e-05/3.842e-05, allocations: 4 kB / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2603, allocations: 38.77 MB / 263.8 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.3873, allocations: 69.97 MB / 333.8 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.3877, allocations: 79.89 kB / 333.9 MB, free: 3.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04927/0.437, allocations: 10.27 MB / 344.2 MB, free: 9.355 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4371, allocations: 0 / 344.2 MB, free: 9.355 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.232e-05/0.4371, allocations: 12 kB / 344.2 MB, free: 9.344 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.004575/0.4417, allocations: 1.081 MB / 345.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.4418, allocations: 8.031 kB / 345.3 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000338/0.4421, allocations: 94.52 kB / 345.4 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.4424, allocations: 71.16 kB / 345.4 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009837/0.4434, allocations: 423.3 kB / 345.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.284e-05/0.4435, allocations: 45.27 kB / 345.9 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.4438, allocations: 60 kB / 345.9 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.4459, allocations: 0.7264 MB / 346.7 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.446, allocations: 0 / 346.7 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.4461, allocations: 31.98 kB / 346.7 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.4461, allocations: 12 kB / 346.7 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.4482, allocations: 0.6013 MB / 347.3 MB, free: 6.035 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009047/0.4573, allocations: 3.158 MB / 350.5 MB, free: 2.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.4596, allocations: 0.6953 MB / 351.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.4607, allocations: 306.5 kB / 351.5 MB, free: 1.703 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.4609, allocations: 12.42 kB / 351.5 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.4619, allocations: 321.4 kB / 351.8 MB, free: 1.363 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.937e-06/0.4619, allocations: 0 / 351.8 MB, free: 1.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001738/0.4637, allocations: 0.5033 MB / 352.3 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.4639, allocations: 273.4 kB / 352.6 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009048/0.4648, allocations: 439.7 kB / 353 MB, free: 92 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000213/0.4651, allocations: 45.7 kB / 353 MB, free: 40 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/0.4655, allocations: 327.6 kB / 353.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.4658, allocations: 173.6 kB / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.165e-05/0.4659, allocations: 12 kB / 353.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.4661, allocations: 366.8 kB / 353.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.4669, allocations: 253.5 kB / 354.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.4681, allocations: 0.4953 MB / 354.6 MB, free: 14.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009835/0.4691, allocations: 337.7 kB / 355 MB, free: 13.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.4691, allocations: 0 / 355 MB, free: 13.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002574/0.4717, allocations: 0.8258 MB / 355.8 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.123e-05/0.4719, allocations: 67.39 kB / 355.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4719, allocations: 8 kB / 355.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.472, allocations: 8 kB / 355.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/0.4742, allocations: 248.1 kB / 356.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.785e-05/0.4743, allocations: 23.95 kB / 356.1 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/0.4766, allocations: 219 kB / 356.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/0.4769, allocations: 39.97 kB / 356.4 MB, free: 12.51 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.0003375/0.4772, allocations: 153.5 kB / 356.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.4774, allocations: 55.34 kB / 356.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.4777, allocations: 69.36 kB / 356.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4777, allocations: 11.98 kB / 356.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4777, allocations: 3.938 kB / 356.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.4778, allocations: 7.938 kB / 356.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003672/0.4814, allocations: 1.377 MB / 358.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.4815, allocations: 4 kB / 358.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/0.4832, allocations: 183.7 kB / 358.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.626e-05/0.4833, allocations: 3.984 kB / 358.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.4835, allocations: 12 kB / 358.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.4835, allocations: 4 kB / 358.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4835, allocations: 0 / 358.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.486, allocations: 0.8965 MB / 359.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/0.4864, allocations: 140.3 kB / 359.3 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.4866, allocations: 15.95 kB / 359.3 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/0.4883, allocations: 139.9 kB / 359.4 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.4886, allocations: 56.34 kB / 359.5 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.279e-05/0.4887, allocations: 16 kB / 359.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006551/0.4894, allocations: 329.6 kB / 359.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4894, allocations: 0 / 359.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001075/0.4905, allocations: 167.8 kB / 360 MB, free: 8.797 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.003041/0.4936, allocations: 1.462 MB / 361.5 MB, free: 7.305 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.4957, allocations: 0.7128 MB / 362.2 MB, free: 6.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.4958, allocations: 8.188 kB / 362.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.4967, allocations: 274.5 kB / 362.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008405/0.4975, allocations: 83.06 kB / 362.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.5014, allocations: 0.9581 MB / 363.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005717/0.502, allocations: 0.8708 MB / 364.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008866/0.5029, allocations: 80.64 kB / 364.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006593/0.5036, allocations: 203.4 kB / 364.6 MB, free: 4.043 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5036, allocations: 0 / 364.6 MB, free: 4.043 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2636/0.7673, allocations: 12.01 MB / 376.7 MB, free: 90.21 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/0.7676, allocations: 146.6 kB / 376.8 MB, free: 89.99 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.674, allocations: 4 kB / 376.8 MB, free: 89.99 MB / 314.7 MB