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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin474
RA = 220.242, Dec = 6.1631
tmin = 362188801, tmax = 362448001
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='698459', job_status='RUN', time_executed='2021-09-10 04:59:44.385916', time_epoch_executed='1631275184.39' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698459/ft1_4FGL_J1440.9+0609_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698459/ft2_4FGL_J1440.9+0609_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698459/ft1_4FGL_J1440.9+0609_daily_bin474.fits outfile=/scratch/kocevski/698459/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin474.fits ra=220.242 dec=6.1631 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.18
user 3.94
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698459/ft1_filtered_4FGL_J1440.9+0609_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/698459/ft2_4FGL_J1440.9+0609_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/698459/ltcube_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.fits outfile=/scratch/kocevski/698459/expmap_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.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/698459/ltcube_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.fits
.....................!
real 190.56
user 185.22
sys 4.78

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/698459/ft1_filtered_4FGL_J1440.9+0609_daily_bin474.fits scfile=/scratch/kocevski/698459/ft2_4FGL_J1440.9+0609_daily_bin474.fits outfile=/scratch/kocevski/698459/cmap_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698459/ft1_filtered_4FGL_J1440.9+0609_daily_bin474.fits scfile=/scratch/kocevski/698459/ft2_4FGL_J1440.9+0609_daily_bin474.fits outfile=/scratch/kocevski/698459/cmap_HighResolution_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.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/698459/ft1_filtered_4FGL_J1440.9+0609_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/698459/ft2_4FGL_J1440.9+0609_daily_bin474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698459/Model_4FGL_J1440.9+0609_daily_bin474.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/698459/ft1_filtered_4FGL_J1440.9+0609_daily_bin474.fits.....................!
real 61.71
user 60.25
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.586       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8275       1.0000         .10000E-03   10000.    
     5 'Prefactor '    77.010       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.913       1.0000         .10000E-03   10000.    
    11 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.904       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .59925       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .30101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.393       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0058       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=   8122.898     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2585 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5653        9.4567        .52198E-05   -.60999E-05
   2  Prefactor     3.3138        10.709       -.62026E-07    .32928E-06
   3  Prefactor     12.590        26.124       -.45412E-06    .10122E-05
   4  norm          6.8274        7.0010       -.20715E-06    .87841E-06
   5  Prefactor     77.013        33.994       -.27668E-06   -.59251E-05
   6  norm          1.0224        15.313       -.14696E-06   -.13524E-05
   7  Prefactor     .10000E-03    3.8518        .68984E-07** at limit **
   8  Prefactor     .10000E-03    10.156        .10378E-06** at limit **
   9  Prefactor     18.155        28.963        .21815E-05   -.45086E-05
  10  Prefactor     42.910        24.789        .25903E-06   -.52283E-06
  11  norm          .10000E-03    7.7220       -.82307E-07** at limit **
  12  Prefactor     .10000E-03    19.878       -.11333E-08** at limit **
  13  Prefactor     6.3613        19.166        .16858E-06    .67952E-05
  14  Prefactor     18.566        20.378       -.91101E-06   -.53688E-05
  15  Prefactor     .10000E-03    32.282       -.14292E-05** at limit **
  16  Prefactor     13.875        43.836        .73678E-05    .21815E-05
  17  norm          .10000E-03    .63430E-01   -.15243E-07** at limit **
  18  norm          .59916        1.4750        .17317E-06   -.37237E-04
  19  norm          .10000E-03    2.1311       -.12987E-08** at limit **
  20  norm          .30088        1.1043        .22792E-06   -.13465E-03
  21  Prefactor     25.392        28.120        .26679E-06   -.26133E-05
  22  Normalizat    1.2493        .20289       -.66087E-06    .21501E-04
  23  Prefactor     1.0060        .11729        .36304E-07    .26841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56532
  Prefactor  = 3.31379
  Prefactor  = 12.5901
  norm       = 6.82737
  Prefactor  = 77.0132
  norm       = 1.02244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1547
  Prefactor  = 42.91
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36125
  Prefactor  = 18.5663
  Prefactor  = 0.000100001
  Prefactor  = 13.8754
  norm       = 0.0001
  norm       = 0.599162
  norm       = 0.0001
  norm       = 0.30088
  Prefactor  = 25.3915
  Normalizat = 1.24931
  Prefactor  = 1.00603
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.898     FROM HESSE     STATUS=OK           380 CALLS     2965 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5653        9.4717        .12744E-02   -1.5388    
   2  Prefactor     3.3138        10.683        .22240E-03   -1.5344    
   3  Prefactor     12.590        26.158        .11291E-03   -1.4998    
   4  norm          6.8274        7.0027        .76776E-03   -1.5185    
   5  Prefactor     77.013        34.199        .45759E-04   -1.3951    
   6  norm          1.0224        84.029        .67104E-02   -1.5506    
   7  Prefactor     .10000E-03    3.8728        .17269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.155        28.939        .93966E-04   -1.4856    
  10  Prefactor     42.910        24.789        .61197E-04   -1.4397    
  11  norm          .10000E-03    7.7366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3613        19.146        .15916E-03   -1.5203    
  14  Prefactor     18.566        20.377        .92963E-04   -1.4846    
  15  Prefactor     .10000E-03    32.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.875        43.871        .10742E-03   -1.4963    
  17  norm          .10000E-03    .93733E-01    .43804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .59916        1.4450        .16372E-03   -1.5553    
  19  norm          .10000E-03    2.1339        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .30088        1.5471        .17535E-02   -1.5598    
  21  Prefactor     25.392        28.118        .79495E-04   -1.4700    
  22  Normalizat    1.2493        .24015        .30244E-03   -.85093    
  23  Prefactor     1.0060        .13929        .20099E-03   -.92529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23243e-08
