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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin755
RA = 186.228, Dec = 21.3814
tmin = 435024001, tmax = 435283201
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='601264', job_status='RUN', time_executed='2021-09-05 13:34:21.933000', time_epoch_executed='1630874061.93' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601264/ft1_4FGL_J1224.9+2122_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601264/ft1_4FGL_J1224.9+2122_daily_bin755.fits outfile=/scratch/kocevski/601264/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin755.fits ra=186.228 dec=21.3814 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.12
user 4.87
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.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/601264/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/601264/ft1_filtered_4FGL_J1224.9+2122_daily_bin755.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601264/ft1_filtered_4FGL_J1224.9+2122_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/601264/ltcube_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.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/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits
.....................!
real 12.41
user 11.98
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601264/ft1_filtered_4FGL_J1224.9+2122_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/601264/ltcube_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.fits outfile=/scratch/kocevski/601264/expmap_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.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/601264/ltcube_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.fits
.....................!
real 190.76
user 185.02
sys 5.27

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/601264/ft1_filtered_4FGL_J1224.9+2122_daily_bin755.fits scfile=/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits outfile=/scratch/kocevski/601264/cmap_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601264/ft1_filtered_4FGL_J1224.9+2122_daily_bin755.fits scfile=/scratch/kocevski/601264/ft2_4FGL_J1224.9+2122_daily_bin755.fits outfile=/scratch/kocevski/601264/cmap_HighResolution_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12313E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5964       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17152E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24616E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.504       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1492       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.899       1.0000         .10000E-03   10000.    
    22 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.387       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2033       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84321       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=   5180.751     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3049 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.686       -.17201E-05** at limit **
   2  Prefactor     7.9837        15.613       -.51582E-06    .11682E-04
   3  Prefactor     3.5931        3.0845       -.17092E-06   -.47516E-03
   4  norm          .10000E-03    .61725       -.19799E-06** at limit **
   5  Prefactor     .10000E-03    16.981       -.24310E-05** at limit **
   6  Prefactor     11.595        7.1036       -.74294E-07    .54869E-05
   7  Prefactor     71.849        116.95       -.35548E-06    .15994E-04
   8  Prefactor     .10015E-03    77.725       -.27131E-04** at limit **
   9  Prefactor     .10000E-03    1.4112       -.11900E-06** at limit **
  10  norm          7.4760        5.8798       -.40933E-07   -.69671E-03
  11  Prefactor     5.0621        4.3362        .83741E-07   -.52104E-03
  12  Prefactor     .10015E-03    4.1332       -.31273E-05** at limit **
  13  Prefactor     29.506        13.550       -.43645E-07   -.30712E-03
  14  norm          3.1492        .60089       -.22114E-07   -.12012E-02
  15  norm          9.6706        9.5445       -.47006E-07   -.32737E-03
  16  Prefactor     19.346        13.855       -.17029E-06    .64094E-04
  17  Prefactor     .10000E-03    14.475       -.49522E-06** at limit **
  18  Prefactor     .10000E-03    14.858       -.34048E-07** at limit **
  19  Prefactor     .10000E-03    74.029       -.23447E-06** at limit **
  20  Prefactor     .10000E-03    22.852        .14264E-04** at limit **
  21  Prefactor     16.899        15.140       -.26229E-06   -.32530E-04
  22  norm          .10000E-03    3.9871       -.34781E-06** at limit **
  23  norm          20.384        21.994       -.32945E-06   -.20871E-03
  24  Normalizat    1.2033        .22815        .37432E-05    .11222E-03
  25  Prefactor     .84334        .21948       -.82808E-06   -.11245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 7.98373
  Prefactor  = 3.59306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5947
  Prefactor  = 71.8488
  Prefactor  = 0.00010015
  Prefactor  = 0.0001
  norm       = 7.47601
  Prefactor  = 5.06208
  Prefactor  = 0.000100147
  Prefactor  = 29.5063
  norm       = 3.14919
  norm       = 9.67062
  Prefactor  = 19.3459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 16.8991
  norm       = 0.0001
  norm       = 20.3842
  Normalizat = 1.20331
  Prefactor  = 0.84334
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.751     FROM HESSE     STATUS=OK           437 CALLS     3486 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9837        15.593        .14190E-03   -1.5143    
   3  Prefactor     3.5931        3.0783        .11085E-03   -1.5329    
   4  norm          .10000E-03    .63081        .55330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.595        7.0867        .11763E-03   -1.5027    
   7  Prefactor     71.849        117.11        .23631E-03   -1.4011    
   8  Prefactor     .10015E-03    3.5964        .33566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4227        .83463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4760        5.9149        .12495E-03   -1.5161    
  11  Prefactor     5.0621        4.3751        .11340E-03   -1.5258    
  12  Prefactor     .10015E-03    17.024        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.506        13.550        .73760E-04   -1.4621    
  14  norm          3.1492        .60360        .22638E-04   -1.5353    
  15  norm          9.6706        9.5085        .12890E-03   -1.5086    
  16  Prefactor     19.346        13.861        .91065E-04   -1.4828    
  17  Prefactor     .10000E-03    14.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    74.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.163        .34321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.899        15.150        .97429E-04   -1.4886    
  22  norm          .10000E-03    4.1636        .28099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.384        22.006        .88708E-04   -1.4805    
  24  Normalizat    1.2033        .27087        .27746E-03   -.86501    
  25  Prefactor     .84334        .25848        .31803E-03   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44754e-09
