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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin366
RA = 220.242, Dec = 6.1631
tmin = 334195201, tmax = 334454401
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='697299', job_status='RUN', time_executed='2021-09-10 04:52:11.270991', time_epoch_executed='1631274731.27' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697299

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697299/ft1_4FGL_J1440.9+0609_daily_bin366.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697299/ft2_4FGL_J1440.9+0609_daily_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697299/ft1_4FGL_J1440.9+0609_daily_bin366.fits outfile=/scratch/kocevski/697299/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin366.fits ra=220.242 dec=6.1631 rad=12.0 tmin=334195201.0 tmax=334454401.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.89
user 3.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697299/ft1_filtered_4FGL_J1440.9+0609_daily_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/697299/ft2_4FGL_J1440.9+0609_daily_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/697299/ltcube_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.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/697299/ft2_4FGL_J1440.9+0609_daily_bin366.fits
.....................!
real 12.17
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697299/ft1_filtered_4FGL_J1440.9+0609_daily_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/697299/ft2_4FGL_J1440.9+0609_daily_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/697299/ltcube_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.fits outfile=/scratch/kocevski/697299/expmap_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.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/697299/ltcube_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.fits
.....................!
real 190.65
user 185.71
sys 4.57

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/697299/ft1_filtered_4FGL_J1440.9+0609_daily_bin366.fits scfile=/scratch/kocevski/697299/ft2_4FGL_J1440.9+0609_daily_bin366.fits outfile=/scratch/kocevski/697299/cmap_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=220.242 yref=6.1631 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    40.629       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.944       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.554       1.0000         .10000E-03   10000.    
    11 'norm      '    .20062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.732       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .24686       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5767       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1806       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99906       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=   8088.185     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2572 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4257       -.29781E-07** at limit **
   2  Prefactor     .10000E-03    6.2718        .12965E-06** at limit **
   3  Prefactor     40.643        35.662        .15778E-04    .34231E-04
   4  norm          .10000E-03    4.1238       -.32673E-08** at limit **
   5  Prefactor     34.937        26.521       -.52420E-05    .24740E-03
   6  norm          2.8247        35.065        .43214E-06   -.22958E-04
   7  Prefactor     .43415        5.4621       -.51578E-05    .16916E-03
   8  Prefactor     .10000E-03    8.1663       -.14344E-05** at limit **
   9  Prefactor     19.263        48.851       -.13819E-04    .92961E-04
  10  Prefactor     78.539        37.019       -.96902E-05    .33128E-03
  11  norm          .10004E-03    45.704        .56304E-05** at limit **
  12  Prefactor     .10000E-03    8.6551        .11889E-05** at limit **
  13  Prefactor     18.729        16.421        .26272E-06    .32611E-04
  14  Prefactor     3.1424        15.728       -.27470E-06   -.52872E-04
  15  Prefactor     49.859        31.226       -.24325E-05    .14171E-03
  16  Prefactor     .10000E-03    15.345       -.47273E-06** at limit **
  17  norm          .24685        .15722       -.27796E-07   -.10361E-02
  18  norm          3.5762        2.4983       -.63418E-07   -.40925E-03
  19  norm          .10000E-03    1.8209       -.49113E-08** at limit **
  20  norm          1.0687        2.4427       -.66789E-06   -.11049E-02
  21  Prefactor     .10000E-03    10.680        .37784E-06** at limit **
  22  Normalizat    1.1810        .20979        .15308E-05    .39193E-03
  23  Prefactor     .99890        .12127        .57979E-06    .50192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6435
  norm       = 0.0001
  Prefactor  = 34.9369
  norm       = 2.8247
  Prefactor  = 0.434148
  Prefactor  = 0.0001
  Prefactor  = 19.2626
  Prefactor  = 78.5389
  norm       = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 18.729
  Prefactor  = 3.14239
  Prefactor  = 49.8591
  Prefactor  = 0.0001
  norm       = 0.246847
  norm       = 3.57625
  norm       = 0.0001
  norm       = 1.0687
  Prefactor  = 0.0001
  Normalizat = 1.18095
  Prefactor  = 0.998898
 **********
 **   18 **HESSE 
 **********

 FCN=   8088.185     FROM HESSE     STATUS=OK           366 CALLS     2938 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.643        35.879        .62887E-04   -1.4432    
   4  norm          .10000E-03    4.1286        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.937        26.573        .67792E-04   -1.4525    
   6  norm          2.8247        34.994        .24188E-03   -1.5372    
   7  Prefactor     .43415        21.243        .39065E-02   -1.5576    
   8  Prefactor     .10000E-03    8.3021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.263        48.843        .91239E-04   -1.4830    
  10  Prefactor     78.539        36.911        .45310E-04   -1.3933    
  11  norm          .10004E-03    46.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.729        16.429        .92541E-04   -1.4842    
  14  Prefactor     3.1424        15.637        .22869E-03   -1.5353    
  15  Prefactor     49.859        31.117        .56791E-04   -1.4295    
  16  Prefactor     .10000E-03    15.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24685        .15249        .27228E-03   -1.5609    
  18  norm          3.5762        2.4851        .11034E-03   -1.5330    
  19  norm          .10000E-03    1.8218        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0687        2.3876        .20471E-03   -1.5501    
  21  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1810        .25250        .31156E-03   -.87194    
  23  Prefactor     .99890        .14610        .20277E-03   -.92766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57392e-09
