 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387
outfile=/lscratch/kocevski/35271039/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
.....................!
real 19.65
user 18.89
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35271039/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271039/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/35271039/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
.....................!
real 73.87
user 68.92
sys 4.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0904.0+2724 @ 136.009 27.4041

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits scfile=/lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271039/cmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=136.009 yref=27.4041 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.81
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits scfile=/lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271039/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=136.009 yref=27.4041 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.71
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35271039/Model_4FGL_J0904.0+2724_weekly_bin941.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/35270996/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits.....................!
real 32.35
user 30.54
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35270996/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits', '/lscratch/kocevski/35270996/ft2_4FGL_J0904.0+2724_weekly_bin941.fits', expMap='/lscratch/kocevski/35270996/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', expCube='/lscratch/kocevski/35270996/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35270996/Model_4FGL_J0904.0+2724_weekly_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35270996/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits
Spacecraft file(s): /lscratch/kocevski/35270996/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure map: /lscratch/kocevski/35270996/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure cube: /lscratch/kocevski/35270996/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35270996/Model_4FGL_J0904.0+2724_weekly_bin941.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.25957182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.1522636

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26698       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16685E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31041E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .10039       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2825       1.0000          .0000       .10000E+07
     6 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29040E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21257E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .71395E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48164E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .48355E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.638       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9763       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67982E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10651E-04    4.2319       -.14513E-06** at limit **
   2  Prefactor     .12645E-05    34.623       -.37543E-06** at limit **
   3  Prefactor     .18857E-06    5.2499       -.86237E-07** at limit **
   4  norm          .99859E-01    1.4324        .49922E-07** at limit **
   5  Prefactor     7.3124        6.8241       -.11969E-06   -.25575E-02
   6  norm           .0000        .24853       -.72042E-08** at limit **
   7  Prefactor     .55678E-06    4.4054       -.45534E-07** at limit **
   8  Prefactor     .23870E-08    3.7832       -.51559E-07** at limit **
   9  norm          .55511E-10    9.4874        .14244E-06** at limit **
  10  Prefactor     .50100E-05    15.852       -.41971E-06** at limit **
  11  norm           .0000        2.3548       -.23134E-06** at limit **
  12  Prefactor     14.633        5.6248        .33482E-07   -.57039E-02
  13  Prefactor     .17442E-06    5.5842       -.14490E-06** at limit **
  14  Prefactor     4.1477        6.1291        .13356E-07    .23322E-01
  15  Prefactor     .12943E-04    11.142       -.27653E-06** at limit **
  16  Normalizat    .97417        .16020        .28710E-05   -.34285E-03
  17  Prefactor     1.2398        .15780       -.48749E-05   -.56032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0651e-05
  Prefactor  = 1.26454e-06
  Prefactor  = 1.88571e-07
  norm       = 0.0998585
  Prefactor  = 7.31239
  norm       = 0
  Prefactor  = 5.56777e-07
  Prefactor  = 2.38698e-09
  norm       = 5.55112e-11
  Prefactor  = 5.00999e-06
  norm       = 0
  Prefactor  = 14.6333
  Prefactor  = 1.74416e-07
  Prefactor  = 4.14768
  Prefactor  = 1.29428e-05
  Normalizat = 0.974169
  Prefactor  = 1.23982
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35270972/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35270972/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:49:10.087336', job_id='35270972', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787060950.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:49:10 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35270996/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35270996/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:49:24.323736', job_id='35270996', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787060964.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:49:24 PDT 2026

 GAL_V02
