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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin296
RA = 220.242, Dec = 6.1631
tmin = 316051201, tmax = 316310401
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='697187', job_status='RUN', time_executed='2021-09-10 04:53:39.479661', time_epoch_executed='1631274819.48' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697187/ft1_4FGL_J1440.9+0609_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697187/ft2_4FGL_J1440.9+0609_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697187/ft1_4FGL_J1440.9+0609_daily_bin296.fits outfile=/scratch/kocevski/697187/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin296.fits ra=220.242 dec=6.1631 rad=12.0 tmin=316051201.0 tmax=316310401.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.47
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697187/ft2_4FGL_J1440.9+0609_daily_bin296.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/697187/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin296.fits evtable="EVENTS" outfile="/scratch/kocevski/697187/ft1_filtered_4FGL_J1440.9+0609_daily_bin296.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.48
user 0.35
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697187/ft1_filtered_4FGL_J1440.9+0609_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/697187/ft2_4FGL_J1440.9+0609_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/697187/ltcube_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.fits outfile=/scratch/kocevski/697187/expmap_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.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/697187/ltcube_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.fits
.....................!
real 190.99
user 186.34
sys 4.26

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697187/ft1_filtered_4FGL_J1440.9+0609_daily_bin296.fits scfile=/scratch/kocevski/697187/ft2_4FGL_J1440.9+0609_daily_bin296.fits outfile=/scratch/kocevski/697187/cmap_HighResolution_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.0440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2452       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20400       1.0000         .10000E-03   10000.    
     6 'norm      '    13.012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1557       1.0000         .10000E-03   10000.    
    11 'norm      '    .37909E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9372       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34251       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0478       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13256E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9482       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0010       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1168       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=   7879.515     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2267 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4545       -.12922E-07** at limit **
   2  Prefactor     6.0434        12.449        .21457E-05   -.22599E-03
   3  Prefactor     .10000E-03    24.162        .10440E-05** at limit **
   4  norm          4.2452        7.3100        .49884E-06   -.39726E-06
   5  Prefactor     .11369E-03    25.831       -.19881E-05** at limit **
   6  norm          13.024        20.705       -.47554E-05   -.64674E-04
   7  Prefactor     10.596        8.0009       -.23933E-07    .17816E-05
   8  Prefactor     .10000E-03    4.5045        .10756E-07** at limit **
   9  Prefactor     .10000E-03    29.763       -.19391E-05** at limit **
  10  Prefactor     3.2551        90.845        .13739E-04   -.92575E-05
  11  norm          .10060E-03    11.028       -.24947E-05** at limit **
  12  Prefactor     .10000E-03    8.3325       -.84852E-08** at limit **
  13  Prefactor     7.9379        19.777        .31100E-05    .36049E-04
  14  Prefactor     .10000E-03    19.736       -.34737E-06** at limit **
  15  Prefactor     .10000E-03    15.651        .86800E-07** at limit **
  16  Prefactor     .10000E-03    38.082        .21615E-05** at limit **
  17  norm          .34248        .17871       -.21472E-07   -.61828E-03
  18  norm          3.0467        2.5941        .11919E-08   -.91709E-04
  19  norm          .10000E-03    2.0992        .19265E-08** at limit **
  20  norm          .10000E-03    1.6880       -.44600E-07** at limit **
  21  Prefactor     4.9167        34.170       -.26671E-05   -.12596E-04
  22  Normalizat    1.0015        .20229        .11944E-05    .98449E-04
  23  Prefactor     1.1165        .12123        .22787E-06    .17023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.0434
  Prefactor  = 0.0001
  norm       = 4.24525
  Prefactor  = 0.00011369
  norm       = 13.0245
  Prefactor  = 10.5959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25506
  norm       = 0.000100603
  Prefactor  = 0.0001
  Prefactor  = 7.93788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.342477
  norm       = 3.04674
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.91674
  Normalizat = 1.00147
  Prefactor  = 1.11654
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.515     FROM HESSE     STATUS=OK           382 CALLS     2649 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4623        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0434        12.401        .81659E-03   -1.5216    
   3  Prefactor     .10000E-03    24.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2452        7.2968        .19556E-03   -1.5296    
   5  Prefactor     .11369E-03    31.176        .11037       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.024        21.397        .11104E-03   -1.4986    
   7  Prefactor     10.596        8.0066        .12309E-03   -1.5057    
   8  Prefactor     .10000E-03    4.5399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2551        89.175        .22817E-03   -1.5347    
  11  norm          .10060E-03    185.51        .49759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9379        19.758        .14232E-03   -1.5144    
  14  Prefactor     .10000E-03    19.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34248        .17521        .25755E-04   -1.5591    
  18  norm          3.0467        2.5714        .12269E-03   -1.5359    
  19  norm          .10000E-03    2.1017        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.7657        .22284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9167        34.216        .18080E-03   -1.5264    
  22  Normalizat    1.0015        .23692        .31970E-03   -.92981    
  23  Prefactor     1.1165        .14268        .18841E-03   -.88940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29304e-09
Minuit parameter uncertainties:
  1  3.79766e-06
  2  12.4062
  3  1.09924e-05
  4  7.29828
  5  0.0413397
  6  21.4093
  7  8.00742
  8  1.06845e-05
  9  6.56563e-05
  10  34.1305
  11  0.0212135
  12  5.9018e-06
  13  19.7744
  14  7.78714e-05
  15  1.77584e-05
  16  2.09542e-05
  17  0.175208
  18  2.57146
  19  1.40758e-06
  20  2.20303e-05
  21  25.9617
  22  0.237167
  23  0.14273
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.255e+00  3.413e+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.117e+00  1.427e-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.001e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/697187/likelihoodResults_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.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) = 7879.51413519
delta logL = 0.000398307976866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7879.51384411
delta logL = 0.000689389630679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2267       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0203       1.0000          .0000       10.000    
     3 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1162       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=   7879.514     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      294 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1505        287.01        .49000E-02    .36960E-04
   2  Index         2.0193        .30234        .50000       -.13491E-04
   3  Normalizat    1.0019        .88230E-02    .72246E-01    .39217E-04
   4  Prefactor     1.1162        .54820E-02    .37000E-01    .62173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15053
  Index      = 2.0193
  Normalizat = 1.00188
  Prefactor  = 1.11623
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.514     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1505        119.32        .19600E-03   -1.5300    
   2  Index         2.0193        2.3980        .36581E-02   -.63869    
   3  Normalizat    1.0019        .22539        .31964E-03   -.92968    
   4  Prefactor     1.1162        .14060        .18843E-03   -.88950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53761e-10
Minuit parameter uncertainties:
  1  44.6055
  2  2.56993
  3  0.225601
  4  0.140645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697187': 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) = 7879.51384125
delta logL = 0.000692250207067

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  4.151e+00  4.461e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.019e+00  2.570e+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.116e+00  1.406e-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.002e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/697187/cmap_HighResolution_316051201_316310401_4FGL_J1440.9+0609_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-10 05:04:25.783329', job_id='697187', GAL2='1.12', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631275465.78', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.92e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='296' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 697187: <4FGL_J1440.9+0609_daily_bin296> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin296> 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) <bullet0230>, 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:04:26 2021
Results reported at Fri Sep 10 05:04:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin296 220.242 6.1631 316051201 316310401 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

