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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin17
RA = 186.116, Dec = 24.6142
tmin = 243734401, tmax = 243993601
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='577270', job_status='RUN', time_executed='2021-09-05 12:19:46.510726', time_epoch_executed='1630869586.51' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577270/ft1_4FGL_J1224.4+2436_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577270/ft2_4FGL_J1224.4+2436_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577270/ft1_4FGL_J1224.4+2436_daily_bin17.fits outfile=/scratch/kocevski/577270/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin17.fits ra=186.116 dec=24.6142 rad=12.0 tmin=243734401.0 tmax=243993601.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.38
user 1.19
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577270/ft1_filtered_4FGL_J1224.4+2436_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/577270/ft2_4FGL_J1224.4+2436_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/577270/ltcube_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.fits outfile=/scratch/kocevski/577270/expmap_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.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/577270/ltcube_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.fits
.....................!
real 190.90
user 185.05
sys 5.21

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/577270/ft1_filtered_4FGL_J1224.4+2436_daily_bin17.fits scfile=/scratch/kocevski/577270/ft2_4FGL_J1224.4+2436_daily_bin17.fits outfile=/scratch/kocevski/577270/cmap_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577270/ft1_filtered_4FGL_J1224.4+2436_daily_bin17.fits scfile=/scratch/kocevski/577270/ft2_4FGL_J1224.4+2436_daily_bin17.fits outfile=/scratch/kocevski/577270/cmap_HighResolution_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16611E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.7599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4475       1.0000         .10000E-03   10000.    
    15 'norm      '    .31229       1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8429       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2093       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1329       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79289       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=   6763.908     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2455 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.784       -.17390E-08** at limit **
   2  Prefactor     .10000E-03    9.5871        .85206E-06** at limit **
   3  Prefactor     3.3537        1.8667       -.51403E-07   -.95864E-04
   4  Prefactor     .10000E-03    10.721       -.13156E-05** at limit **
   5  norm          4.1561        1.4563        .17574E-07   -.44010E-04
   6  Prefactor     5.5619        3.8622        .17290E-05   -.97843E-03
   7  Prefactor     .10000E-03    18.748        .16703E-05** at limit **
   8  Prefactor     1.8139        1.9980       -.16161E-06   -.54399E-04
   9  Prefactor     .10000E-03    1.2243       -.18200E-06** at limit **
  10  norm          9.7598        3.4036       -.93745E-07   -.37145E-03
  11  Prefactor     3.7511        5.4914        .19375E-06   -.41085E-04
  12  Prefactor     .10000E-03    .67509       -.32237E-07** at limit **
  13  Prefactor     10.125        2.8474        .16650E-07    .15111E-04
  14  Prefactor     4.4486        4.0237        .35744E-06    .39271E-03
  15  norm          .31222        .17822       -.70842E-08   -.20750E-03
  16  norm          .10000E-03    1.8883        .96946E-07** at limit **
  17  Prefactor     3.5889        5.7959        .15264E-06   -.24119E-04
  18  Prefactor     56.282        27.300       -.18519E-05   -.58534E-03
  19  Prefactor     .10000E-03    24.044       -.12524E-05** at limit **
  20  Prefactor     8.8413        9.2307        .13028E-06   -.24393E-04
  21  norm          .10000E-03    1.5448        .39132E-07** at limit **
  22  norm          2.2090        2.9996        .13033E-06   -.78012E-04
  23  norm          .10000E-03    6.2665       -.22239E-07** at limit **
  24  Normalizat    1.1328        .16776       -.50621E-06    .25740E-04
  25  Prefactor     .79301        .17707        .37530E-08   -.22719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35369
  Prefactor  = 0.000100001
  norm       = 4.15613
  Prefactor  = 5.56192
  Prefactor  = 0.000100001
  Prefactor  = 1.81392
  Prefactor  = 0.0001
  norm       = 9.75984
  Prefactor  = 3.75108
  Prefactor  = 0.0001
  Prefactor  = 10.1254
  Prefactor  = 4.44856
  norm       = 0.312224
  norm       = 0.0001
  Prefactor  = 3.58888
  Prefactor  = 56.2821
  Prefactor  = 0.000100001
  Prefactor  = 8.84132
  norm       = 0.0001
  norm       = 2.20905
  norm       = 0.0001
  Normalizat = 1.13285
  Prefactor  = 0.793011
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.908     FROM HESSE     STATUS=OK           429 CALLS     2884 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3537        1.8656        .80171E-04   -1.5342    
   4  Prefactor     .10000E-03    10.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1561        1.4576        .55917E-04   -1.5300    
   6  Prefactor     5.5619        3.9748        .65145E-03   -1.5236    
   7  Prefactor     .10000E-03    19.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8139        1.9659        .11492E-03   -1.5439    
   9  Prefactor     .10000E-03    2.8866        .17412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.7598        3.4076        .85636E-04   -1.5083    
  11  Prefactor     3.7511        5.4846        .20847E-03   -1.5321    
  12  Prefactor     .10000E-03    .67677        .65919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.125        2.8482        .69693E-04   -1.5071    
  14  Prefactor     4.4486        4.0356        .15278E-03   -1.5286    
  15  norm          .31222        .17621        .25160E-04   -1.5596    
  16  norm          .10000E-03    1.9084        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5889        5.7824        .21331E-03   -1.5329    
  18  Prefactor     56.282        28.687        .26732E-03   -1.4206    
  19  Prefactor     .10000E-03    24.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8413        9.2261        .13479E-03   -1.5113    
  21  norm          .10000E-03    1.5511        .99819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2090        2.9828        .15951E-03   -1.5411    
  23  norm          .10000E-03    6.2677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1328        .19690        .23800E-03   -.88704    
  25  Prefactor     .79301        .20670        .30058E-03   -.99986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12894e-09