Working on...
/lscratch/kocevski/35271015/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits.....................!
real 32.71
user 31.06
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35271015/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits', '/lscratch/kocevski/35271015/ft2_4FGL_J0904.0+2724_weekly_bin941.fits', expMap='/lscratch/kocevski/35271015/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', expCube='/lscratch/kocevski/35271015/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35271015/Model_4FGL_J0904.0+2724_weekly_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35271015/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits
Spacecraft file(s): /lscratch/kocevski/35271015/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure map: /lscratch/kocevski/35271015/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure cube: /lscratch/kocevski/35271015/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35271015/Model_4FGL_J0904.0+2724_weekly_bin941.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.25957182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.1522636

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26698       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16685E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31041E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .10039       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2825       1.0000          .0000       .10000E+07
     6 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29040E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21257E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .71395E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48164E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .48355E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.638       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9763       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67982E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10651E-04    4.2319       -.14513E-06** at limit **
   2  Prefactor     .12645E-05    34.623       -.37543E-06** at limit **
   3  Prefactor     .18857E-06    5.2499       -.86237E-07** at limit **
   4  norm          .99859E-01    1.4324        .49922E-07** at limit **
   5  Prefactor     7.3124        6.8241       -.11969E-06   -.25575E-02
   6  norm           .0000        .24853       -.72042E-08** at limit **
   7  Prefactor     .55678E-06    4.4054       -.45534E-07** at limit **
   8  Prefactor     .23870E-08    3.7832       -.51559E-07** at limit **
   9  norm          .55511E-10    9.4874        .14244E-06** at limit **
  10  Prefactor     .50100E-05    15.852       -.41971E-06** at limit **
  11  norm           .0000        2.3548       -.23134E-06** at limit **
  12  Prefactor     14.633        5.6248        .33482E-07   -.57039E-02
  13  Prefactor     .17442E-06    5.5842       -.14490E-06** at limit **
  14  Prefactor     4.1477        6.1291        .13356E-07    .23322E-01
  15  Prefactor     .12943E-04    11.142       -.27653E-06** at limit **
  16  Normalizat    .97417        .16020        .28710E-05   -.34285E-03
  17  Prefactor     1.2398        .15780       -.48749E-05   -.56032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0651e-05
  Prefactor  = 1.26454e-06
  Prefactor  = 1.88571e-07
  norm       = 0.0998585
  Prefactor  = 7.31239
  norm       = 0
  Prefactor  = 5.56777e-07
  Prefactor  = 2.38698e-09
  norm       = 5.55112e-11
  Prefactor  = 5.00999e-06
  norm       = 0
  Prefactor  = 14.6333
  Prefactor  = 1.74416e-07
  Prefactor  = 4.14768
  Prefactor  = 1.29428e-05
  Normalizat = 0.974169
  Prefactor  = 1.23982
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387
 GAL_V02
Working on...
/lscratch/kocevski/35271014/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits.....................!
real 34.88
user 32.93
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35271014/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits', '/lscratch/kocevski/35271014/ft2_4FGL_J0904.0+2724_weekly_bin941.fits', expMap='/lscratch/kocevski/35271014/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', expCube='/lscratch/kocevski/35271014/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35271014/Model_4FGL_J0904.0+2724_weekly_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35271014/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits
Spacecraft file(s): /lscratch/kocevski/35271014/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure map: /lscratch/kocevski/35271014/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure cube: /lscratch/kocevski/35271014/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35271014/Model_4FGL_J0904.0+2724_weekly_bin941.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.25957182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.1522636

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26698       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16685E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31041E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .10039       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2825       1.0000          .0000       .10000E+07
     6 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29040E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21257E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .71395E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48164E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .48355E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.638       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9763       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67982E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10651E-04    4.2319       -.14513E-06** at limit **
   2  Prefactor     .12645E-05    34.623       -.37543E-06** at limit **
   3  Prefactor     .18857E-06    5.2499       -.86237E-07** at limit **
   4  norm          .99859E-01    1.4324        .49922E-07** at limit **
   5  Prefactor     7.3124        6.8241       -.11969E-06   -.25575E-02
   6  norm           .0000        .24853       -.72042E-08** at limit **
   7  Prefactor     .55678E-06    4.4054       -.45534E-07** at limit **
   8  Prefactor     .23870E-08    3.7832       -.51559E-07** at limit **
   9  norm          .55511E-10    9.4874        .14244E-06** at limit **
  10  Prefactor     .50100E-05    15.852       -.41971E-06** at limit **
  11  norm           .0000        2.3548       -.23134E-06** at limit **
  12  Prefactor     14.633        5.6248        .33482E-07   -.57039E-02
  13  Prefactor     .17442E-06    5.5842       -.14490E-06** at limit **
  14  Prefactor     4.1477        6.1291        .13356E-07    .23322E-01
  15  Prefactor     .12943E-04    11.142       -.27653E-06** at limit **
  16  Normalizat    .97417        .16020        .28710E-05   -.34285E-03
  17  Prefactor     1.2398        .15780       -.48749E-05   -.56032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0651e-05
  Prefactor  = 1.26454e-06
  Prefactor  = 1.88571e-07
  norm       = 0.0998585
  Prefactor  = 7.31239
  norm       = 0
  Prefactor  = 5.56777e-07
  Prefactor  = 2.38698e-09
  norm       = 5.55112e-11
  Prefactor  = 5.00999e-06
  norm       = 0
  Prefactor  = 14.6333
  Prefactor  = 1.74416e-07
  Prefactor  = 4.14768
  Prefactor  = 1.29428e-05
  Normalizat = 0.974169
  Prefactor  = 1.23982
 GAL_V02
