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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1028
RA = 186.228, Dec = 21.3814
tmin = 505785601, tmax = 506044801
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='601684', job_status='RUN', time_executed='2021-09-05 13:32:41.547589', time_epoch_executed='1630873961.55' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601684

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601684/ft1_4FGL_J1224.9+2122_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601684/ft1_4FGL_J1224.9+2122_daily_bin1028.fits outfile=/scratch/kocevski/601684/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1028.fits ra=186.228 dec=21.3814 rad=12.0 tmin=505785601.0 tmax=506044801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.98
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.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/601684/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.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.76
user 0.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/601684/ltcube_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.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/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits
.....................!
real 12.10
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/601684/ltcube_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits outfile=/scratch/kocevski/601684/expmap_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.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/601684/ltcube_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits
.....................!
real 190.05
user 185.20
sys 4.05

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits outfile=/scratch/kocevski/601684/cmap_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.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=186.228 yref=21.3814 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits outfile=/scratch/kocevski/601684/cmap_HighResolution_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.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=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601684/Model_4FGL_J1224.9+2122_daily_bin1028.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/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits.....................!
real 56.20
user 54.35
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits', '/scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits', expMap='/scratch/kocevski/601684/expmap_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits', expCube='/scratch/kocevski/601684/ltcube_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601684/Model_4FGL_J1224.9+2122_daily_bin1028.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601684/ft1_filtered_4FGL_J1224.9+2122_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/601684/ft2_4FGL_J1224.9+2122_daily_bin1028.fits
Exposure map: /scratch/kocevski/601684/expmap_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits
Exposure cube: /scratch/kocevski/601684/ltcube_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601684/Model_4FGL_J1224.9+2122_daily_bin1028.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) = 6147.52295181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26657E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1962       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0560       1.0000         .10000E-03   10000.    
    10 'norm      '    25.432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .33222E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1878       1.0000         .10000E-03   10000.    
    23 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .40161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6147.392     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2539 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0492        32.420        .82605E-06    .57949E-05
   2  Prefactor     .10000E-03    10.793        .38050E-06** at limit **
   3  Prefactor     .10000E-03    .98073       -.43086E-07** at limit **
   4  norm          4.1971        1.5262        .14791E-08   -.41893E-04
   5  Prefactor     .10000E-03    6.9747       -.26343E-06** at limit **
   6  Prefactor     1.2140        2.8779        .16048E-06   -.18314E-03
   7  Prefactor     .10000E-03    79.453       -.11878E-05** at limit **
   8  Prefactor     .33923        2.3484        .15571E-05   -.23012E-03
   9  Prefactor     3.0553        2.7227       -.23310E-06   -.24869E-03
  10  norm          25.434        5.0526        .18771E-07    .90737E-05
  11  Prefactor     1.6176        1.7856        .10296E-07   -.14832E-05
  12  Prefactor     .10000E-03    1.2864       -.34566E-08** at limit **
  13  Prefactor     .10000E-03    2.3570       -.58537E-07** at limit **
  14  norm          .10000E-03    .14701       -.89057E-08** at limit **
  15  norm          7.6532        4.4123       -.22802E-06   -.20145E-03
  16  Prefactor     .10000E-03    7.3586        .56189E-06** at limit **
  17  Prefactor     .10000E-03    5.2552       -.30977E-07** at limit **
  18  Prefactor     .10000E-03    9.3270       -.61358E-06** at limit **
  19  Prefactor     .10000E-03    18.268        .10115E-05** at limit **
  20  Prefactor     .10000E-03    1.8355        .55605E-08** at limit **
  21  Prefactor     .10000E-03    32.121        .20671E-05** at limit **
  22  norm          6.1887        3.2654        .17533E-06    .22702E-03
  23  norm          .10000E-03    21.709       -.21539E-05** at limit **
  24  Normalizat    1.6383        .19027       -.31146E-06   -.78962E-04
  25  Prefactor     .40176        .17923        .14041E-06   -.59212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19706
  Prefactor  = 0.0001
  Prefactor  = 1.21404
  Prefactor  = 0.0001
  Prefactor  = 0.339228
  Prefactor  = 3.05534
  norm       = 25.4344
  Prefactor  = 1.61758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.65322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.18865
  norm       = 0.0001
  Normalizat = 1.6383
  Prefactor  = 0.401764
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.392     FROM HESSE     STATUS=OK           433 CALLS     2972 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0492        29.171        .23127E-03   -1.5359    
   2  Prefactor     .10000E-03    11.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3374        .14109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1971        1.5250        .55428E-04   -1.5298    
   5  Prefactor     .10000E-03    6.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2140        2.8034        .19401E-03   -1.5488    
   7  Prefactor     .10000E-03    79.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33923        2.4787        .22999E-03   -1.5591    
   9  Prefactor     3.0553        2.7132        .11443E-03   -1.5358    
  10  norm          25.434        5.0384        .73542E-04   -1.4699    
  11  Prefactor     1.6176        1.7779        .10415E-03   -1.5454    
  12  Prefactor     .10000E-03    1.3136        .17333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3645        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .17587        .92866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6532        4.4473        .12147E-03   -1.5155    
  16  Prefactor     .10000E-03    7.4699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2808        .17551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8382        .10373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.1887        3.2906        .10070E-03   -1.5210    
  23  norm          .10000E-03    22.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6383        .21231        .20934E-03   -.73963    
  25  Prefactor     .40176        .19689        .38545E-03   -1.1672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37262e-10
