Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.037e-05, allocations: 5.188 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07596/0.07601, allocations: 44.49 MB / 299.9 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3216/0.3977, allocations: 78.13 MB / 378 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.3979, allocations: 69.81 kB / 378 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0833/0.4812, allocations: 31.2 MB / 409.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.947e-06/0.4813, allocations: 0 / 409.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.57e-05/0.4813, allocations: 19.62 kB / 409.3 MB, free: 15.88 MB / 314.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.001336/0.4827, allocations: 1.29 MB / 410.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.4827, allocations: 11.44 kB / 410.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.4829, allocations: 131.7 kB / 410.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008205/0.4838, allocations: 0.5097 MB / 411.2 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.4838, allocations: 27.55 kB / 411.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.912e-05/0.484, allocations: 31.25 kB / 411.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.485, allocations: 0.6183 MB / 411.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.4851, allocations: 0 / 411.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.107e-05/0.4852, allocations: 11.62 kB / 411.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4852, allocations: 3.906 kB / 411.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007933/0.486, allocations: 457.7 kB / 412.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.488, allocations: 1.103 MB / 413.4 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009222/0.4889, allocations: 0.6876 MB / 414.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009426/0.4899, allocations: 0.6745 MB / 414.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.4899, allocations: 3.906 kB / 414.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.491, allocations: 0.7542 MB / 415.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.74e-06/0.491, allocations: 0 / 415.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002389/0.4934, allocations: 1.414 MB / 417 MB, free: 12.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.4936, allocations: 325.1 kB / 417.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.4967, allocations: 1.599 MB / 418.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.497, allocations: 52.41 kB / 419 MB, free: 11.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.4972, allocations: 247.8 kB / 419.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.4974, allocations: 86.08 kB / 419.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.16e-05/0.4974, allocations: 15.06 kB / 419.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.564e-05/0.4975, allocations: 327.4 kB / 419.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007976/0.4983, allocations: 444.4 kB / 420 MB, free: 10.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007583/0.4991, allocations: 456.3 kB / 420.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007144/0.4998, allocations: 0.577 MB / 421.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.344e-06/0.4999, allocations: 0 / 421.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0022/0.5021, allocations: 1.313 MB / 422.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.5023, allocations: 286.8 kB / 422.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.117e-06/0.5023, allocations: 0 / 422.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.5023, allocations: 11.86 kB / 422.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.213e-05/0.5024, allocations: 3.984 kB / 422.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.133e-06/0.5024, allocations: 3.906 kB / 422.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.5029, allocations: 43.06 kB / 422.7 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002012/0.5032, allocations: 152 kB / 422.9 MB, free: 9.828 MB / 314.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.0004499/0.5036, allocations: 470.8 kB / 423.3 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.5038, allocations: 132.8 kB / 423.5 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007423/0.5046, allocations: 250.8 kB / 423.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.5046, allocations: 3.969 kB / 423.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.15e-06/0.5046, allocations: 3.953 kB / 423.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.795e-06/0.5046, allocations: 0 / 423.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.5084, allocations: 2.396 MB / 426.1 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.5085, allocations: 4 kB / 426.1 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.252e-05/0.5085, allocations: 3.984 kB / 426.1 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.448e-06/0.5085, allocations: 3.875 kB / 426.1 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.5086, allocations: 42.44 kB / 426.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.909e-06/0.5086, allocations: 0 / 426.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.5087, allocations: 0 / 426.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.5112, allocations: 1.608 MB / 427.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.5125, allocations: 0.6854 MB / 428.5 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.5128, allocations: 61.69 kB / 428.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005008/0.5133, allocations: 46.8 kB / 428.6 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006752/0.514, allocations: 349.9 kB / 428.9 MB, free: 7.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.5142, allocations: 162.3 kB / 429.1 MB, free: 7.023 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002484/0.5167, allocations: 1.32 MB / 430.4 MB, free: 6.512 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.5167, allocations: 0 / 430.4 MB, free: 6.512 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007505/0.5175, allocations: 147.3 kB / 430.5 MB, free: 6.512 MB / 314.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.000281/0.5178, allocations: 203.5 kB / 430.7 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.5204, allocations: 1.906 MB / 432.6 MB, free: 5.746 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.578e-06/0.5204, allocations: 0 / 432.6 MB, free: 5.746 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.5219, allocations: 1.39 MB / 434 MB, free: 4.934 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.5233, allocations: 307.7 kB / 434.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004762/0.5281, allocations: 2.579 MB / 436.9 MB, free: 3.062 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.5294, allocations: 1.213 MB / 438.1 MB, free: 17.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.889e-05/0.5295, allocations: 31.44 kB / 438.1 MB, free: 17.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.847e-06/0.5295, allocations: 0 / 438.1 MB, free: 17.8 MB / 330.7 MB Notification: Performance of Templates: time 0.01986/0.5494, allocations: 11.36 MB / 449.5 MB, free: 6.211 MB / 330.7 MB