Working on...
/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits.....................!
real 34.91
user 33.17
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits', '/lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits', expMap='/lscratch/kocevski/35271039/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', expCube='/lscratch/kocevski/35271039/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35271039/Model_4FGL_J0904.0+2724_weekly_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35271039/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits
Spacecraft file(s): /lscratch/kocevski/35271039/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure map: /lscratch/kocevski/35271039/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure cube: /lscratch/kocevski/35271039/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35271039/Model_4FGL_J0904.0+2724_weekly_bin941.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.25957182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.1522636

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26698       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16685E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31041E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .10039       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2825       1.0000          .0000       .10000E+07
     6 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29040E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21257E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .71395E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48164E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .48355E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.638       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9763       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67982E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10651E-04    4.2319       -.14513E-06** at limit **
   2  Prefactor     .12645E-05    34.623       -.37543E-06** at limit **
   3  Prefactor     .18857E-06    5.2499       -.86237E-07** at limit **
   4  norm          .99859E-01    1.4324        .49922E-07** at limit **
   5  Prefactor     7.3124        6.8241       -.11969E-06   -.25575E-02
   6  norm           .0000        .24853       -.72042E-08** at limit **
   7  Prefactor     .55678E-06    4.4054       -.45534E-07** at limit **
   8  Prefactor     .23870E-08    3.7832       -.51559E-07** at limit **
   9  norm          .55511E-10    9.4874        .14244E-06** at limit **
  10  Prefactor     .50100E-05    15.852       -.41971E-06** at limit **
  11  norm           .0000        2.3548       -.23134E-06** at limit **
  12  Prefactor     14.633        5.6248        .33482E-07   -.57039E-02
  13  Prefactor     .17442E-06    5.5842       -.14490E-06** at limit **
  14  Prefactor     4.1477        6.1291        .13356E-07    .23322E-01
  15  Prefactor     .12943E-04    11.142       -.27653E-06** at limit **
  16  Normalizat    .97417        .16020        .28710E-05   -.34285E-03
  17  Prefactor     1.2398        .15780       -.48749E-05   -.56032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0651e-05
  Prefactor  = 1.26454e-06
  Prefactor  = 1.88571e-07
  norm       = 0.0998585
  Prefactor  = 7.31239
  norm       = 0
  Prefactor  = 5.56777e-07
  Prefactor  = 2.38698e-09
  norm       = 5.55112e-11
  Prefactor  = 5.00999e-06
  norm       = 0
  Prefactor  = 14.6333
  Prefactor  = 1.74416e-07
  Prefactor  = 4.14768
  Prefactor  = 1.29428e-05
  Normalizat = 0.974169
  Prefactor  = 1.23982
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35271015/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35271015/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:50:11.267772', job_id='35271015', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787061011.27', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:50:11 PDT 2026

number of points = 17522
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0904.0+2724_weekly_bin941
RA = 136.009, Dec = 27.4041
tmin = 808099201, tmax = 808704001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='35271237', job_status='RUN', time_executed='2026-08-18 06:48:53.163665', time_epoch_executed='1787060933.16' WHERE source_name='4FGL J0904.0+2724' and cadence='weekly' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35271237

Creating custom pfile directory:
/lscratch/kocevski/35271237/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35271237/ft1_4FGL_J0904.0+2724_weekly_bin941.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=808099201.0 && nMetStart<808704001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35271237/ft1_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271237/ft1_filteredMKT_4FGL_J0904.0+2724_weekly_bin941.fits ra=136.009 dec=27.4041 rad=12.0 tmin=808099201.0 tmax=808704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.20
user 4.64
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/35271237/ft1_filteredMKT_4FGL_J0904.0+2724_weekly_bin941.fits evtable="EVENTS" outfile="/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.63
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 851

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35271014/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35271014/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:50:32.554137', job_id='35271014', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787061032.55', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:50:32 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35271039/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35271039/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:50:39.816345', job_id='35271039', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787061039.82', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:50:39 PDT 2026

