/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1280
RA = 186.228, Dec = 21.3814
tmin = 571104001, tmax = 571363201
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='603221', job_status='RUN', time_executed='2021-09-05 13:37:01.922143', time_epoch_executed='1630874221.92' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603221/ft1_4FGL_J1224.9+2122_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603221/ft2_4FGL_J1224.9+2122_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603221/ft1_4FGL_J1224.9+2122_daily_bin1280.fits outfile=/scratch/kocevski/603221/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1280.fits ra=186.228 dec=21.3814 rad=12.0 tmin=571104001.0 tmax=571363201.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.12
user 2.77
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603221/ft1_filtered_4FGL_J1224.9+2122_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/603221/ft2_4FGL_J1224.9+2122_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/603221/ltcube_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.fits outfile=/scratch/kocevski/603221/expmap_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.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/603221/ltcube_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.fits
.....................!
real 191.02
user 185.06
sys 4.92

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/603221/ft1_filtered_4FGL_J1224.9+2122_daily_bin1280.fits scfile=/scratch/kocevski/603221/ft2_4FGL_J1224.9+2122_daily_bin1280.fits outfile=/scratch/kocevski/603221/cmap_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603221/ft1_filtered_4FGL_J1224.9+2122_daily_bin1280.fits scfile=/scratch/kocevski/603221/ft2_4FGL_J1224.9+2122_daily_bin1280.fits outfile=/scratch/kocevski/603221/cmap_HighResolution_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45379E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22312E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.503       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4593       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12502E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3374       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9932       1.0000         .10000E-03   10000.    
    14 'norm      '    .27851       1.0000         .10000E-03   10000.    
    15 'norm      '    .82979       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    87.333       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.9236       1.0000         .10000E-03   10000.    
    23 'norm      '    6.1684       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0229       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=   3593.759     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     2743 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.512        .96665E-02** at limit **
   2  Prefactor     .10000E-03    31.258        .10064E-01** at limit **
   3  Prefactor     10.512        4.5931        .30908E-02   -.87981E-05
   4  norm          2.7148        1.7798        .61766E-02   -.40012E-04
   5  Prefactor     3.5534        35.725        .56965E-02    .10083E-03
   6  Prefactor     4.4469        5.5689        .47671E-02    .97930E-04
   7  Prefactor     .10000E-03    490.31        .79142E-02** at limit **
   8  Prefactor     .10000E-03    3.0519        .35686E-01** at limit **
   9  Prefactor     1.3183        3.1145        .94811E-02    .39512E-03
  10  norm          2.5727        2.6725        .63641E-02   -.10827E-03
  11  Prefactor     3.7247        3.0752        .52342E-02   -.14186E-04
  12  Prefactor     .10000E-03    1.2528        .90712E-02** at limit **
  13  Prefactor     4.9533        4.6909        .44992E-02   -.71935E-04
  14  norm          .27679        .30483        .71163E-02    .66076E-03
  15  norm          .82688        3.1517        .12550E-01    .65259E-03
  16  Prefactor     7.0748        11.991        .36665E-02    .45308E-04
  17  Prefactor     .10000E-03    9.0220        .90712E-02** at limit **
  18  Prefactor     18.300        50.468        .26991E-02    .12459E-03
  19  Prefactor     68.191        113.02        .10748E-02    .70288E-05
  20  Prefactor     .10000E-03    2.0996        .90712E-02** at limit **
  21  Prefactor     .10000E-03    28.249        .90712E-02** at limit **
  22  norm          4.9379        4.0594        .45315E-02    .73470E-04
  23  norm          5.4816        19.782        .40410E-02    .63892E-03
  24  Normalizat    1.0499        .25394        .41011E-01   -.10616E-04
  25  Prefactor     1.0181        .24636        .60030E-01    .16985E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5118
  norm       = 2.7148
  Prefactor  = 3.55343
  Prefactor  = 4.44691
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.31832
  norm       = 2.57265
  Prefactor  = 3.72474
  Prefactor  = 0.0001
  Prefactor  = 4.9533
  norm       = 0.276786
  norm       = 0.826881
  Prefactor  = 7.07481
  Prefactor  = 0.0001
  Prefactor  = 18.3005
  Prefactor  = 68.1913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.93793
  norm       = 5.48164
  Normalizat = 1.04994
  Prefactor  = 1.01813
 **********
 **   18 **HESSE 
 **********

 FCN=   3593.759     FROM HESSE     STATUS=OK           435 CALLS     3178 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.697        .19333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.912        .20128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.512        4.5932        .81976E-04   -1.5059    
   4  norm          2.7148        1.7791        .62674E-04   -1.5378    
   5  Prefactor     3.5534        35.672        .22786E-03   -1.5331    
   6  Prefactor     4.4469        5.5386        .15207E-03   -1.5286    
   7  Prefactor     .10000E-03    491.41        .15828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4185        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3183        3.0299        .15535E-03   -1.5478    
  10  norm          2.5727        2.6765        .95364E-04   -1.5387    
  11  Prefactor     3.7247        3.0763        .90831E-04   -1.5322    
  12  Prefactor     .10000E-03    1.2716        .65473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9533        4.6914        .12280E-03   -1.5263    
  14  norm          .27679        .29102        .32660E-03   -1.5603    
  15  norm          .82688        3.0675        .20077E-03   -1.5526    
  16  Prefactor     7.0748        11.976        .14666E-03   -1.5176    
  17  Prefactor     .10000E-03    9.1502        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.300        50.536        .53983E-03   -1.4852    
  19  Prefactor     68.191        113.87        .42991E-04   -1.4055    
  20  Prefactor     .10000E-03    2.1008        .84832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9379        4.0571        .10471E-03   -1.5264    
  23  norm          5.4816        19.767        .80821E-03   -1.5240    
  24  Normalizat    1.0499        .29909        .25548E-03   -.91376    
  25  Prefactor     1.0181        .29153        .26546E-03   -.92128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52053e-11
