Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.045/2.045, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.186e-05/4.196e-05, allocations: 4 kB / 255.4 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1367, allocations: 44.52 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.574, allocations: 75.27 MB / 375.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.5743, allocations: 72.45 kB / 375.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04768/0.622, allocations: 10.15 MB / 385.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.622, allocations: 4 kB / 385.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.346e-05/0.6221, allocations: 15.09 kB / 385.5 MB, free: 11.49 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.004342/0.6265, allocations: 1.071 MB / 386.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.6265, allocations: 11.56 kB / 386.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003438/0.6269, allocations: 107.1 kB / 386.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.6272, allocations: 77.77 kB / 386.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007824/0.628, allocations: 417.8 kB / 387.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.568e-05/0.628, allocations: 43.22 kB / 387.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.6282, allocations: 52.75 kB / 387.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.6299, allocations: 0.7296 MB / 388 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.63, allocations: 0 / 388 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.6301, allocations: 36.28 kB / 388 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.6302, allocations: 11.53 kB / 388 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.6319, allocations: 0.6029 MB / 388.6 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007674/0.6396, allocations: 3.151 MB / 391.8 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.6415, allocations: 0.6745 MB / 392.4 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009439/0.6425, allocations: 311.5 kB / 392.7 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.423e-05/0.6426, allocations: 18.14 kB / 392.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008204/0.6434, allocations: 326 kB / 393.1 MB, free: 8.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.078e-06/0.6435, allocations: 4 kB / 393.1 MB, free: 8.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001533/0.645, allocations: 0.4942 MB / 393.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.902e-05/0.6451, allocations: 272.2 kB / 393.8 MB, free: 8.227 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007845/0.6459, allocations: 441.8 kB / 394.3 MB, free: 8.094 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.6461, allocations: 40.52 kB / 394.3 MB, free: 8.059 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.6464, allocations: 339.4 kB / 394.6 MB, free: 7.863 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.6466, allocations: 167.3 kB / 394.8 MB, free: 7.762 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.6467, allocations: 17.31 kB / 394.8 MB, free: 7.762 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.6468, allocations: 367.9 kB / 395.2 MB, free: 7.445 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.6475, allocations: 245 kB / 395.4 MB, free: 7.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008403/0.6484, allocations: 0.4922 MB / 395.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/0.6491, allocations: 334.3 kB / 396.2 MB, free: 7.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.6491, allocations: 0 / 396.2 MB, free: 7.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002058/0.6512, allocations: 0.8376 MB / 397.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.51e-05/0.6513, allocations: 70.19 kB / 397.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.6513, allocations: 3.938 kB / 397.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-05/0.6514, allocations: 15.62 kB / 397.2 MB, free: 6.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.6534, allocations: 252.9 kB / 397.4 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.182e-05/0.6534, allocations: 7.75 kB / 397.4 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.6556, allocations: 216.6 kB / 397.6 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.6557, allocations: 36.53 kB / 397.7 MB, free: 6.746 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.0002837/0.656, allocations: 157.7 kB / 397.8 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.6562, allocations: 62.52 kB / 397.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.6564, allocations: 62.52 kB / 397.9 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.6565, allocations: 7.781 kB / 398 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.6565, allocations: 0 / 398 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.6565, allocations: 3.094 kB / 398 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.6594, allocations: 1.385 MB / 399.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.6595, allocations: 3.906 kB / 399.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.6611, allocations: 171.5 kB / 399.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.6611, allocations: 3.875 kB / 399.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.747e-05/0.6613, allocations: 19.27 kB / 399.5 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.6613, allocations: 0 / 399.5 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6613, allocations: 3.844 kB / 399.5 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.6635, allocations: 0.8931 MB / 400.4 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.6639, allocations: 142.4 kB / 400.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.6641, allocations: 10.81 kB / 400.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.6657, allocations: 147.6 kB / 400.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.6659, allocations: 52.3 kB / 400.8 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.666, allocations: 18.91 kB / 400.8 MB, free: 5.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005728/0.6666, allocations: 330.6 kB / 401.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6666, allocations: 0 / 401.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009956/0.6676, allocations: 168 kB / 401.3 MB, free: 5.809 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.00252/0.6702, allocations: 1.466 MB / 402.8 MB, free: 5.094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.6722, allocations: 0.7178 MB / 403.5 MB, free: 20.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.6723, allocations: 0 / 403.5 MB, free: 20.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007714/0.6731, allocations: 283.3 kB / 403.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009049/0.674, allocations: 76.95 kB / 403.8 MB, free: 20.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.6775, allocations: 0.9496 MB / 404.8 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.6781, allocations: 0.875 MB / 405.6 MB, free: 19.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001109/0.6792, allocations: 81.33 kB / 405.7 MB, free: 19.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009067/0.6802, allocations: 202.9 kB / 405.9 MB, free: 19.81 MB / 330.7 MB Notification: Performance of SimCode: time 2.254e-06/0.6802, allocations: 0 / 405.9 MB, free: 19.81 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04722/0.7274, allocations: 12.02 MB / 417.9 MB, free: 15.27 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000313/0.7278, allocations: 151 kB / 418.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.137/3.865, allocations: 3.938 kB / 418.1 MB, free: 15.04 MB / 330.7 MB