/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 126 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 = 7304
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1440.9+0609_daily_bin384
RA = 220.242, Dec = 6.1631
tmin = 338860801, tmax = 339120001
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='697326', job_status='RUN', time_executed='2021-09-10 04:54:09.736224', time_epoch_executed='1631274849.74' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697326

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697326/ft1_4FGL_J1440.9+0609_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697326/ft1_4FGL_J1440.9+0609_daily_bin384.fits outfile=/scratch/kocevski/697326/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin384.fits ra=220.242 dec=6.1631 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.86
user 4.64
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.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/697326/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin384.fits evtable="EVENTS" outfile="/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.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.46
user 0.34
sys 0.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/697326/ltcube_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.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/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits
.....................!
real 11.79
user 11.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/697326/ltcube_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits outfile=/scratch/kocevski/697326/expmap_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.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/697326/ltcube_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits
.....................!
real 189.53
user 184.41
sys 4.74

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1440.9+0609 @ 220.242 6.1631

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits outfile=/scratch/kocevski/697326/cmap_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.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=220.242 yref=6.1631 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits outfile=/scratch/kocevski/697326/cmap_HighResolution_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.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=220.242 yref=6.1631 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/697326/Model_4FGL_J1440.9+0609_daily_bin384.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/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits.....................!
real 57.90
user 56.54
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits', '/scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits', expMap='/scratch/kocevski/697326/expmap_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits', expCube='/scratch/kocevski/697326/ltcube_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/697326/Model_4FGL_J1440.9+0609_daily_bin384.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1440.9+0609'

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  8.135e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.120e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/697326/ft1_filtered_4FGL_J1440.9+0609_daily_bin384.fits
Spacecraft file(s): /scratch/kocevski/697326/ft2_4FGL_J1440.9+0609_daily_bin384.fits
Exposure map: /scratch/kocevski/697326/expmap_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits
Exposure cube: /scratch/kocevski/697326/ltcube_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/697326/Model_4FGL_J1440.9+0609_daily_bin384.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) = 7665.0393512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6547       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0735       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1339       1.0000         .10000E-03   10000.    
     6 'norm      '    40.739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.988       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50006       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3490       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7665.019     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2152 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6545        11.688        .26890E-05   -.12704E-03
   2  Prefactor     .10000E-03    3.9681       -.28568E-07** at limit **
   3  Prefactor     7.0740        18.015        .65184E-07   -.34783E-05
   4  norm          1.6121        6.8320        .12294E-05   -.32354E-04
   5  Prefactor     7.1251        20.836       -.13661E-05   -.16835E-04
   6  norm          40.742        28.399        .67109E-06    .14974E-04
   7  Prefactor     .10000E-03    2.1937       -.39448E-07** at limit **
   8  Prefactor     11.587        8.3241        .10788E-05   -.14732E-03
   9  Prefactor     .10000E-03    47.176        .15942E-05** at limit **
  10  Prefactor     15.015        23.198        .30977E-05    .11812E-03
  11  norm          1.8160        31.500       -.15899E-05   -.69719E-04
  12  Prefactor     .10000E-03    19.385       -.80915E-06** at limit **
  13  Prefactor     .10000E-03    8.0745        .48203E-08** at limit **
  14  Prefactor     10.918        17.947       -.29238E-06   -.10537E-04
  15  Prefactor     .10000E-03    12.793        .34646E-06** at limit **
  16  Prefactor     .10000E-03    12.137       -.72736E-06** at limit **
  17  norm          .50011        .18608        .86790E-08   -.68532E-04
  18  norm          .10000E-03    1.0183        .58990E-07** at limit **
  19  norm          .10000E-03    1.6463        .19717E-07** at limit **
  20  norm          5.9596        3.4809        .48253E-07   -.17672E-04
  21  Prefactor     .10000E-03    13.746        .80138E-06** at limit **
  22  Normalizat    1.3488        .20687       -.54996E-06    .62897E-05
  23  Prefactor     .87531        .12072       -.28561E-06   -.13738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.65446
  Prefactor  = 0.0001
  Prefactor  = 7.07403
  norm       = 1.61213
  Prefactor  = 7.12512
  norm       = 40.7421
  Prefactor  = 0.0001
  Prefactor  = 11.5873
  Prefactor  = 0.0001
  Prefactor  = 15.0153
  norm       = 1.816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.500112
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.95962
  Prefactor  = 0.0001
  Normalizat = 1.34883
  Prefactor  = 0.875313
 **********
 **   18 **HESSE 
 **********

 FCN=   7665.019     FROM HESSE     STATUS=OK           372 CALLS     2524 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6545        11.906        .72472E-03   -1.5155    
   2  Prefactor     .10000E-03    3.9700        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0740        18.009        .15083E-03   -1.5176    
   4  norm          1.6121        6.8093        .33329E-03   -1.5454    
   5  Prefactor     7.1251        20.908        .15019E-03   -1.5174    
   6  norm          40.742        28.389        .62802E-04   -1.4431    
   7  Prefactor     .10000E-03    2.1973        .12662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.587        8.4127        .58846E-03   -1.5027    
   9  Prefactor     .10000E-03    47.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.015        24.463        .10346E-03   -1.4933    
  11  norm          1.8160        33.676        .30777E-03   -1.5438    
  12  Prefactor     .10000E-03    19.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.918        17.965        .12120E-03   -1.5047    
  15  Prefactor     .10000E-03    12.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50011        .18509        .22057E-04   -1.5567    
  18  norm          .10000E-03    1.0499        .17234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6469        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9596        3.4813        .12091E-03   -1.5220    
  21  Prefactor     .10000E-03    13.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3488        .25131        .28747E-03   -.82120    
  23  Prefactor     .87531        .14636        .20839E-03   -.97009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48655e-10
