/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 3 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin510
RA = 186.116, Dec = 24.6142
tmin = 371520001, tmax = 371779201
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='580813', job_status='RUN', time_executed='2021-09-05 12:25:38.659929', time_epoch_executed='1630869938.66' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580813/ft1_4FGL_J1224.4+2436_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580813/ft1_4FGL_J1224.4+2436_daily_bin510.fits outfile=/scratch/kocevski/580813/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin510.fits ra=186.116 dec=24.6142 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.40
user 4.15
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/580813/ltcube_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.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/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits
.....................!
real 11.64
user 11.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/580813/ltcube_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits outfile=/scratch/kocevski/580813/expmap_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.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/580813/ltcube_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits
.....................!
real 189.94
user 185.13
sys 4.39

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/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits scfile=/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits outfile=/scratch/kocevski/580813/cmap_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.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.92
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits scfile=/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits outfile=/scratch/kocevski/580813/cmap_HighResolution_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.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.99
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits', '/scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits', expMap='/scratch/kocevski/580813/expmap_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits', expCube='/scratch/kocevski/580813/ltcube_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580813/Model_4FGL_J1224.4+2436_daily_bin510.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/580813/ft1_filtered_4FGL_J1224.4+2436_daily_bin510.fits
Spacecraft file(s): /scratch/kocevski/580813/ft2_4FGL_J1224.4+2436_daily_bin510.fits
Exposure map: /scratch/kocevski/580813/expmap_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits
Exposure cube: /scratch/kocevski/580813/ltcube_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580813/Model_4FGL_J1224.4+2436_daily_bin510.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) = 6301.10710104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5000       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7760       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1955       1.0000         .10000E-03   10000.    
    15 'norm      '    .61800       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3346       1.0000         .10000E-03   10000.    
    22 'norm      '    .25396       1.0000         .10000E-03   10000.    
    23 'norm      '    33.764       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1251       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=   6301.003     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2583 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.013        .32519E-06** at limit **
   2  Prefactor     .20892        17.227       -.61859E-05   -.11644E-03
   3  Prefactor     2.1558        1.6777       -.47855E-07   -.15037E-03
   4  Prefactor     .10000E-03    68.715        .25841E-05** at limit **
   5  norm          .10000E-03    .28194       -.15506E-07** at limit **
   6  Prefactor     5.0195        4.3554       -.14277E-05    .11756E-05
   7  Prefactor     .10000E-03    91.838       -.14921E-05** at limit **
   8  Prefactor     .10000E-03    3.4330       -.11409E-06** at limit **
   9  Prefactor     4.4972        3.5579        .82980E-07    .20155E-03
  10  norm          3.9751        4.0547       -.22346E-06   -.84539E-04
  11  Prefactor     12.320        8.5588        .15496E-06   -.82785E-05
  12  Prefactor     2.6379        3.1126       -.85300E-08   -.11207E-03
  13  Prefactor     2.7756        2.3435       -.59429E-07   -.77573E-04
  14  Prefactor     3.1952        3.8234       -.13976E-07    .55850E-05
  15  norm          .61787        .31421       -.54044E-08    .27894E-03
  16  norm          .10000E-03    2.3025       -.60096E-07** at limit **
  17  Prefactor     9.0312        8.7794        .19681E-06    .29040E-04
  18  Prefactor     .10000E-03    17.090        .55548E-06** at limit **
  19  Prefactor     .10000E-03    99.275       -.36479E-05** at limit **
  20  Prefactor     .10000E-03    12.132       -.67955E-07** at limit **
  21  norm          2.3346        2.8116        .47579E-07    .11363E-03
  22  norm          .22028        15.624       -.73232E-05    .12535E-03
  23  norm          33.780        28.967        .13960E-05    .91500E-04
  24  Normalizat    1.0842        .18754        .49960E-06    .21010E-05
  25  Prefactor     1.1252        .19199        .73212E-06    .32804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.208916
  Prefactor  = 2.1558
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.01952
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.49717
  norm       = 3.97511
  Prefactor  = 12.3201
  Prefactor  = 2.63791
  Prefactor  = 2.7756
  Prefactor  = 3.19524
  norm       = 0.617875
  norm       = 0.0001
  Prefactor  = 9.03124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33464
  norm       = 0.220281
  norm       = 33.7804
  Normalizat = 1.08417
  Prefactor  = 1.12524
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.003     FROM HESSE     STATUS=OK           435 CALLS     3018 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20892        40.641        .36555E-02   -1.5617    
   3  Prefactor     2.1558        1.6735        .87336E-04   -1.5414    
   4  Prefactor     .10000E-03    69.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .28478        .41142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0195        4.3611        .73343E-03   -1.5260    
   7  Prefactor     .10000E-03    93.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5670        .28591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4972        3.5406        .12584E-03   -1.5284    
  10  norm          3.9751        4.0695        .12769E-03   -1.5309    
  11  Prefactor     12.320        8.5651        .11412E-03   -1.5006    
  12  Prefactor     2.6379        3.1190        .12174E-03   -1.5383    
  13  Prefactor     2.7756        2.3396        .10386E-03   -1.5375    
  14  Prefactor     3.1952        3.8164        .16459E-03   -1.5350    
  15  norm          .61787        .30947        .29530E-04   -1.5551    
  16  norm          .10000E-03    2.3292        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0312        8.7757        .13336E-03   -1.5107    
  18  Prefactor     .10000E-03    17.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    99.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3346        2.8083        .14237E-03   -1.5402    
  22  norm          .22028        21.448        .23307E-02   -1.5614    
  23  norm          33.780        29.012        .68963E-04   -1.4545    
  24  Normalizat    1.0842        .22146        .26487E-03   -.90262    
  25  Prefactor     1.1252        .22721        .27595E-03   -.88664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2304e-08
