/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)

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

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


Performing analysis on: 4FGL_J0107.4+0334_weekly_bin908
RA = 16.8508, Dec = 3.5691
tmin = 788140801, tmax = 788745601
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='18156569', job_status='RUN', time_executed='2025-12-30 00:02:52.767907', time_epoch_executed='1767081772.77' WHERE source_name='4FGL J0107.4+0334' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18156569

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18156569/ft1_4FGL_J0107.4+0334_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18156569/ft1_4FGL_J0107.4+0334_weekly_bin908.fits outfile=/lscratch/kocevski/18156569/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin908.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=788140801.0 tmax=788745601.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.66
user 4.30
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.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/18156569/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.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 2.29
user 0.28
sys 0.17

Number of photons that the gtmktime cut: 1313

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18156569/ltcube_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.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/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits
.....................!
real 25.44
user 23.39
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18156569/ltcube_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits outfile=/lscratch/kocevski/18156569/expmap_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.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/18156569/ltcube_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits
.....................!
real 73.79
user 68.27
sys 4.00

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits outfile=/lscratch/kocevski/18156569/cmap_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.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=16.8508 yref=3.5691 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 1.14
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits outfile=/lscratch/kocevski/18156569/cmap_HighResolution_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.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=16.8508 yref=3.5691 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 1.45
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18156569/Model_4FGL_J0107.4+0334_weekly_bin908.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/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits.....................!
real 62.49
user 58.96
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits', '/lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits', expMap='/lscratch/kocevski/18156569/expmap_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits', expCube='/lscratch/kocevski/18156569/ltcube_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18156569/Model_4FGL_J0107.4+0334_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18156569/ft1_filtered_4FGL_J0107.4+0334_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18156569/ft2_4FGL_J0107.4+0334_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18156569/expmap_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18156569/ltcube_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18156569/Model_4FGL_J0107.4+0334_weekly_bin908.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) = 14754.1316035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3198       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7720       1.0000          .0000       .10000E+07
     3 'norm      '    5.3957       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.275       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.9385       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.0207       1.0000          .0000       .10000E+07
     7 'Prefactor '    .94580       1.0000          .0000       .10000E+07
     8 'norm      '    .18978E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.504       1.0000          .0000       .10000E+07
    10 'norm      '    .18606       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.217       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13695E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .31951       1.0000          .0000       .10000E+07
    14 'Prefactor '    21.452       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34332E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.2918       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22566E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31058E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    .97312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94503       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=   14754.11     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1220 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3197        3.2689        .10671E-07    .91024E-02
   2  Prefactor     2.7916        7.8573       -.61472E-07   -.25749E-02
   3  norm          5.4032        4.0177       -.96910E-08    .21890E-02
   4  Prefactor     11.307        2.5723        .23115E-06    .36447E-02
   5  Prefactor     6.9285        3.8602        .67478E-08    .69056E-02
   6  Prefactor     3.0240        1.6724       -.28377E-07   -.77613E-02
   7  Prefactor     .94380        1.9291        .22860E-06    .65595E-02
   8  norm          .11102E-09    1.8452        .26679E-10** at limit **
   9  Prefactor     10.505        11.105       -.17812E-05    .22475E-02
  10  norm          .23645        1.3038       -.10839E-05** at limit **
  11  Prefactor     14.979        23.078       -.61515E-06   -.69851E-03
  12  Prefactor     .10270E-07    34.765       -.31897E-06** at limit **
  13  norm          .31991        .43792       -.23830E-07   -.34319E-01
  14  Prefactor     21.431        9.1812       -.64742E-06   -.12168E-02
  15  Prefactor      .0000        .90583        .16955E-07** at limit **
  16  Prefactor     7.3009        4.7777       -.19165E-07   -.44019E-02
  17  Prefactor     .58287E-08    7.2500        .43058E-07** at limit **
  18  Prefactor     .55511E-10    1.3498        .43334E-08** at limit **
  19  Normalizat    .97313        .13273        .20718E-05   -.57326E-04
  20  Prefactor     .94467        .10617        .53275E-06   -.79923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.31966
  Prefactor  = 2.7916
  norm       = 5.40317
  Prefactor  = 11.3068
  Prefactor  = 6.92852
  Prefactor  = 3.02396
  Prefactor  = 0.943802
  norm       = 1.11022e-10
  Prefactor  = 10.5052
  norm       = 0.23645
  Prefactor  = 14.979
  Prefactor  = 1.02696e-08
  norm       = 0.319915
  Prefactor  = 21.4313
  Prefactor  = 0
  Prefactor  = 7.3009
  Prefactor  = 5.82867e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.973132
  Prefactor  = 0.944668
 **********
 **   18 **HESSE 
 **********

 FCN=   14754.11     FROM HESSE     STATUS=OK           341 CALLS     1561 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3197        3.2816        .37049E-03   -1.5654    
   2  Prefactor     2.7916        7.9035        .61100E-03   -1.5675    
   3  norm          5.4032        4.0175        .43238E-03   -1.5661    
   4  Prefactor     11.307        9.5452        .29811E-03   -1.5641    
   5  Prefactor     6.9285        3.8947        .38063E-03   -1.5655    
   6  Prefactor     3.0240        1.6778        .58366E-03   -1.5673    
   7  Prefactor     .94380        1.9453        .42644E-03   -1.5689    
   8  norm          .11102E-09    1.8325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.505        11.232        .30891E-03   -1.5643    
  10  norm          .23645        3.6558        .12029E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.979        23.115        .26538E-03   -1.5631    
  12  Prefactor     .10270E-07    34.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .31991        .54858        .22257E-02   -1.5697    
  14  Prefactor     21.431        9.5050        .21597E-03   -1.5615    
  15  Prefactor      .0000        .90435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3009        4.7829        .37120E-03   -1.5654    
  17  Prefactor     .58287E-08    7.2823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    1.3479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97313        .11656        .45829E-01   -.93936    
  20  Prefactor     .94467        .92613E-01    .45576E-01   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38404e-07