Minuit parameter uncertainties:
  1  1.28508e-06
  2  1.32407e-07
  3  35.8978
  4  2.76185e-06
  5  26.582
  6  19.8984
  7  6.07536
  8  4.79813e-06
  9  48.9451
  10  36.9222
  11  0.00262868
  12  2.17241e-05
  13  16.4332
  14  14.0253
  15  31.1267
  16  2.81334e-05
  17  0.152489
  18  2.48516
  19  3.29756e-07
  20  2.38782
  21  1.28058e-05
  22  0.252763
  23  0.146157
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  7.854e+01  3.692e+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:  9.989e-01  1.462e-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.181e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.53
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 2.05e-05

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) = 8088.1849241
delta logL = 0.000408996338592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8088.18431726
delta logL = 0.00101583349715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.671       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1380       1.0000          .0000       10.000    
     3 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99918       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=   8088.184     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      248 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.639        59.639        .45859E-04    .12638E-03
   2  Index         2.1382        .42472        .41094E-02    .70638E-03
   3  Normalizat    1.1791        .24257        .31176E-03   -.14685E-02
   4  Prefactor     .99952        .14500        .20271E-03   -.28751E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.6391
  Index      = 2.13821
  Normalizat = 1.17907
  Prefactor  = 0.99952
 **********
 **   18 **HESSE 
 **********

 FCN=   8088.184     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.639        55.980        .91718E-05   -1.3955    
   2  Index         2.1382        .39840        .82187E-03   -.60938    
   3  Normalizat    1.1791        .24228        .62352E-04   -.87252    
   4  Prefactor     .99952        .14500        .40542E-04   -.92746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7823e-09
Minuit parameter uncertainties:
  1  56.019
  2  0.399026
  3  0.242508
  4  0.145061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697299': 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) = 8088.18430675
delta logL = 0.00102634665382

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  7.664e+01  5.602e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.138e+00  3.990e-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:  9.995e-01  1.451e-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.179e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.52
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.14 +/- 0.40
Photon Flux (Free Index): 8.48e-08 +/- 5.32e-08
Energy Flux (Free Index): 4.30e-05 +/- 2.62e-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/697299/cmap_HighResolution_334195201_334454401_4FGL_J1440.9+0609_daily_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='4.30e-05', photon_flux_error='3.91e-08', dlogl='1.03e-03', energy_flux='4.37e-05', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-09-10 05:02:24.786172', photon_index_error2='0.40', photon_index2='2.14', ts='9.53', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='1.18', time_epoch_completed='1631275344.79', return_code='0', job_id='697299', GAL2='1.00', EG2='1.18', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='5.32e-08', ts2='9.52', photon_index='2.12' WHERE bin_id='366' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:02:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 697299: <4FGL_J1440.9+0609_daily_bin366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin366 220.242 6.1631 334195201 334454401 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 :                                   612.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            634 sec.

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

