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


Performing analysis on: 4FGL_J0022.5+0608_daily_bin1658
RA = 5.6376, Dec = 6.1343
tmin = 669081601, tmax = 669340801
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='694708', job_status='RUN', time_executed='2022-03-19 00:09:05.640446', time_epoch_executed='1647673745.64' WHERE source_name='4FGL J0022.5+0608' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694708/ft1_4FGL_J0022.5+0608_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694708/ft1_4FGL_J0022.5+0608_daily_bin1658.fits outfile=/scratch/kocevski/694708/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1658.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=669081601.0 tmax=669340801.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.47
user 5.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.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/694708/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.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.50
user 0.35
sys 0.15
Number of photons that survived the gtmktime cut: 611

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/694708/ltcube_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.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/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits
.....................!
real 13.22
user 12.78
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/694708/ltcube_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits outfile=/scratch/kocevski/694708/expmap_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.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/694708/ltcube_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits
.....................!
real 191.24
user 186.07
sys 4.80

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/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits scfile=/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits outfile=/scratch/kocevski/694708/cmap_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits scfile=/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits outfile=/scratch/kocevski/694708/cmap_HighResolution_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits', '/scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits', expMap='/scratch/kocevski/694708/expmap_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits', expCube='/scratch/kocevski/694708/ltcube_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/694708/Model_4FGL_J0022.5+0608_daily_bin1658.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/694708/ft1_filtered_4FGL_J0022.5+0608_daily_bin1658.fits
Spacecraft file(s): /scratch/kocevski/694708/ft2_4FGL_J0022.5+0608_daily_bin1658.fits
Exposure map: /scratch/kocevski/694708/expmap_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits
Exposure cube: /scratch/kocevski/694708/ltcube_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/694708/Model_4FGL_J0022.5+0608_daily_bin1658.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) = 6507.54762754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.6539       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30690E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4038       1.0000         .10000E-03   10000.    
    12 'norm      '    20.084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1539.3       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.834       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .70042       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3836       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=   6507.535     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1777 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.491        24.410       -.48082E-06    .42512E-05
   2  Prefactor     .10000E-03    4.9586       -.90715E-07** at limit **
   3  norm          .10000E-03    1.1508       -.51365E-07** at limit **
   4  norm          5.6538        4.5796       -.14663E-06    .67221E-05
   5  norm          1.5329        4.5326        .67771E-06    .13650E-04
   6  Prefactor     .10000E-03    4.5731        .80475E-07** at limit **
   7  norm          .10000E-03    8.2901       -.26423E-06** at limit **
   8  norm          10.704        11.688       -.12574E-06    .14824E-04
   9  Prefactor     2.6184        29.899        .35391E-05    .42173E-05
  10  Prefactor     .10000E-03    5.7852       -.55367E-06** at limit **
  11  Prefactor     2.4040        2.8593       -.16707E-07   -.21397E-04
  12  norm          20.084        14.290        .18732E-07    .22372E-05
  13  Prefactor     1539.2        256.35        .18402E-05    .70566E-05
  14  Prefactor     .10000E-03    19.021       -.27577E-06** at limit **
  15  Prefactor     .10000E-03    9.7103        .53858E-06** at limit **
  16  Prefactor     79.821        35.675        .76835E-06    .13390E-04
  17  Normalizat    .70039        .24042       -.45295E-06    .43283E-04
  18  Prefactor     1.3837        .17300        .74474E-06    .37833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4912
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.65382
  norm       = 1.53286
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7039
  Prefactor  = 2.61844
  Prefactor  = 0.0001
  Prefactor  = 2.40398
  norm       = 20.0836
  Prefactor  = 1539.21
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.821
  Normalizat = 0.700387
  Prefactor  = 1.38367
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.535     FROM HESSE     STATUS=OK           246 CALLS     2023 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.491        24.411        .54341E-04   -1.4230    
   2  Prefactor     .10000E-03    4.9747        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1572        .84399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.6538        4.5745        .15049E-03   -1.5232    
   5  norm          1.5329        4.6016        .14349E-02   -1.5460    
   6  Prefactor     .10000E-03    4.5843        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.4255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.704        11.692        .12245E-03   -1.5054    
   9  Prefactor     2.6184        30.408        .25359E-03   -1.5384    
  10  Prefactor     .10000E-03    13.991        .35295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4040        2.8450        .14243E-03   -1.5398    
  12  norm          20.084        14.292        .89373E-04   -1.4811    
  13  Prefactor     1539.2        255.50        .55420E-04   -.76447    
  14  Prefactor     .10000E-03    19.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     79.821        35.596        .44948E-04   -1.3919    
  17  Normalizat    .70039        .27206        .40086E-03   -1.0388    
  18  Prefactor     1.3837        .19714        .22121E-03   -.80852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24149e-11
Minuit parameter uncertainties:
  1  24.4155
  2  3.26093e-06
  3  8.11424e-07
  4  4.57477
  5  4.6027
  6  1.42863e-06
  7  4.29088e-06
  8  11.6942
  9  17.8572
  10  1.60761e-05
  11  2.84518
  12  14.294
  13  255.715
  14  1.04331e-05
  15  4.83797e-06
  16  35.6056
  17  0.272588
  18  0.197245
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.533e+00  4.603e+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

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.384e+00  1.972e-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.004e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/694708/likelihoodResults_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6507.53539693
delta logL = 9.46844011196e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6507.53539679
delta logL = 1.08604581328e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5329       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0688       1.0000          .0000       5.0000    
     3 'Normalizat'    .70038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3837       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6507.535     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      247 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5339        4.7782        .28709E-03    .24156E-05
   2  alpha         2.0684        1.3800        .34683E-01    .12213E-05
   3  Normalizat    .70041        .25972        .40086E-03   -.19569E-05
   4  Prefactor     1.3837        .19576        .22121E-03   -.31350E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53392
  alpha      = 2.06839
  Normalizat = 0.700414
  Prefactor  = 1.38366
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.535     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .24E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5339        4.6472        .11483E-04   -1.5460    
   2  alpha         2.0684        1.3481        .13873E-02   -.17351    
   3  Normalizat    .70041        .25990        .16034E-04   -1.0388    
   4  Prefactor     1.3837        .19582        .88483E-05   -.80852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43487e-14
Minuit parameter uncertainties:
  1  4.64827
  2  1.42659
  3  0.260356
  4  0.195929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694708': 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) = 6507.53539673
delta logL = 1.14552949526e-06

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.534e+00  4.648e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.068e+00  1.427e+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.384e+00  1.959e-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.004e-01  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 5.638 6.134

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/694708/cmap_HighResolution_669081601_669340801_4FGL_J0022.5+0608_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2022-03-19 00:19:03.665384', job_id='694708', GAL2='1.38', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1647674343.67', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.15e-06', ts2='0.13', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1658' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 00:19:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 694702: <4FGL_J0022.5+0608_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:27 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:05:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:05:42 2022
Terminated at Sat Mar 19 00:18:10 2022
Results reported at Sat Mar 19 00:18:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1658 5.6376 6.1343 669081601 669340801 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 :                                   590.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             257.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            763 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 694708: <4FGL_J0022.5+0608_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1658> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:27 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:05:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:05:43 2022
Terminated at Sat Mar 19 00:19:04 2022
Results reported at Sat Mar 19 00:19:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1658 5.6376 6.1343 669081601 669340801 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 :                                   599.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            817 sec.

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

