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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1053
RA = 186.228, Dec = 21.3814
tmin = 512265601, tmax = 512524801
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='601723', job_status='RUN', time_executed='2021-09-05 13:34:08.954280', time_epoch_executed='1630874048.95' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601723/ft1_4FGL_J1224.9+2122_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601723/ft2_4FGL_J1224.9+2122_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601723/ft1_4FGL_J1224.9+2122_daily_bin1053.fits outfile=/scratch/kocevski/601723/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1053.fits ra=186.228 dec=21.3814 rad=12.0 tmin=512265601.0 tmax=512524801.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.56
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601723/ft2_4FGL_J1224.9+2122_daily_bin1053.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/601723/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/601723/ft1_filtered_4FGL_J1224.9+2122_daily_bin1053.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601723/ft1_filtered_4FGL_J1224.9+2122_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/601723/ft2_4FGL_J1224.9+2122_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/601723/ltcube_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.fits outfile=/scratch/kocevski/601723/expmap_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.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/601723/ltcube_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.fits
.....................!
real 190.87
user 185.67
sys 4.83

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/601723/ft1_filtered_4FGL_J1224.9+2122_daily_bin1053.fits scfile=/scratch/kocevski/601723/ft2_4FGL_J1224.9+2122_daily_bin1053.fits outfile=/scratch/kocevski/601723/cmap_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601723/ft1_filtered_4FGL_J1224.9+2122_daily_bin1053.fits scfile=/scratch/kocevski/601723/ft2_4FGL_J1224.9+2122_daily_bin1053.fits outfile=/scratch/kocevski/601723/cmap_HighResolution_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73300E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9075       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7052       1.0000         .10000E-03   10000.    
    10 'norm      '    31.156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2469       1.0000         .10000E-03   10000.    
    14 'norm      '    .25479       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3331       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8515       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13260E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3370       1.0000         .10000E-03   10000.    
    23 'norm      '    10.989       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0259       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98455       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=   5968.653     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2937 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3466        15.287       -.64327E-05   -.37158E-03
   2  Prefactor     3.3684        4.1059        .15816E-05   -.19109E-02
   3  Prefactor     .10000E-03    1.0131        .56898E-06** at limit **
   4  norm          1.0472        .86175        .53736E-07    .12566E-04
   5  Prefactor     .10000E-03    18.365        .58606E-06** at limit **
   6  Prefactor     .10000E-03    2.1606       -.34966E-06** at limit **
   7  Prefactor     54.325        88.788       -.85852E-05   -.56785E-04
   8  Prefactor     2.9052        4.3568        .15460E-06    .18248E-04
   9  Prefactor     2.7055        5.0577       -.25576E-06   -.17499E-03
  10  norm          31.156        5.5192        .24210E-08   -.10315E-04
  11  Prefactor     .10000E-03    1.3793        .70986E-07** at limit **
  12  Prefactor     3.9496        2.6532       -.47589E-07   -.10186E-03
  13  Prefactor     9.2468        6.5986        .10856E-06    .24728E-04
  14  norm          .25474        .23982       -.22744E-07   -.56401E-03
  15  norm          3.3331        3.2769       -.10723E-06    .68593E-05
  16  Prefactor     1.8484        7.6262        .15265E-05   -.51046E-04
  17  Prefactor     .10000E-03    3.9932        .29624E-07** at limit **
  18  Prefactor     .10000E-03    43.335       -.31824E-05** at limit **
  19  Prefactor     .10000E-03    221.41       -.46325E-05** at limit **
  20  Prefactor     .10000E-03    2.7545        .16255E-07** at limit **
  21  Prefactor     .10000E-03    16.696       -.45023E-06** at limit **
  22  norm          8.3368        4.1244       -.38167E-07    .63667E-05
  23  norm          10.989        13.829       -.15214E-06   -.62477E-05
  24  Normalizat    1.0260        .19801        .14687E-05   -.13816E-03
  25  Prefactor     .98444        .19300       -.59213E-06   -.17027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34656
  Prefactor  = 3.36842
  Prefactor  = 0.000100002
  norm       = 1.04724
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 54.3249
  Prefactor  = 2.90515
  Prefactor  = 2.70552
  norm       = 31.156
  Prefactor  = 0.0001
  Prefactor  = 3.94963
  Prefactor  = 9.24681
  norm       = 0.254738
  norm       = 3.33306
  Prefactor  = 1.84841
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.33679
  norm       = 10.989
  Normalizat = 1.02599
  Prefactor  = 0.984441
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.653     FROM HESSE     STATUS=OK           437 CALLS     3374 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3466        15.716        .17437E-03   -1.5245    
   2  Prefactor     3.3684        5.8900        .11023E-02   -1.5341    
   3  Prefactor     .10000E-03    5.7080        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0472        .85884        .62831E-04   -1.5503    
   5  Prefactor     .10000E-03    18.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.448        .20878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.325        88.472        .54413E-04   -1.4233    
   8  Prefactor     2.9052        4.0820        .14702E-03   -1.5367    
   9  Prefactor     2.7055        4.8554        .17960E-03   -1.5379    
  10  norm          31.156        5.5042        .71784E-04   -1.4591    
  11  Prefactor     .10000E-03    1.4168        .17674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9496        2.6482        .96694E-04   -1.5310    
  13  Prefactor     9.2468        6.5843        .13180E-03   -1.5100    
  14  norm          .25474        .22727        .34304E-03   -1.5607    
  15  norm          3.3331        3.2759        .13187E-03   -1.5343    
  16  Prefactor     1.8484        7.5747        .30639E-03   -1.5436    
  17  Prefactor     .10000E-03    4.0076        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    223.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7757        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3368        4.1237        .10684E-03   -1.5130    
  23  norm          10.989        13.827        .12086E-03   -1.5045    
  24  Normalizat    1.0260        .22490        .25736E-03   -.92165    
  25  Prefactor     .98444        .22274        .27135E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00835e-09
