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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1077
RA = 186.228, Dec = 21.3814
tmin = 518486401, tmax = 518745601
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='601762', job_status='RUN', time_executed='2021-09-05 13:33:58.319653', time_epoch_executed='1630874038.32' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601762/ft1_4FGL_J1224.9+2122_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601762/ft1_4FGL_J1224.9+2122_daily_bin1077.fits outfile=/scratch/kocevski/601762/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1077.fits ra=186.228 dec=21.3814 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.83
user 6.55
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601762/ft1_filtered_4FGL_J1224.9+2122_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/601762/ltcube_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.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/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits
.....................!
real 11.52
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601762/ft1_filtered_4FGL_J1224.9+2122_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/601762/ltcube_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.fits outfile=/scratch/kocevski/601762/expmap_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.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/601762/ltcube_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.fits
.....................!
real 190.34
user 185.29
sys 4.66

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/601762/ft1_filtered_4FGL_J1224.9+2122_daily_bin1077.fits scfile=/scratch/kocevski/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits outfile=/scratch/kocevski/601762/cmap_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601762/ft1_filtered_4FGL_J1224.9+2122_daily_bin1077.fits scfile=/scratch/kocevski/601762/ft2_4FGL_J1224.9+2122_daily_bin1077.fits outfile=/scratch/kocevski/601762/cmap_HighResolution_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.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.57
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77306       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.5531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3557       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29403       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3672       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19648E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.832       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    25.735       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5377       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80550       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=   8428.733     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2915 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.345        .12406E-05** at limit **
   2  Prefactor     3.9149        7.0583       -.21107E-07   -.21192E-04
   3  Prefactor     .77337        1.3015        .92815E-07    .14721E-03
   4  norm          6.5142        1.5474       -.58014E-08   -.74921E-04
   5  Prefactor     .10000E-03    21.291        .48038E-05** at limit **
   6  Prefactor     .10000E-03    .92387       -.21258E-07** at limit **
   7  Prefactor     56.523        78.955       -.11791E-04   -.42394E-04
   8  Prefactor     .10000E-03    1.0256       -.10331E-07** at limit **
   9  Prefactor     .10000E-03    1.6167       -.77138E-07** at limit **
  10  norm          8.5532        2.8227        .21611E-06    .52760E-04
  11  Prefactor     1.8394        1.3168       -.39670E-07    .54294E-04
  12  Prefactor     1.3559        1.2826        .53144E-07    .10150E-03
  13  Prefactor     .10000E-03    1.6252        .11200E-06** at limit **
  14  norm          .29400        .19261        .31363E-07    .19749E-03
  15  norm          9.3673        4.3441       -.16727E-05   -.91073E-04
  16  Prefactor     1.3385        3.6399        .10490E-05   -.89961E-03
  17  Prefactor     .10001E-03    4.3034       -.19523E-06** at limit **
  18  Prefactor     14.922        24.020        .11136E-04    .32642E-04
  19  Prefactor     .10000E-03    24.109       -.42211E-05** at limit **
  20  Prefactor     4.1295        6.1208       -.16848E-06   -.21232E-04
  21  Prefactor     20.830        18.354       -.13758E-05   -.14993E-04
  22  norm          .10000E-03    .86536       -.29445E-07** at limit **
  23  norm          25.735        21.915       -.52804E-06   -.31003E-05
  24  Normalizat    1.5378        .17612       -.24609E-06   -.25545E-04
  25  Prefactor     .80550        .17042        .25347E-07   -.30536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.91488
  Prefactor  = 0.773371
  norm       = 6.5142
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 56.5227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.55315
  Prefactor  = 1.83939
  Prefactor  = 1.35586
  Prefactor  = 0.0001
  norm       = 0.294004
  norm       = 9.36729
  Prefactor  = 1.33849
  Prefactor  = 0.000100008
  Prefactor  = 14.9224
  Prefactor  = 0.0001
  Prefactor  = 4.1295
  Prefactor  = 20.8302
  norm       = 0.0001
  norm       = 25.7348
  Normalizat = 1.53777
  Prefactor  = 0.805497
 **********
 **   18 **HESSE 
 **********

 FCN=   8428.733     FROM HESSE     STATUS=OK           435 CALLS     3350 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9149        7.0473        .20389E-03   -1.5312    
   3  Prefactor     .77337        1.0582        .12951E-02   -1.5532    
   4  norm          6.5142        1.5490        .53099E-04   -1.5197    
   5  Prefactor     .10000E-03    21.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .92729        .86151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.523        79.170        .53352E-04   -1.4203    
   8  Prefactor     .10000E-03    1.0439        .90691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1758        .22407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.5532        2.8189        .84348E-04   -1.5123    
  11  Prefactor     1.8394        1.3228        .85494E-04   -1.5437    
  12  Prefactor     1.3559        1.2751        .97274E-04   -1.5475    
  13  Prefactor     .10000E-03    1.6403        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29400        .18646        .31103E-03   -1.5600    
  15  norm          9.3673        4.3366        .12537E-03   -1.5096    
  16  Prefactor     1.3385        16.458        .18839E-02   -1.5477    
  17  Prefactor     .10001E-03    15.724        .36634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.922        25.165        .10372E-03   -1.4935    
  19  Prefactor     .10000E-03    24.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1295        6.1104        .19836E-03   -1.5302    
  21  Prefactor     20.830        18.349        .87756E-04   -1.4795    
  22  norm          .10000E-03    .86658        .83397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          25.735        21.915        .78965E-04   -1.4693    
  24  Normalizat    1.5378        .20449        .24745E-03   -.76722    
  25  Prefactor     .80550        .19867        .32483E-03   -.99526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79532e-09