Minuit parameter uncertainties:
  1  9.47724
  2  10.6894
  3  26.1813
  4  7.00354
  5  34.2075
  6  18.5641
  7  5.8102e-06
  8  2.0301e-05
  9  28.9615
  10  24.795
  11  8.48729e-06
  12  1.62981e-05
  13  19.1649
  14  20.3848
  15  0.000257911
  16  43.9729
  17  7.33271e-08
  18  1.44509
  19  1.52612e-07
  20  1.36436
  21  28.1322
  22  0.240364
  23  0.139343
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  4.291e+01  2.479e+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.006e+00  1.393e-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.249e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.49
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.38e-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) = 8122.66102969
delta logL = 0.236645726804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8122.66052257
delta logL = 0.237152848366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.991       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7459       1.0000          .0000       10.000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       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=   8122.661     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      318 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.020        40.443        .26118E-03    .52930E-04
   2  Index         1.7465        .54140        .86835E-02    .30180E-03
   3  Normalizat    1.2685        .22608        .30053E-03    .49253E-04
   4  Prefactor     1.0010        .13666        .20149E-03   -.75552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.0203
  Index      = 1.74651
  Normalizat = 1.26849
  Prefactor  = 1.00102
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.661     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.020        39.789        .10447E-04   -1.4170    
   2  Index         1.7465        .53259        .17367E-02   -.70850    
   3  Normalizat    1.2685        .22618        .12021E-04   -.84512    
   4  Prefactor     1.0010        .13677        .80595E-05   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72999e-11
Minuit parameter uncertainties:
  1  39.8065
  2  0.534356
  3  0.22636
  4  0.13682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698459': 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) = 8122.66052061
delta logL = 0.237154803444

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.902e+01  3.981e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.747e+00  5.344e-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.001e+00  1.368e-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.268e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.96
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.75 +/- 0.53
Photon Flux (Free Index): 2.68e-08 +/- 2.75e-08
Energy Flux (Free Index): 3.78e-05 +/- 3.95e-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/698459/cmap_HighResolution_362188801_362448001_4FGL_J1440.9+0609_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='3.78e-05', photon_flux_error='2.63e-08', dlogl='2.37e-01', energy_flux='2.39e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-10 05:09:54.128483', photon_index_error2='0.53', photon_index2='1.75', ts='12.49', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='1.25', time_epoch_completed='1631275794.13', return_code='0', job_id='698459', GAL2='1.00', EG2='1.27', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.75e-08', ts2='12.96', photon_index='2.12' WHERE bin_id='474' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 698459: <4FGL_J1440.9+0609_daily_bin474> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin474> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 04:56:13 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:56:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 04:56:15 2021
Terminated at Fri Sep 10 05:09:54 2021
Results reported at Fri Sep 10 05:09:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin474 220.242 6.1631 362188801 362448001 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

