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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin820
RA = 220.242, Dec = 6.1631
tmin = 451872001, tmax = 452131201
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='700029', job_status='RUN', time_executed='2021-09-10 05:04:44.012991', time_epoch_executed='1631275484.01' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700029/ft1_4FGL_J1440.9+0609_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700029/ft1_4FGL_J1440.9+0609_daily_bin820.fits outfile=/scratch/kocevski/700029/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin820.fits ra=220.242 dec=6.1631 rad=12.0 tmin=451872001.0 tmax=452131201.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 3.35
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700029/ft1_filtered_4FGL_J1440.9+0609_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/700029/ltcube_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.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/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits
.....................!
real 15.34
user 14.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700029/ft1_filtered_4FGL_J1440.9+0609_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/700029/ltcube_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.fits outfile=/scratch/kocevski/700029/expmap_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.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/700029/ltcube_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.fits
.....................!
real 191.15
user 186.71
sys 4.08

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/700029/ft1_filtered_4FGL_J1440.9+0609_daily_bin820.fits scfile=/scratch/kocevski/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits outfile=/scratch/kocevski/700029/cmap_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700029/ft1_filtered_4FGL_J1440.9+0609_daily_bin820.fits scfile=/scratch/kocevski/700029/ft2_4FGL_J1440.9+0609_daily_bin820.fits outfile=/scratch/kocevski/700029/cmap_HighResolution_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.961       1.0000         .10000E-03   10000.    
     4 'norm      '    20.965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.883       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.078       1.0000         .10000E-03   10000.    
    11 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1824       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28248E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5088       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4767       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8200       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0169       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.626       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0831       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83654       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=   6103.712     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2509 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8389       -.17626E-07** at limit **
   2  Prefactor     21.692        23.236        .21459E-06    .22609E-05
   3  Prefactor     15.963        26.352       -.22176E-05    .25168E-04
   4  norm          20.965        14.176       -.42380E-06    .79782E-05
   5  Prefactor     16.880        31.457        .16236E-05   -.16712E-04
   6  norm          .10000E-03    18.172        .17519E-04** at limit **
   7  Prefactor     .10000E-03    4.5740        .34798E-06** at limit **
   8  Prefactor     5.1748        6.5329       -.40335E-05   -.14348E-03
   9  Prefactor     .10000E-03    35.241       -.20344E-05** at limit **
  10  Prefactor     31.076        31.284        .89375E-06    .14856E-03
  11  norm          .10000E-03    19.841       -.11419E-04** at limit **
  12  Prefactor     .10000E-03    7.1795        .23861E-07** at limit **
  13  Prefactor     .10000E-03    16.124       -.65218E-05** at limit **
  14  Prefactor     3.2078        28.306       -.48896E-04    .88107E-04
  15  Prefactor     14.899        28.529        .82242E-05    .41060E-03
  16  Prefactor     .10037E-03    360.50       -.96767E-04** at limit **
  17  norm          1.5087        .28852        .93855E-07    .50403E-02
  18  norm          4.4766        2.3649       -.45427E-06   -.23482E-02
  19  norm          4.8201        5.1567       -.76432E-06    .27103E-04
  20  norm          6.0170        4.4512       -.10761E-05   -.15991E-03
  21  Prefactor     44.627        40.611        .44843E-07    .12264E-04
  22  Normalizat    1.0832        .23176        .66329E-05    .35293E-03
  23  Prefactor     .83652        .13303       -.77236E-07    .91158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.6924
  Prefactor  = 15.9629
  norm       = 20.9652
  Prefactor  = 16.8796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17477
  Prefactor  = 0.0001
  Prefactor  = 31.0757
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20778
  Prefactor  = 14.8991
  Prefactor  = 0.000100372
  norm       = 1.50873
  norm       = 4.47662
  norm       = 4.82008
  norm       = 6.01703
  Prefactor  = 44.6268
  Normalizat = 1.08316
  Prefactor  = 0.836517
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.712     FROM HESSE     STATUS=OK           366 CALLS     2875 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8419        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.692        23.261        .85998E-04   -1.4776    
   3  Prefactor     15.963        26.449        .10025E-03   -1.4909    
   4  norm          20.965        14.181        .87477E-04   -1.4792    
   5  Prefactor     16.880        31.913        .97475E-04   -1.4886    
   6  norm          .10000E-03    18.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6065        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1748        6.5641        .17673E-03   -1.5253    
   9  Prefactor     .10000E-03    35.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.076        31.267        .71873E-04   -1.4592    
  11  norm          .10000E-03    19.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2078        28.441        .22716E-03   -1.5350    
  15  Prefactor     14.899        28.442        .10372E-03   -1.4936    
  16  Prefactor     .10037E-03    361.93        .39785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5087        .28933        .17403E-04   -1.5462    
  18  norm          4.4766        2.3714        .41632E-03   -1.5285    
  19  norm          4.8201        5.1574        .17892E-03   -1.5269    
  20  norm          6.0170        4.4556        .13547E-03   -1.5217    
  21  Prefactor     44.627        40.617        .60016E-04   -1.4371    
  22  Normalizat    1.0832        .28079        .30056E-03   -.90294    
  23  Prefactor     .83652        .16045        .20700E-03   -.98396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55312e-09
