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


Performing analysis on: 4FGL_J0107.4+0334_weekly_bin827
RA = 16.8508, Dec = 3.5691
tmin = 739152001, tmax = 739756801
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='50334297', job_status='RUN', time_executed='2024-06-11 00:17:04.977597', time_epoch_executed='1718090224.98' WHERE source_name='4FGL J0107.4+0334' and cadence='weekly' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/50334297

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/50334297/ft1_4FGL_J0107.4+0334_weekly_bin827.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/50334297/ft1_4FGL_J0107.4+0334_weekly_bin827.fits outfile=/lscratch/kocevski/50334297/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin827.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=739152001.0 tmax=739756801.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.10
user 4.51
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.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/50334297/ft1_filteredMKT_4FGL_J0107.4+0334_weekly_bin827.fits evtable="EVENTS" outfile="/lscratch/kocevski/50334297/ft1_filtered_4FGL_J0107.4+0334_weekly_bin827.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.84
user 0.26
sys 0.14

Number of photons that the gtmktime cut: 1459

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/50334297/ft1_filtered_4FGL_J0107.4+0334_weekly_bin827.fits" evtable="EVENTS" scfile=/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits sctable="SC_DATA" outfile=/lscratch/kocevski/50334297/ltcube_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.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/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits
.....................!
real 33.64
user 32.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/50334297/ft1_filtered_4FGL_J0107.4+0334_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/50334297/ltcube_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.fits outfile=/lscratch/kocevski/50334297/expmap_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.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/50334297/ltcube_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.fits
.....................!
real 72.03
user 67.62
sys 4.05

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/50334297/ft1_filtered_4FGL_J0107.4+0334_weekly_bin827.fits scfile=/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits outfile=/lscratch/kocevski/50334297/cmap_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.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.55
user 0.25
sys 0.08

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/50334297/ft1_filtered_4FGL_J0107.4+0334_weekly_bin827.fits scfile=/lscratch/kocevski/50334297/ft2_4FGL_J0107.4+0334_weekly_bin827.fits outfile=/lscratch/kocevski/50334297/cmap_HighResolution_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.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.50
user 0.25
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4054       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     3 'norm      '    2.9820       1.0000          .0000       .10000E+07
     4 'Prefactor '    .78215E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0183       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0552       1.0000          .0000       .10000E+07
     7 'Prefactor '    .22307E-05   1.0000          .0000       .10000E+07
     8 'norm      '    2.7702       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.2699       1.0000          .0000       .10000E+07
    10 'norm      '    .25002E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .90521E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .66351E-01   1.0000          .0000       .10000E+07
    13 'norm      '    1.6036       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13656E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56621E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .45519E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.0082       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0771       1.0000          .0000       .10000E+07
    19 'Normalizat'    .86847       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0116       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=   16331.98     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1178 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4053        1.9223        .25899E-07    .34074E-03
   2  Prefactor      .0000        1.7912       -.20772E-06** at limit **
   3  norm          2.9916        3.1531       -.36037E-06   -.11682E-02
   4  Prefactor     .46074E-08    2.7918       -.70601E-06** at limit **
   5  Prefactor     1.0167        2.3978       -.45605E-06   -.33049E-03
   6  Prefactor     2.0550        1.0631        .68063E-07   -.41453E-03
   7  Prefactor      .0000        2.2293       -.15964E-06** at limit **
   8  norm          2.7708        2.3087       -.51018E-07   -.56297E-03
   9  Prefactor     6.2342        9.2076       -.55778E-06    .26561E-01
  10  norm          .10270E-07    2.7978        .40437E-06** at limit **
  11  Prefactor     .13122E-05    22.309       -.15975E-07** at limit **
  12  Prefactor     .13878E-08    .85099       -.76402E-07** at limit **
  13  norm          1.6040        .70407        .25541E-07   -.17899E-02
  14  Prefactor     .27200E-08    3.4491       -.51901E-06** at limit **
  15  Prefactor      .0000        .71415       -.21624E-06** at limit **
  16  Prefactor      .0000        1.1593       -.18442E-06** at limit **
  17  Prefactor     8.9599        33.288       -.18973E-05    .23782E-02
  18  Prefactor     2.0767        1.8509       -.15517E-06    .42055E-03
  19  Normalizat    .86851        .12098        .92540E-05   -.20092E-04
  20  Prefactor     1.0116        .98858E-01   -.58014E-05   -.28064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40533
  Prefactor  = 0
  norm       = 2.99157
  Prefactor  = 4.60743e-09
  Prefactor  = 1.01667
  Prefactor  = 2.05497
  Prefactor  = 0
  norm       = 2.77081
  Prefactor  = 6.23416
  norm       = 1.02696e-08
  Prefactor  = 1.31217e-06
  Prefactor  = 1.38778e-09
  norm       = 1.60398
  Prefactor  = 2.72005e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.95992
  Prefactor  = 2.07666
  Normalizat = 0.868513
  Prefactor  = 1.01163
 **********
 **   18 **HESSE 
 **********

 FCN=   16331.98     FROM HESSE     STATUS=OK           333 CALLS     1511 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4053        1.9194        .65988E-03   -1.5677    
   2  Prefactor      .0000        1.7879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9916        3.1595        .58766E-03   -1.5673    
   4  Prefactor     .46074E-08    2.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0167        2.4391        .12855E-02   -1.5688    
   6  Prefactor     2.0550        1.0628        .72069E-04   -1.5679    
   7  Prefactor      .0000        .55493        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7708        2.3317        .61121E-03   -1.5675    
   9  Prefactor     6.2342        11.096        .40065E-03   -1.5658    
  10  norm          .10270E-07    3.0121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13122E-05    48.472        .14191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13878E-08    42.746        .14940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6040        .70877        .83665E-03   -1.5683    
  14  Prefactor     .27200E-08    3.5313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        .71395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.1581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9599        33.677        .33370E-03   -1.5648    
  18  Prefactor     2.0767        1.8433        .71634E-03   -1.5679    
  19  Normalizat    .86851        .10511        .44497E-01   -.97576    
  20  Prefactor     1.0116        .85398E-01    .43103E-01   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10953e-07
