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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin240
RA = 220.242, Dec = 6.1631
tmin = 301536001, tmax = 301795201
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='697090', job_status='RUN', time_executed='2021-09-10 04:55:05.458475', time_epoch_executed='1631274905.46' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697090/ft1_4FGL_J1440.9+0609_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697090/ft1_4FGL_J1440.9+0609_daily_bin240.fits outfile=/scratch/kocevski/697090/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin240.fits ra=220.242 dec=6.1631 rad=12.0 tmin=301536001.0 tmax=301795201.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.57
user 4.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.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/697090/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/697090/ft1_filtered_4FGL_J1440.9+0609_daily_bin240.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697090/ft1_filtered_4FGL_J1440.9+0609_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/697090/ltcube_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.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/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits
.....................!
real 11.59
user 11.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697090/ft1_filtered_4FGL_J1440.9+0609_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/697090/ltcube_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.fits outfile=/scratch/kocevski/697090/expmap_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.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/697090/ltcube_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.fits
.....................!
real 190.28
user 184.46
sys 5.46

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/697090/ft1_filtered_4FGL_J1440.9+0609_daily_bin240.fits scfile=/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits outfile=/scratch/kocevski/697090/cmap_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697090/ft1_filtered_4FGL_J1440.9+0609_daily_bin240.fits scfile=/scratch/kocevski/697090/ft2_4FGL_J1440.9+0609_daily_bin240.fits outfile=/scratch/kocevski/697090/cmap_HighResolution_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6345       1.0000         .10000E-03   10000.    
     4 'norm      '    13.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7363       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.899       1.0000         .10000E-03   10000.    
    11 'norm      '    .12885E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19120E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .57542       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0469       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0383       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72580       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=   7978.916     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2543 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9098        6.3657        .15642E-05   -.89570E-03
   2  Prefactor     22.229        21.527        .12333E-07    .71504E-05
   3  Prefactor     3.6352        12.322        .15708E-05    .82015E-05
   4  norm          13.924        8.8311        .39049E-08    .58179E-05
   5  Prefactor     4.7421        24.664        .24012E-05    .86284E-05
   6  norm          .10000E-03    8.7401       -.50499E-07** at limit **
   7  Prefactor     5.0396        6.1665       -.18734E-05   -.25111E-03
   8  Prefactor     .10000E-03    1.6973        .32269E-07** at limit **
   9  Prefactor     .10000E-03    16.390        .33590E-05** at limit **
  10  Prefactor     44.903        28.059       -.17302E-06   -.65512E-04
  11  norm          .10000E-03    10.856        .41584E-05** at limit **
  12  Prefactor     .10000E-03    10.261       -.11902E-05** at limit **
  13  Prefactor     18.850        20.396       -.25195E-05   -.11243E-03
  14  Prefactor     .71172        11.480        .75201E-06   -.92373E-04
  15  Prefactor     .10000E-03    11.586       -.35021E-05** at limit **
  16  Prefactor     .10000E-03    201.24       -.77624E-05** at limit **
  17  norm          .57549        .18596        .88223E-08   -.22471E-03
  18  norm          .10000E-03    .64041        .50718E-08** at limit **
  19  norm          1.0472        3.6491        .18416E-06   -.27400E-03
  20  norm          4.0381        2.9865       -.28360E-08   -.22063E-04
  21  Prefactor     .10000E-03    17.423       -.29288E-05** at limit **
  22  Normalizat    1.4603        .19586        .14341E-06   -.72448E-04
  23  Prefactor     .72593        .11111       -.16121E-07   -.43129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9098
  Prefactor  = 22.2288
  Prefactor  = 3.63518
  norm       = 13.9239
  Prefactor  = 4.74213
  norm       = 0.0001
  Prefactor  = 5.03955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8496
  Prefactor  = 0.711715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.575491
  norm       = 0.0001
  norm       = 1.04725
  norm       = 4.03807
  Prefactor  = 0.0001
  Normalizat = 1.46034
  Prefactor  = 0.725932
 **********
 **   18 **HESSE 
 **********

 FCN=   7978.916     FROM HESSE     STATUS=OK           374 CALLS     2917 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9098        11.898        .11898E-02   -1.5367    
   2  Prefactor     22.229        21.825        .84969E-04   -1.4765    
   3  Prefactor     3.6352        12.308        .21191E-03   -1.5327    
   4  norm          13.924        8.8324        .10734E-03   -1.4961    
   5  Prefactor     4.7421        24.924        .18489E-03   -1.5272    
   6  norm          .10000E-03    8.7523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0396        6.2004        .17913E-03   -1.5259    
   8  Prefactor     .10000E-03    1.7005        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.903        28.099        .59834E-04   -1.4367    
  11  norm          .10000E-03    10.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.850        20.489        .92271E-04   -1.4839    
  14  Prefactor     .71172        119.78        .56279E-02   -1.5539    
  15  Prefactor     .10000E-03    11.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    207.41        .40538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .57549        .18566        .20759E-04   -1.5556    
  18  norm          .10000E-03    .65058        .69734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0472        3.6043        .31280E-03   -1.5503    
  20  norm          4.0381        2.9878        .12832E-03   -1.5306    
  21  Prefactor     .10000E-03    17.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4603        .23773        .26542E-03   -.78899    
  23  Prefactor     .72593        .13289        .21441E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21037e-09