Minuit parameter uncertainties:
  1  1.68823e-06
  2  7.04882
  3  1.05825
  4  1.549
  5  0.000270404
  6  1.85861e-07
  7  79.3177
  8  3.08954e-07
  9  3.51369e-05
  10  2.81896
  11  1.32283
  12  1.27513
  13  9.43365e-06
  14  0.18646
  15  4.33675
  16  9.38995
  17  0.000698679
  18  25.1827
  19  1.94493e-05
  20  6.11133
  21  18.3538
  22  5.08192e-07
  23  21.9215
  24  0.204605
  25  0.198844
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.940e-01  1.865e-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:  8.055e-01  1.988e-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.538e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.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) = 8428.72965075
delta logL = 0.00362848126861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8428.72888342
delta logL = 0.00439581579121

Fit tolerance = 1e-08

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

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

 FCN=   8428.729     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30148        .42882        .68237E-02    .10261E-02
   2  alpha         2.3370        1.0153        .41263       -.56011E-04
   3  Normalizat    1.5342        .17123        .56017E-01    .37454E-05
   4  Prefactor     .80745        .17072        .73317E-01    .26763E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.301481
  alpha      = 2.33699
  Normalizat = 1.5342
  Prefactor  = 0.807445
 **********
 **   18 **HESSE 
 **********

 FCN=   8428.729     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30148        .19839        .31037E-03   -1.5598    
   2  alpha         2.3370        .61452        .16845E-01   -.65251E-01
   3  Normalizat    1.5342        .20350        .24768E-03   -.76822    
   4  Prefactor     .80745        .19824        .32447E-03   -.99454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53544e-10
Minuit parameter uncertainties:
  1  0.198394
  2  0.620911
  3  0.20361
  4  0.198412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601762': 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) = 8428.72888338
delta logL = 0.00439585326603

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.015e-01  1.984e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.337e+00  6.209e-01  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:  8.074e-01  1.984e-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.534e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.34 +/- 0.62
Photon Flux (Free Index): 5.28e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.09e-05

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/601762/cmap_HighResolution_518486401_518745601_4FGL_J1224.9+2122_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='1.71e-05', photon_flux_error='3.15e-08', dlogl='4.40e-03', energy_flux='1.73e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-09-05 13:47:07.677720', photon_index_error2='0.62', photon_index2='2.34', ts='4.56', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.54', time_epoch_completed='1630874827.68', return_code='0', job_id='601762', GAL2='0.81', EG2='1.53', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.55e-08', ts2='4.55', photon_index='2.28' WHERE bin_id='1077' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 601762: <4FGL_J1224.9+2122_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1077> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:12 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:14 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:14 2021
Terminated at Sun Sep  5 13:47:08 2021
Results reported at Sun Sep  5 13:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1077 186.228 21.3814 518486401 518745601 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

