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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin404
RA = 220.242, Dec = 6.1631
tmin = 344044801, tmax = 344304001
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='697354', job_status='RUN', time_executed='2021-09-10 04:54:51.438141', time_epoch_executed='1631274891.44' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697354/ft1_4FGL_J1440.9+0609_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697354/ft2_4FGL_J1440.9+0609_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697354/ft1_4FGL_J1440.9+0609_daily_bin404.fits outfile=/scratch/kocevski/697354/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin404.fits ra=220.242 dec=6.1631 rad=12.0 tmin=344044801.0 tmax=344304001.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.39
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697354/ft2_4FGL_J1440.9+0609_daily_bin404.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/697354/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/697354/ft1_filtered_4FGL_J1440.9+0609_daily_bin404.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.51
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697354/ft1_filtered_4FGL_J1440.9+0609_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/697354/ft2_4FGL_J1440.9+0609_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/697354/ltcube_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.fits outfile=/scratch/kocevski/697354/expmap_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.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/697354/ltcube_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.fits
.....................!
real 190.23
user 185.18
sys 4.68

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/697354/ft1_filtered_4FGL_J1440.9+0609_daily_bin404.fits scfile=/scratch/kocevski/697354/ft2_4FGL_J1440.9+0609_daily_bin404.fits outfile=/scratch/kocevski/697354/cmap_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697354/ft1_filtered_4FGL_J1440.9+0609_daily_bin404.fits scfile=/scratch/kocevski/697354/ft2_4FGL_J1440.9+0609_daily_bin404.fits outfile=/scratch/kocevski/697354/cmap_HighResolution_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.899       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
     4 'norm      '    14.264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52460E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.517       1.0000         .10000E-03   10000.    
    11 'norm      '    .10500E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.358       1.0000         .10000E-03   10000.    
    17 'norm      '    .72297       1.0000         .10000E-03   10000.    
    18 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99980       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=   8847.852     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2545 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.899        13.716       -.47190E-06    .48081E-05
   2  Prefactor     .10000E-03    7.7680        .21206E-06** at limit **
   3  Prefactor     17.758        25.581       -.27061E-05    .30874E-06
   4  norm          14.264        8.8564        .29934E-06    .70749E-03
   5  Prefactor     .10000E-03    114.63        .63082E-06** at limit **
   6  norm          .10000E-03    19.530       -.17257E-04** at limit **
   7  Prefactor     2.5280        2.9851        .89382E-07    .14991E-03
   8  Prefactor     7.9931        5.8383       -.10551E-05   -.21504E-02
   9  Prefactor     46.783        63.700       -.88895E-06    .23865E-04
  10  Prefactor     60.499        34.785       -.10386E-04    .75042E-04
  11  norm          .10000E-03    10.479       -.31737E-05** at limit **
  12  Prefactor     15.883        18.767        .12391E-05   -.79721E-05
  13  Prefactor     .10000E-03    11.516        .53636E-05** at limit **
  14  Prefactor     12.243        14.769        .43928E-05   -.15210E-04
  15  Prefactor     23.649        20.401        .25077E-05    .17011E-05
  16  Prefactor     64.332        43.447       -.19483E-04   -.31565E-05
  17  norm          .72288        .21191        .12544E-08   -.26566E-03
  18  norm          .10000E-03    1.2798       -.99438E-07** at limit **
  19  norm          .10000E-03    4.1435       -.13337E-06** at limit **
  20  norm          8.3662        4.1442       -.22892E-06   -.34136E-04
  21  Prefactor     .10000E-03    21.052        .16369E-04** at limit **
  22  Normalizat    1.2123        .20188        .21992E-05   -.12614E-04
  23  Prefactor     .99966        .11860        .47190E-06    .11921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8991
  Prefactor  = 0.0001
  Prefactor  = 17.7577
  norm       = 14.2641
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.52801
  Prefactor  = 7.99314
  Prefactor  = 46.7825
  Prefactor  = 60.4988
  norm       = 0.000100001
  Prefactor  = 15.8827
  Prefactor  = 0.0001
  Prefactor  = 12.2428
  Prefactor  = 23.6495
  Prefactor  = 64.3321
  norm       = 0.722885
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.36623
  Prefactor  = 0.0001
  Normalizat = 1.21226
  Prefactor  = 0.999664
 **********
 **   18 **HESSE 
 **********

 FCN=   8847.852     FROM HESSE     STATUS=OK           372 CALLS     2917 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.899        13.757        .87614E-04   -1.4793    
   2  Prefactor     .10000E-03    7.7838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.758        25.591        .95030E-04   -1.4865    
   4  norm          14.264        8.8682        .53025E-03   -1.4952    
   5  Prefactor     .10000E-03    118.41        .38271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5280        2.9827        .17180E-03   -1.5390    
   8  Prefactor     7.9931        5.9135        .70901E-03   -1.5142    
   9  Prefactor     46.783        63.763        .58622E-04   -1.4339    
  10  Prefactor     60.499        34.712        .51577E-04   -1.4151    
  11  norm          .10000E-03    10.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.883        18.761        .10049E-03   -1.4911    
  13  Prefactor     .10000E-03    11.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.243        14.755        .11447E-03   -1.5008    
  15  Prefactor     23.649        20.393        .82368E-04   -1.4735    
  16  Prefactor     64.332        43.324        .50024E-04   -1.4102    
  17  norm          .72288        .21126        .22269E-04   -1.5538    
  18  norm          .10000E-03    2.7941        .20255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3662        4.1119        .12914E-03   -1.5129    
  21  Prefactor     .10000E-03    21.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2123        .23895        .31774E-03   -.86225    
  23  Prefactor     .99966        .14074        .21022E-03   -.92741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43404e-09
