Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.33e-05, allocations: 6.5 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 50.42 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4361/0.5441, allocations: 83.3 MB / 425.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.5444, allocations: 72.7 kB / 426 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.097/0.6414, allocations: 28.25 MB / 454.3 MB, free: 3.168 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.422e-06/0.6415, allocations: 0 / 454.3 MB, free: 3.168 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.181e-05/0.6415, allocations: 23.88 kB / 454.3 MB, free: 3.145 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00137/0.6429, allocations: 1.006 MB / 455.3 MB, free: 2.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.6429, allocations: 12.03 kB / 455.3 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.6431, allocations: 55.3 kB / 455.3 MB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.6433, allocations: 86.97 kB / 455.4 MB, free: 1.949 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000875/0.6442, allocations: 421.1 kB / 455.8 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/0.6443, allocations: 18.31 kB / 455.9 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.6444, allocations: 27.83 kB / 455.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.6456, allocations: 0.5085 MB / 456.4 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.6457, allocations: 0 / 456.4 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.899e-05/0.6458, allocations: 18.17 kB / 456.4 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.6458, allocations: 4 kB / 456.4 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008328/0.6466, allocations: 353.1 kB / 456.8 MB, free: 0.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.6487, allocations: 0.8665 MB / 457.6 MB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.6498, allocations: 0.5023 MB / 458.1 MB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009931/0.6508, allocations: 0.4889 MB / 458.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.6509, allocations: 0 / 458.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001329/0.6522, allocations: 0.6517 MB / 459.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.356e-06/0.6522, allocations: 0 / 459.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002714/0.655, allocations: 1.179 MB / 460.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002266/0.6552, allocations: 279.2 kB / 460.7 MB, free: 12.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002512/0.6578, allocations: 1.035 MB / 461.8 MB, free: 11.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002067/0.658, allocations: 37.7 kB / 461.8 MB, free: 11.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.6582, allocations: 204.4 kB / 462 MB, free: 11.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.6584, allocations: 75.16 kB / 462.1 MB, free: 11.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.355e-05/0.6585, allocations: 8 kB / 462.1 MB, free: 11.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6586, allocations: 334.9 kB / 462.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008287/0.6595, allocations: 344.2 kB / 462.7 MB, free: 10.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/0.6603, allocations: 352.5 kB / 463.1 MB, free: 10.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008151/0.6612, allocations: 0.4933 MB / 463.6 MB, free: 9.758 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.6612, allocations: 0 / 463.6 MB, free: 9.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002407/0.6636, allocations: 1.098 MB / 464.7 MB, free: 8.609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000248/0.6639, allocations: 243.8 kB / 464.9 MB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.6639, allocations: 4 kB / 464.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.6639, allocations: 0 / 464.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.878e-05/0.664, allocations: 15.88 kB / 464.9 MB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.664, allocations: 3.984 kB / 464.9 MB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.6646, allocations: 39.88 kB / 465 MB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/0.6649, allocations: 152.1 kB / 465.1 MB, free: 8.117 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.000546/0.6654, allocations: 402.1 kB / 465.5 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.6657, allocations: 91.05 kB / 465.6 MB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005043/0.6662, allocations: 159.7 kB / 465.8 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.6662, allocations: 0 / 465.8 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.6662, allocations: 0 / 465.8 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.6662, allocations: 3.984 kB / 465.8 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003955/0.6702, allocations: 1.958 MB / 467.7 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.6703, allocations: 0 / 467.7 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.493e-05/0.6703, allocations: 3.938 kB / 467.7 MB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.6703, allocations: 11.95 kB / 467.7 MB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.6704, allocations: 35.97 kB / 467.8 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.6704, allocations: 4 kB / 467.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.6705, allocations: 0 / 467.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002858/0.6733, allocations: 1.369 MB / 469.1 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/0.6749, allocations: 0.5659 MB / 469.7 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/0.6751, allocations: 59.92 kB / 469.8 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.6758, allocations: 35.97 kB / 469.8 MB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006547/0.6764, allocations: 239.7 kB / 470 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002609/0.6767, allocations: 151.9 kB / 470.2 MB, free: 2.816 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002006/0.6787, allocations: 0.8616 MB / 471.1 MB, free: 1.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.6787, allocations: 0 / 471.1 MB, free: 1.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008318/0.6796, allocations: 120 kB / 471.2 MB, free: 1.844 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.00343/0.683, allocations: 2.009 MB / 473.2 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.6858, allocations: 1.507 MB / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.6858, allocations: 0 / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.6875, allocations: 1.109 MB / 475.8 MB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.6895, allocations: 283.6 kB / 476.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/0.6947, allocations: 1.963 MB / 478 MB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.6959, allocations: 1.042 MB / 479.1 MB, free: 9.609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.6961, allocations: 79.41 kB / 479.2 MB, free: 9.531 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6961, allocations: 0 / 479.2 MB, free: 9.531 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.446/3.142, allocations: 9.443 MB / 488.6 MB, free: 15.99 MB / 410.7 MB