/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 = 17380
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0107.4+0334_weekly_bin904
RA = 16.8508, Dec = 3.5691
tmin = 785721601, tmax = 786326401
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='16500360', job_status='RUN', time_executed='2025-12-02 00:02:30.740479', time_epoch_executed='1764662550.74' WHERE source_name='4FGL J0107.4+0334' and cadence='weekly' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/16500360

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/16500360/ft1_4FGL_J0107.4+0334_weekly_bin904.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/16500360/ft1_4FGL_J0107.4+0334_weekly_bin904.fits outfile=/lscratch/kocevski/16500360/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin904.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=785721601.0 tmax=786326401.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 3.50
user 2.78
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.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/16500360/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin904.fits evtable="EVENTS" outfile="/lscratch/kocevski/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.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.88
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 765

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits" evtable="EVENTS" scfile=/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits sctable="SC_DATA" outfile=/lscratch/kocevski/16500360/ltcube_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.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/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits
.....................!
real 25.51
user 24.71
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits evtable="EVENTS" scfile=/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits sctable="SC_DATA" expcube=/lscratch/kocevski/16500360/ltcube_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits outfile=/lscratch/kocevski/16500360/expmap_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.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/16500360/ltcube_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits
.....................!
real 59.74
user 55.77
sys 3.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 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/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits scfile=/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits outfile=/lscratch/kocevski/16500360/cmap_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.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 0.71
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits scfile=/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits outfile=/lscratch/kocevski/16500360/cmap_HighResolution_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.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 0.73
user 0.21
sys 0.12

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits', '/lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits', expMap='/lscratch/kocevski/16500360/expmap_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits', expCube='/lscratch/kocevski/16500360/ltcube_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/16500360/Model_4FGL_J0107.4+0334_weekly_bin904.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/16500360/ft1_filtered_4FGL_J0107.4+0334_weekly_bin904.fits
Spacecraft file(s): /lscratch/kocevski/16500360/ft2_4FGL_J0107.4+0334_weekly_bin904.fits
Exposure map: /lscratch/kocevski/16500360/expmap_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits
Exposure cube: /lscratch/kocevski/16500360/ltcube_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/16500360/Model_4FGL_J0107.4+0334_weekly_bin904.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) = 8950.77542283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4157       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.3160       1.0000          .0000       .10000E+07
     3 'norm      '    .11575E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32273E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.3595       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.0976       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.0099       1.0000          .0000       .10000E+07
     8 'norm      '    .12269E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8513       1.0000          .0000       .10000E+07
    10 'norm      '    13.959       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10093E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .79771E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .46327E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    37.691       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19127E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11674E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14252E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6394       1.0000          .0000       .10000E+07
    19 'Normalizat'    .69696       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1633       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=   8949.890     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1289 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4260        3.2078       -.32303E-06   -.51244E-02
   2  Prefactor     5.1769        9.3676        .22220E-06    .39456E-02
   3  norm          .55511E-10    5.6797       -.24910E-05** at limit **
   4  Prefactor     .22032E-06    7.3141       -.13962E-05** at limit **
   5  Prefactor     3.3912        3.6422       -.17815E-06   -.17416E-02
   6  Prefactor     1.0980        1.4988        .27009E-06   -.34007E-02
   7  Prefactor     2.0091        2.2727        .23126E-06   -.11923E-01
   8  norm          .73291E-06    2.7060       -.99100E-06** at limit **
   9  Prefactor     6.7946        1.0847       -.47006E-07    .15931E-02
  10  norm          14.059        1.2360        .80741E-07    .38333E-02
  11  Prefactor     .61118E-07    7.5486        .67102E-06** at limit **
  12  Prefactor     .74940E-08    22.166       -.78267E-06** at limit **
  13  norm          .27756E-09    22.665        .37125E-06** at limit **
  14  Prefactor     37.619        1.3826       -.86945E-08    .29179E-01
  15  Prefactor     .50515E-08    4.3728       -.85769E-06** at limit **
  16  Prefactor     .51792E-07    5.7974        .39126E-06** at limit **
  17  Prefactor     .25774E-06    7.3440        .77937E-06** at limit **
  18  Prefactor     3.6772        4.1997        .12627E-05    .21620E-02
  19  Normalizat    .69750        .17747        .51135E-05   -.87748E-04
  20  Prefactor     1.1631        .14273        .96314E-05   -.73737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.42599
  Prefactor  = 5.17694
  norm       = 5.55112e-11
  Prefactor  = 2.20324e-07
  Prefactor  = 3.3912
  Prefactor  = 1.09798
  Prefactor  = 2.00911
  norm       = 7.32914e-07
  Prefactor  = 6.79461
  norm       = 14.0588
  Prefactor  = 6.11178e-08
  Prefactor  = 7.49401e-09
  norm       = 2.77556e-10
  Prefactor  = 37.6191
  Prefactor  = 5.05151e-09
  Prefactor  = 5.17919e-08
  Prefactor  = 2.57738e-07
  Prefactor  = 3.67721
  Normalizat = 0.697495
  Prefactor  = 1.16312
 **********
 **   18 **HESSE 
 **********

 FCN=   8949.890     FROM HESSE     STATUS=OK           339 CALLS     1628 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4260        3.2279        .47901E-03   -1.5666    
   2  Prefactor     5.1769        9.4447        .43567E-03   -1.5662    
   3  norm          .55511E-10    5.6104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22032E-06    9.2017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3912        3.6513        .55188E-03   -1.5671    
   6  Prefactor     1.0980        1.5491        .11359E-02   -1.5687    
   7  Prefactor     2.0091        2.4329        .72997E-03   -1.5680    
   8  norm          .73291E-06    9.1083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7946        20.520        .38307E-03   -1.5656    
  10  norm          14.059        11.309        .26783E-03   -1.5633    
  11  Prefactor     .61118E-07    14.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74940E-08    22.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    .44852        .20230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.619        15.728        .16290E-03   -1.5585    
  15  Prefactor     .50515E-08    4.4057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .51792E-07    6.1507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25774E-06    15.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6772        4.2083        .52930E-03   -1.5670    
  19  Normalizat    .69750        .15707        .70717E-01   -1.0399    
  20  Prefactor     1.1631        .12497        .35562E-01   -.87474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74623e-07
