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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin950
RA = 220.242, Dec = 6.1631
tmin = 485568001, tmax = 485827201
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='700233', job_status='RUN', time_executed='2021-09-10 05:05:09.866532', time_epoch_executed='1631275509.87' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700233/ft1_4FGL_J1440.9+0609_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700233/ft1_4FGL_J1440.9+0609_daily_bin950.fits outfile=/scratch/kocevski/700233/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin950.fits ra=220.242 dec=6.1631 rad=12.0 tmin=485568001.0 tmax=485827201.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.92
user 3.69
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700233/ft1_filtered_4FGL_J1440.9+0609_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/700233/ltcube_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.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/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits
.....................!
real 11.52
user 11.19
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700233/ft1_filtered_4FGL_J1440.9+0609_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/700233/ltcube_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.fits outfile=/scratch/kocevski/700233/expmap_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.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/700233/ltcube_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.fits
.....................!
real 190.91
user 185.20
sys 5.36

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1440.9+0609 @ 220.242 6.1631

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/700233/ft1_filtered_4FGL_J1440.9+0609_daily_bin950.fits scfile=/scratch/kocevski/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits outfile=/scratch/kocevski/700233/cmap_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.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/700233/ft1_filtered_4FGL_J1440.9+0609_daily_bin950.fits scfile=/scratch/kocevski/700233/ft2_4FGL_J1440.9+0609_daily_bin950.fits outfile=/scratch/kocevski/700233/cmap_HighResolution_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1132       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.201       1.0000         .10000E-03   10000.    
     6 'norm      '    34.769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.826       1.0000         .10000E-03   10000.    
    11 'norm      '    16.734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.646       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12913E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1606       1.0000         .10000E-03   10000.    
    18 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.672       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8628       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9365       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0745       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81799       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=   7417.676     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2599 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1130        13.952       -.41880E-05   -.12586E-04
   2  Prefactor     16.428        17.905       -.30611E-05    .58082E-04
   3  Prefactor     .10000E-03    8.0264        .12675E-05** at limit **
   4  norm          17.271        11.341       -.13811E-05    .74231E-04
   5  Prefactor     44.200        28.313       -.29102E-05    .70952E-04
   6  norm          34.768        33.451       -.36957E-05    .44891E-04
   7  Prefactor     .10000E-03    2.5525       -.68286E-07** at limit **
   8  Prefactor     2.9672        4.7793       -.50517E-05   -.41259E-03
   9  Prefactor     .10000E-03    25.488       -.50493E-05** at limit **
  10  Prefactor     67.808        53.519       -.15876E-04    .23806E-04
  11  norm          16.730        28.233        .65673E-05   -.18429E-06
  12  Prefactor     .10000E-03    7.5638       -.80805E-06** at limit **
  13  Prefactor     16.646        15.730       -.11189E-05    .97611E-05
  14  Prefactor     22.145        19.049       -.33858E-06   -.20805E-05
  15  Prefactor     39.650        35.300       -.14253E-04   -.48680E-04
  16  Prefactor     .10000E-03    49.354        .22579E-04** at limit **
  17  norm          1.1606        .24437       -.73989E-07    .25935E-02
  18  norm          .10001E-03    1.1255        .17946E-05** at limit **
  19  norm          12.672        7.3265       -.38018E-07    .70897E-04
  20  norm          1.8632        1.8525        .12968E-05    .84036E-03
  21  Prefactor     5.8220        81.972       -.35819E-03    .77757E-04
  22  Normalizat    1.0745        .20037        .81406E-05    .25188E-03
  23  Prefactor     .81802        .11533        .10559E-04   -.31540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.11299
  Prefactor  = 16.428
  Prefactor  = 0.0001
  norm       = 17.2706
  Prefactor  = 44.1995
  norm       = 34.7676
  Prefactor  = 0.0001
  Prefactor  = 2.96722
  Prefactor  = 0.0001
  Prefactor  = 67.8081
  norm       = 16.7303
  Prefactor  = 0.0001
  Prefactor  = 16.6456
  Prefactor  = 22.1447
  Prefactor  = 39.6499
  Prefactor  = 0.000100001
  norm       = 1.16064
  norm       = 0.00010001
  norm       = 12.6723
  norm       = 1.86318
  Prefactor  = 5.82201
  Normalizat = 1.07447
  Prefactor  = 0.81802
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.676     FROM HESSE     STATUS=OK           374 CALLS     2973 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1130        13.987        .14076E-03   -1.5138    
   2  Prefactor     16.428        17.905        .98812E-04   -1.4897    
   3  Prefactor     .10000E-03    8.0315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.271        11.342        .96374E-04   -1.4877    
   5  Prefactor     44.200        28.366        .60302E-04   -1.4377    
   6  norm          34.768        33.438        .67961E-04   -1.4528    
   7  Prefactor     .10000E-03    2.5605        .13436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9672        4.7674        .23171E-03   -1.5363    
   9  Prefactor     .10000E-03    25.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.808        53.537        .48736E-04   -1.4059    
  11  norm          16.730        28.209        .97910E-04   -1.4890    
  12  Prefactor     .10000E-03    7.5656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.646        15.732        .98166E-04   -1.4892    
  14  Prefactor     22.145        19.039        .85112E-04   -1.4766    
  15  Prefactor     39.650        35.274        .63645E-04   -1.4448    
  16  Prefactor     .10000E-03    49.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1606        .24474        .18604E-04   -1.5493    
  18  norm          .10001E-03    2.4565        .17497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.672        7.3297        .11252E-03   -1.4996    
  20  norm          1.8632        1.8610        .11342E-03   -1.5435    
  21  Prefactor     5.8220        82.956        .16481E-03   -1.5225    
  22  Normalizat    1.0745        .23693        .30200E-03   -.90576    
  23  Prefactor     .81802        .13633        .20331E-03   -.99067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58527e-09
