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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin208
RA = 220.242, Dec = 6.1631
tmin = 293241601, tmax = 293500801
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='697037', job_status='RUN', time_executed='2021-09-10 04:54:58.215763', time_epoch_executed='1631274898.22' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697037/ft1_4FGL_J1440.9+0609_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697037/ft1_4FGL_J1440.9+0609_daily_bin208.fits outfile=/scratch/kocevski/697037/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin208.fits ra=220.242 dec=6.1631 rad=12.0 tmin=293241601.0 tmax=293500801.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.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.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/697037/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin208.fits evtable="EVENTS" outfile="/scratch/kocevski/697037/ft1_filtered_4FGL_J1440.9+0609_daily_bin208.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/697037/ft1_filtered_4FGL_J1440.9+0609_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/697037/ltcube_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.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/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits
.....................!
real 12.03
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697037/ft1_filtered_4FGL_J1440.9+0609_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/697037/ltcube_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.fits outfile=/scratch/kocevski/697037/expmap_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.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/697037/ltcube_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.fits
.....................!
real 191.85
user 186.74
sys 4.64

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/697037/ft1_filtered_4FGL_J1440.9+0609_daily_bin208.fits scfile=/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits outfile=/scratch/kocevski/697037/cmap_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697037/ft1_filtered_4FGL_J1440.9+0609_daily_bin208.fits scfile=/scratch/kocevski/697037/ft2_4FGL_J1440.9+0609_daily_bin208.fits outfile=/scratch/kocevski/697037/cmap_HighResolution_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.115       1.0000         .10000E-03   10000.    
     4 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.039       1.0000         .10000E-03   10000.    
     6 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15558E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2705       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1259       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0899       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=   7702.265     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2501 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4549       -.31329E-06** at limit **
   2  Prefactor     .10000E-03    24.889       -.11289E-05** at limit **
   3  Prefactor     22.136        37.526        .67660E-06    .22409E-04
   4  norm          .10000E-03    12.507       -.89588E-06** at limit **
   5  Prefactor     27.060        25.687        .10770E-05    .21214E-03
   6  norm          .10000E-03    16.763        .98212E-06** at limit **
   7  Prefactor     6.6955        9.0650       -.24471E-06    .39042E-04
   8  Prefactor     .85387        9.8679        .57114E-05   -.66874E-03
   9  Prefactor     11.315        118.81        .15201E-05    .50790E-04
  10  Prefactor     .10001E-03    54.121        .26869E-05** at limit **
  11  norm          .10000E-03    16.339        .98001E-06** at limit **
  12  Prefactor     .10000E-03    8.4608       -.11815E-06** at limit **
  13  Prefactor     .10000E-03    10.388       -.46971E-06** at limit **
  14  Prefactor     .10000E-03    15.376       -.97304E-06** at limit **
  15  Prefactor     24.772        27.067        .57227E-06    .98725E-04
  16  Prefactor     .10000E-03    19.557       -.33611E-06** at limit **
  17  norm          .10000E-03    .91234E-01   -.21846E-06** at limit **
  18  norm          5.2710        2.4394        .14739E-06    .11147E-02
  19  norm          .10000E-03    2.3586       -.17219E-06** at limit **
  20  norm          .10000E-03    1.2583       -.24263E-06** at limit **
  21  Prefactor     .10000E-03    10.245       -.21247E-06** at limit **
  22  Normalizat    1.1252        .23497       -.58083E-05    .39697E-03
  23  Prefactor     1.0902        .13257        .40458E-05    .12467E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.1356
  norm       = 0.000100001
  Prefactor  = 27.0604
  norm       = 0.000100001
  Prefactor  = 6.6955
  Prefactor  = 0.853868
  Prefactor  = 11.3151
  Prefactor  = 0.000100005
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.7716
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.271
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12524
  Prefactor  = 1.09025
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.265     FROM HESSE     STATUS=OK           360 CALLS     2861 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4698        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.136        37.436        .85175E-04   -1.4767    
   4  norm          .10000E-03    12.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.060        25.742        .77043E-04   -1.4667    
   6  norm          .10000E-03    16.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6955        9.0827        .15503E-03   -1.5190    
   8  Prefactor     .85387        14.826        .31705E-02   -1.5523    
   9  Prefactor     11.315        118.22        .11959E-03   -1.5035    
  10  Prefactor     .10001E-03    55.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.772        27.089        .80488E-04   -1.4712    
  16  Prefactor     .10000E-03    19.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .32801        .49155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2710        2.4421        .89140E-04   -1.5249    
  19  norm          .10000E-03    2.3684        .13169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2707        .96346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1252        .25549        .31601E-03   -.88946    
  23  Prefactor     1.0902        .14944        .19513E-03   -.89779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12235e-09
