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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin290
RA = 220.242, Dec = 6.1631
tmin = 314496001, tmax = 314755201
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='697178', job_status='RUN', time_executed='2021-09-10 04:54:36.724700', time_epoch_executed='1631274876.72' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697178/ft1_4FGL_J1440.9+0609_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697178/ft2_4FGL_J1440.9+0609_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697178/ft1_4FGL_J1440.9+0609_daily_bin290.fits outfile=/scratch/kocevski/697178/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin290.fits ra=220.242 dec=6.1631 rad=12.0 tmin=314496001.0 tmax=314755201.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.38
user 3.18
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697178/ft1_filtered_4FGL_J1440.9+0609_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/697178/ft2_4FGL_J1440.9+0609_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/697178/ltcube_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.fits outfile=/scratch/kocevski/697178/expmap_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.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/697178/ltcube_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.fits
.....................!
real 190.24
user 184.67
sys 5.07

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/697178/ft1_filtered_4FGL_J1440.9+0609_daily_bin290.fits scfile=/scratch/kocevski/697178/ft2_4FGL_J1440.9+0609_daily_bin290.fits outfile=/scratch/kocevski/697178/cmap_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.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.52
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.034       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11356E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4220       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5392       1.0000         .10000E-03   10000.    
    11 'norm      '    .21974E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39007E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1543       1.0000         .10000E-03   10000.    
    20 'norm      '    8.2884       1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.515       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2066       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0570       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=   7037.959     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2636 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1844       -.28833E-07** at limit **
   2  Prefactor     17.300        21.731        .34887E-06   -.15631E-04
   3  Prefactor     34.041        42.432        .12281E-05   -.31610E-04
   4  norm          .10000E-03    3.1277       -.12902E-07** at limit **
   5  Prefactor     .10000E-03    13.740       -.54236E-06** at limit **
   6  norm          .10000E-03    22.078       -.17835E-05** at limit **
   7  Prefactor     .10000E-03    9.2104        .38088E-08** at limit **
   8  Prefactor     6.4072        9.3416        .52232E-06   -.11847E-03
   9  Prefactor     53.044        76.735        .81988E-05    .18956E-04
  10  Prefactor     4.5685        35.727       -.22838E-04   -.24370E-04
  11  norm          .10000E-03    19.019        .99947E-05** at limit **
  12  Prefactor     59.041        36.355        .31398E-06   -.83676E-04
  13  Prefactor     .10000E-03    34.935        .13260E-05** at limit **
  14  Prefactor     17.151        20.021        .52583E-06   -.12151E-03
  15  Prefactor     .10000E-03    16.583        .76867E-06** at limit **
  16  Prefactor     .10000E-03    16.953        .66857E-06** at limit **
  17  norm          .38912E-01    .12536        .15873E-06   -.21882E-02
  18  norm          .10000E-03    1.2119       -.18152E-07** at limit **
  19  norm          3.1540        3.6398       -.13752E-07    .15241E-05
  20  norm          8.2882        4.4894        .11450E-06   -.33799E-04
  21  Prefactor     71.514        51.627        .21956E-06   -.23885E-04
  22  Normalizat    1.2071        .24097       -.25959E-05   -.56085E-04
  23  Prefactor     1.0567        .13549        .16944E-06   -.38940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2999
  Prefactor  = 34.0408
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40716
  Prefactor  = 53.044
  Prefactor  = 4.56852
  norm       = 0.000100002
  Prefactor  = 59.0406
  Prefactor  = 0.0001
  Prefactor  = 17.1513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0389118
  norm       = 0.0001
  norm       = 3.15403
  norm       = 8.28825
  Prefactor  = 71.5137
  Normalizat = 1.20708
  Prefactor  = 1.05672
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.959     FROM HESSE     STATUS=OK           372 CALLS     3008 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1874        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.300        21.764        .96282E-04   -1.4876    
   3  Prefactor     34.041        42.545        .68690E-04   -1.4540    
   4  norm          .10000E-03    3.1284        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4072        9.3493        .15838E-03   -1.5202    
   9  Prefactor     53.044        76.646        .27562E-03   -1.4250    
  10  Prefactor     4.5685        38.778        .18895E-03   -1.5280    
  11  norm          .10000E-03    90.597        .62412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.041        36.383        .52213E-04   -1.4170    
  13  Prefactor     .10000E-03    35.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.151        20.012        .96706E-04   -1.4879    
  15  Prefactor     .10000E-03    16.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38912E-01    .14739        .49353E-03   -1.5669    
  18  norm          .10000E-03    1.2374        .90040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1540        3.6392        .16773E-03   -1.5353    
  20  norm          8.2882        4.4884        .12607E-03   -1.5132    
  21  Prefactor     71.514        51.660        .47471E-04   -1.4015    
  22  Normalizat    1.2071        .28551        .32043E-03   -.86384    
  23  Prefactor     1.0567        .16182        .20440E-03   -.90862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08298e-10
Minuit parameter uncertainties:
  1  6.45708e-06
  2  21.7737
  3  42.5827
  4  1.01755e-06
  5  1.57102e-05
  6  1.91317e-05
  7  6.63085e-06
  8  9.35139
  9  76.789
  10  26.6433
  11  0.000944513
  12  36.3965
  13  0.000137849
  14  20.0201
  15  2.42761e-05
  16  2.11049e-05
  17  0.147393
  18  6.6743e-06
  19  3.63949
  20  4.48861
  21  51.6929
  22  0.285876
  23  0.1619
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  4.569e+00  2.664e+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:  1.057e+00  1.619e-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.207e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/697178/likelihoodResults_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.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) = 7037.7766794
delta logL = 0.182071957551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7037.75220356
delta logL = 0.206547799222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8224       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0161       1.0000          .0000       10.000    
     3 'Normalizat'    1.1769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0648       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=   7037.752     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8065        161.05        .60523E-02    .77377E-03
   2  Index         3.0172        3.5498        .10522        .21521E-03
   3  Normalizat    1.1773        .63849E-01    .73205E-01    .21979E-04
   4  Prefactor     1.0645        .36913E-01    .39111E-01   -.38375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80648
  Index      = 3.0172
  Normalizat = 1.17726
  Prefactor  = 1.06454
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.752     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8065        367.91        .22032E-03   -1.5373    
   2  Index         3.0172        5.9563        .76422E-02   -.40777    
   3  Normalizat    1.1773        .26629        .32396E-03   -.87308    
   4  Prefactor     1.0645        .15740        .20372E-03   -.90608    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49368e-09
Minuit parameter uncertainties:
  1  64.6752
  2  8.44851
  3  0.2666
  4  0.157471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697178': 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) = 7037.75220014
delta logL = 0.206551214554

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  2.806e+00  6.468e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  3.017e+00  8.449e+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:  1.065e+00  1.575e-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.177e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 220.242 6.163

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/697178/cmap_HighResolution_314496001_314755201_4FGL_J1440.9+0609_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-10 05:05:03.223194', job_id='697178', GAL2='1.06', fit_tolerance='1e-08', EG2='1.18', EG='1.21', time_epoch_completed='1631275503.22', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.07e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='290' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:05:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 697178: <4FGL_J1440.9+0609_daily_bin290> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin290 220.242 6.1631 314496001 314755201 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 :                                   626.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

