/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 218 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 = 7494
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin38
RA = 186.116, Dec = 24.6142
tmin = 249177601, tmax = 249436801
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='577309', job_status='RUN', time_executed='2021-09-05 12:19:46.064505', time_epoch_executed='1630869586.06' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577309/ft1_4FGL_J1224.4+2436_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577309/ft1_4FGL_J1224.4+2436_daily_bin38.fits outfile=/scratch/kocevski/577309/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin38.fits ra=186.116 dec=24.6142 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.44
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577309/ft1_filtered_4FGL_J1224.4+2436_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/577309/ltcube_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.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/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits
.....................!
real 13.98
user 13.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577309/ft1_filtered_4FGL_J1224.4+2436_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/577309/ltcube_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.fits outfile=/scratch/kocevski/577309/expmap_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.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/577309/ltcube_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.fits
.....................!
real 191.26
user 185.87
sys 4.55

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/577309/ft1_filtered_4FGL_J1224.4+2436_daily_bin38.fits scfile=/scratch/kocevski/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits outfile=/scratch/kocevski/577309/cmap_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577309/ft1_filtered_4FGL_J1224.4+2436_daily_bin38.fits scfile=/scratch/kocevski/577309/ft2_4FGL_J1224.4+2436_daily_bin38.fits outfile=/scratch/kocevski/577309/cmap_HighResolution_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2457       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3879       1.0000         .10000E-03   10000.    
    15 'norm      '    .28663       1.0000         .10000E-03   10000.    
    16 'norm      '    .19798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.889       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3957       1.0000         .10000E-03   10000.    
    21 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8134       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2652       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86954       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=   5346.289     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2874 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5902        18.939       -.20212E-05   -.12388E-04
   2  Prefactor     .10000E-03    2.9785        .13404E-06** at limit **
   3  Prefactor     .10000E-03    .83845       -.42462E-07** at limit **
   4  Prefactor     .10000E-03    44.512       -.60891E-06** at limit **
   5  norm          4.8733        1.8317       -.34474E-07    .10564E-03
   6  Prefactor     .10000E-03    1.4084       -.18448E-06** at limit **
   7  Prefactor     .10000E-03    17.008        .10037E-05** at limit **
   8  Prefactor     .10000E-03    1.2639       -.62476E-07** at limit **
   9  Prefactor     2.2450        2.8825       -.31490E-07   -.43554E-03
  10  norm          1.9268        1.9357       -.24436E-07    .16004E-03
  11  Prefactor     .10000E-03    3.3294       -.17743E-06** at limit **
  12  Prefactor     .10000E-03    .87685        .51108E-07** at limit **
  13  Prefactor     3.5613        2.6457       -.56784E-08    .25588E-03
  14  Prefactor     3.3885        3.5956        .41732E-06    .39341E-03
  15  norm          .28660        .18880       -.82599E-08    .60464E-03
  16  norm          .19400        2.6510       -.24120E-05    .15299E-02
  17  Prefactor     .10000E-03    6.0257        .19129E-06** at limit **
  18  Prefactor     25.882        29.088       -.85134E-05    .59346E-05
  19  Prefactor     35.544        48.683       -.16726E-04    .95128E-05
  20  Prefactor     4.3952        4.8583        .92705E-08    .45677E-04
  21  norm          .10000E-03    2.3992        .29585E-07** at limit **
  22  norm          .10000E-03    1.5388       -.30408E-07** at limit **
  23  norm          7.8120        16.388       -.76110E-06   -.20137E-04
  24  Normalizat    1.2653        .18760        .18348E-05    .24571E-03
  25  Prefactor     .86954        .19903        .70545E-06    .23699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.87329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24502
  norm       = 1.92678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56134
  Prefactor  = 3.38854
  norm       = 0.286602
  norm       = 0.194004
  Prefactor  = 0.0001
  Prefactor  = 25.8815
  Prefactor  = 35.5442
  Prefactor  = 4.39521
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.81198
  Normalizat = 1.2653
  Prefactor  = 0.869542
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.289     FROM HESSE     STATUS=OK           429 CALLS     3303 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5902        18.794        .14554E-03   -1.5157    
   2  Prefactor     .10000E-03    2.9838        .12323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3802        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8733        1.8315        .56856E-04   -1.5266    
   6  Prefactor     .10000E-03    1.4280        .84727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2987        .16010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2450        2.8633        .13391E-03   -1.5408    
  10  norm          1.9268        1.9397        .98310E-04   -1.5430    
  11  Prefactor     .10000E-03    3.3439        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .88337        .66810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5613        2.6331        .96598E-04   -1.5331    
  14  Prefactor     3.3885        3.6719        .13731E-03   -1.5340    
  15  norm          .28660        .18599        .24823E-04   -1.5601    
  16  norm          .19400        14.486        .21479E-02   -1.5620    
  17  Prefactor     .10000E-03    6.0502        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.882        29.161        .78732E-04   -1.4690    
  19  Prefactor     35.544        48.911        .67208E-04   -1.4515    
  20  Prefactor     4.3952        4.8575        .16456E-03   -1.5289    
  21  norm          .10000E-03    2.4274        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5463        .88561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8120        16.387        .14345E-03   -1.5149    
  24  Normalizat    1.2653        .22045        .22836E-03   -.84608    
  25  Prefactor     .86954        .23404        .29291E-03   -.97214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42929e-08
