Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.389e-05, allocations: 6.031 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4408/0.5496, allocations: 83 MB / 425.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.5499, allocations: 62.78 kB / 425.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09911/0.6491, allocations: 28.18 MB / 453.9 MB, free: 3.391 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6491, allocations: 0 / 453.9 MB, free: 3.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.6491, allocations: 4 kB / 453.9 MB, free: 3.387 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008067/0.65, allocations: 0.6786 MB / 454.6 MB, free: 2.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.65, allocations: 12.03 kB / 454.6 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.805e-05/0.6501, allocations: 42 kB / 454.6 MB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.6502, allocations: 39.53 kB / 454.6 MB, free: 2.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.6507, allocations: 276.4 kB / 454.9 MB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.6508, allocations: 11.62 kB / 454.9 MB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/0.6508, allocations: 15.95 kB / 454.9 MB, free: 2.234 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/0.6513, allocations: 162.5 kB / 455.1 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.6513, allocations: 0 / 455.1 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.6513, allocations: 4 kB / 455.1 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.6514, allocations: 3.984 kB / 455.1 MB, free: 2.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.6516, allocations: 85.23 kB / 455.2 MB, free: 2.023 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.6527, allocations: 0.4987 MB / 455.7 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.653, allocations: 119.4 kB / 455.8 MB, free: 1.449 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.6532, allocations: 106.8 kB / 455.9 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.6532, allocations: 0 / 455.9 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004426/0.6537, allocations: 243.7 kB / 456.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.504e-06/0.6537, allocations: 0 / 456.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001124/0.6548, allocations: 0.5005 MB / 456.7 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.655, allocations: 191.4 kB / 456.8 MB, free: 448 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009609/0.656, allocations: 0.4942 MB / 457.3 MB, free: 20 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/0.6561, allocations: 29.7 kB / 457.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.6562, allocations: 173.6 kB / 457.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.271e-05/0.6562, allocations: 31.27 kB / 457.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.6563, allocations: 11.48 kB / 457.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6564, allocations: 330.7 kB / 457.9 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.6567, allocations: 78.61 kB / 458 MB, free: 15.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.6569, allocations: 81.22 kB / 458.1 MB, free: 15.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.6572, allocations: 212.5 kB / 458.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.6572, allocations: 0 / 458.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009734/0.6582, allocations: 470.1 kB / 458.7 MB, free: 14.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.6583, allocations: 152.5 kB / 458.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.6584, allocations: 0 / 458.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.6584, allocations: 4 kB / 458.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.207e-05/0.6584, allocations: 0 / 458.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.6584, allocations: 0 / 458.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.6587, allocations: 23.92 kB / 458.9 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/0.6589, allocations: 105.2 kB / 459 MB, free: 14.3 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: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0002675/0.6592, allocations: 275.1 kB / 459.3 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.6593, allocations: 47.44 kB / 459.3 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.6596, allocations: 79.73 kB / 459.4 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.6596, allocations: 0 / 459.4 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6596, allocations: 0 / 459.4 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.6596, allocations: 0 / 459.4 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.6613, allocations: 0.9205 MB / 460.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.6613, allocations: 0 / 460.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.756e-06/0.6613, allocations: 0 / 460.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.6613, allocations: 4 kB / 460.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.436e-05/0.6614, allocations: 19.98 kB / 460.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.6614, allocations: 4 kB / 460.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6614, allocations: 4.125 kB / 460.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.6626, allocations: 0.6361 MB / 461 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005646/0.6632, allocations: 260.4 kB / 461.2 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.6633, allocations: 12 kB / 461.2 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.6636, allocations: 15.98 kB / 461.3 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6639, allocations: 55.92 kB / 461.3 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/0.664, allocations: 97.23 kB / 461.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008086/0.6649, allocations: 420.9 kB / 461.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6649, allocations: 0 / 461.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004465/0.6653, allocations: 52 kB / 461.9 MB, free: 11.23 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.001573/0.6669, allocations: 1.193 MB / 463.1 MB, free: 9.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008463/0.6678, allocations: 0.5244 MB / 463.6 MB, free: 9.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6678, allocations: 0 / 463.6 MB, free: 9.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005622/0.6684, allocations: 461 kB / 464 MB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.6695, allocations: 159.7 kB / 464.2 MB, free: 8.734 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.6716, allocations: 0.7419 MB / 464.9 MB, free: 7.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005921/0.6722, allocations: 0.8264 MB / 465.8 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.6723, allocations: 43.42 kB / 465.8 MB, free: 7.055 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6723, allocations: 4 kB / 465.8 MB, free: 7.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.663/3.335, allocations: 4.979 MB / 470.8 MB, free: 1.98 MB / 378.7 MB