Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.192e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5317, allocations: 83.37 MB / 426 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.532, allocations: 66.72 kB / 426.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.6623, allocations: 38.04 MB / 464.1 MB, free: 9.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6623, allocations: 0 / 464.1 MB, free: 9.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.6624, allocations: 16 kB / 464.1 MB, free: 9.484 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001354/0.6637, allocations: 1.008 MB / 465.1 MB, free: 8.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.6638, allocations: 12.03 kB / 465.1 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.664, allocations: 62.48 kB / 465.2 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002058/0.6642, allocations: 86.97 kB / 465.3 MB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008473/0.665, allocations: 415.6 kB / 465.7 MB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.76e-05/0.6651, allocations: 20 kB / 465.7 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.6652, allocations: 24 kB / 465.7 MB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.6665, allocations: 0.5099 MB / 466.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.6665, allocations: 0 / 466.2 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.091e-05/0.6666, allocations: 19.98 kB / 466.3 MB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.6666, allocations: 3.938 kB / 466.3 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008596/0.6675, allocations: 356.1 kB / 466.6 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.6695, allocations: 0.8652 MB / 467.5 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.6705, allocations: 0.4945 MB / 468 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.6715, allocations: 0.5005 MB / 468.5 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.6716, allocations: 0 / 468.5 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001251/0.6728, allocations: 0.6479 MB / 469.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.735e-06/0.6729, allocations: 0 / 469.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002662/0.6755, allocations: 1.179 MB / 470.3 MB, free: 3.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002107/0.6758, allocations: 279.3 kB / 470.6 MB, free: 2.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/0.6781, allocations: 1.023 MB / 471.6 MB, free: 1.641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.6783, allocations: 45.7 kB / 471.6 MB, free: 1.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.6784, allocations: 200.4 kB / 471.8 MB, free: 1.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.6786, allocations: 71.16 kB / 471.9 MB, free: 1.324 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.6787, allocations: 16 kB / 471.9 MB, free: 1.309 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6788, allocations: 330.8 kB / 472.2 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008251/0.6797, allocations: 352.1 kB / 472.6 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008042/0.6805, allocations: 348.5 kB / 472.9 MB, free: 300 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008337/0.6813, allocations: 0.4894 MB / 473.4 MB, free: 15.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.6814, allocations: 0 / 473.4 MB, free: 15.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002386/0.6837, allocations: 1.102 MB / 474.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002374/0.684, allocations: 243.9 kB / 474.8 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.684, allocations: 0 / 474.8 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.6841, allocations: 7.953 kB / 474.8 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.137e-05/0.6841, allocations: 4 kB / 474.8 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6841, allocations: 0 / 474.8 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005817/0.6847, allocations: 39.91 kB / 474.8 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002607/0.685, allocations: 156.1 kB / 475 MB, free: 14.12 MB / 394.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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.0005124/0.6855, allocations: 406 kB / 475.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.6857, allocations: 94.95 kB / 475.5 MB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004796/0.6862, allocations: 151.8 kB / 475.6 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.6862, allocations: 0 / 475.6 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6863, allocations: 15.92 kB / 475.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6863, allocations: 0 / 475.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003953/0.6902, allocations: 1.946 MB / 477.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.6903, allocations: 0 / 477.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.273e-05/0.6903, allocations: 4 kB / 477.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.6903, allocations: 4 kB / 477.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.6905, allocations: 47.92 kB / 477.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.6905, allocations: 0 / 477.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.6905, allocations: 0 / 477.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.6933, allocations: 1.369 MB / 479 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/0.6948, allocations: 0.5581 MB / 479.5 MB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002699/0.6951, allocations: 63.91 kB / 479.6 MB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.6957, allocations: 39.92 kB / 479.6 MB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000644/0.6963, allocations: 239.7 kB / 479.9 MB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002659/0.6966, allocations: 151.9 kB / 480 MB, free: 8.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001927/0.6985, allocations: 0.8617 MB / 480.9 MB, free: 7.965 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.6986, allocations: 0 / 480.9 MB, free: 7.965 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007353/0.6993, allocations: 120 kB / 481 MB, free: 7.848 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.003404/0.7027, allocations: 2.013 MB / 483 MB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.7054, allocations: 1.499 MB / 484.5 MB, free: 4.176 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.7054, allocations: 0 / 484.5 MB, free: 4.176 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001665/0.7071, allocations: 1.117 MB / 485.6 MB, free: 2.973 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.709, allocations: 274.8 kB / 485.9 MB, free: 2.703 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00511/0.7142, allocations: 1.964 MB / 487.9 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.7153, allocations: 1.038 MB / 488.9 MB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.7155, allocations: 83.41 kB / 489 MB, free: 15.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7155, allocations: 0 / 489 MB, free: 15.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.561/3.276, allocations: 9.451 MB / 498.4 MB, free: 5.984 MB / 410.7 MB