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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1359
RA = 186.228, Dec = 21.3814
tmin = 591580801, tmax = 591840001
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='603324', job_status='RUN', time_executed='2021-09-05 13:38:15.031576', time_epoch_executed='1630874295.03' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603324/ft1_4FGL_J1224.9+2122_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603324/ft2_4FGL_J1224.9+2122_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603324/ft1_4FGL_J1224.9+2122_daily_bin1359.fits outfile=/scratch/kocevski/603324/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1359.fits ra=186.228 dec=21.3814 rad=12.0 tmin=591580801.0 tmax=591840001.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.82
user 3.54
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603324/ft1_filtered_4FGL_J1224.9+2122_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/603324/ft2_4FGL_J1224.9+2122_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/603324/ltcube_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.fits outfile=/scratch/kocevski/603324/expmap_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.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/603324/ltcube_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.fits
.....................!
real 192.29
user 185.73
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/603324/ft1_filtered_4FGL_J1224.9+2122_daily_bin1359.fits scfile=/scratch/kocevski/603324/ft2_4FGL_J1224.9+2122_daily_bin1359.fits outfile=/scratch/kocevski/603324/cmap_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603324/ft1_filtered_4FGL_J1224.9+2122_daily_bin1359.fits scfile=/scratch/kocevski/603324/ft2_4FGL_J1224.9+2122_daily_bin1359.fits outfile=/scratch/kocevski/603324/cmap_HighResolution_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.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/603324/ft1_filtered_4FGL_J1224.9+2122_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/603324/ft2_4FGL_J1224.9+2122_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603324/Model_4FGL_J1224.9+2122_daily_bin1359.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/603324/ft1_filtered_4FGL_J1224.9+2122_daily_bin1359.fits.....................!
real 61.16
user 59.09
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20256E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6880       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1339       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33891E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    10.728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8867       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5516       1.0000         .10000E-03   10000.    
    14 'norm      '    .10575E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15580E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9594       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10343E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2340       1.0000         .10000E-03   10000.    
    23 'norm      '    34.119       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6710.740     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2115 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8686       -.59171E-06** at limit **
   2  Prefactor     .10000E-03    6.3802        .74834E-06** at limit **
   3  Prefactor     1.6870        1.4511        .87034E-07    .12258E-03
   4  norm          .10000E-03    .26125       -.76555E-07** at limit **
   5  Prefactor     11.434        8.0288        .61695E-06   -.23834E-02
   6  Prefactor     .10000E-03    2.7683        .62194E-06** at limit **
   7  Prefactor     .10023E-03    180.12       -.18134E-05** at limit **
   8  Prefactor     4.1365        3.6124       -.11488E-06    .16257E-03
   9  Prefactor     .10232E-03    66.354        .16213E-04** at limit **
  10  norm          10.719        3.5557        .92203E-07    .89033E-04
  11  Prefactor     1.8884        1.7540       -.20154E-06   -.75289E-04
  12  Prefactor     .10000E-03    3.0732       -.10456E-06** at limit **
  13  Prefactor     5.5380        6.2339       -.32247E-06   -.23900E-04
  14  norm          .10818E-01    .49466       -.70571E-09    .25115E-04
  15  norm          9.0909        4.9786        .87658E-07    .50616E-04
  16  Prefactor     16.842        12.942        .12577E-05   -.12299E-02
  17  Prefactor     .10000E-03    3.2117       -.47915E-06** at limit **
  18  Prefactor     .10002E-03    41.548        .87658E-06** at limit **
  19  Prefactor     11.016        123.57       -.95777E-05   -.14424E-02
  20  Prefactor     8.9116        6.9797        .10319E-06   -.14048E-04
  21  Prefactor     .14022E-03    121.97        .10043E-05** at limit **
  22  norm          7.2384        4.0961       -.89789E-07   -.16769E-03
  23  norm          33.964        14.029       -.15290E-05    .17786E-01
  24  Normalizat    .80131        .21352        .26002E-05    .10467E-03
  25  Prefactor     1.3323        .22116       -.11153E-05    .89045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68697
  norm       = 0.0001
  Prefactor  = 11.4342
  Prefactor  = 0.0001
  Prefactor  = 0.000100233
  Prefactor  = 4.13654
  Prefactor  = 0.000102316
  norm       = 10.7189
  Prefactor  = 1.8884
  Prefactor  = 0.0001
  Prefactor  = 5.53799
  norm       = 0.0108182
  norm       = 9.09086
  Prefactor  = 16.842
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 11.0165
  Prefactor  = 8.91159
  Prefactor  = 0.000140223
  norm       = 7.23841
  norm       = 33.9635
  Normalizat = 0.80131
  Prefactor  = 1.33235
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.740     FROM HESSE     STATUS=OK           501 CALLS     2616 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6870        1.4484        .81015E-02   -1.5448    
   4  norm          .10000E-03    .25831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.434        26.158        .29535E-02   -1.5032    
   6  Prefactor     .10000E-03    2.7262        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10023E-03    181.11        .13150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1365        3.9938        .49564E-02   -1.5301    
   9  Prefactor     .10232E-03    2.0266        .72098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.719        3.5882        .30581E-02   -1.5053    
  11  Prefactor     1.8884        1.7618        .75747E-02   -1.5433    
  12  Prefactor     .10000E-03    1.3844        .30019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5380        6.2776        .42628E-02   -1.5237    
  14  norm          .10818E-01    .10034        .13738E-01   -1.5687    
  15  norm          9.0909        4.9954        .33239E-02   -1.5105    
  16  Prefactor     16.842        12.958        .24416E-02   -1.4887    
  17  Prefactor     .10000E-03    3.2051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    41.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.016        140.01        .30634E-02   -1.5044    
  20  Prefactor     8.9116        6.9875        .33476E-02   -1.5111    
  21  Prefactor     .14022E-03    8.7326        .13447       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2384        4.1132        .37283E-02   -1.5170    
  23  norm          33.964        23.796        .17151E-02   -1.4542    
  24  Normalizat    .80131        .18423        .66860E-01   -1.0002    
  25  Prefactor     1.3323        .18638        .56466E-01   -.82350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10752e-07
