Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.011e-05/4.016e-05, allocations: 8 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 50.42 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5461, allocations: 82.99 MB / 425.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.5464, allocations: 69.72 kB / 425.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09501/0.6414, allocations: 27.34 MB / 453 MB, free: 4.426 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6415, allocations: 0 / 453 MB, free: 4.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.6415, allocations: 8 kB / 453 MB, free: 4.418 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006823/0.6422, allocations: 0.6118 MB / 453.6 MB, free: 3.758 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.6422, allocations: 12.03 kB / 453.7 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.769e-05/0.6423, allocations: 37.94 kB / 453.7 MB, free: 3.703 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.6424, allocations: 47.48 kB / 453.7 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.6428, allocations: 259.4 kB / 454 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.6428, allocations: 6.938 kB / 454 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.6429, allocations: 8 kB / 454 MB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.6433, allocations: 149.2 kB / 454.1 MB, free: 3.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.6433, allocations: 0 / 454.1 MB, free: 3.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.247e-05/0.6434, allocations: 7.375 kB / 454.2 MB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.6434, allocations: 0 / 454.2 MB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.6436, allocations: 65.44 kB / 454.2 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009646/0.6446, allocations: 482.3 kB / 454.7 MB, free: 2.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.6449, allocations: 103.2 kB / 454.8 MB, free: 2.625 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.6451, allocations: 90.64 kB / 454.9 MB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.6451, allocations: 0 / 454.9 MB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004346/0.6456, allocations: 227.9 kB / 455.1 MB, free: 2.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.284e-06/0.6456, allocations: 4 kB / 455.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001022/0.6466, allocations: 426.1 kB / 455.5 MB, free: 1.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.6468, allocations: 169.6 kB / 455.7 MB, free: 1.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009082/0.6477, allocations: 469 kB / 456.1 MB, free: 1.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.6477, allocations: 33.64 kB / 456.2 MB, free: 1.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.511e-05/0.6478, allocations: 155.1 kB / 456.3 MB, free: 1.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.107e-05/0.6479, allocations: 34.58 kB / 456.4 MB, free: 1.133 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.648, allocations: 4 kB / 456.4 MB, free: 1.129 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.6481, allocations: 314.7 kB / 456.7 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.6483, allocations: 59.98 kB / 456.7 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.6485, allocations: 71.97 kB / 456.8 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.6488, allocations: 174.6 kB / 457 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6488, allocations: 0 / 457 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009212/0.6497, allocations: 400.9 kB / 457.4 MB, free: 88 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.6499, allocations: 122.8 kB / 457.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.6499, allocations: 0 / 457.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.6499, allocations: 7.938 kB / 457.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.544e-05/0.65, allocations: 3.938 kB / 457.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.65, allocations: 4 kB / 457.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.6502, allocations: 12 kB / 457.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.6505, allocations: 123.8 kB / 457.6 MB, free: 15.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0002459/0.6507, allocations: 249.5 kB / 457.9 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.6508, allocations: 39.53 kB / 457.9 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.651, allocations: 59.44 kB / 458 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.6511, allocations: 3.953 kB / 458 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.6511, allocations: 0 / 458 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.6511, allocations: 0 / 458 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.6526, allocations: 0.8409 MB / 458.8 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6526, allocations: 4 kB / 458.8 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-06/0.6526, allocations: 0 / 458.8 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.6526, allocations: 4 kB / 458.8 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.6527, allocations: 19.94 kB / 458.8 MB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.6527, allocations: 4.125 kB / 458.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6527, allocations: 4 kB / 458.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.6538, allocations: 0.5448 MB / 459.4 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005489/0.6544, allocations: 248.4 kB / 459.6 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.325e-05/0.6545, allocations: 15.94 kB / 459.7 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.6548, allocations: 19.94 kB / 459.7 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.6549, allocations: 31.97 kB / 459.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/0.6551, allocations: 119.7 kB / 459.8 MB, free: 13.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007367/0.6559, allocations: 388.9 kB / 460.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6559, allocations: 0 / 460.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004313/0.6563, allocations: 44 kB / 460.2 MB, free: 13.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.001449/0.6578, allocations: 1.125 MB / 461.4 MB, free: 11.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007453/0.6586, allocations: 437.6 kB / 461.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6586, allocations: 0 / 461.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.6591, allocations: 381.5 kB / 462.2 MB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.6599, allocations: 112.4 kB / 462.3 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.6618, allocations: 0.6553 MB / 462.9 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.6624, allocations: 0.8065 MB / 463.7 MB, free: 9.289 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/0.6625, allocations: 27.42 kB / 463.8 MB, free: 9.262 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6625, allocations: 0 / 463.8 MB, free: 9.262 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/3.127, allocations: 4.34 MB / 468.1 MB, free: 4.891 MB / 378.7 MB