Minuit parameter uncertainties:
  1  13.9923
  2  17.9109
  3  3.95284e-05
  4  11.3432
  5  28.3747
  6  33.4558
  7  1.62527e-05
  8  4.76801
  9  0.000166615
  10  53.5754
  11  28.2319
  12  1.33525e-05
  13  15.7354
  14  19.0442
  15  35.2928
  16  0.000338569
  17  0.244742
  18  0.000309027
  19  7.33025
  20  1.86108
  21  44.0267
  22  0.237162
  23  0.136386
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  8.180e-01  1.364e-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.074e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 2.98e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.59733198
delta logL = 0.0789931426471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.58025848
delta logL = 0.0960666436404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.932       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3267       1.0000          .0000       10.000    
     3 'Normalizat'    1.0575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82390       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=   7417.580     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      288 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.937        59.693        .57326E-04    .40849E-03
   2  Index         2.3271        .57061        .37899E-02    .36954E-03
   3  Normalizat    1.0570        .22927        .30404E-03    .37055E-03
   4  Prefactor     .82410        .13485        .20260E-03    .53499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.9366
  Index      = 2.32711
  Normalizat = 1.05695
  Prefactor  = 0.8241
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.580     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.937        50.671        .11465E-04   -1.4308    
   2  Index         2.3271        .48417        .15160E-03   -.56401    
   3  Normalizat    1.0570        .22842        .60808E-04   -.91146    
   4  Prefactor     .82410        .13464        .40520E-04   -.98846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74254e-10
Minuit parameter uncertainties:
  1  50.7155
  2  0.485232
  3  0.228634
  4  0.134695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700233': 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) = 7417.58025434
delta logL = 0.0960707747172

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  8.241e-01  1.347e-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.057e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.33 +/- 0.49
Photon Flux (Free Index): 8.73e-08 +/- 5.65e-08
Energy Flux (Free Index): 3.17e-05 +/- 2.04e-05

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/700233/cmap_HighResolution_485568001_485827201_4FGL_J1440.9+0609_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='3.17e-05', photon_flux_error='5.67e-08', dlogl='9.61e-02', energy_flux='3.77e-05', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-09-10 05:15:03.247602', photon_index_error2='0.49', photon_index2='2.33', ts='5.53', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.07', time_epoch_completed='1631276103.25', return_code='0', job_id='700233', GAL2='0.82', EG2='1.06', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='5.65e-08', ts2='5.81', photon_index='2.12' WHERE bin_id='950' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 700233: <4FGL_J1440.9+0609_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin950 220.242 6.1631 485568001 485827201 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 :                                   592.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

