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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin58
RA = 186.116, Dec = 24.6142
tmin = 254361601, tmax = 254620801
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='577345', job_status='RUN', time_executed='2021-09-05 12:19:19.163257', time_epoch_executed='1630869559.16' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577345/ft1_4FGL_J1224.4+2436_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577345/ft1_4FGL_J1224.4+2436_daily_bin58.fits outfile=/scratch/kocevski/577345/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin58.fits ra=186.116 dec=24.6142 rad=12.0 tmin=254361601.0 tmax=254620801.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.41
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577345/ft1_filtered_4FGL_J1224.4+2436_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/577345/ltcube_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.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/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits
.....................!
real 12.59
user 12.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577345/ft1_filtered_4FGL_J1224.4+2436_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/577345/ltcube_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.fits outfile=/scratch/kocevski/577345/expmap_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.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/577345/ltcube_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.fits
.....................!
real 190.58
user 185.70
sys 4.51

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/577345/ft1_filtered_4FGL_J1224.4+2436_daily_bin58.fits scfile=/scratch/kocevski/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits outfile=/scratch/kocevski/577345/cmap_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.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/577345/ft1_filtered_4FGL_J1224.4+2436_daily_bin58.fits scfile=/scratch/kocevski/577345/ft2_4FGL_J1224.4+2436_daily_bin58.fits outfile=/scratch/kocevski/577345/cmap_HighResolution_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36988E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27626E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6624       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6076       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8795       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81881       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1048       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=   5249.677     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2925 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.127        17.798       -.92075E-05   -.36875E-03
   2  Prefactor     .10000E-03    9.4902       -.37645E-05** at limit **
   3  Prefactor     .39798E-01    .93640        .11185E-05   -.80662E-03
   4  Prefactor     .10000E-03    20.492        .83170E-05** at limit **
   5  norm          2.8696        1.2571        .11062E-06   -.42686E-03
   6  Prefactor     .10000E-03    2.3805       -.83651E-07** at limit **
   7  Prefactor     .10000E-03    10.032        .40734E-05** at limit **
   8  Prefactor     5.2103        3.0631        .80807E-06    .61956E-03
   9  Prefactor     .10000E-03    1.4371       -.58105E-06** at limit **
  10  norm          5.6625        2.6999        .67716E-06   -.17808E-05
  11  Prefactor     .10000E-03    2.1098        .17572E-06** at limit **
  12  Prefactor     1.4573        1.4090        .56621E-07    .15946E-03
  13  Prefactor     6.0179        2.5066       -.17673E-06   -.82134E-04
  14  Prefactor     .10000E-03    2.1969       -.63425E-06** at limit **
  15  norm          .10000E-03    .51810E-01   -.88268E-07** at limit **
  16  norm          .10000E-03    3.1950        .25425E-06** at limit **
  17  Prefactor     9.3492        11.312       -.43296E-06   -.73141E-04
  18  Prefactor     .10000E-03    12.636        .37736E-05** at limit **
  19  Prefactor     .10000E-03    37.822       -.12419E-05** at limit **
  20  Prefactor     .10000E-03    1.8212       -.17483E-06** at limit **
  21  norm          4.6077        3.9136       -.19278E-06   -.66688E-04
  22  norm          1.8796        2.0587       -.20968E-07    .15550E-03
  23  norm          .10000E-03    15.780       -.10748E-04** at limit **
  24  Normalizat    .81878        .17288        .54574E-06   -.98058E-04
  25  Prefactor     1.1048        .19073        .25871E-07   -.97291E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1274
  Prefactor  = 0.0001
  Prefactor  = 0.0397981
  Prefactor  = 0.0001
  norm       = 2.86958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21029
  Prefactor  = 0.0001
  norm       = 5.66249
  Prefactor  = 0.0001
  Prefactor  = 1.45732
  Prefactor  = 6.01794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.34922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.60768
  norm       = 1.87962
  norm       = 0.0001
  Normalizat = 0.818782
  Prefactor  = 1.10482
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.677     FROM HESSE     STATUS=OK           429 CALLS     3354 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.127        18.219        .91527E-04   -1.4833    
   2  Prefactor     .10000E-03    9.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39798E-01    15.045        .12891E-02   -1.5668    
   4  Prefactor     .10000E-03    20.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8696        1.2549        .51711E-04   -1.5369    
   6  Prefactor     .10000E-03    2.4736        .21806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2103        2.8965        .87759E-04   -1.5251    
   9  Prefactor     .10000E-03    25.123        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6625        2.6966        .78675E-04   -1.5232    
  11  Prefactor     .10000E-03    2.1124        .10278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4573        1.4280        .81323E-04   -1.5467    
  13  Prefactor     6.0179        2.5058        .69684E-04   -1.5217    
  14  Prefactor     .10000E-03    2.2083        .10485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .55132E-01    .32117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2420        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3492        11.308        .13107E-03   -1.5096    
  18  Prefactor     .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8234        .95486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6077        3.9120        .12826E-03   -1.5279    
  22  norm          1.8796        2.0620        .10582E-03   -1.5434    
  23  norm          .10000E-03    15.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81878        .20437        .24636E-03   -.99376    
  25  Prefactor     1.1048        .22603        .24214E-03   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12633e-09
Minuit parameter uncertainties:
  1  18.2241
  2  1.79499e-05
  3  1.54606
  4  1.22458e-05
  5  1.25493
  6  1.02671e-05
  7  4.34926e-06
  8  2.89657
  9  5.99791e-06
  10  2.69665
  11  1.01151e-06
  12  1.42798
  13  2.50588
  14  6.46229e-07
  15  3.15206e-08
  16  5.81266e-07
  17  11.311
  18  7.20589e-06
  19  3.86358e-07
  20  4.3799e-07
  21  3.91224
  22  2.06208
  23  1.99676e-05
  24  0.204557
  25  0.226228
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  6.462e-07  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.105e+00  2.262e-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:  8.188e-01  2.046e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577345/likelihoodResults_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.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) = 5249.67908126
delta logL = -0.0021372286883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5249.67694402
delta logL = 1.36924427352e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9092       1.0000          .0000       10.000    
     3 'Normalizat'    .81879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1048       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=   5249.677     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.2569        .10591E-02** at limit **
   2  Index         1.8935        5.9340        .50000        .52329E-04
   3  Normalizat    .81878        .19838        .24636E-03   -.88601E-05
   4  Prefactor     1.1048        .22431        .24214E-03   -.82633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.89349
  Normalizat = 0.818784
  Prefactor  = 1.10482
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.677     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.2549        .21183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8935        5.9341        .50000       -.67040    
   3  Normalizat    .81878        .19858        .98545E-05   -.99376    
   4  Prefactor     1.1048        .22454        .96856E-05   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75176e-09
Minuit parameter uncertainties:
  1  0.00023696
  2  3.92164
  3  0.198759
  4  0.224732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577345': 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) = 5249.67694359
delta logL = 4.41892552772e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  2.370e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.893e+00  3.922e+00  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.105e+00  2.247e-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:  8.188e-01  1.988e-01  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/577345/cmap_HighResolution_254361601_254620801_4FGL_J1224.4+2436_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-05 12:30:18.204398', job_id='577345', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630870218.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='58' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:30:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 577345: <4FGL_J1224.4+2436_daily_bin58> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin58 186.116 24.6142 254361601 254620801 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 :                                   657.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            874 sec.

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

