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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin959
RA = 185.627, Dec = 4.2389
tmin = 487900801, tmax = 488160001
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='540297', job_status='RUN', time_executed='2021-09-05 10:29:52.739892', time_epoch_executed='1630862992.74' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540297/ft1_4FGL_J1222.5+0414_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540297/ft1_4FGL_J1222.5+0414_daily_bin959.fits outfile=/scratch/kocevski/540297/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin959.fits ra=185.627 dec=4.2389 rad=12.0 tmin=487900801.0 tmax=488160001.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 7.03
user 5.76
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.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/540297/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.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.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/540297/ltcube_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.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/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits
.....................!
real 12.15
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/540297/ltcube_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits outfile=/scratch/kocevski/540297/expmap_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.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/540297/ltcube_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits
.....................!
real 192.55
user 187.34
sys 4.26

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

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits outfile=/scratch/kocevski/540297/cmap_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.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=185.627 yref=4.2389 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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits outfile=/scratch/kocevski/540297/cmap_HighResolution_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.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=185.627 yref=4.2389 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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540297/Model_4FGL_J1222.5+0414_daily_bin959.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/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits.....................!
real 43.03
user 41.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits', '/scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits', expMap='/scratch/kocevski/540297/expmap_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits', expCube='/scratch/kocevski/540297/ltcube_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540297/Model_4FGL_J1222.5+0414_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/540297/ft1_filtered_4FGL_J1222.5+0414_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/540297/ft2_4FGL_J1222.5+0414_daily_bin959.fits
Exposure map: /scratch/kocevski/540297/expmap_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits
Exposure cube: /scratch/kocevski/540297/ltcube_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540297/Model_4FGL_J1222.5+0414_daily_bin959.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) = 4305.65323757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    204.41       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1610       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8409       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.480       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    45.594       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.604       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80538       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4305.643     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3528 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.169        30.415        .92047E-06   -.44140E-04
   2  Prefactor     204.35        159.76        .23031E-05   -.22421E-04
   3  Prefactor     7.3699        11.641       -.11214E-06   -.37433E-04
   4  Prefactor     2.4758        8.6858       -.53707E-06   -.39006E-04
   5  Prefactor     .10000E-03    13.072       -.11316E-06** at limit **
   6  Prefactor     .10000E-03    11.856        .78010E-08** at limit **
   7  Prefactor     3.1277        789.99        .26756E-05   -.84165E-06
   8  Prefactor     .10000E-03    92.032       -.52911E-06** at limit **
   9  Prefactor     .10000E-03    27.121       -.25454E-07** at limit **
  10  Prefactor     .10000E-03    18.707       -.49738E-07** at limit **
  11  Prefactor     2.1622        8.0693        .72229E-05    .61459E-05
  12  norm          5.8410        3.5298       -.32213E-06   -.13608E-04
  13  norm          .10000E-03    2.4638       -.20568E-07** at limit **
  14  Prefactor     25.480        35.207        .55722E-06   -.15504E-04
  15  norm          .10000E-03    21.960        .11525E-06** at limit **
  16  Prefactor     .10000E-03    68.149       -.90569E-07** at limit **
  17  norm          2.0491        .79021       -.29419E-07   -.92726E-04
  18  Prefactor     .10000E-03    5.8572        .47031E-06** at limit **
  19  Prefactor     16.942        37.175       -.14995E-05    .16783E-04
  20  Prefactor     .10000E-03    5.2320        .68681E-08** at limit **
  21  norm          4.9740        2.3623        .22480E-07   -.16082E-04
  22  Prefactor     .10000E-03    8.1590       -.32238E-06** at limit **
  23  Prefactor     .10000E-03    22.356       -.22691E-06** at limit **
  24  Prefactor     .10000E-03    24.268        .66663E-08** at limit **
  25  norm          45.593        34.574        .69844E-06   -.30483E-04
  26  Prefactor     11.604        17.590        .38955E-06   -.29422E-05
  27  Normalizat    .80549        .26714       -.43646E-06   -.13593E-04
  28  Prefactor     1.1937        .21608       -.26148E-06    .30616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1687
  Prefactor  = 204.351
  Prefactor  = 7.36992
  Prefactor  = 2.47581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16216
  norm       = 5.84097
  norm       = 0.0001
  Prefactor  = 25.4801
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04905
  Prefactor  = 0.0001
  Prefactor  = 16.9416
  Prefactor  = 0.0001
  norm       = 4.97398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.5928
  Prefactor  = 11.6043
  Normalizat = 0.805492
  Prefactor  = 1.19375
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.643     FROM HESSE     STATUS=OK           515 CALLS     4043 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.169        30.424        .62476E-04   -1.4424    
   2  Prefactor     204.35        160.15        .14134E-03   -1.2839    
   3  Prefactor     7.3699        11.577        .14779E-03   -1.5165    
   4  Prefactor     2.4758        8.6710        .25978E-03   -1.5393    
   5  Prefactor     .10000E-03    13.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1277        783.47        .21382E-03   -1.5354    
   8  Prefactor     .10000E-03    92.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1622        8.0762        .14010E-02   -1.5414    
  12  norm          5.8410        3.5337        .91286E-04   -1.5225    
  13  norm          .10000E-03    2.5021        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.480        35.211        .79360E-04   -1.4698    
  15  norm          .10000E-03    21.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    68.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0491        .78835        .34004E-04   -1.5422    
  18  Prefactor     .10000E-03    5.8767        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.942        37.303        .97283E-04   -1.4885    
  20  Prefactor     .10000E-03    5.2447        .14658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9740        2.3609        .66020E-04   -1.5262    
  22  Prefactor     .10000E-03    8.2391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          45.593        34.592        .59378E-04   -1.4356    
  26  Prefactor     11.604        17.646        .11760E-03   -1.5027    
  27  Normalizat    .80549        .31344        .33529E-03   -.99865    
  28  Prefactor     1.1937        .25445        .23949E-03   -.86524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63721e-11
