Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.857/1.857, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.734e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5158, allocations: 83.61 MB / 426.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.5162, allocations: 71 kB / 426.3 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1059/0.622, allocations: 33.09 MB / 459.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6221, allocations: 0 / 459.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.314e-05/0.6222, allocations: 19.38 kB / 459.4 MB, free: 14.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001756/0.6239, allocations: 1.3 MB / 460.7 MB, free: 12.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.624, allocations: 12.03 kB / 460.7 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.6241, allocations: 58.53 kB / 460.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.6244, allocations: 138.4 kB / 460.9 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.6254, allocations: 0.5089 MB / 461.4 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/0.6255, allocations: 28 kB / 461.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.6256, allocations: 28 kB / 461.5 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.6271, allocations: 0.6221 MB / 462.1 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.6271, allocations: 0 / 462.1 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.6272, allocations: 23.97 kB / 462.1 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.6273, allocations: 4 kB / 462.1 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.6283, allocations: 451.8 kB / 462.6 MB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.6307, allocations: 1.084 MB / 463.6 MB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.632, allocations: 0.6898 MB / 464.3 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.6333, allocations: 0.6728 MB / 465 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.6333, allocations: 4 kB / 465 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001426/0.6348, allocations: 0.7632 MB / 465.8 MB, free: 7.637 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.935e-06/0.6348, allocations: 4 kB / 465.8 MB, free: 7.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.003056/0.6379, allocations: 1.403 MB / 467.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002562/0.6381, allocations: 325 kB / 467.5 MB, free: 5.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003478/0.6416, allocations: 1.602 MB / 469.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.6418, allocations: 49.7 kB / 469.2 MB, free: 4.121 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002698/0.642, allocations: 256.8 kB / 469.4 MB, free: 3.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.6422, allocations: 75.25 kB / 469.5 MB, free: 3.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.889e-05/0.6423, allocations: 16 kB / 469.5 MB, free: 3.777 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.6425, allocations: 330.8 kB / 469.8 MB, free: 3.445 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.6435, allocations: 444 kB / 470.3 MB, free: 3.008 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.6445, allocations: 447.9 kB / 470.7 MB, free: 2.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/0.6455, allocations: 0.5873 MB / 471.3 MB, free: 1.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.6455, allocations: 3.938 kB / 471.3 MB, free: 1.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002752/0.6483, allocations: 1.305 MB / 472.6 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002707/0.6486, allocations: 297.5 kB / 472.9 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.6486, allocations: 0 / 472.9 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.6486, allocations: 3.953 kB / 472.9 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.709e-05/0.6487, allocations: 7.938 kB / 472.9 MB, free: 224 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.6487, allocations: 3.984 kB / 472.9 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/0.6493, allocations: 43.88 kB / 472.9 MB, free: 176 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.6496, allocations: 155.9 kB / 473.1 MB, free: 20 kB / 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0005859/0.6502, allocations: 470.4 kB / 473.5 MB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.6505, allocations: 126.5 kB / 473.7 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006869/0.6512, allocations: 251.7 kB / 473.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.6512, allocations: 4 kB / 473.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.6512, allocations: 3.953 kB / 473.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.6512, allocations: 3.984 kB / 473.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.6559, allocations: 2.396 MB / 476.3 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.6559, allocations: 4 kB / 476.3 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.635e-05/0.6559, allocations: 0 / 476.3 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.6559, allocations: 0 / 476.3 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.6561, allocations: 43.92 kB / 476.4 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.6561, allocations: 0 / 476.4 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6561, allocations: 4 kB / 476.4 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003202/0.6593, allocations: 1.618 MB / 478 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/0.661, allocations: 0.6785 MB / 478.7 MB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/0.6613, allocations: 63.95 kB / 478.7 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/0.6619, allocations: 55.7 kB / 478.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00088/0.6628, allocations: 351.6 kB / 479.1 MB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002612/0.6631, allocations: 159.9 kB / 479.3 MB, free: 9.559 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002846/0.6659, allocations: 1.311 MB / 480.6 MB, free: 8.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6659, allocations: 4 kB / 480.6 MB, free: 8.238 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007421/0.6667, allocations: 156 kB / 480.8 MB, free: 8.086 MB / 394.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.003781/0.6705, allocations: 2.253 MB / 483 MB, free: 5.754 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.6737, allocations: 1.909 MB / 484.9 MB, free: 3.746 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.6738, allocations: 4 kB / 484.9 MB, free: 3.742 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.6757, allocations: 1.39 MB / 486.3 MB, free: 2.254 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/0.6776, allocations: 302.7 kB / 486.6 MB, free: 1.965 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.6844, allocations: 2.807 MB / 489.4 MB, free: 15.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.686, allocations: 1.221 MB / 490.6 MB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.6862, allocations: 147.4 kB / 490.8 MB, free: 13.71 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6862, allocations: 0 / 490.8 MB, free: 13.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.536/3.223, allocations: 14.92 MB / 0.4938 GB, free: 14.61 MB / 426.7 MB