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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin785
RA = 220.242, Dec = 6.1631
tmin = 442800001, tmax = 443059201
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='699974', job_status='RUN', time_executed='2021-09-10 05:01:29.201204', time_epoch_executed='1631275289.2' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/699974

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/699974/ft1_4FGL_J1440.9+0609_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/699974/ft2_4FGL_J1440.9+0609_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/699974/ft1_4FGL_J1440.9+0609_daily_bin785.fits outfile=/scratch/kocevski/699974/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin785.fits ra=220.242 dec=6.1631 rad=12.0 tmin=442800001.0 tmax=443059201.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.51
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/699974/ft2_4FGL_J1440.9+0609_daily_bin785.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/699974/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/699974/ft1_filtered_4FGL_J1440.9+0609_daily_bin785.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.55
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/699974/ft1_filtered_4FGL_J1440.9+0609_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/699974/ft2_4FGL_J1440.9+0609_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/699974/ltcube_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.fits outfile=/scratch/kocevski/699974/expmap_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.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/699974/ltcube_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.fits
.....................!
real 190.35
user 184.91
sys 5.08

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/699974/ft1_filtered_4FGL_J1440.9+0609_daily_bin785.fits scfile=/scratch/kocevski/699974/ft2_4FGL_J1440.9+0609_daily_bin785.fits outfile=/scratch/kocevski/699974/cmap_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/699974/ft1_filtered_4FGL_J1440.9+0609_daily_bin785.fits scfile=/scratch/kocevski/699974/ft2_4FGL_J1440.9+0609_daily_bin785.fits outfile=/scratch/kocevski/699974/cmap_HighResolution_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.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.52
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0743       1.0000         .10000E-03   10000.    
     4 'norm      '    .12111E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11584       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.339       1.0000         .10000E-03   10000.    
    17 'norm      '    .20312       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1464       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4031       1.0000         .10000E-03   10000.    
    20 'norm      '    7.4098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93282       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0030       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=   6589.564     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2558 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5954        29.075       -.71354E-05   -.98255E-06
   2  Prefactor     .10000E-03    11.514        .58095E-06** at limit **
   3  Prefactor     1.0372        71.053       -.27078E-04   -.38328E-05
   4  norm          .10000E-03    8.3617        .26612E-05** at limit **
   5  Prefactor     .10000E-03    9.8601       -.20279E-05** at limit **
   6  norm          .10000E-03    5.6663       -.21394E-06** at limit **
   7  Prefactor     .32529E-01    7.1117        .31550E-06    .36018E-03
   8  Prefactor     7.9863        7.3235        .23936E-06    .36510E-03
   9  Prefactor     .10000E-03    59.094       -.23724E-04** at limit **
  10  Prefactor     .10000E-03    7.4029        .19210E-05** at limit **
  11  norm          .10000E-03    4.6448        .24111E-07** at limit **
  12  Prefactor     .10000E-03    8.4659        .54670E-06** at limit **
  13  Prefactor     17.201        21.813       -.45989E-05    .26528E-04
  14  Prefactor     .10000E-03    7.3486       -.16468E-05** at limit **
  15  Prefactor     17.340        28.378       -.38251E-05    .32777E-04
  16  Prefactor     49.332        42.416        .60689E-06    .24568E-04
  17  norm          .20312        .16114        .36514E-07    .12843E-02
  18  norm          3.1457        2.4581       -.30375E-08    .33831E-04
  19  norm          3.4025        4.1376        .10668E-05   -.49537E-03
  20  norm          7.4091        4.4139       -.17042E-06    .13273E-05
  21  Prefactor     .10000E-03    11.509        .12673E-05** at limit **
  22  Normalizat    .93286        .20234        .12031E-05    .29568E-03
  23  Prefactor     1.0031        .12249        .43187E-06    .44214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5954
  Prefactor  = 0.0001
  Prefactor  = 1.03721
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0325285
  Prefactor  = 7.98631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2014
  Prefactor  = 0.0001
  Prefactor  = 17.3402
  Prefactor  = 49.3318
  norm       = 0.203121
  norm       = 3.14565
  norm       = 3.4025
  norm       = 7.40912
  Prefactor  = 0.0001
  Normalizat = 0.932859
  Prefactor  = 1.00311
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.564     FROM HESSE     STATUS=OK           382 CALLS     2940 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5954        29.414        .33556E-03   -1.5455    
   2  Prefactor     .10000E-03    11.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0372        77.337        .62567E-02   -1.5504    
   4  norm          .10000E-03    31.940        .43970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32529E-01    9.5789        .56622E-01   -1.5672    
   8  Prefactor     7.9863        7.3657        .14210E-03   -1.5143    
   9  Prefactor     .10000E-03    59.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6469        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.201        21.868        .96534E-04   -1.4878    
  14  Prefactor     .10000E-03    7.3637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.340        28.352        .96141E-04   -1.4875    
  16  Prefactor     49.332        42.371        .57090E-04   -1.4302    
  17  norm          .20312        .15430        .27454E-03   -1.5618    
  18  norm          3.1457        2.4475        .10480E-03   -1.5353    
  19  norm          3.4025        5.2749        .10965E-02   -1.5339    
  20  norm          7.4091        4.4115        .12505E-03   -1.5164    
  21  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93286        .24138        .30339E-03   -.95315    
  23  Prefactor     1.0031        .14727        .18475E-03   -.92626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37049e-08