Minuit parameter uncertainties:
  1  30.4359
  2  160.498
  3  11.5809
  4  8.67535
  5  2.40603e-05
  6  1.51078e-06
  7  100.359
  8  0.000389761
  9  1.71446e-05
  10  1.50523e-05
  11  8.08031
  12  3.53382
  13  2.19222e-06
  14  35.2399
  15  7.9385e-06
  16  7.98925e-06
  17  0.788349
  18  6.74061e-05
  19  37.3548
  20  1.62555e-08
  21  2.36098
  22  5.44192e-05
  23  7.67753e-06
  24  1.43356e-05
  25  34.6075
  26  17.6541
  27  0.314144
  28  0.254714
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  2.192e-06  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.194e+00  2.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  8.055e-01  3.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540297/likelihoodResults_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.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) = 4305.6445467
delta logL = -0.00189318782941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4305.64265358
delta logL = -6.49633875582e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6914       1.0000          .0000       5.0000    
     3 'Normalizat'    .80552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+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=   4305.643     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8172        .10055E-02** at limit **
   2  alpha         2.8725        3.5591        .16522       -.88076E-08
   3  Normalizat    .80549        .29100        .33529E-03   -.17988E-03
   4  Prefactor     1.1937        .24981        .23949E-03   -.25591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.87252
  Normalizat = 0.805493
  Prefactor  = 1.19374
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.643     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5597        .20109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8725        3.3568        .66088E-02    .14957    
   3  Normalizat    .80549        .29124        .13412E-04   -.99865    
   4  Prefactor     1.1937        .25002        .47898E-04   -.86524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71509e-11
Minuit parameter uncertainties:
  1  4.87316e-06
  2  199.853
  3  0.291809
  4  0.250269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540297': 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) = 4305.64265307
delta logL = 4.45424120699e-07

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  4.873e-06  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.873e+00  1.999e+02  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.194e+00  2.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  8.055e-01  2.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.627 4.239

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/540297/cmap_HighResolution_487900801_488160001_4FGL_J1222.5+0414_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-05 10:41:02.618208', job_id='540297', GAL2='1.19', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630863662.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='959' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 540297: <4FGL_J1222.5+0414_daily_bin959> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin959> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:43 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:25:44 2021
Terminated at Sun Sep  5 10:41:03 2021
Results reported at Sun Sep  5 10:41:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin959 185.627 4.2389 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