Minuit parameter uncertainties:
  1  11.7716
  2  21.8332
  3  12.3161
  4  8.83324
  5  21.7573
  6  7.43161e-06
  7  6.20115
  8  4.93271e-06
  9  9.8567e-05
  10  28.1073
  11  0.000106827
  12  2.65881e-05
  13  20.4963
  14  18.5025
  15  8.72054e-05
  16  0.00054074
  17  0.185661
  18  7.57082e-08
  19  3.60501
  20  2.98791
  21  8.98375e-05
  22  0.237915
  23  0.132943
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  4.490e+01  2.811e+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:  7.259e-01  1.329e-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.460e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.16
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.56e-05

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) = 7978.65269219
delta logL = 0.263027768519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7978.65210405
delta logL = 0.263615912103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.539       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7797       1.0000          .0000       10.000    
     3 'Normalizat'    1.4784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72102       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.

 FCN=   7978.652     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      279 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.398        1207.5        .12685E-02   -.95070E-05
   2  Index         1.7774        5.6495        .13532        .94300E-04
   3  Normalizat    1.4786        .19438        .59715E-01    .43532E-05
   4  Prefactor     .72109        .65562E-01    .42680E-01    .18697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.3983
  Index      = 1.77742
  Normalizat = 1.47857
  Prefactor  = 0.721087
 **********
 **   18 **HESSE 
 **********

 FCN=   7978.652     FROM HESSE     STATUS=OK            33 CALLS      312 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.398        44.872        .25371E-03   -1.4126    
   2  Index         1.7774        .47500        .81949E-02   -.70039    
   3  Normalizat    1.4786        .22071        .26408E-03   -.78382    
   4  Prefactor     .72109        .13088        .21508E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60697e-12
Minuit parameter uncertainties:
  1  44.8968
  2  0.476234
  3  0.220853
  4  0.130938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697090': 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) = 7978.65207752
delta logL = 0.263642436401

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  6.240e+01  4.490e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.777e+00  4.762e-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:  7.211e-01  1.309e-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.479e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.69
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.78 +/- 0.48
Photon Flux (Free Index): 3.02e-08 +/- 2.91e-08
Energy Flux (Free Index): 3.87e-05 +/- 3.86e-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/697090/cmap_HighResolution_301536001_301795201_4FGL_J1440.9+0609_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='3.87e-05', photon_flux_error='2.98e-08', dlogl='2.64e-01', energy_flux='2.50e-05', photon_flux2='3.02e-08', job_status='DONE', time_completed='2021-09-10 05:05:10.020993', photon_index_error2='0.48', photon_index2='1.78', ts='13.16', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='3.86e-05', EG='1.46', time_epoch_completed='1631275510.02', return_code='0', job_id='697090', GAL2='0.72', EG2='1.48', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='2.91e-08', ts2='13.69', photon_index='2.12' WHERE bin_id='240' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 697090: <4FGL_J1440.9+0609_daily_bin240> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin240> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 04:51:33 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:51:37 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:37 2021
Terminated at Fri Sep 10 05:05:10 2021
Results reported at Fri Sep 10 05:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin240 220.242 6.1631 301536001 301795201 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 :                                   601.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            817 sec.

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

