Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.893/1.893, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.671e-05/2.67e-05, allocations: 4 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 50.42 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4374/0.5392, allocations: 83.58 MB / 426.2 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.5395, allocations: 66.7 kB / 426.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1026/0.6421, allocations: 31.53 MB / 457.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6422, allocations: 4 kB / 457.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.171e-05/0.6422, allocations: 16 kB / 457.8 MB, free: 15.52 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.001785/0.644, allocations: 1.308 MB / 459.1 MB, free: 14.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.6441, allocations: 8.031 kB / 459.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.6442, allocations: 61.67 kB / 459.2 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.6445, allocations: 130.5 kB / 459.3 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.6455, allocations: 0.5129 MB / 459.8 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/0.6456, allocations: 29.55 kB / 459.9 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.6458, allocations: 31.23 kB / 459.9 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.6472, allocations: 0.6169 MB / 460.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.6472, allocations: 0 / 460.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.862e-05/0.6473, allocations: 19.86 kB / 460.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.6473, allocations: 0 / 460.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.6484, allocations: 460.9 kB / 461 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.6509, allocations: 1.092 MB / 462.1 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.6523, allocations: 0.6898 MB / 462.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.6536, allocations: 0.6767 MB / 463.4 MB, free: 9.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.6537, allocations: 0 / 463.4 MB, free: 9.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.6551, allocations: 0.7555 MB / 464.2 MB, free: 9.188 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.675e-06/0.6551, allocations: 0 / 464.2 MB, free: 9.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.003117/0.6583, allocations: 1.415 MB / 465.6 MB, free: 7.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002545/0.6586, allocations: 321 kB / 465.9 MB, free: 7.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.6622, allocations: 1.602 MB / 467.5 MB, free: 5.723 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001802/0.6625, allocations: 45.69 kB / 467.6 MB, free: 5.672 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002858/0.6627, allocations: 245 kB / 467.8 MB, free: 5.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.663, allocations: 91.12 kB / 467.9 MB, free: 5.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.6631, allocations: 16 kB / 467.9 MB, free: 5.324 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.6632, allocations: 322.8 kB / 468.2 MB, free: 5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.6643, allocations: 455.9 kB / 468.7 MB, free: 4.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.6653, allocations: 458.2 kB / 469.1 MB, free: 4.105 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009624/0.6663, allocations: 0.5834 MB / 469.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.6663, allocations: 0 / 469.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002824/0.6691, allocations: 1.312 MB / 471 MB, free: 2.105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002983/0.6694, allocations: 289.5 kB / 471.3 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.6695, allocations: 0 / 471.3 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.6695, allocations: 0 / 471.3 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-05/0.6695, allocations: 7.938 kB / 471.3 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.6696, allocations: 4 kB / 471.3 MB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006556/0.6702, allocations: 43.95 kB / 471.4 MB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/0.6705, allocations: 147.9 kB / 471.5 MB, free: 1.574 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0005974/0.6711, allocations: 466.4 kB / 472 MB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.6714, allocations: 142.4 kB / 472.1 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007696/0.6722, allocations: 251.7 kB / 472.3 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.6722, allocations: 0 / 472.3 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.6722, allocations: 4 kB / 472.3 MB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.6722, allocations: 4 kB / 472.3 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004774/0.677, allocations: 2.384 MB / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.677, allocations: 0 / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.093e-05/0.6771, allocations: 8 kB / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.443e-06/0.6771, allocations: 0 / 474.7 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.6773, allocations: 43.97 kB / 474.8 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.6773, allocations: 0 / 474.8 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6773, allocations: 3.984 kB / 474.8 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003253/0.6806, allocations: 1.622 MB / 476.4 MB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/0.6824, allocations: 0.6902 MB / 477.1 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.6827, allocations: 59.97 kB / 477.2 MB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006087/0.6833, allocations: 39.97 kB / 477.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009007/0.6842, allocations: 355.6 kB / 477.5 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000279/0.6845, allocations: 163.8 kB / 477.7 MB, free: 11.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003046/0.6876, allocations: 1.319 MB / 479 MB, free: 9.777 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.6876, allocations: 0 / 479 MB, free: 9.777 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008218/0.6884, allocations: 148 kB / 479.2 MB, free: 9.633 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.003861/0.6923, allocations: 2.261 MB / 481.4 MB, free: 7.293 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.6956, allocations: 1.913 MB / 483.3 MB, free: 5.281 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.6956, allocations: 3.844 kB / 483.3 MB, free: 5.281 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.6977, allocations: 1.386 MB / 484.7 MB, free: 3.797 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.6996, allocations: 311.2 kB / 485 MB, free: 3.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007037/0.7067, allocations: 2.803 MB / 487.8 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.7082, allocations: 1.217 MB / 489.1 MB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.7085, allocations: 151.4 kB / 489.2 MB, free: 15.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7085, allocations: 0 / 489.2 MB, free: 15.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/3.256, allocations: 14.92 MB / 0.4923 GB, free: 156 kB / 410.7 MB