/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 provieDone.


Performing analysis on: 4FGL_J0022.5+0608_daily_bin1646
RA = 5.6376, Dec = 6.1343
tmin = 665971201, tmax = 666230401
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='667333', job_status='RUN', time_executed='2022-02-11 00:05:58.539639', time_epoch_executed='1644566758.54' WHERE source_name='4FGL J0022.5+0608' and cadence='daily' and bin_id='1646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667333/ft1_4FGL_J0022.5+0608_daily_bin1646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667333/ft1_4FGL_J0022.5+0608_daily_bin1646.fits outfile=/scratch/kocevski/667333/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1646.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=665971201.0 tmax=666230401.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.31
user 4.41
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.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/667333/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1646.fits evtable="EVENTS" outfile="/scratch/kocevski/667333/ft1_filtered_4FGL_J0022.5+0608_daily_bin1646.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 3.02
user 0.40
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667333/ft1_filtered_4FGL_J0022.5+0608_daily_bin1646.fits" evtable="EVENTS" scfile=/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits sctable="SC_DATA" outfile=/scratch/kocevski/667333/ltcube_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.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/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits
.....................!
real 20.95
user 19.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667333/ft1_filtered_4FGL_J0022.5+0608_daily_bin1646.fits evtable="EVENTS" scfile=/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits sctable="SC_DATA" expcube=/scratch/kocevski/667333/ltcube_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.fits outfile=/scratch/kocevski/667333/expmap_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.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/667333/ltcube_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.fits
.....................!
real 198.44
user 190.88
sys 4.67

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/667333/ft1_filtered_4FGL_J0022.5+0608_daily_bin1646.fits scfile=/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits outfile=/scratch/kocevski/667333/cmap_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.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 2.00
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667333/ft1_filtered_4FGL_J0022.5+0608_daily_bin1646.fits scfile=/scratch/kocevski/667333/ft2_4FGL_J0022.5+0608_daily_bin1646.fits outfile=/scratch/kocevski/667333/cmap_HighResolution_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.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 1.10
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5460       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0620       1.0000         .10000E-03   10000.    
     4 'norm      '    22.782       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.351       1.0000         .10000E-03   10000.    
     8 'norm      '    .19701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12674E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    273.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89686       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=   6987.008     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1865 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.043        16.739        .18216E-06    .20236E-05
   2  Prefactor     6.5451        8.1479        .12084E-05    .24471E-04
   3  norm          4.0616        2.8822        .13140E-07    .25954E-05
   4  norm          22.781        6.9487       -.23424E-06    .80933E-06
   5  norm          .10000E-03    2.9501       -.58211E-07** at limit **
   6  Prefactor     .10000E-03    4.0606       -.27701E-07** at limit **
   7  norm          11.349        7.8470       -.91146E-07   -.18543E-05
   8  norm          .10712        10.902       -.19533E-05    .18912E-03
   9  Prefactor     15.539        14.744        .12330E-05    .87475E-04
  10  Prefactor     3.9706        6.3311        .25478E-05    .76692E-04
  11  Prefactor     .10000E-03    1.6122        .40573E-06** at limit **
  12  norm          20.423        15.740       -.33159E-06    .47929E-05
  13  Prefactor     273.35        131.12       -.29880E-05   -.90342E-05
  14  Prefactor     .10000E-03    14.278        .63424E-07** at limit **
  15  Prefactor     7.0693        25.091       -.13678E-05    .48574E-05
  16  Prefactor     .10000E-03    20.872       -.11663E-06** at limit **
  17  Normalizat    1.1166        .20824       -.54405E-06    .42853E-04
  18  Prefactor     .89705        .14295        .26458E-06    .14081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0428
  Prefactor  = 6.54506
  norm       = 4.06159
  norm       = 22.7811
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3486
  norm       = 0.107116
  Prefactor  = 15.5389
  Prefactor  = 3.97057
  Prefactor  = 0.0001
  norm       = 20.4234
  Prefactor  = 273.352
  Prefactor  = 0.0001
  Prefactor  = 7.06926
  Prefactor  = 0.0001
  Normalizat = 1.11657
  Prefactor  = 0.897055
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.008     FROM HESSE     STATUS=OK           262 CALLS     2127 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.043        16.722        .91773E-04   -1.4835    
   2  Prefactor     6.5451        8.1512        .78427E-03   -1.5196    
   3  norm          4.0616        2.8747        .10709E-03   -1.5305    
   4  norm          22.781        6.9574        .83919E-04   -1.4753    
   5  norm          .10000E-03    3.0613        .28030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0721        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.349        7.8500        .11891E-03   -1.5034    
   8  norm          .10712        13.413        .80678E-01   -1.5643    
   9  Prefactor     15.539        14.831        .10163E-03   -1.4919    
  10  Prefactor     3.9706        6.3555        .10118E-02   -1.5309    
  11  Prefactor     .10000E-03    3.4598        .20305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.423        15.740        .88620E-04   -1.4804    
  13  Prefactor     273.35        131.50        .12266E-03   -1.2386    
  14  Prefactor     .10000E-03    14.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0693        25.071        .14973E-03   -1.5176    
  16  Prefactor     .10000E-03    21.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1166        .24233        .30320E-03   -.89221    
  18  Prefactor     .89705        .16777        .23727E-03   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3228e-10