Minuit parameter uncertainties:
  1  3.62101e-05
  2  0.000316007
  3  37.4758
  4  0.000192789
  5  25.7521
  6  0.000223683
  7  9.0846
  8  7.11757
  9  73.3348
  10  0.0010992
  11  0.000210022
  12  2.38565e-05
  13  8.69924e-05
  14  0.00022656
  15  27.1027
  16  0.000101527
  17  7.52957e-06
  18  2.44214
  19  1.51895e-05
  20  1.69486e-05
  21  3.94164e-05
  22  0.255774
  23  0.149495
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  1.099e-03  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.090e+00  1.495e-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.125e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/697037/likelihoodResults_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.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): 102
logL (Free Index) = 7702.2648734
delta logL = -8.60404188643e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7702.2648734
delta logL = -8.60331601871e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1204       1.0000          .0000       10.000    
     3 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7701.566     FROM MIGRAD    STATUS=FAILED       141 CALLS      286 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3667        717.06        .30002E-03    .10455E-03
   2  Index         .41303        8.6098        .37519E-01    .21154E-03
   3  Normalizat    1.1071        .19427        .31812E-03    .70509E-04
   4  Prefactor     1.0982        .12054        .19453E-03    .88760E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7701.566     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      365 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3667        717.06        .10356E-02    .10455E-03
   2  Index         .41303        8.6098        .64629E-02    .21154E-03
   3  Normalizat    1.1071        .19427        .24601E-03    .70509E-04
   4  Prefactor     1.0982        .12054        .10294E-03    .88760E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7701.566     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      395 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3668        303.95        .60004E-04    .87116E-04
   2  Index         .41304        9.6692        .75038E-02   -.12851E-04
   3  Normalizat    1.1071        .24420        .12725E-04    .62897E-04
   4  Prefactor     1.0982        .15065        .38906E-04    .79831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36683
  Index      = 0.413039
  Normalizat = 1.10711
  Prefactor  = 1.09823
 **********
 **   18 **HESSE 
 **********

 FCN=   7701.566     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3668        64.053        .12001E-04   -1.6251    
   2  Index         .41304        7.1505        .30015E-03   -1.9801    
   3  Normalizat    1.1071        .24351        .25450E-05   -.89524    
   4  Prefactor     1.0982        .14952        .77813E-05   -.89523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62694e-11
Minuit parameter uncertainties:
  1  43.5072
  2  2.19741
  3  0.24376
  4  0.149574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697037': 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) = 7701.56613867
delta logL = 0.698648694998

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  7.367e+00  4.351e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  4.130e-01  2.197e+00  0.000e+00  1.000e+01 (-1.000e+00)
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  1.098e+00  1.496e-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.107e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 220.242 6.163
Photon Index (Free Index): 0.41 +/- 2.20
Photon Flux (Free Index): 2.82e-09 +/- 5.36e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.56e-04

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/697037/cmap_HighResolution_293241601_293500801_4FGL_J1440.9+0609_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', energy_flux2='1.06e-04', dlogl='6.99e-01', photon_flux2='2.82e-09', job_status='DONE', time_completed='2021-09-10 05:05:57.862690', photon_index_error2='2.20', photon_index2='0.41', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.99e-08', energy_flux_error2='1.56e-04', EG='1.13', time_epoch_completed='1631275557.86', return_code='0', job_id='697037', GAL2='1.10', EG2='1.11', return_code2='0', photon_flux_error2='5.36e-09', ts2='1.40', photon_index='2.12' WHERE bin_id='208' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 697037: <4FGL_J1440.9+0609_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin208 220.242 6.1631 293241601 293500801 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 :                                   658.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