Minuit parameter uncertainties:
  1  8.86179e-06
  2  23.271
  3  26.4685
  4  14.1835
  5  31.9456
  6  8.87794e-05
  7  4.58637e-05
  8  6.565
  9  8.29164e-05
  10  31.2836
  11  9.17771e-05
  12  3.61004e-05
  13  1.99375e-05
  14  19.1149
  15  28.4676
  16  0.0233412
  17  0.289332
  18  2.37143
  19  5.15784
  20  4.45582
  21  40.642
  22  0.281172
  23  0.16054
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.108e+01  3.128e+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.365e-01  1.605e-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.083e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.74e-05

TS (Fixed Index): 1.82
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700029/likelihoodResults_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.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) = 6103.38252469
delta logL = 0.329179244779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6103.37511597
delta logL = 0.336587959385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.642       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6538       1.0000          .0000       10.000    
     3 'Normalizat'    1.0979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83139       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=   6103.375     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.663        54.690        .27132E-03    .12152E-04
   2  Index         1.6538        .54920        .91062E-02    .22457E-03
   3  Normalizat    1.0984        .25222        .29868E-03   -.29613E-04
   4  Prefactor     .83110        .15565        .20754E-03    .50505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.6633
  Index      = 1.65381
  Normalizat = 1.09837
  Prefactor  = 0.831098
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.375     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.663        54.209        .10853E-04   -1.4228    
   2  Index         1.6538        .54447        .18212E-02   -.73318    
   3  Normalizat    1.0984        .25243        .11947E-04   -.89804    
   4  Prefactor     .83110        .15580        .83017E-05   -.98592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67482e-11
Minuit parameter uncertainties:
  1  54.2579
  2  0.546433
  3  0.252707
  4  0.155885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700029': 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) = 6103.37511415
delta logL = 0.336589781153

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.466e+01  5.426e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.654e+00  5.464e-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.311e-01  1.559e-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.098e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.65 +/- 0.55
Photon Flux (Free Index): 2.07e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.92e-05 +/- 5.38e-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/700029/cmap_HighResolution_451872001_452131201_4FGL_J1440.9+0609_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='3.92e-05', photon_flux_error='3.31e-08', dlogl='3.37e-01', energy_flux='1.73e-05', photon_flux2='2.07e-08', job_status='DONE', time_completed='2021-09-10 05:14:31.998350', photon_index_error2='0.55', photon_index2='1.65', ts='1.82', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='5.38e-05', EG='1.08', time_epoch_completed='1631276072.0', return_code='0', job_id='700029', GAL2='0.83', EG2='1.10', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='2.61e-08', ts2='2.49', photon_index='2.12' WHERE bin_id='820' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 700029: <4FGL_J1440.9+0609_daily_bin820> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin820> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 05:01:12 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:01:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 05:01:14 2021
Terminated at Fri Sep 10 05:14:35 2021
Results reported at Fri Sep 10 05:14:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin820 220.242 6.1631 451872001 452131201 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            803 sec.

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

