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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin438
RA = 220.242, Dec = 6.1631
tmin = 352857601, tmax = 353116801
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='698402', job_status='RUN', time_executed='2021-09-10 04:58:29.663124', time_epoch_executed='1631275109.66' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698402/ft1_4FGL_J1440.9+0609_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698402/ft1_4FGL_J1440.9+0609_daily_bin438.fits outfile=/scratch/kocevski/698402/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin438.fits ra=220.242 dec=6.1631 rad=12.0 tmin=352857601.0 tmax=353116801.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.38
user 3.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.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/698402/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin438.fits evtable="EVENTS" outfile="/scratch/kocevski/698402/ft1_filtered_4FGL_J1440.9+0609_daily_bin438.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698402/ft1_filtered_4FGL_J1440.9+0609_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/698402/ltcube_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.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/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits
.....................!
real 11.79
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698402/ft1_filtered_4FGL_J1440.9+0609_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/698402/ltcube_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.fits outfile=/scratch/kocevski/698402/expmap_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.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/698402/ltcube_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.fits
.....................!
real 192.00
user 186.10
sys 5.36

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/698402/ft1_filtered_4FGL_J1440.9+0609_daily_bin438.fits scfile=/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits outfile=/scratch/kocevski/698402/cmap_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698402/ft1_filtered_4FGL_J1440.9+0609_daily_bin438.fits scfile=/scratch/kocevski/698402/ft2_4FGL_J1440.9+0609_daily_bin438.fits outfile=/scratch/kocevski/698402/cmap_HighResolution_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.047       1.0000         .10000E-03   10000.    
     4 'norm      '    16.718       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12399E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.352       1.0000         .10000E-03   10000.    
    11 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12656E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4293       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3243       1.0000         .10000E-03   10000.    
    20 'norm      '    16.583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.867       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77830       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1022       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=   4175.574     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2581 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9194        .13855E-06** at limit **
   2  Prefactor     .10000E-03    10.878        .63569E-05** at limit **
   3  Prefactor     37.991        42.849       -.40567E-04    .11916E-04
   4  norm          16.698        28.230       -.29176E-06    .10035E-05
   5  Prefactor     .10000E-03    13.415        .27401E-05** at limit **
   6  norm          .10000E-03    13.147        .15785E-05** at limit **
   7  Prefactor     .10000E-03    7.0042        .25087E-05** at limit **
   8  Prefactor     .10000E-03    5.4583       -.74916E-06** at limit **
   9  Prefactor     34.332        58.742       -.11530E-03    .49625E-06
  10  Prefactor     20.356        22.710       -.51636E-05    .99109E-04
  11  norm          .10000E-03    11.708       -.54873E-05** at limit **
  12  Prefactor     .10000E-03    13.145        .94475E-06** at limit **
  13  Prefactor     .10000E-03    11.484       -.50019E-05** at limit **
  14  Prefactor     5.3243        24.364        .46159E-04    .13384E-03
  15  Prefactor     .10000E-03    13.369        .16920E-05** at limit **
  16  Prefactor     .10000E-03    22.333       -.28270E-05** at limit **
  17  norm          .13400E-01    .17960       -.10807E-05    .13252E-02
  18  norm          6.4294        3.6693        .27210E-06    .36052E-03
  19  norm          2.3224        6.8687       -.12945E-05   -.16414E-03
  20  norm          16.579        9.1248        .34321E-07    .59878E-04
  21  Prefactor     39.845        55.904       -.24111E-04    .25731E-04
  22  Normalizat    .77773        .27784        .61419E-05    .46894E-03
  23  Prefactor     1.1027        .16828        .29110E-05    .66623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9909
  norm       = 16.6983
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 34.3323
  Prefactor  = 20.356
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.32429
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0134003
  norm       = 6.42937
  norm       = 2.32243
  norm       = 16.5787
  Prefactor  = 39.8449
  Normalizat = 0.777732
  Prefactor  = 1.10268
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.574     FROM HESSE     STATUS=OK           366 CALLS     2947 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9197        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.991        42.989        .64977E-04   -1.4474    
   4  norm          16.698        28.259        .97956E-04   -1.4890    
   5  Prefactor     .10000E-03    13.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0523        .16690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.975        .29056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.332        58.761        .34145E-03   -1.4535    
  10  Prefactor     20.356        22.695        .88783E-04   -1.4805    
  11  norm          .10000E-03    11.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3243        24.348        .17354E-03   -1.5246    
  15  Prefactor     .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .13400E-01    .60748        .49858E-03   -1.5685    
  18  norm          6.4294        3.6664        .87877E-04   -1.5201    
  19  norm          2.3224        6.8441        .26903E-03   -1.5403    
  20  norm          16.579        9.1356        .98354E-04   -1.4893    
  21  Prefactor     39.845        56.012        .63483E-04   -1.4445    
  22  Normalizat    .77773        .32496        .34068E-03   -1.0090    
  23  Prefactor     1.1027        .19970        .18367E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07317e-09
