/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 99 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 = 7414
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin182
RA = 185.627, Dec = 4.2389
tmin = 286502401, tmax = 286761601
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='535337', job_status='RUN', time_executed='2021-09-05 10:12:15.965661', time_epoch_executed='1630861935.97' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535337/ft1_4FGL_J1222.5+0414_daily_bin182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535337/ft1_4FGL_J1222.5+0414_daily_bin182.fits outfile=/scratch/kocevski/535337/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin182.fits ra=185.627 dec=4.2389 rad=12.0 tmin=286502401.0 tmax=286761601.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 4.50
user 4.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.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/535337/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin182.fits evtable="EVENTS" outfile="/scratch/kocevski/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.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.49
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits" evtable="EVENTS" scfile=/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits sctable="SC_DATA" outfile=/scratch/kocevski/535337/ltcube_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.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/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits
.....................!
real 12.61
user 12.14
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/535337/ltcube_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits outfile=/scratch/kocevski/535337/expmap_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.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/535337/ltcube_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits
.....................!
real 190.70
user 186.34
sys 3.95

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/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits scfile=/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits outfile=/scratch/kocevski/535337/cmap_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits scfile=/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits outfile=/scratch/kocevski/535337/cmap_HighResolution_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits', '/scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits', expMap='/scratch/kocevski/535337/expmap_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits', expCube='/scratch/kocevski/535337/ltcube_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/535337/Model_4FGL_J1222.5+0414_daily_bin182.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/535337/ft1_filtered_4FGL_J1222.5+0414_daily_bin182.fits
Spacecraft file(s): /scratch/kocevski/535337/ft2_4FGL_J1222.5+0414_daily_bin182.fits
Exposure map: /scratch/kocevski/535337/expmap_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits
Exposure cube: /scratch/kocevski/535337/ltcube_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/535337/Model_4FGL_J1222.5+0414_daily_bin182.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) = 6321.70264682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3440       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1348       1.0000         .10000E-03   10000.    
    13 'norm      '    18.422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .75404E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4467       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.764       1.0000         .10000E-03   10000.    
    25 'norm      '    18.605       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5080       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73997       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=   6321.683     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3491 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1283        .42576E-08** at limit **
   2  Prefactor     .10000E-03    33.300        .10776E-05** at limit **
   3  Prefactor     .10000E-03    8.5985        .14317E-05** at limit **
   4  Prefactor     .10000E-03    10.871        .35686E-06** at limit **
   5  Prefactor     25.936        18.862        .32195E-06    .16235E-04
   6  Prefactor     3.4998        15.548        .85693E-05   -.45662E-03
   7  Prefactor     .10000E-03    142.58        .86247E-06** at limit **
   8  Prefactor     .10000E-03    14.502        .97738E-06** at limit **
   9  Prefactor     .10000E-03    15.233       -.16938E-05** at limit **
  10  Prefactor     17.922        23.417        .27347E-06    .24877E-04
  11  Prefactor     2.3505        46.870       -.30629E-06   -.31652E-04
  12  norm          2.1331        4.5146        .18736E-06   -.10557E-03
  13  norm          18.424        5.9096       -.15364E-06    .61455E-03
  14  Prefactor     .10000E-03    21.359        .84100E-06** at limit **
  15  norm          .10016E-03    279.42       -.24256E-04** at limit **
  16  Prefactor     .10001E-03    53.819        .35604E-05** at limit **
  17  norm          5.0233        1.0213       -.31235E-08    .89003E-03
  18  Prefactor     .10000E-03    4.8934        .94921E-07** at limit **
  19  Prefactor     .10000E-03    14.785        .22012E-06** at limit **
  20  Prefactor     .10000E-03    9.0445       -.13844E-05** at limit **
  21  norm          4.4466        2.1539        .31699E-07    .33654E-04
  22  Prefactor     .10000E-03    5.0065        .20376E-08** at limit **
  23  Prefactor     .10001E-03    40.238       -.41889E-05** at limit **
  24  Prefactor     58.778        56.890        .30147E-05    .21073E-03
  25  norm          18.605        28.649        .24208E-06    .10069E-04
  26  Prefactor     .10000E-03    7.8746        .55603E-09** at limit **
  27  Normalizat    1.5081        .22804       -.46026E-06    .10532E-03
  28  Prefactor     .73993        .17892       -.61158E-06    .72116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.9362
  Prefactor  = 3.49979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.9222
  Prefactor  = 2.35045
  norm       = 2.13308
  norm       = 18.4245
  Prefactor  = 0.0001
  norm       = 0.000100164
  Prefactor  = 0.000100006
  norm       = 5.02329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.44661
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 58.7776
  norm       = 18.6053
  Prefactor  = 0.0001
  Normalizat = 1.50805
  Prefactor  = 0.739927
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.683     FROM HESSE     STATUS=OK           511 CALLS     4002 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.936        18.976        .78655E-04   -1.4689    
   6  Prefactor     3.4998        18.857        .10806E-02   -1.5334    
   7  Prefactor     .10000E-03    142.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.922        23.410        .94598E-04   -1.4861    
  11  Prefactor     2.3505        38.859        .26778E-03   -1.5401    
  12  norm          2.1331        4.1016        .16481E-03   -1.5416    
  13  norm          18.424        5.8965        .93314E-04   -1.4849    
  14  Prefactor     .10000E-03    21.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10016E-03    304.54        .41874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    54.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0233        1.0233        .31987E-04   -1.5260    
  18  Prefactor     .10000E-03    4.9088        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4466        2.1526        .76946E-04   -1.5286    
  22  Prefactor     .10000E-03    5.0335        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    41.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     58.778        57.599        .52336E-04   -1.4173    
  25  norm          18.605        28.650        .92856E-04   -1.4845    
  26  Prefactor     .10000E-03    7.9095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5081        .27176        .27599E-03   -.77552    
  28  Prefactor     .73993        .21083        .30657E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99944e-09
