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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1018
RA = 186.116, Dec = 24.6142
tmin = 503193601, tmax = 503452801
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='584122', job_status='RUN', time_executed='2021-09-05 12:37:48.157863', time_epoch_executed='1630870668.16' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584122/ft1_4FGL_J1224.4+2436_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584122/ft2_4FGL_J1224.4+2436_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584122/ft1_4FGL_J1224.4+2436_daily_bin1018.fits outfile=/scratch/kocevski/584122/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1018.fits ra=186.116 dec=24.6142 rad=12.0 tmin=503193601.0 tmax=503452801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.07
user 4.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584122/ft2_4FGL_J1224.4+2436_daily_bin1018.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/584122/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/584122/ft1_filtered_4FGL_J1224.4+2436_daily_bin1018.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584122/ft1_filtered_4FGL_J1224.4+2436_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/584122/ft2_4FGL_J1224.4+2436_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/584122/ltcube_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.fits outfile=/scratch/kocevski/584122/expmap_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.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/584122/ltcube_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.fits
.....................!
real 190.92
user 185.61
sys 4.94

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/584122/ft1_filtered_4FGL_J1224.4+2436_daily_bin1018.fits scfile=/scratch/kocevski/584122/ft2_4FGL_J1224.4+2436_daily_bin1018.fits outfile=/scratch/kocevski/584122/cmap_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584122/ft1_filtered_4FGL_J1224.4+2436_daily_bin1018.fits scfile=/scratch/kocevski/584122/ft2_4FGL_J1224.4+2436_daily_bin1018.fits outfile=/scratch/kocevski/584122/cmap_HighResolution_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2115       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24054E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.981       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18856E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.6670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .19879       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15585E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.903       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3450       1.0000         .10000E-03   10000.    
    21 'norm      '    9.5030       1.0000         .10000E-03   10000.    
    22 'norm      '    4.4794       1.0000         .10000E-03   10000.    
    23 'norm      '    24.534       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58367       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6468.995     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1672 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3369        21.026       -.11353E-03    .74836E-03
   2  Prefactor     .10048E-03    12.498        .14242E-04** at limit **
   3  Prefactor     4.7351        2.3700        .44217E-05    .12657E-04
   4  Prefactor     23.419        23.481       -.28509E-04    .26303E-03
   5  norm          6.3628        1.6587        .15673E-05   -.14010E-04
   6  Prefactor     4.1097        4.3302        .50341E-06    .99250E-04
   7  Prefactor     .10000E-03    16.466        .16921E-04** at limit **
   8  Prefactor     6.6032        3.4395       -.25907E-06    .85785E-05
   9  Prefactor     .10000E-03    1.9453        .18919E-05** at limit **
  10  norm          9.6723        4.0449       -.14326E-05   -.49399E-04
  11  Prefactor     7.4896        8.1705       -.58333E-05    .18367E-03
  12  Prefactor     6.7330        3.2032        .83767E-06   -.12706E-03
  13  Prefactor     .85475        1.8212       -.15121E-05    .39049E-05
  14  Prefactor     .10000E-03    1.3057       -.41223E-06** at limit **
  15  norm          .19918        .19151       -.97671E-08    .80099E-04
  16  norm          8.0112        4.1262       -.84449E-06   -.36182E-03
  17  Prefactor     9.4027        4.1524        .83859E-05    .12302E-01
  18  Prefactor     .10000E-03    9.0164        .13233E-05** at limit **
  19  Prefactor     17.167        99.098       -.35015E-05    .50573E-04
  20  Prefactor     4.3477        4.7744       -.54025E-05    .12368E-04
  21  norm          9.3100        6.4142        .40908E-06    .87616E-04
  22  norm          4.5031        3.6008       -.18063E-05    .29003E-05
  23  norm          24.264        26.733        .45903E-04   -.87329E-03
  24  Normalizat    .58138        .22696        .33819E-04   -.11214E-03
  25  Prefactor     1.4069        .24342       -.13223E-04   -.87675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33691
  Prefactor  = 0.000100478
  Prefactor  = 4.73508
  Prefactor  = 23.4192
  norm       = 6.36283
  Prefactor  = 4.10965
  Prefactor  = 0.0001
  Prefactor  = 6.60317
  Prefactor  = 0.0001
  norm       = 9.67228
  Prefactor  = 7.48963
  Prefactor  = 6.733
  Prefactor  = 0.854755
  Prefactor  = 0.0001
  norm       = 0.199175
  norm       = 8.01124
  Prefactor  = 9.40266
  Prefactor  = 0.0001
  Prefactor  = 17.1673
  Prefactor  = 4.3477
  norm       = 9.30995
  norm       = 4.50306
  norm       = 24.2639
  Normalizat = 0.581378
  Prefactor  = 1.40689
 **********
 **   18 **HESSE 
 **********

 FCN=   6468.995     FROM HESSE     STATUS=OK           497 CALLS     2169 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3369        21.494        .40268E-02   -1.5204    
   2  Prefactor     .10048E-03    4.8161        .66157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7351        2.3855        .46235E-02   -1.5273    
   4  Prefactor     23.419        23.510        .20450E-02   -1.4740    
   5  norm          6.3628        1.6614        .39804E-02   -1.5203    
   6  Prefactor     4.1097        4.3597        .49698E-02   -1.5302    
   7  Prefactor     .10000E-03    16.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6032        3.4556        .39136E-02   -1.5194    
   9  Prefactor     .10000E-03    1.9132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.6723        4.0438        .32222E-02   -1.5086    
  11  Prefactor     7.4896        8.1757        .36849E-02   -1.5161    
  12  Prefactor     6.7330        3.2003        .38638E-02   -1.5189    
  13  Prefactor     .85475        1.8771        .12632E-01   -1.5523    
  14  Prefactor     .10000E-03    1.3048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .19918        .20423        .74426E-02   -1.5619    
  16  norm          8.0112        4.1277        .35378E-02   -1.5142    
  17  Prefactor     9.4027        7.9298        .32749E-02   -1.5095    
  18  Prefactor     .10000E-03    9.0250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.167        98.009        .30333E-02   -1.4879    
  20  Prefactor     4.3477        4.7754        .48310E-02   -1.5291    
  21  norm          9.3100        6.4302        .32500E-02   -1.5098    
  22  norm          4.5031        3.6042        .47561E-02   -1.5284    
  23  norm          24.264        26.870        .20218E-02   -1.4722    
  24  Normalizat    .58138        .19912        .75738E-01   -1.0878    
  25  Prefactor     1.4069        .20819        .57545E-01   -.80182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19505e-07
