/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 225 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 = 7380
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1440.9+0609_daily_bin634
RA = 220.242, Dec = 6.1631
tmin = 403660801, tmax = 403920001
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='698706', job_status='RUN', time_executed='2021-09-10 05:00:28.060884', time_epoch_executed='1631275228.06' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698706/ft1_4FGL_J1440.9+0609_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698706/ft1_4FGL_J1440.9+0609_daily_bin634.fits outfile=/scratch/kocevski/698706/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin634.fits ra=220.242 dec=6.1631 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.60
user 7.29
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.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/698706/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin634.fits evtable="EVENTS" outfile="/scratch/kocevski/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/698706/ltcube_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.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/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits
.....................!
real 11.34
user 11.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/698706/ltcube_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits outfile=/scratch/kocevski/698706/expmap_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.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/698706/ltcube_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits
.....................!
real 192.33
user 187.72
sys 4.25

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/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits scfile=/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits outfile=/scratch/kocevski/698706/cmap_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits scfile=/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits outfile=/scratch/kocevski/698706/cmap_HighResolution_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits', '/scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits', expMap='/scratch/kocevski/698706/expmap_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits', expCube='/scratch/kocevski/698706/ltcube_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698706/Model_4FGL_J1440.9+0609_daily_bin634.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/698706/ft1_filtered_4FGL_J1440.9+0609_daily_bin634.fits
Spacecraft file(s): /scratch/kocevski/698706/ft2_4FGL_J1440.9+0609_daily_bin634.fits
Exposure map: /scratch/kocevski/698706/expmap_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits
Exposure cube: /scratch/kocevski/698706/ltcube_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698706/Model_4FGL_J1440.9+0609_daily_bin634.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) = 4922.80404674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1234       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.046       1.0000         .10000E-03   10000.    
    11 'norm      '    .45749E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49329E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .68602E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.7953       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3391       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3837       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88146       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=   4922.728     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2633 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.445        15.252        .10781E-06   -.72210E-05
   2  Prefactor     .10000E-03    33.770        .40500E-07** at limit **
   3  Prefactor     6.1055        41.766        .28521E-05    .14010E-04
   4  norm          6.1740        19.161        .10025E-05    .16193E-05
   5  Prefactor     .10000E-03    17.504        .59462E-07** at limit **
   6  norm          4.0766        55.838        .15421E-05   -.39944E-05
   7  Prefactor     .10000E-03    9.2669        .11077E-06** at limit **
   8  Prefactor     .10000E-03    7.6146       -.51139E-07** at limit **
   9  Prefactor     .10000E-03    23.592       -.42844E-07** at limit **
  10  Prefactor     54.083        47.938       -.19361E-05   -.67637E-04
  11  norm          .10026E-03    53.490        .40646E-05** at limit **
  12  Prefactor     17.177        38.511        .15244E-05    .13889E-04
  13  Prefactor     12.834        28.839       -.26081E-05   -.94504E-04
  14  Prefactor     .10001E-03    20.644       -.20085E-07** at limit **
  15  Prefactor     .10000E-03    33.743        .33439E-06** at limit **
  16  Prefactor     .10000E-03    43.428        .21139E-06** at limit **
  17  norm          .68798E-01    .20710        .12713E-06   -.81975E-03
  18  norm          .10000E-03    1.2585       -.95147E-08** at limit **
  19  norm          8.7938        7.4784       -.19501E-07   -.34160E-04
  20  norm          8.3400        5.6787        .45083E-06   -.81015E-03
  21  Prefactor     .10000E-03    35.338       -.16889E-06** at limit **
  22  Normalizat    1.3840        .25685       -.76116E-06   -.11496E-03
  23  Prefactor     .88124        .15217       -.29812E-06   -.18203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4448
  Prefactor  = 0.0001
  Prefactor  = 6.10551
  norm       = 6.17395
  Prefactor  = 0.0001
  norm       = 4.07658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0829
  norm       = 0.000100261
  Prefactor  = 17.177
  Prefactor  = 12.8343
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0687976
  norm       = 0.0001
  norm       = 8.79383
  norm       = 8.33995
  Prefactor  = 0.0001
  Normalizat = 1.38399
  Prefactor  = 0.881238
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.728     FROM HESSE     STATUS=OK           386 CALLS     3019 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.445        15.264        .95892E-04   -1.4872    
   2  Prefactor     .10000E-03    34.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1055        41.751        .16224E-03   -1.5214    
   4  norm          6.1740        19.185        .16157E-03   -1.5211    
   5  Prefactor     .10000E-03    17.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0766        55.634        .19975E-03   -1.5304    
   7  Prefactor     .10000E-03    9.4561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.083        60.650        .54560E-04   -1.4236    
  11  norm          .10026E-03    77.485        .10438       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.177        38.466        .96625E-04   -1.4879    
  13  Prefactor     12.834        29.365        .11177E-03   -1.4991    
  14  Prefactor     .10001E-03    22.850        .89655E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68798E-01    .23087        .49313E-03   -1.5656    
  18  norm          .10000E-03    1.2783        .76802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.7938        7.4549        .13516E-03   -1.5115    
  20  norm          8.3400        5.6876        .66221E-03   -1.5130    
  21  Prefactor     .10000E-03    35.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3840        .30983        .28285E-03   -.81093    
  23  Prefactor     .88124        .18400        .20759E-03   -.96800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03489e-08
