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


Performing analysis on: 4FGL_J0022.5+0608_daily_bin1600
RA = 5.6376, Dec = 6.1343
tmin = 654048001, tmax = 654307201
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='253256', job_status='RUN', time_executed='2021-09-26 00:06:08.684669', time_epoch_executed='1632639968.68' WHERE source_name='4FGL J0022.5+0608' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253256

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253256/ft1_4FGL_J0022.5+0608_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253256/ft1_4FGL_J0022.5+0608_daily_bin1600.fits outfile=/scratch/kocevski/253256/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1600.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=654048001.0 tmax=654307201.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.57
user 3.36
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.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/253256/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.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 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/253256/ltcube_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.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/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits
.....................!
real 13.43
user 12.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/253256/ltcube_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits outfile=/scratch/kocevski/253256/expmap_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.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/253256/ltcube_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits
.....................!
real 192.63
user 186.37
sys 5.52

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

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits outfile=/scratch/kocevski/253256/cmap_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.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=5.6376 yref=6.1343 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits outfile=/scratch/kocevski/253256/cmap_HighResolution_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.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=5.6376 yref=6.1343 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253256/Model_4FGL_J0022.5+0608_daily_bin1600.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...
/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits.....................!
real 64.98
user 63.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits', '/scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits', expMap='/scratch/kocevski/253256/expmap_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits', expCube='/scratch/kocevski/253256/ltcube_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253256/Model_4FGL_J0022.5+0608_daily_bin1600.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253256/ft1_filtered_4FGL_J0022.5+0608_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/253256/ft2_4FGL_J0022.5+0608_daily_bin1600.fits
Exposure map: /scratch/kocevski/253256/expmap_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits
Exposure cube: /scratch/kocevski/253256/ltcube_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253256/Model_4FGL_J0022.5+0608_daily_bin1600.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) = 5876.39912228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74281       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7702       1.0000         .10000E-03   10000.    
     4 'norm      '    11.446       1.0000         .10000E-03   10000.    
     5 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.482       1.0000         .10000E-03   10000.    
     8 'norm      '    10.884       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62463       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.033       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .72869       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5876.388     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1788 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.546       -.28755E-06** at limit **
   2  Prefactor     .75529        14.800        .87342E-05    .16759E-04
   3  norm          2.7713        3.4677        .12217E-06   -.33270E-03
   4  norm          11.443        5.6773       -.11377E-05   -.86186E-03
   5  norm          .10003E-03    4.0042        .20449E-05** at limit **
   6  Prefactor     .10000E-03    10.451       -.77473E-07** at limit **
   7  norm          26.482        13.516       -.63336E-07   -.16335E-03
   8  norm          10.884        9.3825        .40960E-07    .15918E-04
   9  Prefactor     12.333        11.724       -.80449E-08    .91278E-04
  10  Prefactor     .10001E-03    4.5148       -.11861E-05** at limit **
  11  Prefactor     .61711        2.3652        .56740E-06   -.26847E-03
  12  norm          .10000E-03    5.5392        .45853E-08** at limit **
  13  Prefactor     .10003E-03    57.437       -.32889E-05** at limit **
  14  Prefactor     .10002E-03    48.721        .29276E-05** at limit **
  15  Prefactor     26.741        25.602        .26733E-06   -.11997E-03
  16  Prefactor     17.033        16.918       -.10170E-06   -.70361E-04
  17  Normalizat    .72863        .20261       -.10146E-05   -.28984E-03
  18  Prefactor     1.0520        .14017       -.81055E-07   -.35517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.755288
  norm       = 2.77125
  norm       = 11.4428
  norm       = 0.000100031
  Prefactor  = 0.0001
  norm       = 26.482
  norm       = 10.8842
  Prefactor  = 12.3328
  Prefactor  = 0.000100007
  Prefactor  = 0.617106
  norm       = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.000100021
  Prefactor  = 26.7406
  Prefactor  = 17.0333
  Normalizat = 0.728632
  Prefactor  = 1.05198
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.388     FROM HESSE     STATUS=OK           250 CALLS     2038 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75529        15.661        .48900E-03   -1.5534    
   3  norm          2.7713        3.4448        .14553E-03   -1.5375    
   4  norm          11.443        5.7555        .11412E-03   -1.5031    
   5  norm          .10003E-03    10.794        .27122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.482        13.502        .77847E-04   -1.4678    
   8  norm          10.884        9.3848        .12144E-03   -1.5048    
   9  Prefactor     12.333        11.639        .11406E-03   -1.5005    
  10  Prefactor     .10001E-03    10.381        .30348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61711        3.7096        .21149E-02   -1.5551    
  12  norm          .10000E-03    5.5425        .17621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    59.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    50.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.741        25.606        .77463E-04   -1.4673    
  16  Prefactor     17.033        16.903        .97045E-04   -1.4882    
  17  Normalizat    .72863        .22508        .32219E-03   -1.0277    
  18  Prefactor     1.0520        .15866        .20042E-03   -.91016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33478e-08
