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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin325
RA = 220.242, Dec = 6.1631
tmin = 323568001, tmax = 323827201
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='697234', job_status='RUN', time_executed='2021-09-10 04:55:20.500924', time_epoch_executed='1631274920.5' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697234/ft1_4FGL_J1440.9+0609_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697234/ft2_4FGL_J1440.9+0609_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697234/ft1_4FGL_J1440.9+0609_daily_bin325.fits outfile=/scratch/kocevski/697234/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin325.fits ra=220.242 dec=6.1631 rad=12.0 tmin=323568001.0 tmax=323827201.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.28
user 3.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697234/ft2_4FGL_J1440.9+0609_daily_bin325.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/697234/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/697234/ft1_filtered_4FGL_J1440.9+0609_daily_bin325.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/697234/ft1_filtered_4FGL_J1440.9+0609_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/697234/ft2_4FGL_J1440.9+0609_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/697234/ltcube_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.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/697234/ft2_4FGL_J1440.9+0609_daily_bin325.fits
.....................!
real 11.71
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697234/ft1_filtered_4FGL_J1440.9+0609_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/697234/ft2_4FGL_J1440.9+0609_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/697234/ltcube_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.fits outfile=/scratch/kocevski/697234/expmap_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.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/697234/ltcube_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.fits
.....................!
real 191.29
user 185.87
sys 5.06

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/697234/ft1_filtered_4FGL_J1440.9+0609_daily_bin325.fits scfile=/scratch/kocevski/697234/ft2_4FGL_J1440.9+0609_daily_bin325.fits outfile=/scratch/kocevski/697234/cmap_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.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.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0520       1.0000         .10000E-03   10000.    
     4 'norm      '    13.856       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    41.721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13373E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.621       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4159       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4421       1.0000         .10000E-03   10000.    
    19 'norm      '    10.717       1.0000         .10000E-03   10000.    
    20 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2310       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87024       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=   6507.636     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2503 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8418        8.4953       -.35894E-06    .36838E-04
   2  Prefactor     .10000E-03    18.773       -.21542E-05** at limit **
   3  Prefactor     1.9593        76.932       -.39391E-04   -.36338E-04
   4  norm          13.857        11.744       -.13801E-06    .56170E-05
   5  Prefactor     .10000E-03    16.809        .36270E-05** at limit **
   6  norm          41.712        35.832       -.73451E-05    .39951E-05
   7  Prefactor     5.3951        6.2717        .20345E-06   -.16196E-04
   8  Prefactor     .10000E-03    1.8646        .40943E-06** at limit **
   9  Prefactor     .10000E-03    19.063       -.25123E-05** at limit **
  10  Prefactor     .10000E-03    49.414        .34524E-04** at limit **
  11  norm          .10000E-03    39.463       -.24484E-04** at limit **
  12  Prefactor     2.3422        49.509       -.25067E-05   -.50411E-04
  13  Prefactor     20.398        27.845       -.72953E-05    .36219E-04
  14  Prefactor     .10000E-03    42.483       -.41076E-05** at limit **
  15  Prefactor     19.617        24.438       -.48991E-06    .39377E-04
  16  Prefactor     .10000E-03    17.197       -.35088E-05** at limit **
  17  norm          1.4159        .29035        .24939E-07    .49459E-03
  18  norm          4.4414        2.5292       -.31630E-06   -.16552E-03
  19  norm          10.718        7.1851       -.34905E-05    .23001E-04
  20  norm          .10000E-03    2.1431        .70525E-07** at limit **
  21  Prefactor     .10000E-03    21.150        .88667E-05** at limit **
  22  Normalizat    1.2310        .22295        .34673E-05    .94502E-04
  23  Prefactor     .87016        .12762        .67962E-06    .29905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84183
  Prefactor  = 0.0001
  Prefactor  = 1.95933
  norm       = 13.8568
  Prefactor  = 0.0001
  norm       = 41.7121
  Prefactor  = 5.3951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.34222
  Prefactor  = 20.3978
  Prefactor  = 0.0001
  Prefactor  = 19.6169
  Prefactor  = 0.0001
  norm       = 1.41591
  norm       = 4.4414
  norm       = 10.7178
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23104
  Prefactor  = 0.870156
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.636     FROM HESSE     STATUS=OK           370 CALLS     2873 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8418        8.4986        .14319E-03   -1.5148    
   2  Prefactor     .10000E-03    19.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9593        78.563        .28857E-03   -1.5428    
   4  norm          13.857        11.746        .10760E-03   -1.4963    
   5  Prefactor     .10000E-03    16.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.712        35.887        .62062E-04   -1.4415    
   7  Prefactor     5.3951        6.2568        .17301E-03   -1.5243    
   8  Prefactor     .10000E-03    1.8709        .10757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    40.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3422        49.468        .26724E-03   -1.5402    
  13  Prefactor     20.398        27.869        .88654E-04   -1.4804    
  14  Prefactor     .10000E-03    43.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.617        24.329        .90420E-04   -1.4822    
  16  Prefactor     .10000E-03    17.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4159        .29089        .18542E-04   -1.5470    
  18  norm          4.4414        2.5282        .92293E-04   -1.5286    
  19  norm          10.718        7.1847        .12238E-03   -1.5053    
  20  norm          .10000E-03    2.2430        .23050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2310        .26410        .30212E-03   -.85649    
  23  Prefactor     .87016        .15119        .20872E-03   -.97192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38127e-10