Minuit parameter uncertainties:
  1  1.91986e-06
  2  5.83037
  3  1.67352
  4  0.000461228
  5  2.72458e-07
  6  4.36141
  7  0.000562967
  8  4.30776e-06
  9  3.5408
  10  4.06981
  11  8.56593
  12  3.11923
  13  2.33972
  14  3.81668
  15  0.309467
  16  4.02268e-06
  17  8.77698
  18  8.43689e-06
  19  3.92111e-05
  20  4.25313e-05
  21  2.80846
  22  4.34786
  23  29.024
  24  0.221652
  25  0.227404
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.195e+00  3.817e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.125e+00  2.274e-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.084e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/580813/likelihoodResults_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.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) = 6300.93253605
delta logL = 0.0703046001581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6300.93170697
delta logL = 0.0711336812128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3032       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5476       1.0000          .0000       10.000    
     3 'Normalizat'    1.0904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1226       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.

 FCN=   6300.932     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3044        207.67        .55689E-02   -.67659E-04
   2  Index         1.5471        7.2812        .29288       -.27733E-04
   3  Normalizat    1.0904        .19180        .59744E-01    .19069E-05
   4  Prefactor     1.1227        .10452        .62456E-01   -.69027E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30437
  Index      = 1.54709
  Normalizat = 1.09037
  Prefactor  = 1.12269
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.932     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3044        4.0074        .16905E-03   -1.5344    
   2  Index         1.5471        .89502        .15019E-01   -.76229    
   3  Normalizat    1.0904        .21185        .26422E-03   -.90061    
   4  Prefactor     1.1227        .22514        .27623E-03   -.88745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02631e-10
Minuit parameter uncertainties:
  1  4.00768
  2  0.904423
  3  0.212016
  4  0.225332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580813': 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) = 6300.93170659
delta logL = 0.0711340586704

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.304e+00  4.008e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.547e+00  9.044e-01  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.123e+00  2.253e-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.090e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.55 +/- 0.90
Photon Flux (Free Index): 7.13e-09 +/- 1.35e-08
Energy Flux (Free Index): 1.92e-05 +/- 3.79e-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/580813/cmap_HighResolution_371520001_371779201_4FGL_J1224.4+2436_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='1.92e-05', photon_flux_error='1.60e-08', dlogl='7.11e-02', energy_flux='1.13e-05', photon_flux2='7.13e-09', job_status='DONE', time_completed='2021-09-05 12:37:21.448179', photon_index_error2='0.90', photon_index2='1.55', ts='1.70', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.47e-08', energy_flux_error2='3.79e-05', EG='1.08', time_epoch_completed='1630870641.45', return_code='0', job_id='580813', GAL2='1.12', EG2='1.09', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='1.35e-08', ts2='1.84', photon_index='1.93' WHERE bin_id='510' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:37:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 580813: <4FGL_J1224.4+2436_daily_bin510> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin510> 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) <bullet0075>, 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:24 2021
Results reported at Sun Sep  5 12:37:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin510 186.116 24.6142 371520001 371779201 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            718 sec.

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

