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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin481
RA = 220.242, Dec = 6.1631
tmin = 364003201, tmax = 364262401
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='698469', job_status='RUN', time_executed='2021-09-10 04:59:00.089703', time_epoch_executed='1631275140.09' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698469/ft1_4FGL_J1440.9+0609_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698469/ft1_4FGL_J1440.9+0609_daily_bin481.fits outfile=/scratch/kocevski/698469/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin481.fits ra=220.242 dec=6.1631 rad=12.0 tmin=364003201.0 tmax=364262401.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.26
user 3.01
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.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/698469/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin481.fits evtable="EVENTS" outfile="/scratch/kocevski/698469/ft1_filtered_4FGL_J1440.9+0609_daily_bin481.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/698469/ft1_filtered_4FGL_J1440.9+0609_daily_bin481.fits" evtable="EVENTS" scfile=/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits sctable="SC_DATA" outfile=/scratch/kocevski/698469/ltcube_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.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/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits
.....................!
real 12.02
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698469/ft1_filtered_4FGL_J1440.9+0609_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/698469/ltcube_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.fits outfile=/scratch/kocevski/698469/expmap_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.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/698469/ltcube_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.fits
.....................!
real 190.32
user 185.82
sys 4.12

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/698469/ft1_filtered_4FGL_J1440.9+0609_daily_bin481.fits scfile=/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits outfile=/scratch/kocevski/698469/cmap_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698469/ft1_filtered_4FGL_J1440.9+0609_daily_bin481.fits scfile=/scratch/kocevski/698469/ft2_4FGL_J1440.9+0609_daily_bin481.fits outfile=/scratch/kocevski/698469/cmap_HighResolution_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    45.775       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.005       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.367       1.0000         .10000E-03   10000.    
    11 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.588       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.603       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.758       1.0000         .10000E-03   10000.    
    17 'norm      '    .25697       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8691       1.0000         .10000E-03   10000.    
    19 'norm      '    12.398       1.0000         .10000E-03   10000.    
    20 'norm      '    7.8090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98942       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0714       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=   6238.980     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2534 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64553        7.6950       -.40856E-05    .39077E-03
   2  Prefactor     16.147        23.103        .87751E-05    .18613E-03
   3  Prefactor     .10000E-03    7.8711       -.10780E-06** at limit **
   4  norm          45.771        22.052       -.34286E-05    .37046E-04
   5  Prefactor     .10000E-03    20.970       -.49495E-05** at limit **
   6  norm          30.002        25.143       -.34795E-05    .47863E-04
   7  Prefactor     .10000E-03    4.9502        .15827E-06** at limit **
   8  Prefactor     1.8683        5.7008       -.54115E-05   -.82841E-03
   9  Prefactor     13.412        61.862        .77223E-06    .28947E-05
  10  Prefactor     50.377        30.817        .10081E-04   -.68189E-04
  11  norm          .10001E-03    24.459        .45074E-05** at limit **
  12  Prefactor     1.6023        45.470        .28469E-05   -.27627E-04
  13  Prefactor     33.589        20.170       -.33620E-06    .11754E-04
  14  Prefactor     .10000E-03    4.1676       -.47679E-07** at limit **
  15  Prefactor     13.590        31.988       -.33698E-04   -.10230E-03
  16  Prefactor     14.791        48.188        .75691E-04    .50888E-04
  17  norm          .25697        .15311       -.69659E-07   -.70037E-03
  18  norm          1.8690        2.1008        .55099E-06   -.20831E-04
  19  norm          12.397        7.7226        .60803E-07    .36662E-04
  20  norm          7.8083        4.7295        .39524E-06    .36692E-04
  21  Prefactor     15.777        48.846       -.10104E-03    .95012E-05
  22  Normalizat    .98927        .23183        .24184E-05    .28177E-03
  23  Prefactor     1.0715        .14392        .19544E-05    .25337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.64553
  Prefactor  = 16.1474
  Prefactor  = 0.0001
  norm       = 45.7705
  Prefactor  = 0.0001
  norm       = 30.0021
  Prefactor  = 0.0001
  Prefactor  = 1.86827
  Prefactor  = 13.4122
  Prefactor  = 50.3765
  norm       = 0.000100012
  Prefactor  = 1.60228
  Prefactor  = 33.5886
  Prefactor  = 0.0001
  Prefactor  = 13.5898
  Prefactor  = 14.7914
  norm       = 0.256965
  norm       = 1.86895
  norm       = 12.3975
  norm       = 7.80828
  Prefactor  = 15.7769
  Normalizat = 0.989271
  Prefactor  = 1.0715
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.980     FROM HESSE     STATUS=OK           376 CALLS     2910 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64553        52.747        .41508E-02   -1.5547    
   2  Prefactor     16.147        23.087        .99682E-04   -1.4904    
   3  Prefactor     .10000E-03    7.8750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          45.771        22.064        .59261E-04   -1.4354    
   5  Prefactor     .10000E-03    21.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.002        25.147        .36572E-03   -1.4612    
   7  Prefactor     .10000E-03    5.1542        .34290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8683        5.7163        .30468E-03   -1.5435    
   9  Prefactor     13.412        61.982        .10937E-03   -1.4975    
  10  Prefactor     50.377        30.696        .56508E-04   -1.4287    
  11  norm          .10001E-03    24.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6023        44.705        .33463E-03   -1.5455    
  13  Prefactor     33.589        20.173        .69143E-04   -1.4548    
  14  Prefactor     .10000E-03    4.1703        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.590        31.599        .10860E-03   -1.4971    
  16  Prefactor     14.791        47.931        .10426E-03   -1.4939    
  17  norm          .25697        .15203        .22821E-04   -1.5607    
  18  norm          1.8690        2.0836        .11485E-03   -1.5435    
  19  norm          12.397        7.7229        .11377E-03   -1.5004    
  20  norm          7.8083        4.7296        .12797E-03   -1.5149    
  21  Prefactor     15.777        48.850        .10069E-03   -1.4913    
  22  Normalizat    .98927        .27546        .31810E-03   -.93391    
  23  Prefactor     1.0715        .17184        .19604E-03   -.90383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72201e-09
