/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 38 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin5
RA = 186.228, Dec = 21.3814
tmin = 240624001, tmax = 240883201
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='595788', job_status='RUN', time_executed='2021-09-05 13:12:17.848773', time_epoch_executed='1630872737.85' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595788

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595788/ft1_4FGL_J1224.9+2122_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595788/ft1_4FGL_J1224.9+2122_daily_bin5.fits outfile=/scratch/kocevski/595788/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin5.fits ra=186.228 dec=21.3814 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.50
user 1.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595788/ft1_filtered_4FGL_J1224.9+2122_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/595788/ltcube_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.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/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits
.....................!
real 13.47
user 13.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595788/ft1_filtered_4FGL_J1224.9+2122_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/595788/ltcube_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.fits outfile=/scratch/kocevski/595788/expmap_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.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/595788/ltcube_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.fits
.....................!
real 191.26
user 185.69
sys 4.84

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/595788/ft1_filtered_4FGL_J1224.9+2122_daily_bin5.fits scfile=/scratch/kocevski/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits outfile=/scratch/kocevski/595788/cmap_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595788/ft1_filtered_4FGL_J1224.9+2122_daily_bin5.fits scfile=/scratch/kocevski/595788/ft2_4FGL_J1224.9+2122_daily_bin5.fits outfile=/scratch/kocevski/595788/cmap_HighResolution_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4271       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.608       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13859E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .41175       1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-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 '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .89091E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2721       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87430       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=   5884.896     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2955 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4287        37.725        .10460E-04    .73755E-04
   2  Prefactor     .10000E-03    8.4763       -.49308E-06** at limit **
   3  Prefactor     .10000E-03    1.1232        .12271E-06** at limit **
   4  norm          1.9371        1.3053       -.51850E-07    .47152E-05
   5  Prefactor     20.809        18.507       -.87638E-07    .49232E-05
   6  Prefactor     2.6932        4.1549       -.29948E-06    .46506E-04
   7  Prefactor     54.593        87.344        .28081E-05   -.42154E-05
   8  Prefactor     1.6129        2.2920        .22421E-06    .20952E-03
   9  Prefactor     .10000E-03    1.4614       -.26367E-07** at limit **
  10  norm          2.9572        4.0681       -.31787E-06    .64381E-05
  11  Prefactor     3.3428        3.4277        .59728E-06    .19651E-03
  12  Prefactor     5.8375        3.0804       -.61737E-07    .14355E-05
  13  Prefactor     .10000E-03    7.0229        .20535E-06** at limit **
  14  norm          .41176        .20268        .68695E-08    .35657E-03
  15  norm          .10001E-03    2.8895       -.12141E-05** at limit **
  16  Prefactor     .10000E-03    5.5868       -.15501E-06** at limit **
  17  Prefactor     .10000E-03    6.9386        .51454E-06** at limit **
  18  Prefactor     .10000E-03    10.061       -.19359E-06** at limit **
  19  Prefactor     .10000E-03    18.351       -.16998E-05** at limit **
  20  Prefactor     .10000E-03    2.3221       -.14550E-07** at limit **
  21  Prefactor     .10000E-03    8.0333       -.58180E-06** at limit **
  22  norm          .10009E-03    1.9983       -.66606E-06** at limit **
  23  norm          .10000E-03    12.249        .12346E-05** at limit **
  24  Normalizat    1.2721        .18570       -.10230E-05    .16465E-03
  25  Prefactor     .87427        .17952        .44685E-06    .10078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93707
  Prefactor  = 20.8087
  Prefactor  = 2.69315
  Prefactor  = 54.5928
  Prefactor  = 1.61291
  Prefactor  = 0.0001
  norm       = 2.95717
  Prefactor  = 3.3428
  Prefactor  = 5.83746
  Prefactor  = 0.0001
  norm       = 0.411759
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100092
  norm       = 0.0001
  Normalizat = 1.27215
  Prefactor  = 0.874269
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.896     FROM HESSE     STATUS=OK           429 CALLS     3384 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4287        38.774        .13134E-02   -1.5396    
   2  Prefactor     .10000E-03    8.6221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1626        .15883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9371        1.2976        .68880E-04   -1.5430    
   5  Prefactor     20.809        18.503        .87806E-04   -1.4795    
   6  Prefactor     2.6932        4.1317        .18271E-03   -1.5380    
   7  Prefactor     54.593        87.371        .54280E-04   -1.4229    
   8  Prefactor     1.6129        2.2133        .12872E-03   -1.5454    
   9  Prefactor     .10000E-03    5.6707        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9572        4.0547        .14676E-03   -1.5364    
  11  Prefactor     3.3428        3.4353        .58445E-03   -1.5342    
  12  Prefactor     5.8375        3.0673        .89561E-04   -1.5225    
  13  Prefactor     .10000E-03    7.1730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41176        .20188        .23310E-04   -1.5580    
  15  norm          .10001E-03    10.949        .23010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6374        .17707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3354        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10009E-03    32.140        .19984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2721        .21179        .23260E-03   -.84402    
  25  Prefactor     .87427        .20670        .27809E-03   -.97046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30069e-09