Minuit parameter uncertainties:
  1  5.70956e-07
  2  2.75096e-07
  3  43.0242
  4  28.282
  5  1.94664e-05
  6  1.05032e-05
  7  0.000265134
  8  0.000528678
  9  58.8603
  10  22.7048
  11  9.76868e-05
  12  0.000221009
  13  3.55953e-05
  14  22.7869
  15  0.000299743
  16  0.000288275
  17  0.179776
  18  3.66649
  19  6.84636
  20  9.13639
  21  56.0858
  22  0.325773
  23  0.199835
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  2.036e+01  2.270e+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.103e+00  1.998e-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:  7.777e-01  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.26e-05

TS (Fixed Index): 2.51
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698402/likelihoodResults_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.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) = 4175.36440181
delta logL = 0.20946972528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4175.3529822
delta logL = 0.220889329056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.599       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6123       1.0000          .0000       10.000    
     3 'Normalizat'    .78551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1002       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=   4175.353     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      308 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.604        43.658        .66246E-04    .41187E-05
   2  Index         1.6122        .71679        .96271E-02    .13008E-03
   3  Normalizat    .78560        .30314        .33907E-03   -.46605E-05
   4  Prefactor     1.1002        .19302        .18383E-03   -.38343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6043
  Index      = 1.61218
  Normalizat = 0.785595
  Prefactor  = 1.10018
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.353     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.604        43.123        .26499E-05   -1.4497    
   2  Index         1.6122        .70824        .19254E-02   -.74445    
   3  Normalizat    .78560        .30344        .13563E-04   -1.0061    
   4  Prefactor     1.1002        .19322        .73532E-05   -.89461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13883e-13
Minuit parameter uncertainties:
  1  43.1594
  2  0.71269
  3  0.304098
  4  0.193342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698402': 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) = 4175.35298185
delta logL = 0.220889679943

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.660e+01  4.316e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.612e+00  7.127e-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.100e+00  1.933e-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:  7.856e-01  3.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.61 +/- 0.71
Photon Flux (Free Index): 1.28e-08 +/- 1.77e-08
Energy Flux (Free Index): 2.79e-05 +/- 5.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/698402/cmap_HighResolution_352857601_353116801_4FGL_J1440.9+0609_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='2.79e-05', photon_flux_error='2.40e-08', dlogl='2.21e-01', energy_flux='1.13e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-10 05:06:44.266947', photon_index_error2='0.71', photon_index2='1.61', ts='2.51', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='5.20e-05', EG='0.78', time_epoch_completed='1631275604.27', return_code='0', job_id='698402', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='1.77e-08', ts2='2.95', photon_index='2.12' WHERE bin_id='438' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 698402: <4FGL_J1440.9+0609_daily_bin438> in cluster <slac> Done

Job <4FGL_J1440.9+0609_daily_bin438> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 04:56:08 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:56:09 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:09 2021
Terminated at Fri Sep 10 05:06:44 2021
Results reported at Fri Sep 10 05:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin438 220.242 6.1631 352857601 353116801 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 :                                   493.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

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

