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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin460
RA = 220.242, Dec = 6.1631
tmin = 358560001, tmax = 358819201
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='698437', job_status='RUN', time_executed='2021-09-10 04:58:34.199455', time_epoch_executed='1631275114.2' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698437

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698437/ft1_4FGL_J1440.9+0609_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698437/ft2_4FGL_J1440.9+0609_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698437/ft1_4FGL_J1440.9+0609_daily_bin460.fits outfile=/scratch/kocevski/698437/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin460.fits ra=220.242 dec=6.1631 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.24
user 4.96
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698437/ft1_filtered_4FGL_J1440.9+0609_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/698437/ft2_4FGL_J1440.9+0609_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/698437/ltcube_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.fits outfile=/scratch/kocevski/698437/expmap_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.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/698437/ltcube_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.fits
.....................!
real 193.71
user 188.91
sys 4.39

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/698437/ft1_filtered_4FGL_J1440.9+0609_daily_bin460.fits scfile=/scratch/kocevski/698437/ft2_4FGL_J1440.9+0609_daily_bin460.fits outfile=/scratch/kocevski/698437/cmap_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698437/ft1_filtered_4FGL_J1440.9+0609_daily_bin460.fits scfile=/scratch/kocevski/698437/ft2_4FGL_J1440.9+0609_daily_bin460.fits outfile=/scratch/kocevski/698437/cmap_HighResolution_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.756       1.0000         .10000E-03   10000.    
     4 'norm      '    11.943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28467E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.520       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19458       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2497       1.0000         .10000E-03   10000.    
    19 'norm      '    7.8090       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.961       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79076       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2836       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=   6693.741     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2498 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.541        11.837        .37420E-06   -.68368E-05
   2  Prefactor     39.664        25.612       -.57174E-07   -.91017E-05
   3  Prefactor     18.754        30.877       -.93141E-07   -.83945E-05
   4  norm          11.943        12.941        .38981E-07   -.28239E-05
   5  Prefactor     .10000E-03    8.9712       -.86109E-07** at limit **
   6  norm          .10000E-03    5.7878        .31213E-08** at limit **
   7  Prefactor     .10000E-03    3.0547       -.98881E-09** at limit **
   8  Prefactor     16.965        8.6530        .40023E-07    .25943E-05
   9  Prefactor     .10000E-03    58.960       -.61057E-06** at limit **
  10  Prefactor     .10000E-03    54.223       -.33858E-06** at limit **
  11  norm          17.497        19.745        .33348E-06   -.55289E-04
  12  Prefactor     .10000E-03    11.849        .81031E-06** at limit **
  13  Prefactor     26.804        28.260       -.12178E-06   -.50438E-05
  14  Prefactor     .10000E-03    17.211       -.17090E-05** at limit **
  15  Prefactor     .10000E-03    19.645        .17555E-05** at limit **
  16  Prefactor     .10000E-03    12.697       -.53493E-06** at limit **
  17  norm          .19459        .17220       -.13889E-07   -.28705E-03
  18  norm          3.2499        2.9969        .84040E-07   -.43034E-04
  19  norm          7.8088        9.3761        .17881E-05   -.32465E-04
  20  norm          1.4534        3.1368        .40160E-06   -.22675E-05
  21  Prefactor     51.963        49.843        .62762E-07    .35568E-05
  22  Normalizat    .79078        .25089        .34431E-06   -.12444E-04
  23  Prefactor     1.2836        .15167       -.40226E-06    .29868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5407
  Prefactor  = 39.6637
  Prefactor  = 18.7543
  norm       = 11.943
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4968
  Prefactor  = 0.0001
  Prefactor  = 26.8037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.194586
  norm       = 3.24994
  norm       = 7.80885
  norm       = 1.45343
  Prefactor  = 51.9627
  Normalizat = 0.790775
  Prefactor  = 1.28362
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.741     FROM HESSE     STATUS=OK           374 CALLS     2872 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.541        11.837        .56557E-03   -1.5000    
   2  Prefactor     39.664        25.613        .63644E-04   -1.4448    
   3  Prefactor     18.754        30.932        .92482E-04   -1.4842    
   4  norm          11.943        12.946        .11592E-03   -1.5017    
   5  Prefactor     .10000E-03    8.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.7883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0588        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.965        8.6698        .97240E-04   -1.4884    
   9  Prefactor     .10000E-03    59.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.199        .21412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.497        19.823        .95686E-04   -1.4871    
  12  Prefactor     .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.804        28.240        .77375E-04   -1.4672    
  14  Prefactor     .10000E-03    17.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19459        .16300        .29938E-03   -1.5620    
  18  norm          3.2499        2.9740        .12606E-03   -1.5347    
  19  norm          7.8088        9.4270        .71747E-03   -1.5149    
  20  norm          1.4534        3.0862        .20391E-03   -1.5467    
  21  Prefactor     51.963        49.857        .55638E-04   -1.4265    
  22  Normalizat    .79078        .28431        .37911E-03   -1.0041    
  23  Prefactor     1.2836        .17321        .19143E-03   -.83796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38328e-10
