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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin508
RA = 186.116, Dec = 24.6142
tmin = 371001601, tmax = 371260801
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='580810', job_status='RUN', time_executed='2021-09-05 12:25:37.903675', time_epoch_executed='1630869937.9' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580810

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580810/ft1_4FGL_J1224.4+2436_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580810/ft1_4FGL_J1224.4+2436_daily_bin508.fits outfile=/scratch/kocevski/580810/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin508.fits ra=186.116 dec=24.6142 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.36
user 6.09
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.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/580810/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/580810/ltcube_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.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/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits
.....................!
real 11.84
user 11.53
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/580810/ltcube_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits outfile=/scratch/kocevski/580810/expmap_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.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/580810/ltcube_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits
.....................!
real 189.86
user 185.37
sys 4.17

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits outfile=/scratch/kocevski/580810/cmap_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.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.116 yref=24.6142 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits outfile=/scratch/kocevski/580810/cmap_HighResolution_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.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.116 yref=24.6142 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580810/Model_4FGL_J1224.4+2436_daily_bin508.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/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits.....................!
real 58.15
user 56.79
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits', '/scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits', expMap='/scratch/kocevski/580810/expmap_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits', expCube='/scratch/kocevski/580810/ltcube_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580810/Model_4FGL_J1224.4+2436_daily_bin508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580810/ft1_filtered_4FGL_J1224.4+2436_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/580810/ft2_4FGL_J1224.4+2436_daily_bin508.fits
Exposure map: /scratch/kocevski/580810/expmap_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits
Exposure cube: /scratch/kocevski/580810/ltcube_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580810/Model_4FGL_J1224.4+2436_daily_bin508.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) = 6436.92672837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.214       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13190E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0117       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8770       1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .36726E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9407       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6436.767     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2579 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1890        65.308       -.20640E-05   -.14160E-03
   2  Prefactor     .10000E-03    5.4928       -.30121E-06** at limit **
   3  Prefactor     .10010E-03    2.0205        .15380E-05** at limit **
   4  Prefactor     12.207        29.092       -.12894E-05   -.14189E-03
   5  norm          2.3598        1.4110        .15702E-06   -.30398E-03
   6  Prefactor     .10000E-03    2.8643       -.79604E-06** at limit **
   7  Prefactor     .10000E-03    18.742        .15166E-06** at limit **
   8  Prefactor     4.5757        3.8173        .45389E-06    .35535E-03
   9  Prefactor     3.0115        2.7243       -.41282E-07   -.90928E-04
  10  norm          4.2139        4.6068        .95759E-09    .48137E-04
  11  Prefactor     10.428        8.6226        .10156E-05    .27444E-03
  12  Prefactor     2.3516        3.9704        .43657E-06    .18106E-03
  13  Prefactor     .10000E-03    1.3766       -.26737E-08** at limit **
  14  Prefactor     .10000E-03    5.3166        .33967E-06** at limit **
  15  norm          1.8771        .43177        .34896E-07   -.85080E-03
  16  norm          .10000E-03    2.3302       -.95207E-08** at limit **
  17  Prefactor     9.6708        11.922        .42925E-06   -.18942E-05
  18  Prefactor     .10000E-03    11.013        .33985E-06** at limit **
  19  Prefactor     .10000E-03    27.220        .69887E-06** at limit **
  20  Prefactor     .10000E-03    14.685       -.19625E-05** at limit **
  21  norm          .10000E-03    3.6639        .32334E-06** at limit **
  22  norm          6.9393        5.1792        .21103E-06   -.53867E-04
  23  norm          .10000E-03    18.932        .41754E-06** at limit **
  24  Normalizat    1.1784        .21630       -.28709E-05   -.65444E-03
  25  Prefactor     1.2142        .21056        .28280E-06   -.62647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18903
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 12.2066
  norm       = 2.35979
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 4.57571
  Prefactor  = 3.01149
  norm       = 4.21392
  Prefactor  = 10.4284
  Prefactor  = 2.35159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87705
  norm       = 0.0001
  Prefactor  = 9.67076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 6.93932
  norm       = 0.0001
  Normalizat = 1.17839
  Prefactor  = 1.21417
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.767     FROM HESSE     STATUS=OK           431 CALLS     3010 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1890        64.479        .28010E-03   -1.5412    
   2  Prefactor     .10000E-03    5.5073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    9.3512        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.207        29.292        .11462E-03   -1.5009    
   5  norm          2.3598        1.4045        .69849E-04   -1.5401    
   6  Prefactor     .10000E-03    8.3049        .24591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5757        3.7968        .13184E-03   -1.5280    
   9  Prefactor     3.0115        2.7142        .11863E-03   -1.5361    
  10  norm          4.2139        4.5911        .13286E-03   -1.5297    
  11  Prefactor     10.428        8.6313        .62037E-03   -1.5062    
  12  Prefactor     2.3516        3.9461        .15306E-03   -1.5401    
  13  Prefactor     .10000E-03    2.9855        .17919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4479        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8771        .43212        .23607E-04   -1.5434    
  16  norm          .10000E-03    2.3507        .11955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6708        11.819        .12880E-03   -1.5086    
  18  Prefactor     .10000E-03    11.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.775        .29801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9393        5.1868        .15061E-03   -1.5181    
  23  norm          .10000E-03    18.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1784        .24926        .28204E-03   -.87273    
  25  Prefactor     1.2142        .24796        .29417E-03   -.85896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21056e-08