Minuit parameter uncertainties:
  1  1.91935
  2  3.13479e-06
  3  3.15955
  4  0.000231607
  5  2.43911
  6  1.06278
  7  3.30453e-06
  8  2.33175
  9  11.0956
  10  0.000351415
  11  0.0159505
  12  0.000487976
  13  0.708766
  14  0.000196945
  15  1.46011e-06
  16  2.36525e-06
  17  33.6772
  18  1.84327
  19  0.105139
  20  0.0854093
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.388e-09  4.880e-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.012e+00  8.541e-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:  8.685e-01  1.051e-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: 3.93976753784e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00303487473338 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/50334297/likelihoodResults_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.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) = 16331.9870431
delta logL = -0.0113439676152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16331.6540022
delta logL = 0.321696965206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39030E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.9227       1.0000          .0000       10.000    
     3 'Normalizat'    .84026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0272       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=   16331.98     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      365 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        25.713       -.24137E-06** at limit **
   2  Index         1.9550        .81992       -.29332E-05     .0000    
   3  Normalizat    .86851        .11866       -.92951E-05   -.14095E-03
   4  Prefactor     1.0116        .98250E-01   -.70919E-05    .15389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.95501
  Normalizat = 0.868513
  Prefactor  = 1.01163
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16331.98     FROM HESSE     STATUS=FAILED        11 CALLS      376 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        25.606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40646        1.6215       -.29332E-05   -44.637    
   3  Normalizat    .86851        1.1960       -.92951E-05   -2.1658    
   4  Prefactor     1.0116        1.2154       -.70919E-05   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.87474e-12
Minuit parameter uncertainties:
  1  1.01379e-05
  2  0.869927
  3  1.2357
  4  1.25092
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) = 16331.9756992
delta logL = 1.09139364213e-11

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  1.014e-05  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  1.955e+00  8.699e-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:  1.012e+00  1.251e+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:  8.685e-01  1.236e+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/50334297/cmap_HighResolution_739152001_739756801_4FGL_J0107.4+0334_weekly_bin827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2024-06-11 00:37:21.298113', job_id='50334297', GAL2='1.01', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1718091441.3', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='827' AND source_name='4FGL J0107.4+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 11 00:37:21 PDT 2024