Minuit parameter uncertainties:
  1  13.7079
  2  4.49826e-05
  3  17.9358
  4  0.000156792
  5  4.08839e-06
  6  2.19161e-07
  7  1.11486
  8  7.36651
  9  0.000133816
  10  2.27164e-06
  11  6.21332e-06
  12  1.83443e-05
  13  21.8779
  14  3.67698e-05
  15  28.3742
  16  42.3972
  17  0.154299
  18  2.44755
  19  5.27566
  20  4.41174
  21  6.22082e-06
  22  0.241662
  23  0.147327
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.272e-06  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.003e+00  1.473e-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:  9.329e-01  2.417e-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: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/699974/likelihoodResults_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.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) = 6589.56435278
delta logL = -0.000642256622996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6589.56371155
delta logL = -1.03142701846e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11426E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0829       1.0000          .0000       10.000    
     3 'Normalizat'    .93306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0030       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=   6589.564     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10180E-03    46.979        .18142E-02** at limit **
   2  Index         2.0200        8.8569        .50000        .32132E-04
   3  Normalizat    .93285        .11663E-01    .30339E-03   -.21888E-03
   4  Prefactor     1.0031        .73853E-02    .18475E-03   -.27322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101802
  Index      = 2.02004
  Normalizat = 0.932855
  Prefactor  = 1.00311
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.564     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10180E-03    206.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0200        5.2822        .50000       -.63850    
   3  Normalizat    .93285        .25011E-01    .12135E-04   -.95315    
   4  Prefactor     1.0031        .15838E-01    .73899E-05   -.92626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39831e-08
Minuit parameter uncertainties:
  1  0.0387009
  2  302.181
  3  0.0250113
  4  0.0158378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/699974': 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): 102
logL (Free Index) = 6589.56370974
delta logL = 7.79525180405e-07

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.018e-04  3.870e-02  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.020e+00  3.022e+02  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.003e+00  1.584e-02  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:  9.329e-01  2.501e-02  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/699974/cmap_HighResolution_442800001_443059201_4FGL_J1440.9+0609_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2021-09-10 05:11:35.351557', job_id='699974', GAL2='1.00', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631275895.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='785' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 699974: <4FGL_J1440.9+0609_daily_bin785> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin785 220.242 6.1631 442800001 443059201 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            628 sec.

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