Minuit parameter uncertainties:
  1  1.01279e-06
  2  0.000261688
  3  0.000165938
  4  4.82556e-05
  5  18.9809
  6  16.2554
  7  0.000344033
  8  0.000158686
  9  0.000270691
  10  23.4222
  11  19.1283
  12  4.10215
  13  5.89666
  14  0.000163046
  15  0.0141899
  16  0.00111475
  17  1.02333
  18  6.42484e-06
  19  2.78458e-05
  20  0.000166917
  21  2.1526
  22  2.00268e-06
  23  0.0011172
  24  57.6539
  25  28.671
  26  5.65167e-05
  27  0.272022
  28  0.211061
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.842e+01  5.897e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  7.399e-01  2.111e-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:  1.508e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.30
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 2.84e-07 +/- 9.07e-08
Energy Flux (Fixed Index): 6.55e-05 +/- 2.10e-05

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) = 6321.65170718
delta logL = 0.031173950063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.6491183
delta logL = 0.0337628264442

Fit tolerance = 1e-08

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

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

 FCN=   6321.649     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      200 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.682        6.9149        .23166E-02    .11288E-02
   2  alpha         2.5912        .41578        .24475        .25215E-04
   3  Normalizat    1.5202        .22142        .62225E-01   -.75125E-04
   4  Prefactor     .73233        .17839        .69592E-01    .51801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6819
  alpha      = 2.59117
  Normalizat = 1.5202
  Prefactor  = 0.732331
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.649     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.682        5.6987        .92664E-04   -1.4843    
   2  alpha         2.5912        .35838        .10360E-01    .36477E-01
   3  Normalizat    1.5202        .26255        .27520E-03   -.77212    
   4  Prefactor     .73233        .20972        .30796E-03   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92308e-10
Minuit parameter uncertainties:
  1  5.69888
  2  0.359623
  3  0.262788
  4  0.209948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535337': 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) = 6321.6491183
delta logL = 0.0337628266752

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.868e+01  5.699e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.591e+00  3.596e-01  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:  7.323e-01  2.099e-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:  1.520e+00  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.34
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.59 +/- 0.36
Photon Flux (Free Index): 2.71e-07 +/- 9.49e-08
Energy Flux (Free Index): 6.64e-05 +/- 2.04e-05

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/535337/cmap_HighResolution_286502401_286761601_4FGL_J1222.5+0414_daily_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-07', energy_flux2='6.64e-05', photon_flux_error='9.07e-08', dlogl='3.38e-02', energy_flux='6.55e-05', photon_flux2='2.71e-07', job_status='DONE', time_completed='2021-09-05 10:25:02.127787', photon_index_error2='0.36', photon_index2='2.59', ts='21.30', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.51', time_epoch_completed='1630862702.13', return_code='0', job_id='535337', GAL2='0.73', EG2='1.52', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='9.49e-08', ts2='22.34', photon_index='2.69' WHERE bin_id='182' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:25:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 535337: <4FGL_J1222.5+0414_daily_bin182> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin182> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 10:10:22 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:10:23 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:10:23 2021
Terminated at Sun Sep  5 10:25:02 2021
Results reported at Sun Sep  5 10:25:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin182 185.627 4.2389 286502401 286761601 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 :                                   761.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

