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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin259
RA = 220.242, Dec = 6.1631
tmin = 306460801, tmax = 306720001
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='697120', job_status='RUN', time_executed='2021-09-10 04:54:49.840256', time_epoch_executed='1631274889.84' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697120/ft1_4FGL_J1440.9+0609_daily_bin259.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697120/ft1_4FGL_J1440.9+0609_daily_bin259.fits outfile=/scratch/kocevski/697120/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin259.fits ra=220.242 dec=6.1631 rad=12.0 tmin=306460801.0 tmax=306720001.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.55
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697120/ft1_filtered_4FGL_J1440.9+0609_daily_bin259.fits" evtable="EVENTS" scfile=/scratch/kocevski/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits sctable="SC_DATA" outfile=/scratch/kocevski/697120/ltcube_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.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/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits
.....................!
real 11.74
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697120/ft1_filtered_4FGL_J1440.9+0609_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits sctable="SC_DATA" expcube=/scratch/kocevski/697120/ltcube_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.fits outfile=/scratch/kocevski/697120/expmap_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.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/697120/ltcube_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.fits
.....................!
real 193.04
user 188.15
sys 4.50

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/697120/ft1_filtered_4FGL_J1440.9+0609_daily_bin259.fits scfile=/scratch/kocevski/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits outfile=/scratch/kocevski/697120/cmap_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.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/697120/ft1_filtered_4FGL_J1440.9+0609_daily_bin259.fits scfile=/scratch/kocevski/697120/ft2_4FGL_J1440.9+0609_daily_bin259.fits outfile=/scratch/kocevski/697120/cmap_HighResolution_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.452       1.0000         .10000E-03   10000.    
     4 'norm      '    16.715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.154       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .97310       1.0000         .10000E-03   10000.    
    18 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0751       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89772       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1452       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=   8735.880     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2518 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6520       -.77092E-07** at limit **
   2  Prefactor     .10000E-03    11.405       -.87824E-07** at limit **
   3  Prefactor     19.450        19.579       -.19129E-06   -.23680E-05
   4  norm          16.714        10.568        .37513E-07   -.17311E-05
   5  Prefactor     .10000E-03    8.3518       -.16075E-06** at limit **
   6  norm          .10000E-03    17.422       -.41955E-06** at limit **
   7  Prefactor     .10000E-03    2.4876       -.12879E-06** at limit **
   8  Prefactor     8.6300        6.3991        .13496E-05    .55104E-03
   9  Prefactor     23.629        49.409       -.23993E-06   -.28909E-04
  10  Prefactor     16.154        16.278       -.51909E-07   -.13449E-04
  11  norm          .10000E-03    5.4577       -.77956E-07** at limit **
  12  Prefactor     .10000E-03    8.3545       -.85277E-07** at limit **
  13  Prefactor     35.890        23.964       -.41932E-07    .10075E-04
  14  Prefactor     .56741        9.2934       -.13214E-05    .26200E-03
  15  Prefactor     .10000E-03    8.9074       -.35791E-07** at limit **
  16  Prefactor     .10000E-03    24.494        .26619E-07** at limit **
  17  norm          .97313        .22953        .10523E-07    .51307E-03
  18  norm          .10000E-03    1.0586        .48697E-06** at limit **
  19  norm          .10000E-03    1.7459        .10843E-07** at limit **
  20  norm          .10000E-03    1.4587        .63126E-06** at limit **
  21  Prefactor     3.1184        138.07       -.12582E-05   -.75371E-05
  22  Normalizat    .89781        .20161        .11602E-05   -.89916E-04
  23  Prefactor     1.1452        .12109       -.90674E-06   -.17127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4498
  norm       = 16.7143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63002
  Prefactor  = 23.6285
  Prefactor  = 16.1538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8903
  Prefactor  = 0.567408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.97313
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.11845
  Normalizat = 0.897811
  Prefactor  = 1.14523
 **********
 **   18 **HESSE 
 **********

 FCN=   8735.880     FROM HESSE     STATUS=OK           372 CALLS     2890 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.450        19.587        .90813E-04   -1.4826    
   4  norm          16.714        10.570        .97963E-04   -1.4890    
   5  Prefactor     .10000E-03    8.3647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5014        .14408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6300        6.6620        .68228E-03   -1.5120    
   9  Prefactor     23.629        49.453        .82373E-04   -1.4735    
  10  Prefactor     16.154        16.279        .99652E-04   -1.4904    
  11  norm          .10000E-03    5.4637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.890        23.967        .66897E-04   -1.4509    
  14  Prefactor     .56741        68.422        .50022E-02   -1.5557    
  15  Prefactor     .10000E-03    8.9180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .97313        .22893        .20479E-04   -1.5511    
  18  norm          .10000E-03    2.1300        .17440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7482        .12061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5474        .20574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1184        135.41        .23130E-03   -1.5355    
  22  Normalizat    .89781        .22951        .34056E-03   -.96537    
  23  Prefactor     1.1452        .13881        .18870E-03   -.88034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23168e-09