Minuit parameter uncertainties:
  1  13.7589
  2  6.20721e-06
  3  25.6069
  4  8.86903
  5  0.000353821
  6  3.17924e-05
  7  2.98292
  8  5.91392
  9  63.8562
  10  34.7233
  11  0.000209913
  12  18.7679
  13  4.76595e-06
  14  14.7596
  15  20.3986
  16  43.3453
  17  0.21126
  18  1.70503e-05
  19  4.72201e-06
  20  4.11201
  21  3.22844e-05
  22  0.239168
  23  0.140795
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  6.050e+01  3.472e+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:  9.997e-01  1.408e-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.212e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.14
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.93e-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) = 8847.84806202
delta logL = 0.00439186823678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8847.83762784
delta logL = 0.0148260463393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.415       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2271       1.0000          .0000       10.000    
     3 'Normalizat'    1.2029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0026       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8847.838     FROM MIGRAD    STATUS=FAILED        88 CALLS      251 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.401        73.925        .55398E-04   -.13709E-03
   2  Index         2.2270        .81722        .54692E-02    .93348E-03
   3  Normalizat    1.2027        .24171        .31884E-03    .36153E-03
   4  Prefactor     1.0027        .14187        .20993E-03    .17618E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8847.838     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      325 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.401        73.925        .41169E-03   -1.4259    
   2  Index         2.2270        .81722        .67612E-03   -.58789    
   3  Normalizat    1.2027        .24171        .28330E-03   -.86519    
   4  Prefactor     1.0027        .14187        .21694E-03   -.92641    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8847.838     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      357 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.400        59.374        .11080E-04   -.33656E-04
   2  Index         2.2270        .65633        .10938E-02    .62153E-05
   3  Normalizat    1.2027        .23800        .63768E-04    .14904E-04
   4  Prefactor     1.0027        .14115        .41985E-04    .43324E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.4004
  Index      = 2.22696
  Normalizat = 1.20269
  Prefactor  = 1.00267
 **********
 **   18 **HESSE 
 **********

 FCN=   8847.838     FROM HESSE     STATUS=OK            23 CALLS      380 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.400        57.088        .22159E-05   -1.4259    
   2  Index         2.2270        .63091        .43753E-04   -.58789    
   3  Normalizat    1.2027        .23745        .12754E-04   -.86520    
   4  Prefactor     1.0027        .14103        .83971E-05   -.92641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03164e-11
Minuit parameter uncertainties:
  1  57.1478
  2  0.63335
  3  0.237661
  4  0.141082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697354': 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) = 8847.83762645
delta logL = 0.0148274408839

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.240e+01  5.715e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.227e+00  6.333e-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.003e+00  1.411e-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.203e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.23 +/- 0.63
Photon Flux (Free Index): 7.24e-08 +/- 6.27e-08
Energy Flux (Free Index): 3.10e-05 +/- 2.24e-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/697354/cmap_HighResolution_344044801_344304001_4FGL_J1440.9+0609_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='3.10e-05', photon_flux_error='3.68e-08', dlogl='1.48e-02', energy_flux='3.37e-05', photon_flux2='7.24e-08', job_status='DONE', time_completed='2021-09-10 05:05:31.849043', photon_index_error2='0.63', photon_index2='2.23', ts='7.14', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='1.21', time_epoch_completed='1631275531.85', return_code='0', job_id='697354', GAL2='1.00', EG2='1.20', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.27e-08', ts2='7.16', photon_index='2.12' WHERE bin_id='404' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 697354: <4FGL_J1440.9+0609_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin404 220.242 6.1631 344044801 344304001 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 :                                   640.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             237.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