Minuit parameter uncertainties:
  1  16.7263
  2  8.15257
  3  2.87476
  4  6.9576
  5  4.01351e-06
  6  1.8428e-06
  7  7.85067
  8  2.39674
  9  14.8348
  10  6.35663
  11  1.23929e-06
  12  15.743
  13  131.643
  14  7.3841e-06
  15  25.1081
  16  1.83258e-05
  17  0.242574
  18  0.167868
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.000e-04  4.014e-06  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:  8.971e-01  1.679e-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:  1.117e+00  2.426e-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: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667333/likelihoodResults_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.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) = 6987.00940366
delta logL = -0.00155863193868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6987.00784511
delta logL = -9.04237822397e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0767       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89707       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6987.008     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6173        .28062E-03** at limit **
   2  alpha         2.1502        2.7366        .16769       -.81355E-08
   3  Normalizat    1.1166        .23073        .30320E-03   -.56618E-04
   4  Prefactor     .89705        .16477        .23727E-03   -.74412E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1502
  Normalizat = 1.11657
  Prefactor  = 0.897054
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.008     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0924        .56124E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1502        2.7309        .67076E-02   -.14038    
   3  Normalizat    1.1166        .23097        .12128E-04   -.89221    
   4  Prefactor     .89705        .16494        .94907E-05   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16919e-12
Minuit parameter uncertainties:
  1  1.11208e-06
  2  139.523
  3  0.231184
  4  0.165034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667333': 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) = 6987.00784486
delta logL = 1.6373633116e-07

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.000e-04  1.112e-06  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.150e+00  1.395e+02  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:  8.971e-01  1.650e-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:  1.117e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/667333/cmap_HighResolution_665971201_666230401_4FGL_J0022.5+0608_daily_bin1646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2022-02-11 00:17:38.700161', job_id='667333', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1644567458.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1646' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 11 00:17:38 PST 2022

UCCESS', return_code='0', GAL='0.90', dlogl='1.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1646' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 11 00:16:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 667365: <4FGL_J0022.5+0608_daily_bin1646> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1646> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Feb 11 00:05:25 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 11 00:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 11 00:05:28 2022
Terminated at Fri Feb 11 00:16:28 2022
Results reported at Fri Feb 11 00:16:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1646 5.6376 6.1343 665971201 666230401 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 :                                   474.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 667333: <4FGL_J0022.5+0608_daily_bin1646> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1646> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 11 00:05:22 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 11 00:05:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 11 00:05:24 2022
Terminated at Fri Feb 11 00:17:39 2022
Results reported at Fri Feb 11 00:17:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1646 5.6376 6.1343 665971201 666230401 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