Minuit parameter uncertainties:
  1  11.9092
  2  2.69856e-06
  3  18.0231
  4  6.62756
  5  20.9294
  6  28.3988
  7  3.35399e-06
  8  8.41354
  9  5.94253e-05
  10  24.4796
  11  15.6501
  12  1.60919e-05
  13  2.15681e-06
  14  17.9742
  15  1.24679e-05
  16  1.10038e-05
  17  0.185091
  18  1.56064e-06
  19  3.21577e-07
  20  3.48141
  21  1.80533e-05
  22  0.251541
  23  0.146429
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.502e+01  2.448e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.120e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  8.753e-01  1.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
487        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
488        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  1.349e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 8.36e-06 +/- 1.36e-05

TS (Fixed Index): 1.05
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697326/likelihoodResults_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.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) = 7665.01812637
delta logL = 0.000806874217233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7665.01742643
delta logL = 0.00150681109062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.064       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1690       1.0000          .0000       10.000    
     3 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4890E+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=   7665.017     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      281 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.050        28.787        .10680E-03    .24714E-03
   2  Index         2.1684        .98162        .95049E-02    .94062E-04
   3  Normalizat    1.3479        .24112        .28756E-03    .18353E-03
   4  Prefactor     .87563        .14475        .20835E-03    .72080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0504
  Index      = 2.16843
  Normalizat = 1.34785
  Prefactor  = 0.875634
 **********
 **   18 **HESSE 
 **********

 FCN=   7665.017     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.050        25.566        .21361E-04   -1.4958    
   2  Index         2.1684        .87370        .38019E-03   -.60203    
   3  Normalizat    1.3479        .24112        .57512E-04   -.82149    
   4  Prefactor     .87563        .14483        .83341E-05   -.96998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36594e-10
Minuit parameter uncertainties:
  1  25.5858
  2  0.880378
  3  0.241322
  4  0.144889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697326': 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) = 7665.0174193
delta logL = 0.0015139392799

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.405e+01  2.559e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.168e+00  8.804e-01  0.000e+00  1.000e+01 (-1.000e+00)
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  8.756e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
487        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
488        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  1.348e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.17 +/- 0.88
Photon Flux (Free Index): 1.68e-08 +/- 2.65e-08
Energy Flux (Free Index): 7.99e-06 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/697326/cmap_HighResolution_338860801_339120001_4FGL_J1440.9+0609_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='7.99e-06', photon_flux_error='2.59e-08', dlogl='1.51e-03', energy_flux='8.36e-06', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-10 05:04:33.303475', photon_index_error2='0.88', photon_index2='2.17', ts='1.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.54e-08', energy_flux_error2='1.22e-05', EG='1.35', time_epoch_completed='1631275473.3', return_code='0', job_id='697326', GAL2='0.88', EG2='1.35', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.65e-08', ts2='1.06', photon_index='2.12' WHERE bin_id='384' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:04:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 697326: <4FGL_J1440.9+0609_daily_bin384> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin384> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 04:51:53 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:51:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 04:51:55 2021
Terminated at Fri Sep 10 05:04:34 2021
Results reported at Fri Sep 10 05:04:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin384 220.242 6.1631 338860801 339120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1440.9+0609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