Minuit parameter uncertainties:
  1  3.28157
  2  7.90352
  3  4.01754
  4  9.54522
  5  3.89466
  6  1.67775
  7  1.94529
  8  2.69102e-05
  9  11.2322
  10  1.85947
  11  23.1154
  12  0.00119586
  13  0.548581
  14  9.50497
  15  5.03439e-06
  16  4.78287
  17  0.000412607
  18  1.27823e-05
  19  0.116595
  20  0.0926289
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.027e-08  1.196e-03  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.447e-01  9.263e-02  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.731e-01  1.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 4.28959056619e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00330434978735 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18156569/likelihoodResults_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.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) = 14754.1238463
delta logL = -0.0139936536416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14754.1098527
delta logL = -7.40510586184e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68895E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.5784       1.0000          .0000       10.000    
     3 'Normalizat'    .97314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94465       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=   14754.11     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      232 TOTAL
                     EDM=   .91E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7069        .42118E-03** at limit **
   2  Index         .83853        .57936       -.60242E-04     .0000    
   3  Normalizat    .97313        1.3045       -.28767E-05   -.57677E-04
   4  Prefactor     .94467        1.2872        .42742E-05   -.13216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.838534
  Normalizat = 0.97313
  Prefactor  = 0.944671
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14754.11     FROM HESSE     STATUS=FAILED         9 CALLS      241 TOTAL
                     EDM=   .91E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15033E-01    .91543       -.60242E-04   -.98323    
   3  Normalizat    .97313        1.3045       -.28767E-05   -.93936    
   4  Prefactor     .94467        1.2872        .42742E-05   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.10933e-12
Minuit parameter uncertainties:
  1  2.94581e-05
  2  0.583668
  3  1.35131
  4  1.33287
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) = 14754.1098526
delta logL = 4.98403096572e-10

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  2.946e-05  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  8.385e-01  5.837e-01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.447e-01  1.333e+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.731e-01  1.351e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

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/18156569/cmap_HighResolution_788140801_788745601_4FGL_J0107.4+0334_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2025-12-30 00:15:51.801766', job_id='18156569', GAL2='0.94', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1767082551.8', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.98e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='908' AND source_name='4FGL J0107.4+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 00:15:51 PST 2025