Minuit parameter uncertainties:
  1  11.6802
  2  23.1001
  3  4.12816e-06
  4  22.0675
  5  8.84127e-05
  6  25.1554
  7  3.17072e-05
  8  5.71799
  9  57.7635
  10  30.7058
  11  0.00110827
  12  16.9404
  13  20.1772
  14  1.74207e-05
  15  31.6382
  16  48.056
  17  0.152029
  18  2.08372
  19  7.72357
  20  4.72982
  21  48.9739
  22  0.275852
  23  0.171924
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.038e+01  3.071e+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:  1.072e+00  1.719e-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.893e-01  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.21
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.71e-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) = 6238.82683664
delta logL = 0.153060753506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6238.82660568
delta logL = 0.153291713763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.395       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8783       1.0000          .0000       10.000    
     3 'Normalizat'    1.0011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0672       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=   6238.827     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      288 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.382        58.085        .23755E-03    .76825E-03
   2  Index         1.8781        .44062        .51331E-02    .54472E-03
   3  Normalizat    1.0010        .26277        .31647E-03   -.43435E-03
   4  Prefactor     1.0674        .16846        .19638E-03   -.78776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.3816
  Index      = 1.87811
  Normalizat = 1.00101
  Prefactor  = 1.06737
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.827     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.382        56.171        .47511E-04   -1.4016    
   2  Index         1.8781        .42607        .20532E-03   -.67433    
   3  Normalizat    1.0010        .26292        .63295E-04   -.92997    
   4  Prefactor     1.0674        .16859        .39276E-04   -.90516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97779e-09
Minuit parameter uncertainties:
  1  56.213
  2  0.426922
  3  0.263258
  4  0.168679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698469': 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) = 6238.82660483
delta logL = 0.153292557887

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  7.138e+01  5.621e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.878e+00  4.269e-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:  1.067e+00  1.687e-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.001e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.88 +/- 0.43
Photon Flux (Free Index): 4.29e-08 +/- 3.31e-08
Energy Flux (Free Index): 4.09e-05 +/- 3.94e-05

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/698469/cmap_HighResolution_364003201_364262401_4FGL_J1440.9+0609_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='4.09e-05', photon_flux_error='3.25e-08', dlogl='1.53e-01', energy_flux='2.80e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-10 05:07:58.649077', photon_index_error2='0.43', photon_index2='1.88', ts='8.21', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.94e-05', EG='0.99', time_epoch_completed='1631275678.65', return_code='0', job_id='698469', GAL2='1.07', EG2='1.00', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.31e-08', ts2='8.51', photon_index='2.12' WHERE bin_id='481' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:07:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 698469: <4FGL_J1440.9+0609_daily_bin481> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin481 220.242 6.1631 364003201 364262401 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            705 sec.

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