Minuit parameter uncertainties:
  1  23.7886
  2  2.06113e-05
  3  0.00194527
  4  29.3261
  5  1.40454
  6  0.000347465
  7  4.40402e-05
  8  3.79696
  9  2.71427
  10  4.5915
  11  8.63233
  12  3.94654
  13  1.67273e-05
  14  3.52919e-05
  15  0.432125
  16  2.47337e-06
  17  11.8214
  18  4.90962e-05
  19  0.000145996
  20  0.000205672
  21  7.06843e-05
  22  5.18711
  23  8.00141e-05
  24  0.249512
  25  0.248201
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.529e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.214e+00  2.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.178e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580810/likelihoodResults_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.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): 102
logL (Free Index) = 6436.76777657
delta logL = -0.000872914815773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6436.76690402
delta logL = -3.61423190043e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9527       1.0000          .0000       10.000    
     3 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6436.767     FROM MIGRAD    STATUS=FAILED        95 CALLS      250 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    619.59        .36285E-03** at limit **
   2  Index         1.9826        9.0024        .50000       -.44193E-04
   3  Normalizat    1.1784        .62494E-01    .14102E-02   -.83520E-05
   4  Prefactor     1.2142        .66307E-01    .29417E-03   -.52559E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6436.767     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      424 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    619.59        .39730E-03** at limit **
   2  Index         1.9826        9.0024        .68293E-05   -.44193E-04
   3  Normalizat    1.1784        .62494E-01    .31238E-06   -.83520E-05
   4  Prefactor     1.2142        .66307E-01    .27111E-06   -.52559E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6436.767     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      458 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.754        .72569E-04** at limit **
   2  Index         1.9830        5.4545        .50000       -.44215E-04
   3  Normalizat    1.1784        .23136        .56408E-04   -.11327E-04
   4  Prefactor     1.2142        .24547        .11767E-04   -.75361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 1.983
  Normalizat = 1.17839
  Prefactor  = 1.21417
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.767     FROM HESSE     STATUS=OK            29 CALLS      487 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.0503        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9830        5.9801        .50000       -.64776    
   3  Normalizat    1.1784        .23127        .11282E-04   -.87273    
   4  Prefactor     1.2142        .24535        .23534E-05   -.85896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26009e-09
Minuit parameter uncertainties:
  1  0.000522478
  2  4.06117
  3  0.231474
  4  0.245584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580810': 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) = 6436.76690304
delta logL = 6.15613316768e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.225e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.983e+00  4.061e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.214e+00  2.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.178e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/580810/cmap_HighResolution_371001601_371260801_4FGL_J1224.4+2436_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-05 12:37:59.135377', job_id='580810', GAL2='1.21', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630870679.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='6.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='508' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:37:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 580810: <4FGL_J1224.4+2436_daily_bin508> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin508> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:26 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:25:27 2021
Terminated at Sun Sep  5 12:37:59 2021
Results reported at Sun Sep  5 12:37:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin508 186.116 24.6142 371001601 371260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

