/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7353
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1405
RA = 186.116, Dec = 24.6142
tmin = 603504001, tmax = 603763201
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='585798', job_status='RUN', time_executed='2021-09-05 12:42:41.633451', time_epoch_executed='1630870961.63' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585798/ft1_4FGL_J1224.4+2436_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585798/ft1_4FGL_J1224.4+2436_daily_bin1405.fits outfile=/scratch/kocevski/585798/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1405.fits ra=186.116 dec=24.6142 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.73
user 2.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.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/585798/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/585798/ft1_filtered_4FGL_J1224.4+2436_daily_bin1405.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/585798/ft1_filtered_4FGL_J1224.4+2436_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/585798/ltcube_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.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/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits
.....................!
real 12.24
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585798/ft1_filtered_4FGL_J1224.4+2436_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/585798/ltcube_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.fits outfile=/scratch/kocevski/585798/expmap_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.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/585798/ltcube_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.fits
.....................!
real 191.22
user 185.87
sys 4.98

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/585798/ft1_filtered_4FGL_J1224.4+2436_daily_bin1405.fits scfile=/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits outfile=/scratch/kocevski/585798/cmap_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585798/ft1_filtered_4FGL_J1224.4+2436_daily_bin1405.fits scfile=/scratch/kocevski/585798/ft2_4FGL_J1224.4+2436_daily_bin1405.fits outfile=/scratch/kocevski/585798/cmap_HighResolution_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.798       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3252       1.0000         .10000E-03   10000.    
    10 'norm      '    9.0753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    93.747       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.9183       1.0000         .10000E-03   10000.    
    23 'norm      '    31.870       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85247       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=   2276.808     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2866 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.958       -.12417E-06** at limit **
   2  Prefactor     .10000E-03    21.075        .70039E-08** at limit **
   3  Prefactor     .10000E-03    2.4781       -.30573E-07** at limit **
   4  Prefactor     50.808        94.105        .24045E-06   -.43818E-05
   5  norm          1.5536        2.5692        .73182E-07   -.17930E-05
   6  Prefactor     .10000E-03    12.892        .18583E-07** at limit **
   7  Prefactor     28.814        79.322       -.13343E-05   -.31602E-04
   8  Prefactor     .10000E-03    2.6001       -.14224E-07** at limit **
   9  Prefactor     2.3246        3.9478        .12504E-06    .26810E-04
  10  norm          9.0757        6.0890       -.13980E-07   -.23778E-05
  11  Prefactor     6.5041        13.367        .30950E-05   -.32426E-04
  12  Prefactor     7.3678        5.4148       -.16694E-07   -.31456E-05
  13  Prefactor     .10000E-03    3.3680       -.69849E-07** at limit **
  14  Prefactor     .10000E-03    7.6714       -.68174E-07** at limit **
  15  norm          .10000E-03    .60362       -.82338E-07** at limit **
  16  norm          15.536        11.750        .15506E-06    .10066E-04
  17  Prefactor     .10000E-03    6.2020        .46578E-07** at limit **
  18  Prefactor     56.398        56.355        .12266E-06   -.49759E-05
  19  Prefactor     93.827        154.93        .91922E-06    .24984E-04
  20  Prefactor     .10000E-03    14.567       -.40343E-06** at limit **
  21  norm          .10000E-03    5.5177        .12442E-05** at limit **
  22  norm          5.9184        5.6911        .10242E-07    .26193E-06
  23  norm          31.872        31.816        .10645E-07    .28672E-05
  24  Normalizat    1.1958        .32250       -.16342E-05    .45802E-04
  25  Prefactor     .85277        .32029        .14814E-05   -.13916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8083
  norm       = 1.55361
  Prefactor  = 0.0001
  Prefactor  = 28.814
  Prefactor  = 0.0001
  Prefactor  = 2.32455
  norm       = 9.0757
  Prefactor  = 6.50407
  Prefactor  = 7.36775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.536
  Prefactor  = 0.0001
  Prefactor  = 56.3978
  Prefactor  = 93.8265
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.91839
  norm       = 31.8715
  Normalizat = 1.19578
  Prefactor  = 0.852774
 **********
 **   18 **HESSE 
 **********

 FCN=   2276.808     FROM HESSE     STATUS=OK           425 CALLS     3291 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4827        .73355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.808        93.985        .56268E-04   -1.4281    
   5  norm          1.5536        2.5347        .93913E-04   -1.5459    
   6  Prefactor     .10000E-03    13.094        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.814        79.452        .74598E-04   -1.4634    
   8  Prefactor     .10000E-03    2.6044        .75130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3246        3.9230        .11985E-03   -1.5403    
  10  norm          9.0757        6.1027        .89437E-04   -1.5105    
  11  Prefactor     6.5041        13.442        .78697E-03   -1.5198    
  12  Prefactor     7.3678        5.4264        .88245E-04   -1.5165    
  13  Prefactor     .10000E-03    3.4279        .85402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6811        .12899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7831        .69266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.536        11.731        .10162E-03   -1.4919    
  17  Prefactor     .10000E-03    6.2035        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.398        56.394        .53416E-04   -1.4205    
  19  Prefactor     93.827        155.16        .20754E-03   -1.3768    
  20  Prefactor     .10000E-03    14.773        .17772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.5355        .10930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9184        5.6893        .10624E-03   -1.5221    
  23  norm          31.872        31.806        .70977E-04   -1.4578    
  24  Normalizat    1.1958        .37090        .25333E-03   -.86733    
  25  Prefactor     .85277        .37163        .30385E-03   -.97811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9176e-10