Minuit parameter uncertainties:
  1  1.4964e-06
  2  6.69237e-06
  3  19.5936
  4  10.5708
  5  1.32863e-05
  6  5.97309e-05
  7  9.05202e-06
  8  6.66257
  9  49.5385
  10  16.283
  11  3.26127e-06
  12  9.94899e-06
  13  23.973
  14  12.4752
  15  4.29993e-06
  16  5.25907e-05
  17  0.228935
  18  6.42977e-05
  19  4.86273e-07
  20  6.21007e-05
  21  41.1977
  22  0.229765
  23  0.138852
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.615e+01  1.628e+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.145e+00  1.389e-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:  8.978e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 8.99e-06 +/- 9.06e-06

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

Saving results to:
/scratch/kocevski/697120/likelihoodResults_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.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) = 8734.75003258
delta logL = 1.13008569721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8734.7466615
delta logL = 1.13345677845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.989       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0912       1.0000          .0000       10.000    
     3 'Normalizat'    .90984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1427       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=   8734.747     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      261 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.988        17.784       -.19286E-05    .81662E-03
   2  Index         1.0912        .38562        .57987E-05    .29328E-03
   3  Normalizat    .90994        .18932       -.21448E-06   -.11335E-03
   4  Prefactor     1.1426        .11769        .42798E-07   -.15698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.988
  Index      = 1.09122
  Normalizat = 0.909939
  Prefactor  = 1.14264
 **********
 **   18 **HESSE 
 **********

 FCN=   8734.747     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.988        25.380        .85418E-04   -1.4770    
   2  Index         1.0912        .63645        .14454E-01   -.89748    
   3  Normalizat    .90994        .22126        .33845E-03   -.96112    
   4  Prefactor     1.1426        .13771        .18888E-03   -.88115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02372e-09
Minuit parameter uncertainties:
  1  25.3929
  2  0.64096
  3  0.221485
  4  0.137755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697120': 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) = 8734.74666137
delta logL = 1.13345690764

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  2.199e+01  2.539e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.091e+00  6.410e-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:  1.143e+00  1.378e-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:  9.099e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.95
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.09 +/- 0.64
Photon Flux (Free Index): 4.31e-09 +/- 5.33e-09
Energy Flux (Free Index): 4.92e-05 +/- 7.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/697120/cmap_HighResolution_306460801_306720001_4FGL_J1440.9+0609_daily_bin259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='4.92e-05', photon_flux_error='1.72e-08', dlogl='1.13e+00', energy_flux='8.99e-06', photon_flux2='4.31e-09', job_status='DONE', time_completed='2021-09-10 05:06:26.395604', photon_index_error2='0.64', photon_index2='1.09', ts='3.68', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='6.97e-08', energy_flux_error2='7.13e-05', EG='0.90', time_epoch_completed='1631275586.4', return_code='0', job_id='697120', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='9.06e-06', photon_flux_error2='5.33e-09', ts2='5.95', photon_index='2.12' WHERE bin_id='259' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 697120: <4FGL_J1440.9+0609_daily_bin259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin259 220.242 6.1631 306460801 306720001 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 :                                   695.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

