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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1572
RA = 186.228, Dec = 21.3814
tmin = 646790401, tmax = 647049601
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='604992', job_status='RUN', time_executed='2021-09-05 13:43:20.781380', time_epoch_executed='1630874600.78' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604992/ft1_4FGL_J1224.9+2122_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604992/ft1_4FGL_J1224.9+2122_daily_bin1572.fits outfile=/scratch/kocevski/604992/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1572.fits ra=186.228 dec=21.3814 rad=12.0 tmin=646790401.0 tmax=647049601.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.61
user 3.38
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.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/604992/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1572.fits evtable="EVENTS" outfile="/scratch/kocevski/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/604992/ltcube_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.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/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits
.....................!
real 12.17
user 11.72
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/604992/ltcube_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits outfile=/scratch/kocevski/604992/expmap_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.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/604992/ltcube_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits
.....................!
real 192.81
user 187.80
sys 4.18

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/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits scfile=/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits outfile=/scratch/kocevski/604992/cmap_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits scfile=/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits outfile=/scratch/kocevski/604992/cmap_HighResolution_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits', '/scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits', expMap='/scratch/kocevski/604992/expmap_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits', expCube='/scratch/kocevski/604992/ltcube_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604992/Model_4FGL_J1224.9+2122_daily_bin1572.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/604992/ft1_filtered_4FGL_J1224.9+2122_daily_bin1572.fits
Spacecraft file(s): /scratch/kocevski/604992/ft2_4FGL_J1224.9+2122_daily_bin1572.fits
Exposure map: /scratch/kocevski/604992/expmap_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits
Exposure cube: /scratch/kocevski/604992/ltcube_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604992/Model_4FGL_J1224.9+2122_daily_bin1572.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) = 7951.65053221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7305       1.0000         .10000E-03   10000.    
     4 'norm      '    63.865       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .80315E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.290       1.0000         .10000E-03   10000.    
    19 'Prefactor '    138.92       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.144       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2488       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0700       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=   7951.646     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2893 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.344        .14582E-05** at limit **
   2  Prefactor     .10000E-03    2.1629       -.17478E-06** at limit **
   3  Prefactor     1.7304        1.5968       -.16971E-07   -.36114E-04
   4  norm          63.865        4.4724       -.55241E-07    .31540E-04
   5  Prefactor     .10000E-03    8.8211       -.12697E-05** at limit **
   6  Prefactor     .10000E-03    1.6211        .74550E-07** at limit **
   7  Prefactor     .10000E-03    25.106        .85068E-06** at limit **
   8  Prefactor     .10000E-03    1.3537       -.63508E-07** at limit **
   9  Prefactor     .10000E-03    1.3232       -.24575E-06** at limit **
  10  norm          2.2981        2.6373        .36699E-06    .32171E-04
  11  Prefactor     .10000E-03    1.4870       -.27275E-07** at limit **
  12  Prefactor     2.4694        2.7213       -.52078E-06   -.16075E-03
  13  Prefactor     .10000E-03    7.5889        .29995E-06** at limit **
  14  norm          .80279E-01    .20501       -.69038E-07   -.96975E-03
  15  norm          4.2435        4.6225        .14536E-06   -.13779E-02
  16  Prefactor     .10000E-03    7.4840        .10722E-05** at limit **
  17  Prefactor     .10000E-03    6.4132       -.10815E-06** at limit **
  18  Prefactor     17.281        28.837       -.11866E-04   -.76769E-04
  19  Prefactor     138.92        101.46        .49729E-06    .11064E-04
  20  Prefactor     2.8353        5.8024        .89047E-06   -.10540E-02
  21  Prefactor     24.144        16.060       -.13567E-06    .16221E-04
  22  norm          4.2490        3.9468        .42522E-07   -.90674E-05
  23  norm          .10000E-03    7.4888        .85779E-06** at limit **
  24  Normalizat    1.0367        .19750        .21284E-05    .34496E-04
  25  Prefactor     1.0703        .18708        .14641E-06    .13642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7304
  norm       = 63.865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29815
  Prefactor  = 0.0001
  Prefactor  = 2.46936
  Prefactor  = 0.0001
  norm       = 0.0802791
  norm       = 4.24348
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.281
  Prefactor  = 138.916
  Prefactor  = 2.83528
  Prefactor  = 24.1439
  norm       = 4.249
  norm       = 0.0001
  Normalizat = 1.03667
  Prefactor  = 1.07034
 **********
 **   18 **HESSE 
 **********

 FCN=   7951.646     FROM HESSE     STATUS=OK           427 CALLS     3320 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1641        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7304        1.5958        .10476E-03   -1.5445    
   4  norm          63.865        4.4777        .47873E-04   -1.4108    
   5  Prefactor     .10000E-03    8.9012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6322        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0584        .19737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3336        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2981        2.6149        .14734E-03   -1.5405    
  11  Prefactor     .10000E-03    1.5100        .10583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4694        2.6969        .14437E-03   -1.5394    
  13  Prefactor     .10000E-03    7.7011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .80279E-01    .20406        .59644E-04   -1.5651    
  15  norm          4.2435        5.2748        .97810E-03   -1.5296    
  16  Prefactor     .10000E-03    7.5839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.281        29.139        .96320E-04   -1.4876    
  19  Prefactor     138.92        101.59        .34176E-04   -1.3345    
  20  Prefactor     2.8353        8.9593        .12073E-02   -1.5371    
  21  Prefactor     24.144        16.071        .81522E-04   -1.4725    
  22  norm          4.2490        3.9431        .16387E-03   -1.5296    
  23  norm          .10000E-03    7.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0367        .24109        .31657E-03   -.91812    
  25  Prefactor     1.0703        .22908        .30915E-03   -.90420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77844e-09