Minuit parameter uncertainties:
  1  8.49988
  2  1.10934e-05
  3  24.8483
  4  11.7483
  5  4.9704e-05
  6  35.9053
  7  6.2576
  8  1.02352e-06
  9  8.71883e-07
  10  7.52884e-05
  11  0.000100217
  12  21.5479
  13  27.8864
  14  2.04043e-05
  15  24.3409
  16  6.07308e-06
  17  0.290891
  18  2.52824
  19  7.18524
  20  6.33878e-06
  21  2.95949e-05
  22  0.264386
  23  0.151265
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  7.529e-05  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.702e-01  1.513e-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.231e+00  2.644e-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: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697234/likelihoodResults_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.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) = 6507.63642413
delta logL = -9.57853499131e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6507.55244088
delta logL = 0.0838874701667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2786       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1525       1.0000          .0000       10.000    
     3 'Normalizat'    1.2085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87575       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=   6507.552     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      397 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2775        401.76        .22047E-03   -.69154E-03
   2  Index         3.1530        5.3215        .95566E-02   -.12246E-03
   3  Normalizat    1.2085        .21487        .30452E-03    .42888E-03
   4  Prefactor     .87575        .12797        .20811E-03    .80865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27746
  Index      = 3.15302
  Normalizat = 1.20852
  Prefactor  = 0.875748
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.552     FROM HESSE     STATUS=OK            25 CALLS      422 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2775        8.7034        .88189E-05   -1.5482    
   2  Index         3.1530        1.6735        .38227E-03   -.37836    
   3  Normalizat    1.2085        .25902        .60905E-04   -.86340    
   4  Prefactor     .87575        .15152        .41622E-04   -.96994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39437e-09
Minuit parameter uncertainties:
  1  6.66992
  2  1.71194
  3  0.259294
  4  0.151591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697234': 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) = 6507.55244079
delta logL = 0.0838875585814

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.277e+00  6.670e+00  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  3.153e+00  1.712e+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.757e-01  1.516e-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.209e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 220.242 6.163

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/697234/cmap_HighResolution_323568001_323827201_4FGL_J1440.9+0609_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-10 05:05:22.248153', job_id='697234', GAL2='0.88', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1631275522.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.39e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='325' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:05:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 697234: <4FGL_J1440.9+0609_daily_bin325> in cluster <slac> Done

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

Your job looked like:

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

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