Minuit parameter uncertainties:
  1  11.8396
  2  25.62
  3  30.9588
  4  12.9488
  5  6.09098e-06
  6  4.20277e-07
  7  2.9995e-07
  8  8.67041
  9  0.000110069
  10  0.000275995
  11  19.8309
  12  6.76787e-05
  13  28.254
  14  0.000137737
  15  0.000170031
  16  4.95431e-05
  17  0.163003
  18  2.97414
  19  9.42884
  20  3.08651
  21  49.8971
  22  0.284844
  23  0.173285
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.760e-04  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.284e+00  1.733e-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.908e-01  2.848e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698437/likelihoodResults_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.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) = 6693.7407606
delta logL = -8.62479046191e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6693.47049459
delta logL = 0.27017975653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77131       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6073       1.0000          .0000       10.000    
     3 'Normalizat'    .73347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6693.470     FROM MIGRAD    STATUS=FAILED        99 CALLS      320 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76223        71.885        .24665E-03   -.26641E-03
   2  Index         3.6117        6.7951        .56124E-02    .78184E-03
   3  Normalizat    .73312        .21176        .39252E-03   -.19924E-03
   4  Prefactor     1.3029        .13043        .19011E-03   -.72506E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6693.470     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      409 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76223        71.885        .11654E-03   -.26641E-03
   2  Index         3.6117        6.7951        .89515E-03    .78184E-03
   3  Normalizat    .73312        .21176        .12612E-03   -.19924E-03
   4  Prefactor     1.3029        .13043        .43960E-04   -.72506E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6693.470     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      440 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76227        12.008        .98660E-05   -.10256E-03
   2  Index         3.6117        2.5715        .11225E-02   -.29888E-04
   3  Normalizat    .73312        .28073        .15701E-04   -.13280E-03
   4  Prefactor     1.3029        .17266        .38023E-04   -.53951E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.762267
  Index      = 3.6117
  Normalizat = 0.733117
  Prefactor  = 1.30294
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.470     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76227        5.2450        .39464E-06   -1.5533    
   2  Index         3.6117        1.7501        .44899E-04   -.28136    
   3  Normalizat    .73312        .28032        .31401E-05   -1.0260    
   4  Prefactor     1.3029        .17229        .76045E-05   -.83220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36184e-10
Minuit parameter uncertainties:
  1  3.99927
  2  1.79136
  3  0.280867
  4  0.172367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698437': 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) = 6693.4704886
delta logL = 0.270185750863

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  1.303e+00  1.724e-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.331e-01  2.809e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/698437/cmap_HighResolution_358560001_358819201_4FGL_J1440.9+0609_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-10 05:08:57.184558', job_id='698437', GAL2='1.30', fit_tolerance='1e-08', EG2='0.73', EG='0.79', time_epoch_completed='1631275737.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.70e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='460' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 698437: <4FGL_J1440.9+0609_daily_bin460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin460 220.242 6.1631 358560001 358819201 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