Minuit parameter uncertainties:
  1  18.8085
  2  3.08312e-06
  3  9.12227e-06
  4  9.83875e-05
  5  1.83148
  6  3.38838e-06
  7  1.8452e-05
  8  3.3017e-06
  9  2.86346
  10  1.93979
  11  4.23168e-06
  12  9.98601e-07
  13  2.63317
  14  3.67213
  15  0.185995
  16  3.35276
  17  1.58215e-06
  18  29.177
  19  48.9667
  20  4.85792
  21  9.7528e-06
  22  2.50302e-06
  23  16.396
  24  0.220614
  25  0.234309
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.389e+00  3.672e+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:  8.695e-01  2.343e-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.265e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/577309/likelihoodResults_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.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) = 5345.54129838
delta logL = 0.747470132897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5345.54014703
delta logL = 0.748621474036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5490       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1196       1.0000          .0000       10.000    
     3 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86813       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=   5345.540     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5490        3.7610        .53638E-02   -.15866E-02
   2  Index         1.1196        .51760        .27970        .45548E-05
   3  Normalizat    1.2718        .18134        .51532E-01    .12375E-05
   4  Prefactor     .86815        .19778        .66262E-01    .15358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.54897
  Index      = 1.11962
  Normalizat = 1.27183
  Prefactor  = 0.868149
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.540     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5490        4.2403        .13862E-03   -1.5331    
   2  Index         1.1196        .62850        .11432E-01   -.88842    
   3  Normalizat    1.2718        .21320        .22784E-03   -.84411    
   4  Prefactor     .86815        .23239        .29311E-03   -.97263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54461e-10
Minuit parameter uncertainties:
  1  4.24068
  2  0.632734
  3  0.213346
  4  0.232652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577309': 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) = 5345.54014703
delta logL = 0.74862147887

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.549e+00  4.241e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.120e+00  6.327e-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.681e-01  2.327e-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.272e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.12 +/- 0.63
Photon Flux (Free Index): 5.36e-09 +/- 6.61e-09
Energy Flux (Free Index): 5.65e-05 +/- 8.53e-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/577309/cmap_HighResolution_249177601_249436801_4FGL_J1224.4+2436_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='5.65e-05', photon_flux_error='1.54e-08', dlogl='7.49e-01', energy_flux='1.19e-05', photon_flux2='5.36e-09', job_status='DONE', time_completed='2021-09-05 12:30:46.175572', photon_index_error2='0.63', photon_index2='1.12', ts='3.28', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.31e-08', energy_flux_error2='8.53e-05', EG='1.27', time_epoch_completed='1630870246.18', return_code='0', job_id='577309', GAL2='0.87', EG2='1.27', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.61e-09', ts2='4.77', photon_index='1.93' WHERE bin_id='38' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 577309: <4FGL_J1224.4+2436_daily_bin38> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin38> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:45 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:47 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:15:47 2021
Terminated at Sun Sep  5 12:30:46 2021
Results reported at Sun Sep  5 12:30:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin38 186.116 24.6142 249177601 249436801 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