Minuit parameter uncertainties:
  1  15.2674
  2  2.98461e-05
  3  31.9637
  4  19.2039
  5  4.63745e-06
  6  30.1532
  7  1.78425e-05
  8  8.79487e-06
  9  2.92674e-08
  10  60.7189
  11  0.00900322
  12  38.5217
  13  29.3984
  14  0.00107081
  15  2.18189e-06
  16  1.97112e-05
  17  0.230869
  18  2.69812e-06
  19  7.4557
  20  5.68801
  21  3.88994e-06
  22  0.310247
  23  0.184126
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.408e+01  6.072e+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.812e-01  1.841e-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.384e+00  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.78
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 6.43e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 3.38e-05

TS (Fixed Index): 3.78
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698706/likelihoodResults_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.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) = 4922.72552763
delta logL = 0.00231788494784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4922.72304318
delta logL = 0.00480233847702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.489       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0664       1.0000          .0000       10.000    
     3 'Normalizat'    1.3870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88026       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=   4922.723     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      260 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.485        69.244        .52458E-04    .23172E-03
   2  Index         2.0664        .57930        .56135E-02    .13615E-03
   3  Normalizat    1.3873        .29798        .28257E-03   -.14394E-03
   4  Prefactor     .88007        .17916        .20771E-03   -.23206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.4851
  Index      = 2.0664
  Normalizat = 1.38733
  Prefactor  = 0.880069
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.723     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.485        65.445        .10492E-04   -1.4177    
   2  Index         2.0664        .54724        .22454E-03   -.62700    
   3  Normalizat    1.3873        .29793        .56514E-04   -.80996    
   4  Prefactor     .88007        .17923        .41542E-04   -.96841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14654e-10
Minuit parameter uncertainties:
  1  65.5261
  2  0.548918
  3  0.298305
  4  0.179352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698706': 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) = 4922.72304259
delta logL = 0.0048029248137

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.849e+01  6.553e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.066e+00  5.489e-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.801e-01  1.794e-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.387e+00  2.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.07 +/- 0.55
Photon Flux (Free Index): 5.43e-08 +/- 5.45e-08
Energy Flux (Free Index): 3.21e-05 +/- 3.43e-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/698706/cmap_HighResolution_403660801_403920001_4FGL_J1440.9+0609_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='3.21e-05', photon_flux_error='6.43e-08', dlogl='4.80e-03', energy_flux='3.01e-05', photon_flux2='5.43e-08', job_status='DONE', time_completed='2021-09-10 05:09:43.299360', photon_index_error2='0.55', photon_index2='2.07', ts='3.78', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='3.43e-05', EG='1.38', time_epoch_completed='1631275783.3', return_code='0', job_id='698706', GAL2='0.88', EG2='1.39', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='5.45e-08', ts2='3.79', photon_index='2.12' WHERE bin_id='634' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 698706: <4FGL_J1440.9+0609_daily_bin634> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin634> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 04:56:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:56:34 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:56:34 2021
Terminated at Fri Sep 10 05:09:44 2021
Results reported at Fri Sep 10 05:09:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin634 220.242 6.1631 403660801 403920001 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 :                                   553.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