outfile=/lscratch/kocevski/35271237/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
.....................!
real 17.47
user 16.85
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35271237/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271237/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/35271237/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
.....................!
real 64.23
user 59.74
sys 3.84

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0904.0+2724 @ 136.009 27.4041

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271237/cmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=136.009 yref=27.4041 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.78
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits outfile=/lscratch/kocevski/35271237/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=136.009 yref=27.4041 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.76
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits evtable="EVENTS" scfile=/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35271237/Model_4FGL_J0904.0+2724_weekly_bin941.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits.....................!
real 33.13
user 31.29
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits', '/lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits', expMap='/lscratch/kocevski/35271237/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', expCube='/lscratch/kocevski/35271237/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35271237/Model_4FGL_J0904.0+2724_weekly_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35271237/ft1_filtered_4FGL_J0904.0+2724_weekly_bin941.fits
Spacecraft file(s): /lscratch/kocevski/35271237/ft2_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure map: /lscratch/kocevski/35271237/expmap_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
Exposure cube: /lscratch/kocevski/35271237/ltcube_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35271237/Model_4FGL_J0904.0+2724_weekly_bin941.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.25957182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.1522636

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26698       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16685E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31041E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .10039       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2825       1.0000          .0000       .10000E+07
     6 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29040E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21257E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .71395E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48164E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .48355E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.638       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9763       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67982E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    .97457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1037 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10651E-04    4.2319       -.14513E-06** at limit **
   2  Prefactor     .12645E-05    34.623       -.37543E-06** at limit **
   3  Prefactor     .18857E-06    5.2499       -.86237E-07** at limit **
   4  norm          .99859E-01    1.4324        .49922E-07** at limit **
   5  Prefactor     7.3124        6.8241       -.11969E-06   -.25575E-02
   6  norm           .0000        .24853       -.72042E-08** at limit **
   7  Prefactor     .55678E-06    4.4054       -.45534E-07** at limit **
   8  Prefactor     .23870E-08    3.7832       -.51559E-07** at limit **
   9  norm          .55511E-10    9.4874        .14244E-06** at limit **
  10  Prefactor     .50100E-05    15.852       -.41971E-06** at limit **
  11  norm           .0000        2.3548       -.23134E-06** at limit **
  12  Prefactor     14.633        5.6248        .33482E-07   -.57039E-02
  13  Prefactor     .17442E-06    5.5842       -.14490E-06** at limit **
  14  Prefactor     4.1477        6.1291        .13356E-07    .23322E-01
  15  Prefactor     .12943E-04    11.142       -.27653E-06** at limit **
  16  Normalizat    .97417        .16020        .28710E-05   -.34285E-03
  17  Prefactor     1.2398        .15780       -.48749E-05   -.56032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0651e-05
  Prefactor  = 1.26454e-06
  Prefactor  = 1.88571e-07
  norm       = 0.0998585
  Prefactor  = 7.31239
  norm       = 0
  Prefactor  = 5.56777e-07
  Prefactor  = 2.38698e-09
  norm       = 5.55112e-11
  Prefactor  = 5.00999e-06
  norm       = 0
  Prefactor  = 14.6333
  Prefactor  = 1.74416e-07
  Prefactor  = 4.14768
  Prefactor  = 1.29428e-05
  Normalizat = 0.974169
  Prefactor  = 1.23982
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.151     FROM HESSE     STATUS=OK           263 CALLS     1300 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10651E-04    11.010        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12645E-05    36.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18857E-06    5.5854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99859E-01    .55242        .22916E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3124        6.9386        .37144E-03   -1.5654    
   6  norm           .0000        .24319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55678E-06    5.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    3.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    9.5045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50100E-05    22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .62593        .29318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.633        14.390        .26153E-03   -1.5631    
  13  Prefactor     .17442E-06    5.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1477        41.418        .50557E-03   -1.5667    
  15  Prefactor     .12943E-04    26.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97417        .14096        .45847E-01   -.93901    
  17  Prefactor     1.2398        .13435        .50488E-01   -.85114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0251e-06
Minuit parameter uncertainties:
  1  0.0216581
  2  0.0136201
  3  0.00205253
  4  0.469741
  5  6.93862
  6  7.72687e-07
  7  0.00343939
  8  0.000190107
  9  5.31336e-05
  10  0.0212215
  11  6.60654e-06
  12  14.3902
  13  0.0020074
  14  26.2139
  15  0.0370424
  16  0.14101
  17  0.134387
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9474.15127512

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.387e-09  1.901e-04  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 4.41897748794e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00349697032553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35271237/likelihoodResults_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.15138113
delta logL = -0.000106011637399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.00458196
delta logL = 0.146693162345

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61452E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8199       1.0000          .0000       10.000    
     3 'Normalizat'    .95275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      332 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2872        .42118E-03** at limit **
   2  Index         3.3400        1.6226       -.10451E-03     .0000    
   3  Normalizat    .97417        1.2983        .11102E-03    .10665E-03
   4  Prefactor     1.2398        1.0825       -.85754E-04    .17082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.33998
  Normalizat = 0.974168
  Prefactor  = 1.23983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9474.151     FROM HESSE     STATUS=FAILED         9 CALLS      341 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8537        2.4124       -.10451E-03   -34.219    
   3  Normalizat    .97417        1.2983        .11102E-03   -8.4858    
   4  Prefactor     1.2398        1.0825       -.85754E-04    29.125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36192e-11
Minuit parameter uncertainties:
  1  1.96727e-05
  2  1.6564
  3  1.34437
  4  1.10294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 9474.15127512
delta logL = 4.03815647587e-10

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.967e-05  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.340e+00  1.656e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.240e+00  1.103e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.742e-01  1.344e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35271237/cmap_HighResolution_808099201_808704001_4FGL_J0904.0+2724_weekly_bin941.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2026-08-18 06:54:13.094683', job_id='35271237', GAL2='1.24', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1787061253.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='941' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 18 06:54:13 PDT 2026

