/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 31 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 6033
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0626.4-4259_daily_bin635
RA = 96.6095, Dec = -42.9835
tmin = 403920001, tmax = 404179201
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='400189', job_status='RUN', time_executed='2021-08-25 03:01:33.973891', time_epoch_executed='1629885693.97' WHERE source_name='4FGL J0626.4-4259' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400189

Creating custom pfile directory:
/scratch/kocevski/400189/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=403920001.0 && nMetStart<404179201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=403920001.0 && nMetStart<404179201.0' /Data/Flight/Level1/LPA

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400189/ft1_4FGL_J0626.4-4259_daily_bin635.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=403920001.0 && nMetStart<404179201.0' /Data/Flight/Level1/LPA

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400189/ft1_4FGL_J0626.4-4259_daily_bin635.fits outfile=/scratch/kocevski/400189/ft1_filteredMKT_4FGL_J0626.4-4259_daily_bin635.fits ra=96.6095 dec=-42.9835 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.64
user 9.66
sys 0.94

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/400189/ft1_filteredMKT_4FGL_J0626.4-4259_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.10
user 0.32
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/400189/ltcube_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.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 /scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits
.....................!
real 10.00
user 8.97
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/400189/ltcube_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits outfile=/scratch/kocevski/400189/expmap_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.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 /scratch/kocevski/400189/ltcube_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits
.....................!
real 191.64
user 185.16
sys 5.91

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
Extended source Puppis A in ROI with RadialDisk spatial model.
Added 204 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0626.4-4259 @ 96.6095 -42.9835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits outfile=/scratch/kocevski/400189/cmap_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.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=96.6095 yref=-42.9835 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 2.14
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits outfile=/scratch/kocevski/400189/cmap_HighResolution_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.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=96.6095 yref=-42.9835 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.54
user 0.39
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400189/Model_4FGL_J0626.4-4259_daily_bin635.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
adding source Puppis A
Working on...
/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits......................!
real 49.14
user 37.79
sys 2.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits', '/scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits', expMap='/scratch/kocevski/400189/expmap_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits', expCube='/scratch/kocevski/400189/ltcube_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/400189/Model_4FGL_J0626.4-4259_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0626.4-4259'

4FGL J0626.4-4259
   Spectrum: PowerLaw
343    Prefactor:  2.684e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
344        Index:  1.900e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  3.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/400189/ft1_filtered_4FGL_J0626.4-4259_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/400189/ft2_4FGL_J0626.4-4259_daily_bin635.fits
Exposure map: /scratch/kocevski/400189/expmap_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits
Exposure cube: /scratch/kocevski/400189/ltcube_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/400189/Model_4FGL_J0626.4-4259_daily_bin635.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2469.45685215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47328E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.035       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    126.25       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20679E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10560E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34579E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.834       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    56.836       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96125       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2469.242     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2803 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.1496       -.34201E-07** at limit **
   2  norm          1.0844        16.278       -.35930E-05   -.19469E-04
   3  Prefactor     .10000E-03    70.885       -.16396E-04** at limit **
   4  Prefactor     .10000E-03    20.784       -.49124E-06** at limit **
   5  Prefactor     14.198        56.338        .71547E-05    .79725E-04
   6  norm          .10000E-03    .59342       -.17351E-07** at limit **
   7  norm          .10000E-03    19.617        .48846E-07** at limit **
   8  Prefactor     126.23        74.833       -.28899E-06   -.28582E-03
   9  Prefactor     55.902        79.911        .66172E-06   -.68738E-04
  10  Prefactor     .10000E-03    170.88       -.11652E-06** at limit **
  11  Prefactor     32.779        49.148       -.52513E-06    .63641E-04
  12  Prefactor     .10000E-03    124.74        .23460E-07** at limit **
  13  norm          .10000E-03    49.968        .87647E-07** at limit **
  14  Prefactor     .10000E-03    13.952       -.43239E-08** at limit **
  15  Prefactor     .10000E-03    34.770       -.98000E-07** at limit **
  16  Prefactor     .10000E-03    6.2687       -.11399E-06** at limit **
  17  Prefactor     .10000E-03    908.58       -.51214E-06** at limit **
  18  Prefactor     .10000E-03    23.883        .39594E-07** at limit **
  19  Prefactor     .10000E-03    11.524        .23433E-07** at limit **
  20  norm          12.839        31.785       -.14856E-06   -.75005E-05
  21  norm          .10000E-03    26.263        .67482E-07** at limit **
  22  norm          56.832        34.661       -.20592E-07   -.29352E-04
  23  Normalizat    .96216        .40758        .37994E-07   -.10464E-03
  24  Prefactor     .81354        .17427        .35357E-06   -.92464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.08443
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 14.1981
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 126.231
  Prefactor  = 55.9017
  Prefactor  = 0.000100004
  Prefactor  = 32.779
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.8386
  norm       = 0.0001
  norm       = 56.8319
  Normalizat = 0.962158
  Prefactor  = 0.813545
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.242     FROM HESSE     STATUS=OK           383 CALLS     3186 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1664        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0844        16.290        .19404E-02   -1.5500    
   3  Prefactor     .10000E-03    70.628        .35043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.198        57.401        .10691E-03   -1.4954    
   6  norm          .10000E-03    .59479        .37382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     126.23        75.368        .35827E-04   -1.3456    
   9  Prefactor     55.902        80.003        .53735E-04   -1.4211    
  10  Prefactor     .10000E-03    170.93        .20199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.779        49.214        .69915E-04   -1.4562    
  12  Prefactor     .10000E-03    124.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    50.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.953        .18132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3205        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    909.17        .19669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.660        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.839        31.778        .11181E-03   -1.4991    
  21  norm          .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          56.832        34.648        .53211E-04   -1.4199    
  23  Normalizat    .96216        .46829        .37715E-03   -.94309    
  24  Prefactor     .81354        .20067        .18431E-03   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25733e-09