Minuit parameter uncertainties:
  1  9.94868e-05
  2  6.88024
  3  3.44508
  4  5.75576
  5  0.00116025
  6  4.78341e-05
  7  13.5037
  8  9.38605
  9  11.6414
  10  0.000528551
  11  3.02606
  12  4.56504e-07
  13  0.00247307
  14  0.00205102
  15  25.6165
  16  16.9076
  17  0.225363
  18  0.158734
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.000e-04  1.160e-03  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.052e+00  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  7.286e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 5.638 6.134
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253256/likelihoodResults_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.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) = 5876.38877797
delta logL = -0.000438824783487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5876.38829247
delta logL = 4.66737528768e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21694E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2074       1.0000          .0000       5.0000    
     3 'Normalizat'    .72922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5875.074     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      268 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68035        7.1499        .90844E-02    .16004E-02
   2  alpha         4.0908        4.4269        .31905        .72883E-04
   3  Normalizat    .60106        .55757E-01    .79510E-01   -.10122E-03
   4  Prefactor     1.0994        .41186E-01    .39819E-01   -.40148E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.680346
  alpha      = 4.09083
  Normalizat = 0.601061
  Prefactor  = 1.09937
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.074     FROM HESSE     STATUS=OK            29 CALLS      297 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68035        1.4386        .41026E-04   -1.5543    
   2  alpha         4.0908        1.1081        .13971E-02    .68973    
   3  Normalizat    .60106        .22514        .35208E-03   -1.0794    
   4  Prefactor     1.0994        .16022        .19635E-03   -.89487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61193e-10
Minuit parameter uncertainties:
  1  1.43869
  2  1.18041
  3  0.225482
  4  0.16029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253256': 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): 0
logL (Free Index) = 5875.07366579
delta logL = 1.31467335087

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  6.803e-01  1.439e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  4.091e+00  1.180e+00  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.099e+00  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  6.011e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 5.638 6.134
Photon Index (Free Index): 4.09 +/- 1.18
Photon Flux (Free Index): 1.18e-07 +/- 8.44e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.26e-05

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/253256/cmap_HighResolution_654048001_654307201_4FGL_J0022.5+0608_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='1.31e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-26 00:15:32.087278', photon_index_error2='1.18', photon_index2='4.09', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.38e-08', energy_flux_error2='1.26e-05', EG='0.73', time_epoch_completed='1632640532.09', return_code='0', job_id='253256', GAL2='1.10', EG2='0.60', return_code2='0', photon_flux_error2='8.44e-08', ts2='2.93', photon_index='2.07' WHERE bin_id='1600' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 253256: <4FGL_J0022.5+0608_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1600> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 00:00:24 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:02:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:02:51 2021
Terminated at Sun Sep 26 00:15:32 2021
Results reported at Sun Sep 26 00:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1600 5.6376 6.1343 654048001 654307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0022.5+0608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   550.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            908 sec.

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