Minuit parameter uncertainties:
  1  21.5207
  2  0.00303463
  3  2.38559
  4  23.5189
  5  1.66138
  6  4.36
  7  5.87524e-07
  8  3.45575
  9  6.55844e-07
  10  4.04391
  11  8.1769
  12  3.20036
  13  1.8772
  14  1.13306e-06
  15  0.204232
  16  4.12785
  17  7.9307
  18  6.33778e-06
  19  82.2435
  20  4.77587
  21  6.43072
  22  3.60433
  23  26.8835
  24  0.199363
  25  0.208311
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.133e-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:  1.407e+00  2.083e-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:  5.814e-01  1.994e-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: 3.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/584122/likelihoodResults_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.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) = 6468.99744292
delta logL = -0.00292568520945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6468.99451669
delta logL = 5.49038304598e-07

Fit tolerance = 1e-08

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

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

 FCN=   6468.995     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9401        .91195E-02** at limit **
   2  Index         1.4449        9.2431        .50000        .79856E-06
   3  Normalizat    .58138        .84252E-02    .33534E-03   -.65929E-03
   4  Prefactor     1.4069        .96000E-02    .25444E-03   -.86636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.44494
  Normalizat = 0.581377
  Prefactor  = 1.40689
 **********
 **   18 **HESSE 
 **********

 FCN=   6468.995     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.760        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4449        8.0723        .50000       -.79094    
   3  Normalizat    .58138        .31160E-01    .13414E-04   -1.0878    
   4  Prefactor     1.4069        .35504E-01    .50888E-04   -.80182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25864e-09
Minuit parameter uncertainties:
  1  0.000495175
  2  518.273
  3  0.0311609
  4  0.0355043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584122': 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) = 6468.99450937
delta logL = 7.86650707596e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  4.952e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.445e+00  5.183e+02  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.407e+00  3.550e-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:  5.814e-01  3.116e-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/584122/cmap_HighResolution_503193601_503452801_4FGL_J1224.4+2436_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.16e-08', time_completed='2021-09-05 12:48:56.612068', job_id='584122', GAL2='1.41', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630871336.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='7.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1018' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 584122: <4FGL_J1224.4+2436_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1018> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:34 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35:35 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:35:35 2021
Terminated at Sun Sep  5 12:48:57 2021
Results reported at Sun Sep  5 12:48:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1018 186.116 24.6142 503193601 503452801 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 :                                   652.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