Minuit parameter uncertainties:
  1  3.24862e-06
  2  8.40848
  3  0.000875691
  4  9.25499e-05
  5  57.1915
  6  9.51092e-07
  7  7.56049e-05
  8  75.4255
  9  80.1573
  10  0.00164761
  11  49.2754
  12  4.75358e-05
  13  0.000770468
  14  3.68379e-06
  15  0.000415842
  16  5.55675e-05
  17  0.0041887
  18  4.13338e-05
  19  0.000220593
  20  31.8197
  21  3.19674e-05
  22  34.6605
  23  0.470302
  24  0.200846
Done.

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

Extracting fit parameters...

4FGL J0626.4-4259
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  4.158e-04  1.000e-04  1.000e+04 ( 1.000e-14)
344        Index:  1.900e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  3.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  8.135e-01  2.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  9.622e-01  4.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 96.609 -42.983
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/400189/likelihoodResults_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.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) = 2469.24173185
delta logL = -0.00013659311935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2469.2415956
delta logL = -3.45797616319e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0126       1.0000          .0000       10.000    
     3 'Normalizat'    .96218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2469.242     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    91.659        .18142E-02** at limit **
   2  Index         1.9513        5.7931        .50000        .12071E-04
   3  Normalizat    .96216        .17353E-01    .37715E-03    .26994E-04
   4  Prefactor     .81354        .79186E-02    .18431E-03    .56076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100925
  Index      = 1.95135
  Normalizat = 0.962163
  Prefactor  = 0.813544
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.242     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    410.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9513        8.9230        .50000       -.65572    
   3  Normalizat    .96216        .37317E-01    .15086E-04   -.94309    
   4  Prefactor     .81354        .17030E-01    .36862E-04   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47332e-09
Minuit parameter uncertainties:
  1  0.0392372
  2  216.413
  3  0.0373184
  4  0.0170297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400189': No such file or directory
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) = 2469.24159541
delta logL = -1.54843291966e-07

Extracting fit parameters...

4FGL J0626.4-4259
   Spectrum: PowerLaw
343    Prefactor:  1.009e-04  3.924e-02  1.000e-04  1.000e+04 ( 1.000e-14)
344        Index:  1.951e+00  2.164e+02  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  3.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  8.135e-01  1.703e-02  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  9.622e-01  3.732e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 96.609 -42.983

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/400189/cmap_HighResolution_403920001_404179201_4FGL_J0626.4-4259_daily_bin635.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/400189

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-08-25 03:10:43.877095', job_id='400189', GAL2='0.81', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629886243.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='635' AND source_name='4FGL J0626.4-4259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 03:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 400189: <4FGL_J0626.4-4259_daily_bin635> in cluster <slac> Done

Job <4FGL_J0626.4-4259_daily_bin635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Aug 25 03:00:43 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 03:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 03:00:45 2021
Terminated at Wed Aug 25 03:10:44 2021
Results reported at Wed Aug 25 03:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0626.4-4259_daily_bin635 96.6095 -42.9835 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0626.4-4259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   538.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            601 sec.

The output (if any) is above this job summary.

