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.1_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.01e-05, allocations: 7.984 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3022, allocations: 38.76 MB / 263.8 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.412, allocations: 72.81 MB / 336.6 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.4123, allocations: 67.95 kB / 336.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09434/0.5066, allocations: 30.55 MB / 367.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.41e-06/0.5067, allocations: 0 / 367.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.368e-05/0.5067, allocations: 12 kB / 367.2 MB, free: 2.277 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.001665/0.5084, allocations: 1.288 MB / 368.5 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5085, allocations: 12.03 kB / 368.5 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.5087, allocations: 126.5 kB / 368.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009333/0.5097, allocations: 0.5129 MB / 369.2 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.965e-05/0.5097, allocations: 31.92 kB / 369.2 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.5099, allocations: 31.95 kB / 369.2 MB, free: 132 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2231/0.733, allocations: 0.603 MB / 369.8 MB, free: 87.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.7331, allocations: 0 / 369.8 MB, free: 87.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-05/0.7332, allocations: 17.03 kB / 369.8 MB, free: 87.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.531e-06/0.7332, allocations: 3.094 kB / 369.8 MB, free: 87.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.7343, allocations: 449.1 kB / 370.3 MB, free: 87.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.7364, allocations: 1.042 MB / 371.3 MB, free: 87.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009173/0.7373, allocations: 0.6853 MB / 372 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008429/0.7382, allocations: 0.6706 MB / 372.7 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.785e-06/0.7382, allocations: 0 / 372.7 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001545/0.7397, allocations: 0.761 MB / 373.4 MB, free: 87.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.454e-06/0.7398, allocations: 3 kB / 373.4 MB, free: 87.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004013/0.7438, allocations: 1.394 MB / 374.8 MB, free: 86.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002192/0.7441, allocations: 328.7 kB / 375.2 MB, free: 86.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004108/0.7482, allocations: 1.438 MB / 376.6 MB, free: 86.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002586/0.7485, allocations: 49.3 kB / 376.6 MB, free: 86.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.7488, allocations: 216.4 kB / 376.8 MB, free: 86.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.7491, allocations: 85.89 kB / 376.9 MB, free: 86.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.7492, allocations: 11.06 kB / 376.9 MB, free: 86.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.7494, allocations: 369.5 kB / 377.3 MB, free: 85.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.7507, allocations: 446.6 kB / 377.7 MB, free: 85.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.752, allocations: 443.6 kB / 378.2 MB, free: 85.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.7531, allocations: 0.5724 MB / 378.7 MB, free: 85.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.7532, allocations: 0 / 378.7 MB, free: 85.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0037/0.7569, allocations: 1.331 MB / 380.1 MB, free: 84.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002929/0.7572, allocations: 290 kB / 380.4 MB, free: 84.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.7573, allocations: 3.953 kB / 380.4 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.7573, allocations: 0 / 380.4 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.734e-05/0.7574, allocations: 11.17 kB / 380.4 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.7574, allocations: 0 / 380.4 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.7584, allocations: 50.17 kB / 380.4 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003337/0.7588, allocations: 152.5 kB / 380.6 MB, free: 84.5 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.0006937/0.7595, allocations: 466.7 kB / 381 MB, free: 84.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.7599, allocations: 128 kB / 381.2 MB, free: 84.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007865/0.7607, allocations: 201.7 kB / 381.3 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.7608, allocations: 7.672 kB / 381.4 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.002e-06/0.7608, allocations: 0 / 381.4 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.878e-06/0.7608, allocations: 0 / 381.4 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005928/0.7668, allocations: 2.309 MB / 383.7 MB, free: 82.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.086e-06/0.7668, allocations: 0 / 383.7 MB, free: 82.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.197e-05/0.7669, allocations: 3.531 kB / 383.7 MB, free: 82.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.301e-05/0.7669, allocations: 7.797 kB / 383.7 MB, free: 82.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001713/0.7671, allocations: 41.17 kB / 383.7 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.858e-06/0.7671, allocations: 3.562 kB / 383.7 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.381e-06/0.7672, allocations: 0 / 383.7 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004047/0.7712, allocations: 1.603 MB / 385.3 MB, free: 82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.7725, allocations: 0.6481 MB / 386 MB, free: 81.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.7727, allocations: 67.42 kB / 386 MB, free: 81.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004803/0.7732, allocations: 43.16 kB / 386.1 MB, free: 81.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006179/0.7738, allocations: 350.5 kB / 386.4 MB, free: 81.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/0.7741, allocations: 161.6 kB / 386.6 MB, free: 81.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001888/0.776, allocations: 1.203 MB / 387.8 MB, free: 80.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.034e-06/0.776, allocations: 0 / 387.8 MB, free: 80.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007155/0.7767, allocations: 144 kB / 387.9 MB, free: 79.96 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.0002814/0.777, allocations: 198.8 kB / 388.1 MB, free: 79.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.7792, allocations: 1.897 MB / 390 MB, free: 77.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.35e-06/0.7792, allocations: 5.234 kB / 390 MB, free: 77.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.7805, allocations: 1.376 MB / 391.4 MB, free: 76.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.7817, allocations: 298.4 kB / 391.7 MB, free: 76.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.7854, allocations: 2.321 MB / 394 MB, free: 74.2 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008868/0.7864, allocations: 1.168 MB / 395.2 MB, free: 73.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.7866, allocations: 74 kB / 395.2 MB, free: 73.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.676e-05/0.7867, allocations: 27.44 kB / 395.3 MB, free: 73.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.969e-06/0.7867, allocations: 4 kB / 395.3 MB, free: 73.06 MB / 314.7 MB Notification: Performance of Templates: time 0.02519/0.8119, allocations: 15.43 MB / 410.7 MB, free: 58.8 MB / 314.7 MB