Minuit parameter uncertainties:
  1  1.05415e-05
  2  8.60593e-05
  3  1.86563
  4  0.000192103
  5  1.4576
  6  3.97502
  7  0.000304365
  8  1.96594
  9  4.17594e-05
  10  3.40763
  11  5.48532
  12  3.62507e-07
  13  2.84826
  14  4.03589
  15  0.176209
  16  3.01699e-06
  17  5.78329
  18  28.6945
  19  0.000275264
  20  9.2276
  21  1.14813e-06
  22  2.98304
  23  2.89452e-06
  24  0.197032
  25  0.206906
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  4.449e+00  4.036e+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:  7.930e-01  2.069e-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.133e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/577270/likelihoodResults_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.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) = 6763.39330776
delta logL = 0.515070162979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6763.39325926
delta logL = 0.515118662785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5239       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3636       1.0000          .0000       10.000    
     3 'Normalizat'    1.1410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78715       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=   6763.393     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5145        5.4403        .15712E-03   -.45690E-03
   2  Index         1.3626        .48257        .93186E-02   -.78876E-04
   3  Normalizat    1.1410        .19003        .23726E-03   -.33566E-03
   4  Prefactor     .78717        .20520        .30147E-03   -.25331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5145
  Index      = 1.36261
  Normalizat = 1.14099
  Prefactor  = 0.787174
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.393     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5145        5.4512        .31425E-04   -1.5197    
   2  Index         1.3626        .48361        .37274E-03   -.81464    
   3  Normalizat    1.1410        .19018        .47452E-04   -.88446    
   4  Prefactor     .78717        .20537        .12059E-04   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13239e-10
Minuit parameter uncertainties:
  1  5.45157
  2  0.485228
  3  0.190293
  4  0.205573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577270': 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) = 6763.39325593
delta logL = 0.515121990854

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  6.514e+00  5.452e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.363e+00  4.852e-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:  7.872e-01  2.056e-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.141e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.36 +/- 0.49
Photon Flux (Free Index): 1.12e-08 +/- 1.11e-08
Energy Flux (Free Index): 5.62e-05 +/- 7.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/577270/cmap_HighResolution_243734401_243993601_4FGL_J1224.4+2436_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='5.62e-05', photon_flux_error='1.70e-08', dlogl='5.15e-01', energy_flux='1.57e-05', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-09-05 12:31:54.186817', photon_index_error2='0.49', photon_index2='1.36', ts='2.53', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.41e-08', energy_flux_error2='7.58e-05', EG='1.13', time_epoch_completed='1630870314.19', return_code='0', job_id='577270', GAL2='0.79', EG2='1.14', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.11e-08', ts2='3.56', photon_index='1.93' WHERE bin_id='17' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 577270: <4FGL_J1224.4+2436_daily_bin17> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin17 186.116 24.6142 243734401 243993601 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

