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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin953
RA = 220.242, Dec = 6.1631
tmin = 486345601, tmax = 486604801
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='700238', job_status='RUN', time_executed='2021-09-10 05:04:19.902966', time_epoch_executed='1631275459.9' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='953'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700238

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700238/ft1_4FGL_J1440.9+0609_daily_bin953.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700238/ft1_4FGL_J1440.9+0609_daily_bin953.fits outfile=/scratch/kocevski/700238/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin953.fits ra=220.242 dec=6.1631 rad=12.0 tmin=486345601.0 tmax=486604801.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits" evtable="EVENTS" scfile=/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits sctable="SC_DATA" outfile=/scratch/kocevski/700238/ltcube_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.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/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits
.....................!
real 11.86
user 11.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits sctable="SC_DATA" expcube=/scratch/kocevski/700238/ltcube_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.fits outfile=/scratch/kocevski/700238/expmap_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.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/700238/ltcube_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.fits
.....................!
real 190.57
user 185.11
sys 5.02

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/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits scfile=/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits outfile=/scratch/kocevski/700238/cmap_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits scfile=/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits outfile=/scratch/kocevski/700238/cmap_HighResolution_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.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/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/700238/ft2_4FGL_J1440.9+0609_daily_bin953.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700238/Model_4FGL_J1440.9+0609_daily_bin953.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/700238/ft1_filtered_4FGL_J1440.9+0609_daily_bin953.fits.....................!
real 57.14
user 55.79
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16494E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.849       1.0000         .10000E-03   10000.    
     4 'norm      '    .10512E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8472       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3441       1.0000         .10000E-03   10000.    
    11 'norm      '    .80737E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4577       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3377       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3131       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5604       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87096       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=   7372.077     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2599 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4400        .19476E-06** at limit **
   2  Prefactor     .10057E-03    18.566       -.92604E-05** at limit **
   3  Prefactor     64.798        37.615        .78866E-06   -.86999E-05
   4  norm          .10000E-03    18.962        .49769E-06** at limit **
   5  Prefactor     .10000E-03    27.841        .51086E-06** at limit **
   6  norm          9.8494        20.555        .11145E-06   -.63294E-04
   7  Prefactor     .10000E-03    9.0902       -.11548E-05** at limit **
   8  Prefactor     1.2460        2.9327        .33333E-05   -.10212E-02
   9  Prefactor     .10000E-03    53.627        .25783E-05** at limit **
  10  Prefactor     9.4515        27.618        .63729E-06    .18488E-04
  11  norm          .10002E-03    49.324        .21205E-04** at limit **
  12  Prefactor     .10000E-03    21.196       -.48089E-06** at limit **
  13  Prefactor     7.4896        13.410       -.13600E-06   -.10433E-04
  14  Prefactor     7.9160        15.619        .48899E-07    .47536E-04
  15  Prefactor     .10000E-03    11.024        .22213E-06** at limit **
  16  Prefactor     .10000E-03    12.692       -.44042E-07** at limit **
  17  norm          1.4577        .27371        .26591E-08   -.14058E-02
  18  norm          3.3375        2.3782        .72960E-07   -.82975E-04
  19  norm          3.3117        3.8081        .37244E-07    .18251E-04
  20  norm          6.5610        3.8868        .95002E-07   -.47229E-04
  21  Prefactor     .10000E-03    9.5073        .19079E-06** at limit **
  22  Normalizat    1.1678        .20710        .24232E-05   -.71632E-04
  23  Prefactor     .87101        .11762       -.27370E-05   -.11010E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010057
  Prefactor  = 64.7976
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.84939
  Prefactor  = 0.000100003
  Prefactor  = 1.24598
  Prefactor  = 0.0001
  Prefactor  = 9.45148
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 7.48961
  Prefactor  = 7.91605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45766
  norm       = 3.33749
  norm       = 3.31165
  norm       = 6.56102
  Prefactor  = 0.0001
  Normalizat = 1.16776
  Prefactor  = 0.871006
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.077     FROM HESSE     STATUS=OK           380 CALLS     2979 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10057E-03    13.470        .93576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.798        37.809        .49835E-04   -1.4096    
   4  norm          .10000E-03    19.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8494        20.553        .12770E-03   -1.5080    
   7  Prefactor     .10000E-03    9.4523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2460        9.1996        .20090E-02   -1.5485    
   9  Prefactor     .10000E-03    53.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4515        27.938        .13111E-03   -1.5093    
  11  norm          .10002E-03    62.238        .49352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4896        13.404        .14664E-03   -1.5161    
  14  Prefactor     7.9160        15.642        .14260E-03   -1.5145    
  15  Prefactor     .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4577        .27407        .18507E-04   -1.5466    
  18  norm          3.3375        2.3732        .10531E-03   -1.5343    
  19  norm          3.3117        3.8092        .17522E-03   -1.5344    
  20  norm          6.5610        3.8878        .12486E-03   -1.5196    
  21  Prefactor     .10000E-03    9.5114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1678        .25108        .30272E-03   -.87605    
  23  Prefactor     .87101        .14394        .20586E-03   -.97162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23528e-09