Minuit parameter uncertainties:
  1  1.21283e-05
  2  1.78969e-05
  3  1.44841
  4  3.83158e-07
  5  26.1838
  6  1.06859e-05
  7  0.0130266
  8  3.99402
  9  0.00433283
  10  3.58826
  11  1.76184
  12  1.03168e-06
  13  6.27833
  14  0.0655875
  15  4.99564
  16  12.9597
  17  8.95772e-06
  18  0.00176944
  19  78.7738
  20  6.98818
  21  0.037489
  22  4.11335
  23  23.8027
  24  0.184375
  25  0.186474
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.082e-02  6.559e-02  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.332e+00  1.865e-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:  8.013e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603324/likelihoodResults_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.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) = 6710.73626444
delta logL = 0.00392726357313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6710.73470338
delta logL = 0.00548831918695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18879E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6740       1.0000          .0000       5.0000    
     3 'Normalizat'    .79921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3330       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6710.735     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      276 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18967E-01    .35474        .57360E-03    .82597E-03
   2  alpha         2.6857        3.8329        .10738       -.75480E-05
   3  Normalizat    .79919        .20840        .29618E-03    .24950E-05
   4  Prefactor     1.3330        .22057        .24962E-03    .13208E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0189671
  alpha      = 2.68568
  Normalizat = 0.799195
  Prefactor  = 1.33303
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.735     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18967E-01    .30171        .22944E-04   -1.5680    
   2  alpha         2.6857        3.8428        .42952E-02    .74340E-01
   3  Normalizat    .79919        .20871        .11847E-04   -1.0010    
   4  Prefactor     1.3330        .22058        .99848E-05   -.82330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29338e-13
Minuit parameter uncertainties:
  1  0.150897
  2  4.13084
  3  0.208917
  4  0.220733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603324': 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) = 6710.73469904
delta logL = 0.00549265655263

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.897e-02  1.509e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.686e+00  4.131e+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.333e+00  2.207e-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:  7.992e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 186.228 21.381

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/603324/cmap_HighResolution_591580801_591840001_4FGL_J1224.9+2122_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-05 13:50:02.402052', job_id='603324', GAL2='1.33', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630875002.4', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='5.49e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1359' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 603324: <4FGL_J1224.9+2122_daily_bin1359> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1359> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:00 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:02 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:36:02 2021
Terminated at Sun Sep  5 13:50:03 2021
Results reported at Sun Sep  5 13:50:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1359 186.228 21.3814 591580801 591840001 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

