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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin422
RA = 220.242, Dec = 6.1631
tmin = 348710401, tmax = 348969601
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='698377', job_status='RUN', time_executed='2021-09-10 04:56:24.396346', time_epoch_executed='1631274984.4' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698377/ft1_4FGL_J1440.9+0609_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698377/ft1_4FGL_J1440.9+0609_daily_bin422.fits outfile=/scratch/kocevski/698377/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin422.fits ra=220.242 dec=6.1631 rad=12.0 tmin=348710401.0 tmax=348969601.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.45
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.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/698377/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin422.fits evtable="EVENTS" outfile="/scratch/kocevski/698377/ft1_filtered_4FGL_J1440.9+0609_daily_bin422.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/698377/ft1_filtered_4FGL_J1440.9+0609_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/698377/ltcube_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.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/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698377/ft1_filtered_4FGL_J1440.9+0609_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/698377/ltcube_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.fits outfile=/scratch/kocevski/698377/expmap_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.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/698377/ltcube_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.fits
.....................!
real 190.43
user 185.34
sys 4.71

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/698377/ft1_filtered_4FGL_J1440.9+0609_daily_bin422.fits scfile=/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits outfile=/scratch/kocevski/698377/cmap_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.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/698377/ft1_filtered_4FGL_J1440.9+0609_daily_bin422.fits scfile=/scratch/kocevski/698377/ft2_4FGL_J1440.9+0609_daily_bin422.fits outfile=/scratch/kocevski/698377/cmap_HighResolution_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9056       1.0000         .10000E-03   10000.    
     4 'norm      '    10.106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17593E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.663       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20693       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3111       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9358       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0545       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=   8813.078     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2209 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.035        .96643E-06** at limit **
   2  Prefactor     .10000E-03    8.3568        .67578E-06** at limit **
   3  Prefactor     3.9071        47.012        .50864E-05    .23207E-04
   4  norm          10.107        11.878        .13386E-06    .12113E-05
   5  Prefactor     .10000E-03    49.539       -.24394E-05** at limit **
   6  norm          .10049E-03    17.040       -.35473E-05** at limit **
   7  Prefactor     15.663        8.7651       -.55500E-07    .12285E-03
   8  Prefactor     1.7328        5.0904       -.90234E-07   -.45841E-04
   9  Prefactor     .10000E-03    20.845       -.25080E-05** at limit **
  10  Prefactor     .10000E-03    7.3463        .81313E-06** at limit **
  11  norm          .10000E-03    4.9571       -.37363E-07** at limit **
  12  Prefactor     .10000E-03    7.5894       -.13411E-05** at limit **
  13  Prefactor     11.999        13.257        .24841E-07    .15279E-04
  14  Prefactor     1.9456        23.482        .12376E-04    .36610E-04
  15  Prefactor     .10000E-03    17.864        .13913E-06** at limit **
  16  Prefactor     .10000E-03    31.917        .30414E-05** at limit **
  17  norm          .20693        .14313       -.61183E-09   -.10073E-03
  18  norm          1.3103        2.3130        .25090E-06   -.10772E-04
  19  norm          .10000E-03    3.5292       -.13274E-07** at limit **
  20  norm          7.9374        4.4964        .64948E-07    .73434E-04
  21  Prefactor     .10000E-03    12.037       -.84811E-06** at limit **
  22  Normalizat    1.1933        .19330       -.94672E-06    .15310E-03
  23  Prefactor     1.0544        .11776       -.70281E-07    .20191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90711
  norm       = 10.1067
  Prefactor  = 0.0001
  norm       = 0.000100485
  Prefactor  = 15.6634
  Prefactor  = 1.7328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9993
  Prefactor  = 1.94557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.206934
  norm       = 1.31031
  norm       = 0.0001
  norm       = 7.93737
  Prefactor  = 0.0001
  Normalizat = 1.19329
  Prefactor  = 1.05445
 **********
 **   18 **HESSE 
 **********

 FCN=   8813.078     FROM HESSE     STATUS=OK           370 CALLS     2579 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9071        47.020        .10208E-02   -1.5313    
   4  norm          10.107        11.886        .12604E-03   -1.5072    
   5  Prefactor     .10000E-03    50.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10049E-03    157.25        .69968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.663        8.7122        .10120E-03   -1.4916    
   8  Prefactor     1.7328        5.0497        .31884E-03   -1.5445    
   9  Prefactor     .10000E-03    20.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.999        13.254        .11562E-03   -1.5015    
  14  Prefactor     1.9456        23.724        .14878E-02   -1.5429    
  15  Prefactor     .10000E-03    17.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .20693        .14073        .28133E-04   -1.5617    
  18  norm          1.3103        2.2820        .17279E-03   -1.5479    
  19  norm          .10000E-03    3.5700        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9374        4.4778        .14013E-03   -1.5144    
  21  Prefactor     .10000E-03    12.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1933        .22859        .30403E-03   -.86810    
  23  Prefactor     1.0544        .14038        .19897E-03   -.90936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88114e-09
Minuit parameter uncertainties:
  1  6.3326e-05
  2  2.18958e-05
  3  27.1344
  4  11.8891
  5  3.31583e-05
  6  0.0175209
  7  8.71294
  8  5.0509
  9  0.000176071
  10  3.256e-05
  11  3.19813e-06
  12  5.49179e-05
  13  13.2577
  14  13.5941
  15  6.24652e-06
  16  0.000212996
  17  0.140726
  18  2.28217
  19  2.40984e-06
  20  4.47796
  21  4.71919e-05
  22  0.228784
  23  0.140432
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  3.256e-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:  1.054e+00  1.404e-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.193e+00  2.288e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698377/likelihoodResults_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.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) = 8813.0787212
delta logL = -0.000646685877655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8813.0780787
delta logL = -4.18110357714e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12277E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0862       1.0000          .0000       10.000    
     3 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0542       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=   8813.078     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10198E-03    52.956        .18142E-02** at limit **
   2  Index         2.0199        5.8760        .50000        .29380E-04
   3  Normalizat    1.1933        .12119E-01    .30403E-03    .36496E-04
   4  Prefactor     1.0544        .75537E-02    .19897E-03    .63537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101983
  Index      = 2.01994
  Normalizat = 1.19329
  Prefactor  = 1.05445
 **********
 **   18 **HESSE 
 **********

 FCN=   8813.078     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10198E-03    237.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0199        5.0891        .50000       -.63853    
   3  Normalizat    1.1933        .26370E-01    .12161E-04   -.86810    
   4  Prefactor     1.0544        .16436E-01    .79588E-05   -.90936    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13979e-08
Minuit parameter uncertainties:
  1  0.0435545
  2  385.698
  3  0.02637
  4  0.0164359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698377': 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) = 8813.07807383
delta logL = 6.89360604156e-07

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.020e-04  4.355e-02  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.020e+00  3.857e+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.054e+00  1.644e-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:  1.193e+00  2.637e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/698377/cmap_HighResolution_348710401_348969601_4FGL_J1440.9+0609_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-10 05:07:33.187755', job_id='698377', GAL2='1.05', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631275653.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='422' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:07:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 698377: <4FGL_J1440.9+0609_daily_bin422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin422 220.242 6.1631 348710401 348969601 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 :                                   667.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

