Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.034e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4439/0.572, allocations: 82.74 MB / 425.4 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5723, allocations: 78.14 kB / 425.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05205/0.6244, allocations: 11.36 MB / 436.8 MB, free: 1.273 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6244, allocations: 0 / 436.8 MB, free: 1.273 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.154e-05/0.6245, allocations: 12 kB / 436.8 MB, free: 1.262 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.004492/0.629, allocations: 1.12 MB / 437.9 MB, free: 132 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.629, allocations: 12.03 kB / 437.9 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002717/0.6293, allocations: 101.7 kB / 438 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/0.6296, allocations: 87.02 kB / 438.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.6307, allocations: 489.5 kB / 438.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.165e-05/0.6308, allocations: 41.12 kB / 438.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.631, allocations: 60.31 kB / 438.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.6329, allocations: 0.7625 MB / 439.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.6329, allocations: 3.938 kB / 439.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.633, allocations: 26.44 kB / 439.5 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.6331, allocations: 12 kB / 439.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.6349, allocations: 0.616 MB / 440.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008123/0.643, allocations: 3.285 MB / 443.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001892/0.645, allocations: 0.6873 MB / 444.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009864/0.646, allocations: 303.6 kB / 444.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.711e-05/0.6461, allocations: 16.56 kB / 444.4 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008542/0.647, allocations: 330.4 kB / 444.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.497e-06/0.647, allocations: 0 / 444.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001637/0.6486, allocations: 0.5111 MB / 445.2 MB, free: 10.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002006/0.6488, allocations: 376.3 kB / 445.6 MB, free: 10.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009429/0.6498, allocations: 0.49 MB / 446.1 MB, free: 9.637 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.6499, allocations: 36.14 kB / 446.1 MB, free: 9.602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/0.6503, allocations: 400.9 kB / 446.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.6505, allocations: 168.5 kB / 446.7 MB, free: 9.148 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.6506, allocations: 15.5 kB / 446.7 MB, free: 9.145 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6508, allocations: 336.7 kB / 447 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007501/0.6515, allocations: 251.7 kB / 447.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.6526, allocations: 0.5222 MB / 447.8 MB, free: 8.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/0.6535, allocations: 339 kB / 448.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.6535, allocations: 0 / 448.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002123/0.6556, allocations: 0.7901 MB / 448.9 MB, free: 7.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/0.6557, allocations: 74.66 kB / 449 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.6557, allocations: 8 kB / 449 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.6558, allocations: 8 kB / 449 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/0.6579, allocations: 245.8 kB / 449.3 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.114e-05/0.6579, allocations: 15.92 kB / 449.3 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.6601, allocations: 230.3 kB / 449.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.6603, allocations: 34.5 kB / 449.5 MB, free: 6.75 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.0003034/0.6606, allocations: 156.3 kB / 449.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.6608, allocations: 63.25 kB / 449.7 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.6611, allocations: 78.64 kB / 449.8 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.6611, allocations: 8 kB / 449.8 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.6611, allocations: 7.984 kB / 449.8 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.6611, allocations: 4 kB / 449.8 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/0.6646, allocations: 1.41 MB / 451.3 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.6646, allocations: 0 / 451.3 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.6663, allocations: 181.7 kB / 451.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.6664, allocations: 0 / 451.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.251e-05/0.6665, allocations: 13.17 kB / 451.4 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.6665, allocations: 7.938 kB / 451.5 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6665, allocations: 0 / 451.5 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/0.6689, allocations: 0.9013 MB / 452.4 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.6692, allocations: 148.2 kB / 452.5 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.6694, allocations: 16 kB / 452.5 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.6711, allocations: 143.9 kB / 452.7 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.6713, allocations: 52.38 kB / 452.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.805e-05/0.6714, allocations: 15.98 kB / 452.7 MB, free: 4.094 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007353/0.6721, allocations: 381.6 kB / 453.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6721, allocations: 0 / 453.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001034/0.6732, allocations: 183.7 kB / 453.3 MB, free: 3.543 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.002874/0.6761, allocations: 1.47 MB / 454.7 MB, free: 2.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.6781, allocations: 0.7016 MB / 455.4 MB, free: 1.316 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.6782, allocations: 4 kB / 455.4 MB, free: 1.312 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008072/0.679, allocations: 277.5 kB / 455.7 MB, free: 1.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009259/0.6799, allocations: 91.67 kB / 455.8 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.6837, allocations: 1.042 MB / 456.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.6843, allocations: 0.8981 MB / 457.7 MB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008163/0.6851, allocations: 235.4 kB / 458 MB, free: 14.71 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6852, allocations: 0 / 458 MB, free: 14.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.506/3.191, allocations: 11.64 MB / 469.6 MB, free: 3.078 MB / 378.7 MB