Minuit parameter uncertainties:
  1  19.4228
  2  5.4259e-05
  3  1.79354e-07
  4  1.29759
  5  18.5077
  6  4.13214
  7  87.5766
  8  2.21346
  9  6.29293e-06
  10  4.05509
  11  3.4355
  12  3.06741
  13  2.54245e-06
  14  0.201875
  15  0.000513938
  16  5.02274e-07
  17  6.89438e-06
  18  1.14722e-06
  19  2.31677e-05
  20  2.97807e-07
  21  9.89817e-06
  22  0.00344579
  23  1.64347e-05
  24  0.211938
  25  0.206884
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.118e-01  2.019e-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.743e-01  2.069e-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.272e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.39
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.19e-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) = 5884.49216958
delta logL = 0.404302755425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5884.48794712
delta logL = 0.408525217002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37472       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8781       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86007       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=   5884.488     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37472        .18644        .51198E-02   -.21342E-02
   2  alpha         1.8781        .34055        .26345       -.26922E-04
   3  Normalizat    1.2931        .17612        .52243E-01    .51451E-04
   4  Prefactor     .86005        .17864        .44494E-01   -.14763E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.374724
  alpha      = 1.87807
  Normalizat = 1.29312
  Prefactor  = 0.860053
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.488     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37472        .20319        .22621E-04   -1.5586    
   2  alpha         1.8781        .41070        .10538E-01   -.25141    
   3  Normalizat    1.2931        .20331        .23098E-03   -.83772    
   4  Prefactor     .86005        .20583        .28006E-03   -.97551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24328e-10
Minuit parameter uncertainties:
  1  0.20319
  2  0.412697
  3  0.203435
  4  0.20602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595788': 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) = 5884.48794711
delta logL = 0.408525224155

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.747e-01  2.032e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.878e+00  4.127e-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.601e-01  2.060e-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.293e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.21
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.88 +/- 0.41
Photon Flux (Free Index): 5.27e-08 +/- 3.17e-08
Energy Flux (Free Index): 3.58e-05 +/- 2.65e-05

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/595788/cmap_HighResolution_240624001_240883201_4FGL_J1224.9+2122_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='3.58e-05', photon_flux_error='3.41e-08', dlogl='4.09e-01', energy_flux='2.42e-05', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-09-05 13:22:47.538345', photon_index_error2='0.41', photon_index2='1.88', ts='11.39', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.27', time_epoch_completed='1630873367.54', return_code='0', job_id='595788', GAL2='0.86', EG2='1.29', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.17e-08', ts2='12.21', photon_index='2.28' WHERE bin_id='5' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:22:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 595788: <4FGL_J1224.9+2122_daily_bin5> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin5> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:11:25 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:11:27 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:11:27 2021
Terminated at Sun Sep  5 13:22:48 2021
Results reported at Sun Sep  5 13:22:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin5 186.228 21.3814 240624001 240883201 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 :                                   626.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            683 sec.

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