Minuit parameter uncertainties:
  1  15.7277
  2  5.89105
  3  0.000215786
  4  0.858846
  5  0.000159277
  6  0.000276029
  7  88.6869
  8  4.08243
  9  4.85609
  10  5.50431
  11  4.09396e-07
  12  2.6483
  13  6.58478
  14  0.227276
  15  3.27612
  16  7.48504
  17  2.21896e-06
  18  0.000349417
  19  0.000863794
  20  2.42217e-06
  21  4.77859e-05
  22  4.12388
  23  13.8311
  24  0.225113
  25  0.222951
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.547e-01  2.273e-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:  9.844e-01  2.230e-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.026e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.33e-05

TS (Fixed Index): 1.94
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601723/likelihoodResults_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.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) = 5967.92900538
delta logL = 0.723912482393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.92808481
delta logL = 0.724833051896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26319       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2048       1.0000          .0000       5.0000    
     3 'Normalizat'    .96687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0217       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=   5967.928     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26309        3.1858        .54809E-02    .13061E-02
   2  alpha         3.2049        3.7239        .43437        .25419E-04
   3  Normalizat    .96691        .60515E-01    .45750E-01    .12160E-04
   4  Prefactor     1.0217        .66256E-01    .60383E-01    .80571E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.263086
  alpha      = 3.20494
  Normalizat = 0.966913
  Prefactor  = 1.02172
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.928     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26309        .23093        .24767E-04   -1.5605    
   2  alpha         3.2049        .86715        .18453E-01    .28585    
   3  Normalizat    .96691        .22068        .26397E-03   -.94147    
   4  Prefactor     1.0217        .22397        .26702E-03   -.92009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42634e-09
Minuit parameter uncertainties:
  1  0.230928
  2  0.887247
  3  0.220884
  4  0.224176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601723': 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) = 5967.92808468
delta logL = 0.724833180933

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.631e-01  2.309e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.205e+00  8.872e-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:  1.022e+00  2.242e-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:  9.669e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.20 +/- 0.89
Photon Flux (Free Index): 9.11e-08 +/- 6.32e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.11e-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/601723/cmap_HighResolution_512265601_512524801_4FGL_J1224.9+2122_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-05', comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='1.67e-05', photon_flux_error='3.84e-08', dlogl='7.25e-01', energy_flux='1.50e-05', photon_flux2='9.11e-08', job_status='DONE', time_completed='2021-09-05 13:45:52.755656', photon_index_error2='0.89', photon_index2='3.20', ts='1.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.11e-05', EG='1.03', time_epoch_completed='1630874752.76', return_code='0', job_id='601723', GAL2='1.02', EG2='0.97', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.32e-08', ts2='3.47', photon_index='2.28' WHERE bin_id='1053' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 601723: <4FGL_J1224.9+2122_daily_bin1053> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1053 186.228 21.3814 512265601 512524801 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 :                                   701.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

