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.957/1.957, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.672e-05/2.695e-05, allocations: 4 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07874/0.07879, allocations: 44.5 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3616/0.4405, allocations: 78.11 MB / 377.9 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.4407, allocations: 67.94 kB / 378 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0834/0.5242, allocations: 31.21 MB / 409.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.292e-06/0.5242, allocations: 0 / 409.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.685e-05/0.5243, allocations: 15.66 kB / 409.2 MB, free: 15.83 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.001458/0.5257, allocations: 1.296 MB / 410.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.5258, allocations: 11.72 kB / 410.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.526, allocations: 125 kB / 410.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007807/0.5268, allocations: 0.5161 MB / 411.2 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.529e-05/0.5269, allocations: 30.83 kB / 411.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.527, allocations: 30.72 kB / 411.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.5283, allocations: 0.615 MB / 411.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.5283, allocations: 0 / 411.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.516e-05/0.5284, allocations: 15.44 kB / 411.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.475e-06/0.5284, allocations: 3.875 kB / 411.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008836/0.5293, allocations: 452.7 kB / 412.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.5316, allocations: 1.103 MB / 413.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009937/0.5326, allocations: 0.6877 MB / 414.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009826/0.5336, allocations: 0.6713 MB / 414.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.5337, allocations: 3.938 kB / 414.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/0.5348, allocations: 0.7586 MB / 415.5 MB, free: 13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.346e-06/0.5348, allocations: 0 / 415.5 MB, free: 13 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002542/0.5374, allocations: 1.42 MB / 417 MB, free: 12.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.5376, allocations: 318.7 kB / 417.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003333/0.5409, allocations: 1.603 MB / 418.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.5412, allocations: 52.72 kB / 418.9 MB, free: 11.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.5414, allocations: 247 kB / 419.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.5415, allocations: 88.67 kB / 419.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.5416, allocations: 11.28 kB / 419.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.58e-05/0.5417, allocations: 324.2 kB / 419.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008062/0.5425, allocations: 448.5 kB / 420 MB, free: 10.9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007938/0.5433, allocations: 452.6 kB / 420.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007346/0.5441, allocations: 0.5828 MB / 421.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.5441, allocations: 0 / 421.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002214/0.5463, allocations: 1.311 MB / 422.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.5466, allocations: 294.3 kB / 422.6 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.943e-06/0.5466, allocations: 0 / 422.6 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.5466, allocations: 3.953 kB / 422.7 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.247e-05/0.5467, allocations: 3.906 kB / 422.7 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.5467, allocations: 3.984 kB / 422.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.5473, allocations: 50.98 kB / 422.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.5475, allocations: 155.9 kB / 422.9 MB, free: 9.762 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.0004283/0.548, allocations: 453.7 kB / 423.3 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/0.5482, allocations: 140.4 kB / 423.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000732/0.5489, allocations: 246 kB / 423.7 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.839e-06/0.549, allocations: 3.984 kB / 423.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.587e-06/0.549, allocations: 3.953 kB / 423.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.664e-06/0.549, allocations: 0 / 423.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004031/0.553, allocations: 2.405 MB / 426.1 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.093e-06/0.5531, allocations: 0 / 426.1 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.181e-05/0.5531, allocations: 3.938 kB / 426.1 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.048e-06/0.5531, allocations: 7.391 kB / 426.1 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.5532, allocations: 38 kB / 426.1 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.24e-06/0.5533, allocations: 0 / 426.1 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5533, allocations: 3.688 kB / 426.1 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.5559, allocations: 1.605 MB / 427.8 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/0.5574, allocations: 0.6863 MB / 428.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/0.5577, allocations: 58.78 kB / 428.5 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.5583, allocations: 41.73 kB / 428.5 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006308/0.5589, allocations: 355.5 kB / 428.9 MB, free: 6.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002034/0.5591, allocations: 158.4 kB / 429 MB, free: 6.969 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002688/0.5618, allocations: 1.323 MB / 430.4 MB, free: 6.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.145e-06/0.5619, allocations: 3.938 kB / 430.4 MB, free: 6.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008619/0.5628, allocations: 152.8 kB / 430.5 MB, free: 6.449 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.0003317/0.5631, allocations: 191.4 kB / 430.7 MB, free: 6.332 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.5655, allocations: 1.919 MB / 432.6 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.291e-06/0.5655, allocations: 0 / 432.6 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.567, allocations: 1.387 MB / 434 MB, free: 4.926 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.5685, allocations: 303.5 kB / 434.3 MB, free: 4.777 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.5737, allocations: 2.584 MB / 436.9 MB, free: 3.055 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001428/0.5752, allocations: 1.217 MB / 438.1 MB, free: 17.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.5753, allocations: 27.44 kB / 438.1 MB, free: 17.79 MB / 330.7 MB Notification: Performance of SimCode: time 2.191e-06/0.5753, allocations: 4 kB / 438.1 MB, free: 17.79 MB / 330.7 MB Notification: Performance of Templates: time 0.02091/0.5962, allocations: 11.41 MB / 449.5 MB, free: 6.152 MB / 330.7 MB