Minuit parameter uncertainties:
  1  4.03316e-06
  2  1.71347e-05
  3  5.14223e-07
  4  94.2609
  5  2.53487
  6  3.39306e-05
  7  79.7455
  8  1.24265e-07
  9  3.92344
  10  6.10309
  11  13.4479
  12  5.42671
  13  4.97969e-07
  14  3.73646e-06
  15  3.78668e-05
  16  11.7325
  17  2.74021e-06
  18  56.4477
  19  155.841
  20  3.09073e-05
  21  9.18971e-06
  22  5.68983
  23  31.8225
  24  0.371717
  25  0.372738
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.736e-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.528e-01  3.727e-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.196e+00  3.717e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585798/likelihoodResults_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.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) = 2276.80899277
delta logL = -0.000613341742792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2276.80837943
delta logL = 3.06135916617e-09

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.9298       1.0000          .0000       10.000    
     3 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85279       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=   2276.808     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    540.00        .90712E-02** at limit **
   2  Index         1.9345        5.8273        .50000       -.50383E-05
   3  Normalizat    1.1958        .72533E-01    .57287E-01    .39904E-05
   4  Prefactor     .85278        .75124E-01    .68679E-01    .82285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93454
  Normalizat = 1.19578
  Prefactor  = 0.852777
 **********
 **   18 **HESSE 
 **********

 FCN=   2276.808     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    719.37        .12910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9345        8.6861        .50000       -.65997    
   3  Normalizat    1.1958        .87236E-01    .25333E-03   -.86733    
   4  Prefactor     .85278        .90300E-01    .30385E-03   -.97811    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31261e-09
Minuit parameter uncertainties:
  1  2.00529e-05
  2  38.7213
  3  0.0872464
  4  0.0903155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585798': 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) = 2276.80837942
delta logL = 1.16515366244e-08

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  2.005e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.935e+00  3.872e+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.528e-01  9.032e-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.196e+00  8.725e-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/585798/cmap_HighResolution_603504001_603763201_4FGL_J1224.4+2436_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-05 12:52:14.396749', job_id='585798', GAL2='0.85', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630871534.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1405' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 585798: <4FGL_J1224.4+2436_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1405> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 12:40:42 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:40:44 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:40:44 2021
Terminated at Sun Sep  5 12:52:15 2021
Results reported at Sun Sep  5 12:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1405 186.116 24.6142 603504001 603763201 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 :                                   459.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

