Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.199/2.199, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.452e-05, allocations: 4 kB / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 50.42 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5585, allocations: 82.66 MB / 425.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.5589, allocations: 72.91 kB / 425.9 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05218/0.6111, allocations: 11.36 MB / 437.3 MB, free: 1.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6111, allocations: 0 / 437.3 MB, free: 1.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.925e-05/0.6112, allocations: 16 kB / 437.3 MB, free: 1.805 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.004727/0.6159, allocations: 1.117 MB / 438.4 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.616, allocations: 12.03 kB / 438.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002921/0.6163, allocations: 103.7 kB / 438.5 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002958/0.6166, allocations: 82.97 kB / 438.6 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.6178, allocations: 477 kB / 439 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.6178, allocations: 43.12 kB / 439.1 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.618, allocations: 65.23 kB / 439.1 MB, free: 32 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.6201, allocations: 0.7661 MB / 439.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.6202, allocations: 3.938 kB / 439.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/0.6203, allocations: 28.31 kB / 439.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.827e-05/0.6204, allocations: 16 kB / 440 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.6223, allocations: 0.6119 MB / 440.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008666/0.631, allocations: 3.286 MB / 443.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.6329, allocations: 0.6929 MB / 444.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009043/0.6339, allocations: 296.8 kB / 444.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.816e-05/0.634, allocations: 15.8 kB / 444.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008622/0.6348, allocations: 339.2 kB / 445.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.176e-06/0.6349, allocations: 0 / 445.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001627/0.6365, allocations: 0.5029 MB / 445.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002226/0.6367, allocations: 378.6 kB / 446.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009877/0.6377, allocations: 0.4908 MB / 446.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.6379, allocations: 36.58 kB / 446.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.6383, allocations: 367.7 kB / 446.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.6385, allocations: 167 kB / 447.1 MB, free: 9.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.6386, allocations: 19 kB / 447.1 MB, free: 9.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.6388, allocations: 368.5 kB / 447.5 MB, free: 9.391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007425/0.6396, allocations: 250.9 kB / 447.7 MB, free: 9.254 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.6407, allocations: 0.5279 MB / 448.3 MB, free: 8.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.6415, allocations: 332.3 kB / 448.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.6415, allocations: 0 / 448.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002253/0.6438, allocations: 0.8274 MB / 449.4 MB, free: 7.863 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.283e-05/0.6439, allocations: 67.36 kB / 449.5 MB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.6439, allocations: 8 kB / 449.5 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-05/0.644, allocations: 15.94 kB / 449.5 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/0.6461, allocations: 252.1 kB / 449.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.21e-05/0.6462, allocations: 15.94 kB / 449.8 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/0.6485, allocations: 226.9 kB / 450 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.6487, allocations: 31.98 kB / 450 MB, free: 7.246 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.0003036/0.649, allocations: 152.7 kB / 450.2 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.6492, allocations: 75.25 kB / 450.2 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/0.6495, allocations: 74.14 kB / 450.3 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.6495, allocations: 4 kB / 450.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.6495, allocations: 0 / 450.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6495, allocations: 3.984 kB / 450.3 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.653, allocations: 1.412 MB / 451.7 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.6531, allocations: 4 kB / 451.7 MB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.6547, allocations: 175.8 kB / 451.9 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.212e-05/0.6547, allocations: 4 kB / 451.9 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.6548, allocations: 15.94 kB / 451.9 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.6548, allocations: 0 / 451.9 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6549, allocations: 0 / 451.9 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.6573, allocations: 0.9082 MB / 452.8 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.6576, allocations: 148.2 kB / 453 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.6578, allocations: 15.94 kB / 453 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.6595, allocations: 143.9 kB / 453.1 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.6597, allocations: 52.36 kB / 453.2 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.6598, allocations: 19.98 kB / 453.2 MB, free: 3.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007674/0.6606, allocations: 373.6 kB / 453.6 MB, free: 3.594 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6606, allocations: 0 / 453.6 MB, free: 3.594 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001027/0.6616, allocations: 179.7 kB / 453.7 MB, free: 3.418 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.002896/0.6645, allocations: 1.48 MB / 455.2 MB, free: 1.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.6665, allocations: 0.7031 MB / 455.9 MB, free: 1.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.6665, allocations: 0 / 455.9 MB, free: 1.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007808/0.6673, allocations: 273.5 kB / 456.2 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.6683, allocations: 93.77 kB / 456.3 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.6719, allocations: 1.009 MB / 457.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/0.6726, allocations: 0.902 MB / 458.2 MB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008633/0.6735, allocations: 80.84 kB / 458.3 MB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006439/0.6741, allocations: 235.4 kB / 458.5 MB, free: 14.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.6741, allocations: 0 / 458.5 MB, free: 14.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09079/0.7649, allocations: 13.06 MB / 471.6 MB, free: 1.598 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.7652, allocations: 145.8 kB / 471.7 MB, free: 1.375 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.243/4.008, allocations: 0 / 471.7 MB, free: 1.375 MB / 378.7 MB