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.758/1.758, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.115e-05/4.111e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2702, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.3951, allocations: 69.98 MB / 333.9 MB, free: 3.629 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.3954, allocations: 67.97 kB / 333.9 MB, free: 3.562 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0476/0.443, allocations: 10.27 MB / 344.2 MB, free: 9.254 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.443, allocations: 0 / 344.2 MB, free: 9.254 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.732e-05/0.4431, allocations: 12 kB / 344.2 MB, free: 9.242 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.004331/0.4474, allocations: 1.081 MB / 345.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.4475, allocations: 8.031 kB / 345.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002628/0.4478, allocations: 94.5 kB / 345.4 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.4481, allocations: 75.16 kB / 345.5 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008156/0.4489, allocations: 423.3 kB / 345.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.226e-05/0.449, allocations: 49.27 kB / 345.9 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.4492, allocations: 52 kB / 346 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.4511, allocations: 0.7277 MB / 346.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.4511, allocations: 3.938 kB / 346.7 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.4513, allocations: 24 kB / 346.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.087e-05/0.4513, allocations: 12 kB / 346.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.4531, allocations: 0.5839 MB / 347.3 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008124/0.4613, allocations: 3.166 MB / 350.5 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.4633, allocations: 0.6781 MB / 351.2 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009339/0.4643, allocations: 306.5 kB / 351.5 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.943e-05/0.4644, allocations: 16.48 kB / 351.5 MB, free: 1.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008921/0.4653, allocations: 324.4 kB / 351.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.106e-06/0.4653, allocations: 0 / 351.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001594/0.4669, allocations: 0.5033 MB / 352.3 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/0.4671, allocations: 261.5 kB / 352.6 MB, free: 472 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008296/0.4679, allocations: 451.6 kB / 353 MB, free: 8 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.4681, allocations: 41.69 kB / 353 MB, free: 15.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/0.4685, allocations: 335.6 kB / 353.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.4687, allocations: 169.6 kB / 353.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.869e-05/0.4688, allocations: 12 kB / 353.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.469, allocations: 366.7 kB / 353.9 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007829/0.4698, allocations: 249.6 kB / 354.1 MB, free: 14.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.4708, allocations: 0.4938 MB / 354.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.4717, allocations: 333.8 kB / 355 MB, free: 13.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.4717, allocations: 4 kB / 355 MB, free: 13.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00229/0.474, allocations: 0.8101 MB / 355.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.163e-05/0.4741, allocations: 63.41 kB / 355.8 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.4741, allocations: 4 kB / 355.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.57e-05/0.4742, allocations: 12 kB / 355.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/0.4763, allocations: 256.2 kB / 356.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.014e-05/0.4764, allocations: 15.89 kB / 356.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.4784, allocations: 219 kB / 356.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.4786, allocations: 32 kB / 356.4 MB, free: 12.46 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.0002884/0.4789, allocations: 164.7 kB / 356.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.479, allocations: 59.34 kB / 356.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002424/0.4793, allocations: 61.38 kB / 356.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.4793, allocations: 4 kB / 356.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4793, allocations: 0 / 356.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.4794, allocations: 7.938 kB / 356.7 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.4827, allocations: 1.389 MB / 358 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4827, allocations: 4 kB / 358.1 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.4844, allocations: 175.8 kB / 358.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.251e-05/0.4844, allocations: 4 kB / 358.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/0.4845, allocations: 11.98 kB / 358.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.4845, allocations: 0 / 358.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4845, allocations: 0 / 358.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.4869, allocations: 0.9004 MB / 359.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.4871, allocations: 136.3 kB / 359.3 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.4873, allocations: 15.95 kB / 359.3 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/0.4889, allocations: 143.9 kB / 359.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.4891, allocations: 52.36 kB / 359.5 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.918e-05/0.4892, allocations: 15.98 kB / 359.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006416/0.4899, allocations: 333.5 kB / 359.8 MB, free: 8.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4899, allocations: 0 / 359.8 MB, free: 8.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000965/0.4909, allocations: 167.8 kB / 360 MB, free: 8.742 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.002842/0.4937, allocations: 1.461 MB / 361.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.4957, allocations: 0.6987 MB / 362.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.4957, allocations: 8.562 kB / 362.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008124/0.4965, allocations: 281.5 kB / 362.4 MB, free: 6.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000777/0.4973, allocations: 78.78 kB / 362.5 MB, free: 6.172 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.5006, allocations: 0.9534 MB / 363.5 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.5012, allocations: 0.8748 MB / 364.3 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007472/0.502, allocations: 76.66 kB / 364.4 MB, free: 4.203 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/0.5026, allocations: 199.4 kB / 364.6 MB, free: 4.008 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5026, allocations: 0 / 364.6 MB, free: 4.008 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2597/0.7623, allocations: 11.98 MB / 376.6 MB, free: 90.26 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.7626, allocations: 149.3 kB / 376.7 MB, free: 90.03 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.771/3.533, allocations: 0 / 376.7 MB, free: 90.03 MB / 314.7 MB