Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.331e-05, allocations: 4 kB / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 50.41 MB / 342.6 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.5412, allocations: 82.66 MB / 425.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.5415, allocations: 70.64 kB / 425.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05546/0.597, allocations: 11.36 MB / 436.7 MB, free: 1.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5971, allocations: 0 / 436.7 MB, free: 1.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.621e-05/0.5971, allocations: 12 kB / 436.7 MB, free: 1.742 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.004894/0.602, allocations: 1.12 MB / 437.9 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.6021, allocations: 12.02 kB / 437.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003582/0.6025, allocations: 97.02 kB / 438 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.6028, allocations: 86.97 kB / 438.1 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.6041, allocations: 490.8 kB / 438.5 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.657e-05/0.6042, allocations: 44 kB / 438.6 MB, free: 0 / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.6044, allocations: 57.23 kB / 438.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002043/0.6065, allocations: 0.7604 MB / 439.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.6066, allocations: 4 kB / 439.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.6067, allocations: 31.48 kB / 439.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.6067, allocations: 12 kB / 439.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.6088, allocations: 0.6152 MB / 440.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008961/0.6178, allocations: 3.288 MB / 443.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.6199, allocations: 0.6865 MB / 444 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.621, allocations: 310.5 kB / 444.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.485e-05/0.6211, allocations: 15.89 kB / 444.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009213/0.622, allocations: 329.2 kB / 444.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.988e-06/0.6221, allocations: 0 / 444.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001626/0.6237, allocations: 0.512 MB / 445.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001922/0.6239, allocations: 379.7 kB / 445.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009487/0.6249, allocations: 497.7 kB / 446 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002018/0.6251, allocations: 44.5 kB / 446.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003635/0.6255, allocations: 363.2 kB / 446.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002449/0.6258, allocations: 168.1 kB / 446.6 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.204e-05/0.6258, allocations: 14.44 kB / 446.6 MB, free: 9.664 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.626, allocations: 372.2 kB / 447 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007551/0.6268, allocations: 252.9 kB / 447.2 MB, free: 9.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.6279, allocations: 0.5198 MB / 447.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008913/0.6288, allocations: 337 kB / 448.1 MB, free: 8.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.6288, allocations: 4 kB / 448.1 MB, free: 8.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002307/0.6311, allocations: 0.823 MB / 448.9 MB, free: 7.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.6313, allocations: 67.34 kB / 449 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.6313, allocations: 12.09 kB / 449 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/0.6314, allocations: 8 kB / 449 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.6336, allocations: 251.6 kB / 449.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.216e-05/0.6337, allocations: 15.92 kB / 449.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.636, allocations: 226.9 kB / 449.5 MB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002323/0.6363, allocations: 43.94 kB / 449.5 MB, free: 7.176 MB / 362.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.0003113/0.6366, allocations: 152.7 kB / 449.7 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.6369, allocations: 63.25 kB / 449.7 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.6371, allocations: 74.14 kB / 449.8 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.6372, allocations: 8 kB / 449.8 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.6372, allocations: 0 / 449.8 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.6372, allocations: 3.984 kB / 449.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/0.6407, allocations: 1.416 MB / 451.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.6407, allocations: 0 / 451.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.6425, allocations: 175.8 kB / 451.4 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.314e-05/0.6425, allocations: 4 kB / 451.4 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-05/0.6426, allocations: 11.98 kB / 451.4 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/0.6427, allocations: 7.938 kB / 451.4 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.6427, allocations: 3.984 kB / 451.4 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.6451, allocations: 0.9043 MB / 452.3 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.6454, allocations: 144.2 kB / 452.5 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.6456, allocations: 16 kB / 452.5 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.6473, allocations: 139.9 kB / 452.6 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.6476, allocations: 52.36 kB / 452.7 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/0.6477, allocations: 15.98 kB / 452.7 MB, free: 3.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007402/0.6485, allocations: 381.6 kB / 453.1 MB, free: 3.535 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6485, allocations: 3.938 kB / 453.1 MB, free: 3.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001071/0.6496, allocations: 183.7 kB / 453.2 MB, free: 3.352 MB / 362.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.002983/0.6526, allocations: 1.465 MB / 454.7 MB, free: 1.859 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.6546, allocations: 0.7094 MB / 455.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.6547, allocations: 4 kB / 455.4 MB, free: 1.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008329/0.6556, allocations: 273.5 kB / 455.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00096/0.6565, allocations: 95.28 kB / 455.8 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/0.6604, allocations: 1.014 MB / 456.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005693/0.6611, allocations: 0.8981 MB / 457.7 MB, free: 14.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009004/0.662, allocations: 88.84 kB / 457.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006732/0.6627, allocations: 227.4 kB / 458 MB, free: 14.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6627, allocations: 0 / 458 MB, free: 14.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06472/0.7274, allocations: 13.05 MB / 471.1 MB, free: 1.543 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003613/0.7278, allocations: 149.1 kB / 471.2 MB, free: 1.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.983/3.711, allocations: 4 kB / 471.2 MB, free: 1.316 MB / 378.7 MB