Minuit parameter uncertainties:
  1  7.1867e-06
  2  2.35578e-06
  3  1.59581
  4  4.47776
  5  1.71346e-05
  6  3.71718e-06
  7  1.16071e-05
  8  5.65461e-05
  9  6.53864e-08
  10  2.61503
  11  5.23936e-06
  12  2.69705
  13  1.49006e-05
  14  0.204065
  15  5.27536
  16  0.00012718
  17  7.65237e-06
  18  29.1629
  19  101.723
  20  8.9635
  21  16.0734
  22  3.9433
  23  4.97415e-06
  24  0.241349
  25  0.229289
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.028e-02  2.041e-01  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:  1.070e+00  2.293e-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.037e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/604992/likelihoodResults_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.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) = 7951.64564681
delta logL = 2.38684351643e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7951.64564591
delta logL = 2.47722255153e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7951.646     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80496E-01    .20383        .59654E-04    .21535E-04
   2  alpha         2.2879        1.3014        .38519E-01   -.58959E-05
   3  Normalizat    1.0365        .23073        .31660E-03    .18673E-05
   4  Prefactor     1.0705        .22907        .30914E-03    .37511E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0804962
  alpha      = 2.28788
  Normalizat = 1.03651
  Prefactor  = 1.07045
 **********
 **   18 **HESSE 
 **********

 FCN=   7951.646     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80496E-01    .20548        .23862E-05   -1.5651    
   2  alpha         2.2879        1.3130        .15407E-02   -.84949E-01
   3  Normalizat    1.0365        .23109        .12664E-04   -.91817    
   4  Prefactor     1.0705        .22925        .12365E-04   -.90417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55601e-14
Minuit parameter uncertainties:
  1  0.205486
  2  1.38296
  3  0.231314
  4  0.229458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604992': 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) = 7951.64564545
delta logL = 2.5225974241e-05

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.050e-02  2.055e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.288e+00  1.383e+00  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:  1.070e+00  2.295e-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.037e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 186.228 21.381

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/604992/cmap_HighResolution_646790401_647049601_4FGL_J1224.9+2122_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-09-05 13:57:44.669543', job_id='604992', GAL2='1.07', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630875464.67', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.52e-05', ts2='0.19', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1572' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 604992: <4FGL_J1224.9+2122_daily_bin1572> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1572> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:17 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:19 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:41:19 2021
Terminated at Sun Sep  5 13:57:45 2021
Results reported at Sun Sep  5 13:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1572 186.228 21.3814 646790401 647049601 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 :                                   858.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