Minuit parameter uncertainties:
  1  3.22787
  2  9.44474
  3  4.30669e-05
  4  0.00284754
  5  3.65131
  6  1.5491
  7  2.43293
  8  0.00516737
  9  20.5207
  10  11.3089
  11  0.00190823
  12  0.000817447
  13  2.24954e-05
  14  15.7283
  15  0.000298307
  16  0.00112906
  17  0.00397145
  18  4.2083
  19  0.157176
  20  0.125005
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.494e-09  8.174e-04  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:  1.163e+00  1.250e-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:  6.975e-01  1.572e-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.9355270793e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00380192645505 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/16500360/likelihoodResults_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.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): 102
logL (Free Index) = 8949.91131162
delta logL = -0.0215482282147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8949.88976468
delta logL = -1.28872852656e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22571E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.8664       1.0000          .0000       10.000    
     3 'Normalizat'    .69759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1629       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.

 FCN=   8949.890     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      263 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .73927        .42118E-03** at limit **
   2  Index         1.1036        7.8559        .50000       -.90949E-11
   3  Normalizat    .69750        .57350E-03    .70717E-01    .37538E-04
   4  Prefactor     1.1631        .46826E-03    .35572E-01    .89107E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.10361
  Normalizat = 0.697496
  Prefactor  = 1.16312
 **********
 **   18 **HESSE 
 **********

 FCN=   8949.890     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      290 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.2817        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1036        5.3454        .51000       -.89351    
   3  Normalizat    .69750        .12055E-02    .31298E-03   -1.0399    
   4  Prefactor     1.1631        .98624E-03    .20158E-03   -.87474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.97621e-13
Minuit parameter uncertainties:
  1  3.07217e-05
  2  107933
  3  0.00120547
  4  0.000986237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8949.88976339
delta logL = 1.7462298274e-10

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  5.551e-11  3.072e-05  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  1.104e+00  1.079e+05  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:  1.163e+00  9.862e-04  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:  6.975e-01  1.205e-03  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/16500360/cmap_HighResolution_785721601_786326401_4FGL_J0107.4+0334_weekly_bin904.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2025-12-02 00:13:01.003757', job_id='16500360', GAL2='1.16', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1764663181.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.75e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='904' AND source_name='4FGL J0107.4+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  2 00:13:01 PST 2025

