Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.713e-05/3.72e-05, allocations: 0 / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 47.57 MB / 317 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5378, allocations: 79.6 MB / 396.6 MB, free: 8.453 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5382, allocations: 66.72 kB / 396.7 MB, free: 8.422 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0539/0.5921, allocations: 10.2 MB / 406.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5922, allocations: 0 / 406.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.268e-05/0.5922, allocations: 12 kB / 406.9 MB, free: 15.68 MB / 330.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.004384/0.5966, allocations: 1.076 MB / 408 MB, free: 14.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.5967, allocations: 8.031 kB / 408 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002616/0.597, allocations: 92.7 kB / 408.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.5972, allocations: 79.16 kB / 408.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008181/0.5981, allocations: 428.5 kB / 408.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/0.5981, allocations: 43.38 kB / 408.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.5983, allocations: 53.12 kB / 408.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.6001, allocations: 0.7244 MB / 409.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.6002, allocations: 0 / 409.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.6003, allocations: 24.19 kB / 409.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.6003, allocations: 16 kB / 409.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.602, allocations: 0.5965 MB / 410 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007854/0.6099, allocations: 3.164 MB / 413.2 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.6118, allocations: 0.6716 MB / 413.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009204/0.6128, allocations: 311.6 kB / 414.2 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-05/0.6129, allocations: 16.48 kB / 414.2 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008454/0.6137, allocations: 319.4 kB / 414.5 MB, free: 9.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.557e-06/0.6138, allocations: 0 / 414.5 MB, free: 9.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.00157/0.6153, allocations: 0.5044 MB / 415 MB, free: 9.125 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.6155, allocations: 272.9 kB / 415.3 MB, free: 8.797 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008154/0.6164, allocations: 438.3 kB / 415.7 MB, free: 8.461 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.6165, allocations: 36.2 kB / 415.7 MB, free: 8.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.6169, allocations: 339.7 kB / 416.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.6171, allocations: 170 kB / 416.2 MB, free: 8.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.6172, allocations: 17.69 kB / 416.2 MB, free: 8.012 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.6174, allocations: 367 kB / 416.6 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/0.6181, allocations: 246.3 kB / 416.8 MB, free: 7.531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009453/0.6191, allocations: 0.4949 MB / 417.3 MB, free: 7.055 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008363/0.6199, allocations: 332.4 kB / 417.7 MB, free: 6.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.62, allocations: 4 kB / 417.7 MB, free: 6.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002175/0.6222, allocations: 0.8073 MB / 418.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.305e-05/0.6223, allocations: 67.2 kB / 418.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.6223, allocations: 8 kB / 418.5 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.576e-05/0.6223, allocations: 12.78 kB / 418.6 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002167/0.6245, allocations: 250.9 kB / 418.8 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.912e-05/0.6246, allocations: 11.98 kB / 418.8 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.6268, allocations: 221.5 kB / 419 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.627, allocations: 34.5 kB / 419.1 MB, free: 5.633 MB / 330.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.0003081/0.6273, allocations: 148.7 kB / 419.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.6275, allocations: 59.34 kB / 419.3 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002296/0.6277, allocations: 66.73 kB / 419.3 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.6278, allocations: 4 kB / 419.3 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.6278, allocations: 3.953 kB / 419.3 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6278, allocations: 3.984 kB / 419.3 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003268/0.6311, allocations: 1.385 MB / 420.7 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.6311, allocations: 0 / 420.7 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.6328, allocations: 179.4 kB / 420.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.521e-05/0.6329, allocations: 4 kB / 420.9 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-05/0.633, allocations: 11 kB / 420.9 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.633, allocations: 0 / 420.9 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.633, allocations: 8 kB / 420.9 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.6354, allocations: 0.8974 MB / 421.8 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.6357, allocations: 142.3 kB / 422 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.6359, allocations: 12.38 kB / 422 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.6375, allocations: 147.2 kB / 422.1 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.6378, allocations: 50.48 kB / 422.2 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.27e-05/0.6379, allocations: 11.62 kB / 422.2 MB, free: 3.242 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006062/0.6385, allocations: 331.5 kB / 422.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6385, allocations: 4 kB / 422.5 MB, free: 3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001074/0.6396, allocations: 168.8 kB / 422.7 MB, free: 2.852 MB / 330.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.00282/0.6425, allocations: 1.474 MB / 424.1 MB, free: 1.664 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.6444, allocations: 0.6961 MB / 424.8 MB, free: 1.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.6445, allocations: 8.062 kB / 424.8 MB, free: 1.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007806/0.6453, allocations: 280.1 kB / 425.1 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008446/0.6461, allocations: 72.05 kB / 425.2 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.6497, allocations: 0.9526 MB / 426.1 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.6502, allocations: 0.8709 MB / 427 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000807/0.6511, allocations: 76.61 kB / 427.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006139/0.6517, allocations: 203.6 kB / 427.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6517, allocations: 0 / 427.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06436/0.7161, allocations: 12 MB / 439.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.7163, allocations: 153.7 kB / 439.4 MB, free: 2.918 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/3.666, allocations: 0 / 439.4 MB, free: 2.918 MB / 346.7 MB