/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 0 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin176
RA = 186.116, Dec = 24.6142
tmin = 284947201, tmax = 285206401
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='578936', job_status='RUN', time_executed='2021-09-05 12:20:58.149308', time_epoch_executed='1630869658.15' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578936/ft1_4FGL_J1224.4+2436_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578936/ft2_4FGL_J1224.4+2436_daily_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578936/ft1_4FGL_J1224.4+2436_daily_bin176.fits outfile=/scratch/kocevski/578936/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin176.fits ra=186.116 dec=24.6142 rad=12.0 tmin=284947201.0 tmax=285206401.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.79
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578936/ft2_4FGL_J1224.4+2436_daily_bin176.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/578936/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin176.fits evtable="EVENTS" outfile="/scratch/kocevski/578936/ft1_filtered_4FGL_J1224.4+2436_daily_bin176.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 2.24
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578936/ft1_filtered_4FGL_J1224.4+2436_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/578936/ft2_4FGL_J1224.4+2436_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/578936/ltcube_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.fits outfile=/scratch/kocevski/578936/expmap_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.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/578936/ltcube_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.fits
.....................!
real 191.06
user 185.18
sys 4.14

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/578936/ft1_filtered_4FGL_J1224.4+2436_daily_bin176.fits scfile=/scratch/kocevski/578936/ft2_4FGL_J1224.4+2436_daily_bin176.fits outfile=/scratch/kocevski/578936/cmap_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578936/ft1_filtered_4FGL_J1224.4+2436_daily_bin176.fits scfile=/scratch/kocevski/578936/ft2_4FGL_J1224.4+2436_daily_bin176.fits outfile=/scratch/kocevski/578936/cmap_HighResolution_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39278E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0201       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6596       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1446       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.644       1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0649       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81400       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=   6428.518     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3336 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42968        16.036       -.85696E-06   -.11197E-03
   2  Prefactor     .10033E-03    9.6415        .28866E-06** at limit **
   3  Prefactor     .10000E-03    1.4756       -.31408E-07** at limit **
   4  Prefactor     3.0128        51.460        .15232E-05   -.32122E-04
   5  norm          2.3493        1.3214       -.56659E-07    .14784E-06
   6  Prefactor     .10000E-03    3.8194       -.10398E-06** at limit **
   7  Prefactor     .10000E-03    15.923       -.67020E-07** at limit **
   8  Prefactor     .10000E-03    .53401        .67992E-09** at limit **
   9  Prefactor     .10000E-03    .55991        .89745E-08** at limit **
  10  norm          .10000E-03    .70276       -.29102E-07** at limit **
  11  Prefactor     .10000E-03    6.2960       -.96049E-07** at limit **
  12  Prefactor     .77069        1.1733       -.13708E-07    .56161E-04
  13  Prefactor     3.2031        2.1071       -.15968E-06   -.83316E-04
  14  Prefactor     .10000E-03    2.1853        .18897E-07** at limit **
  15  norm          2.6596        .43060       -.11370E-07    .39902E-03
  16  norm          1.1455        3.1850       -.10795E-05   -.10325E-02
  17  Prefactor     44.644        14.906        .19604E-05    .34477E-04
  18  Prefactor     73.321        39.224        .42426E-06    .29589E-05
  19  Prefactor     64.725        73.604       -.19649E-04    .21918E-05
  20  Prefactor     8.0652        7.0880       -.44174E-06   -.83158E-04
  21  norm          .10000E-03    1.4315        .76935E-07** at limit **
  22  norm          .10000E-03    .90758        .29201E-08** at limit **
  23  norm          .10000E-03    5.2547        .17784E-08** at limit **
  24  Normalizat    1.3613        .19587        .84695E-06    .29018E-04
  25  Prefactor     .81388        .19615        .21527E-06    .31570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.429683
  Prefactor  = 0.00010033
  Prefactor  = 0.0001
  Prefactor  = 3.01282
  norm       = 2.34927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.770692
  Prefactor  = 3.20306
  Prefactor  = 0.0001
  norm       = 2.65965
  norm       = 1.14554
  Prefactor  = 44.6435
  Prefactor  = 73.3205
  Prefactor  = 64.7248
  Prefactor  = 8.06521
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.36134
  Prefactor  = 0.813884
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.518     FROM HESSE     STATUS=OK           431 CALLS     3767 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42968        183.64        .57850E-02   -1.5577    
   2  Prefactor     .10033E-03    157.70        .47131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9940        .18091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0128        51.816        .23353E-03   -1.5361    
   5  norm          2.3493        1.3161        .65180E-04   -1.5401    
   6  Prefactor     .10000E-03    3.9535        .30551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .53474        .57214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .56044        .58588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .70462        .65614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .77069        .96438        .10404E-02   -1.5532    
  13  Prefactor     3.2031        2.1001        .90065E-04   -1.5350    
  14  Prefactor     .10000E-03    2.1886        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6596        .43134        .20177E-04   -1.5382    
  16  norm          1.1455        3.2232        .23658E-03   -1.5494    
  17  Prefactor     44.644        14.897        .30002E-03   -1.4371    
  18  Prefactor     73.321        39.224        .46887E-04   -1.3993    
  19  Prefactor     64.725        72.867        .49875E-04   -1.4097    
  20  Prefactor     8.0652        7.0916        .14118E-03   -1.5140    
  21  norm          .10000E-03    1.4358        .93697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .90976        .74590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2552        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3613        .23494        .24677E-03   -.81754    
  25  Prefactor     .81388        .23114        .32692E-03   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51466e-09