Minuit parameter uncertainties:
  1  5.05806e-07
  2  5.39778e-05
  3  4.59334
  4  1.77917
  5  22.5344
  6  5.53926
  7  0.00270286
  8  1.43113e-06
  9  3.03026
  10  2.67662
  11  3.07644
  12  6.92056e-07
  13  4.69179
  14  0.291022
  15  3.06803
  16  11.9803
  17  1.7391e-05
  18  50.6545
  19  114.237
  20  2.84285e-06
  21  4.28395e-05
  22  4.05728
  23  19.7902
  24  0.299574
  25  0.291984
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.768e-01  2.910e-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.018e+00  2.920e-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.050e+00  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/603221/likelihoodResults_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.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) = 3593.75616865
delta logL = 0.00309688765765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3593.75254145
delta logL = 0.0067240913836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23853       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0110       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=   3593.753     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23802        .27845        .69614E-02    .11366E-02
   2  alpha         2.0849        .67176        .41883       -.29623E-04
   3  Normalizat    1.0628        .23926        .57500E-01    .24122E-04
   4  Prefactor     1.0110        .24403        .43181E-01    .25302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.238016
  alpha      = 2.0849
  Normalizat = 1.06276
  Prefactor  = 1.011
 **********
 **   18 **HESSE 
 **********

 FCN=   3593.753     FROM HESSE     STATUS=OK            35 CALLS      241 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23802        .45319        .32091E-03   -1.5610    
   2  alpha         2.0849        1.5199        .15755E-01   -.16681    
   3  Normalizat    1.0628        .29831        .25427E-03   -.90956    
   4  Prefactor     1.0110        .29191        .26612E-03   -.92364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27285e-11
Minuit parameter uncertainties:
  1  0.453201
  2  1.63777
  3  0.298777
  4  0.29237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603221': 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) = 3593.75254037
delta logL = 0.00672517218163

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.380e-01  4.532e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.085e+00  1.638e+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.011e+00  2.924e-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.063e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.08 +/- 1.64
Photon Flux (Free Index): 3.63e-08 +/- 9.33e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.93e-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/603221/cmap_HighResolution_571104001_571363201_4FGL_J1224.9+2122_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='1.67e-05', photon_flux_error='4.91e-08', dlogl='6.73e-03', energy_flux='1.63e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-05 13:46:13.374910', photon_index_error2='1.64', photon_index2='2.08', ts='1.47', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.93e-05', EG='1.05', time_epoch_completed='1630874773.37', return_code='0', job_id='603221', GAL2='1.01', EG2='1.06', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='9.33e-08', ts2='1.48', photon_index='2.28' WHERE bin_id='1280' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 603221: <4FGL_J1224.9+2122_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1280> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:51 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:54 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:35:54 2021
Terminated at Sun Sep  5 13:46:13 2021
Results reported at Sun Sep  5 13:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1280 186.228 21.3814 571104001 571363201 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 :                                   541.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            622 sec.

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