Minuit parameter uncertainties:
  1  0.000902035
  2  15.6011
  3  3.07839
  4  9.08261e-06
  5  0.000167464
  6  7.08717
  7  117.493
  8  0.00147076
  9  4.9807e-06
  10  5.91537
  11  4.37542
  12  0.00316369
  13  13.5516
  14  0.603598
  15  9.50996
  16  13.8637
  17  4.42778e-05
  18  5.46748e-05
  19  3.89574e-05
  20  0.000444868
  21  15.1535
  22  5.06811e-05
  23  22.0148
  24  0.27119
  25  0.258857
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.149e+00  6.036e-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.433e-01  2.589e-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.203e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 67.99
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.32e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 1.85e-04 +/- 3.55e-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) = 5179.75970372
delta logL = 0.991471230856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.69207747
delta logL = 1.05909747919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0792       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5878       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91339       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=   5179.692     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0791        .73163        .48182E-02   -.44427E-02
   2  alpha         2.5878        .27424        .12830       -.18903E-03
   3  Normalizat    1.1024        .22627        .64872E-01   -.21904E-03
   4  Prefactor     .91342        .21917        .69345E-01   -.68592E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07911
  alpha      = 2.58778
  Normalizat = 1.10242
  Prefactor  = 0.913425
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.692     FROM HESSE     STATUS=OK            25 CALLS      233 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0791        .58109        .21311E-04   -1.5357    
   2  alpha         2.5878        .22155        .56118E-03    .35119E-01
   3  Normalizat    1.1024        .27272        .28697E-03   -.89674    
   4  Prefactor     .91342        .26122        .30678E-03   -.95674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83092e-10
Minuit parameter uncertainties:
  1  0.581089
  2  0.221842
  3  0.273066
  4  0.261581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601264': 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) = 5179.69207746
delta logL = 1.05909749118

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.079e+00  5.811e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.588e+00  2.218e-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:  9.134e-01  2.616e-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.102e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 70.69
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.59 +/- 0.22
Photon Flux (Free Index): 6.40e-07 +/- 1.34e-07
Energy Flux (Free Index): 1.63e-04 +/- 3.14e-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/601264/cmap_HighResolution_435024001_435283201_4FGL_J1224.9+2122_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-07', energy_flux2='1.63e-04', photon_flux_error='1.02e-07', dlogl='1.06e+00', energy_flux='1.85e-04', photon_flux2='6.40e-07', job_status='DONE', time_completed='2021-09-05 13:44:42.156992', photon_index_error2='0.22', photon_index2='2.59', ts='67.99', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.14e-05', EG='1.20', time_epoch_completed='1630874682.16', return_code='0', job_id='601264', GAL2='0.91', EG2='1.10', return_code2='0', energy_flux_error='3.55e-05', photon_flux_error2='1.34e-07', ts2='70.69', photon_index='2.28' WHERE bin_id='755' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 601264: <4FGL_J1224.9+2122_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin755 186.228 21.3814 435024001 435283201 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 :                                   614.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