Minuit parameter uncertainties:
  1  4.67475e-05
  2  0.00554402
  3  37.8233
  4  0.000122545
  5  0.000207314
  6  20.5677
  7  0.000312996
  8  6.77246
  9  0.000174992
  10  27.9765
  11  0.00207982
  12  0.00018256
  13  13.4089
  14  15.6498
  15  5.10458e-05
  16  2.88727e-05
  17  0.274073
  18  2.37323
  19  3.80946
  20  3.88791
  21  1.31284e-05
  22  0.251339
  23  0.143999
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  9.451e+00  2.798e+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:  8.710e-01  1.440e-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.168e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/700238/likelihoodResults_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.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) = 7371.42140274
delta logL = 0.656091296564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7371.35152191
delta logL = 0.725972125047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5589       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5410       1.0000          .0000       10.000    
     3 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89916       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7371.352     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      312 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5452        50.752        .43033E-03   -.89973E-03
   2  Index         3.5436        3.6553        .42127E-02   -.11197E-03
   3  Normalizat    1.0815        .21082        .31288E-03   -.82046E-04
   4  Prefactor     .89944        .12020        .20282E-03   -.77411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54516
  Index      = 3.54364
  Normalizat = 1.0815
  Prefactor  = 0.899444
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.352     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5452        5.5325        .17213E-04   -1.5459    
   2  Index         3.5436        1.2856        .16851E-03   -.29556    
   3  Normalizat    1.0815        .25247        .12515E-04   -.90348    
   4  Prefactor     .89944        .14632        .81126E-05   -.96161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27021e-11
Minuit parameter uncertainties:
  1  5.53437
  2  1.30156
  3  0.252753
  4  0.146382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700238': 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) = 7371.35151438
delta logL = 0.725979649827

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.545e+00  5.534e+00  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  3.544e+00  1.302e+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:  8.994e-01  1.464e-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.082e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 220.242 6.163
Photon Index (Free Index): 3.54 +/- 1.30
Photon Flux (Free Index): 8.37e-08 +/- 7.93e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.21e-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/700238/cmap_HighResolution_486345601_486604801_4FGL_J1440.9+0609_daily_bin953.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='7.26e-01', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-10 05:15:07.869670', photon_index_error2='1.30', photon_index2='3.54', ts='0.14', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.82e-08', energy_flux_error2='1.21e-05', EG='1.17', time_epoch_completed='1631276107.87', return_code='0', job_id='700238', GAL2='0.90', EG2='1.08', return_code2='0', photon_flux_error2='7.93e-08', ts2='1.70', photon_index='2.12' WHERE bin_id='953' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 700238: <4FGL_J1440.9+0609_daily_bin953> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin953 220.242 6.1631 486345601 486604801 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