Minuit parameter uncertainties:
  1  17.819
  2  0.0144732
  3  1.00667e-05
  4  25.0139
  5  1.31608
  6  1.02376e-05
  7  1.41511e-05
  8  3.9489e-07
  9  3.70086e-07
  10  5.81161e-07
  11  7.72994e-06
  12  0.964396
  13  2.10015
  14  3.68108e-06
  15  0.43134
  16  3.22364
  17  14.8987
  18  39.2376
  19  72.9677
  20  7.0923
  21  1.36277e-05
  22  2.85829e-08
  23  1.12623e-07
  24  0.235121
  25  0.231412
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.681e-06  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:  8.139e-01  2.314e-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.361e+00  2.351e-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: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578936/likelihoodResults_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.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) = 6428.52014613
delta logL = -0.00209812980665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6428.51804792
delta logL = 8.0389327195e-08

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 'Index     '    1.9157       1.0000          .0000       10.000    
     3 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81388       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=   6428.518     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.074        .90712E-02** at limit **
   2  Index         1.9060        9.0418        .50000        .33797E-04
   3  Normalizat    1.3613        .20118E-01    .55807E-01    .20947E-04
   4  Prefactor     .81388        .21321E-01    .73871E-01    .33400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90595
  Normalizat = 1.36134
  Prefactor  = 0.813884
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.518     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    363.67        .11612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9060        5.5934        .50000       -.66723    
   3  Normalizat    1.3613        .84381E-01    .24677E-03   -.81754    
   4  Prefactor     .81388        .89288E-01    .32692E-03   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94519e-07
Minuit parameter uncertainties:
  1  1.83734e-05
  2  50.7732
  3  0.0843893
  4  0.0893036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578936': 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): 102
logL (Free Index) = 6428.51804783
delta logL = 1.69604390976e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.837e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.906e+00  5.077e+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:  8.139e-01  8.930e-02  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.361e+00  8.439e-02  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/578936/cmap_HighResolution_284947201_285206401_4FGL_J1224.4+2436_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-05 12:34:10.817126', job_id='578936', GAL2='0.81', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630870450.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='176' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:34:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 578936: <4FGL_J1224.4+2436_daily_bin176> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin176> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:20:29 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:20:30 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:20:30 2021
Terminated at Sun Sep  5 12:34:11 2021
Results reported at Sun Sep  5 12:34:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin176 186.116 24.6142 284947201 285206401 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 :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

