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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin521
RA = 220.242, Dec = 6.1631
tmin = 374371201, tmax = 374630401
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='698530', job_status='RUN', time_executed='2021-09-10 04:59:57.568574', time_epoch_executed='1631275197.57' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698530

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698530/ft1_4FGL_J1440.9+0609_daily_bin521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698530/ft2_4FGL_J1440.9+0609_daily_bin521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698530/ft1_4FGL_J1440.9+0609_daily_bin521.fits outfile=/scratch/kocevski/698530/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin521.fits ra=220.242 dec=6.1631 rad=12.0 tmin=374371201.0 tmax=374630401.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.25
user 3.03
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698530/ft1_filtered_4FGL_J1440.9+0609_daily_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/698530/ft2_4FGL_J1440.9+0609_daily_bin521.fits sctable="SC_DATA" expcube=/scratch/kocevski/698530/ltcube_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.fits outfile=/scratch/kocevski/698530/expmap_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.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/698530/ltcube_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.fits
.....................!
real 191.48
user 186.41
sys 4.72

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/698530/ft1_filtered_4FGL_J1440.9+0609_daily_bin521.fits scfile=/scratch/kocevski/698530/ft2_4FGL_J1440.9+0609_daily_bin521.fits outfile=/scratch/kocevski/698530/cmap_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14709E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    14.703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.036       1.0000         .10000E-03   10000.    
     6 'norm      '    48.528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11887E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28794       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.490       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77539       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=   6108.772     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     3329 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2162        .15665E-02** at limit **
   2  Prefactor     37.200        25.174        .65712E-04   -.91694E-05
   3  Prefactor     .10001E-03    24.090        .10855    ** at limit **
   4  norm          14.704        12.842        .10445E-03   -.28298E-05
   5  Prefactor     37.035        31.803        .65856E-04   -.31073E-05
   6  norm          48.529        33.140        .57563E-04    .10073E-04
   7  Prefactor     .10000E-03    7.9039        .36285E-03** at limit **
   8  Prefactor     10.594        7.4100        .12310E-03   -.11831E-03
   9  Prefactor     55.137        66.540        .54018E-04    .29464E-06
  10  Prefactor     .10000E-03    58.784        .18142E-02** at limit **
  11  norm          .10000E-03    52.123        .36285E-02** at limit **
  12  Prefactor     1.7480        73.115        .15882E-02    .17237E-04
  13  Prefactor     28.904        23.557        .74515E-04   -.36617E-05
  14  Prefactor     6.7130        16.703        .77428E-03   -.33976E-04
  15  Prefactor     .10000E-03    16.907        .18142E-02** at limit **
  16  Prefactor     .10000E-03    94.855        .18142E-02** at limit **
  17  norm          .28805        .20826        .29022E-03    .26614E-03
  18  norm          .10000E-03    1.1739        .13189E-02** at limit **
  19  norm          .10000E-03    2.5169        .12096E-02** at limit **
  20  norm          .10000E-03    1.1947        .83065E-03** at limit **
  21  Prefactor     18.490        27.083        .93143E-04   -.18308E-04
  22  Normalizat    1.1829        .26318        .28203E-03   -.14443E-03
  23  Prefactor     .77530        .14774        .20068E-03   -.25098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.2005
  Prefactor  = 0.000100014
  norm       = 14.7043
  Prefactor  = 37.0349
  norm       = 48.5285
  Prefactor  = 0.000100001
  Prefactor  = 10.5942
  Prefactor  = 55.137
  Prefactor  = 0.000100004
  norm       = 0.000100002
  Prefactor  = 1.748
  Prefactor  = 28.9044
  Prefactor  = 6.71297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.288048
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4902
  Normalizat = 1.18285
  Prefactor  = 0.775305
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.772     FROM HESSE     STATUS=OK           360 CALLS     3689 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2164        .31329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.200        25.179        .26285E-05   -1.4487    
   3  Prefactor     .10001E-03    23.314        .11119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.704        12.842        .41782E-05   -1.4941    
   5  Prefactor     37.035        31.809        .26342E-05   -1.4490    
   6  norm          48.529        33.138        .23025E-05   -1.4314    
   7  Prefactor     .10000E-03    7.9042        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.594        7.4099        .49238E-05   -1.5057    
   9  Prefactor     55.137        66.539        .10804E-04   -1.4222    
  10  Prefactor     .10000E-03    58.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    52.522        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7480        72.971        .63526E-04   -1.5444    
  13  Prefactor     28.904        23.555        .29806E-05   -1.4632    
  14  Prefactor     6.7130        16.689        .30971E-04   -1.5190    
  15  Prefactor     .10000E-03    16.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    94.901        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28805        .20815        .11609E-04   -1.5601    
  18  norm          .10000E-03    1.1751        .26378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5170        .24193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1948        .16613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.490        27.082        .37257E-05   -1.4848    
  22  Normalizat    1.1829        .26341        .11281E-04   -.87134    
  23  Prefactor     .77530        .14788        .40135E-04   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70362e-10
Minuit parameter uncertainties:
  1  3.50117e-06
  2  25.1865
  3  0.00112319
  4  12.8449
  5  31.8236
  6  33.1501
  7  0.000139853
  8  7.41053
  9  66.6291
  10  0.000912244
  11  0.000680105
  12  22.6168
  13  23.5622
  14  16.7009
  15  1.68652e-05
  16  0.000161086
  17  0.208153
  18  9.19397e-06
  19  9.43846e-07
  20  1.85341e-06
  21  27.0995
  22  0.263706
  23  0.147955
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  9.122e-04  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.753e-01  1.480e-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.183e+00  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/698530/likelihoodResults_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.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): 102
logL (Free Index) = 6108.77209818
delta logL = -8.09640914667e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6108.55699354
delta logL = 0.215023676754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12131       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2069       1.0000          .0000       10.000    
     3 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79388       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=   6108.557     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      303 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11064        2.2760        .87412E-02    .22923E-02
   2  Index         4.2385        2.1112        .92316E-01    .14820E-03
   3  Normalizat    1.1279        .33196E-01    .65080E-01    .76419E-04
   4  Prefactor     .79411        .19651E-01    .43638E-01    .21421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.110644
  Index      = 4.2385
  Normalizat = 1.12786
  Prefactor  = 0.794106
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.557     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      334 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11064        12.601        .38371E-04   -1.5641    
   2  Index         4.2385        7.1180        .56135E-02   -.15290    
   3  Normalizat    1.1279        .18763        .28790E-03   -.88862    
   4  Prefactor     .79411        .10781        .19851E-03   -.99946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30005e-06
Minuit parameter uncertainties:
  1  2.36101
  2  7.16592
  3  0.187741
  4  0.107835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698530': 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): 102
logL (Free Index) = 6108.55697653
delta logL = 0.215040686303

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.106e-01  2.361e+00  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  4.238e+00  7.166e+00  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.941e-01  1.078e-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.128e+00  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 220.242 6.163

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/698530/cmap_HighResolution_374371201_374630401_4FGL_J1440.9+0609_daily_bin521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-10 05:10:21.197404', job_id='698530', GAL2='0.79', fit_tolerance='1e-08', EG2='1.13', EG='1.18', time_epoch_completed='1631275821.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.15e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='521' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 698530: <4FGL_J1440.9+0609_daily_bin521> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin521 220.242 6.1631 374371201 374630401 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 :                                   623.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