Minuit parameter uncertainties:
  1  18.8742
  2  1.51672e-05
  3  1.39126e-05
  4  1.52498
  5  1.31178e-05
  6  2.80365
  7  0.000201825
  8  1.8338
  9  2.71334
  10  5.03848
  11  1.77796
  12  1.49548e-06
  13  2.36897e-06
  14  1.05206e-05
  15  4.44748
  16  2.73169e-05
  17  2.13352e-06
  18  3.75409e-05
  19  8.60902e-05
  20  3.04361e-07
  21  0.000154889
  22  3.29066
  23  0.000196957
  24  0.212423
  25  0.197219
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.052e-05  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.018e-01  1.972e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.638e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601684/likelihoodResults_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.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) = 6147.08077747
delta logL = 0.311466939071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6147.07851252
delta logL = 0.313731893707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21852E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+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=   6147.079     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      444 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21831E-01    .33947E-01    .14299E-04   -.12681E-02
   2  alpha         5.0000        4.3732        .50000    ** at limit **
   3  Normalizat    1.5783        .21525        .21252E-03   -.15200E-03
   4  Prefactor     .43782        .20178        .37029E-03   -.24224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.021831
  alpha      = 5
  Normalizat = 1.57828
  Prefactor  = 0.437817
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.079     FROM HESSE     STATUS=OK            29 CALLS      473 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21831E-01    .33771E-01    .57198E-06   -1.5678    
   2  alpha         5.0000        4.3618        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5783        .21541        .42504E-04   -.75602    
   4  Prefactor     .43782        .20190        .14812E-04   -1.1492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87144e-11
Minuit parameter uncertainties:
  1  0.0337708
  2  6.43034e-05
  3  0.215534
  4  0.202231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601684': 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) = 6147.07851199
delta logL = 0.313732423434

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.183e-02  3.377e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  6.430e-05  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.378e-01  2.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.578e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/601684/cmap_HighResolution_505785601_506044801_4FGL_J1224.9+2122_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-05 13:44:37.110177', job_id='601684', GAL2='0.44', fit_tolerance='1e-08', EG2='1.58', EG='1.64', time_epoch_completed='1630874677.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='3.14e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1028' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 601684: <4FGL_J1224.9+2122_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1028> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:05 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:31:07 2021
Terminated at Sun Sep  5 13:44:37 2021
Results reported at Sun Sep  5 13:44:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1028 186.228 21.3814 505785601 506044801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

