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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin982
RA = 220.242, Dec = 6.1631
tmin = 493862401, tmax = 494121601
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='700282', job_status='RUN', time_executed='2021-09-10 05:05:40.072927', time_epoch_executed='1631275540.07' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700282/ft1_4FGL_J1440.9+0609_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700282/ft1_4FGL_J1440.9+0609_daily_bin982.fits outfile=/scratch/kocevski/700282/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin982.fits ra=220.242 dec=6.1631 rad=12.0 tmin=493862401.0 tmax=494121601.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.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/700282/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/700282/ltcube_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.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/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits
.....................!
real 11.63
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/700282/ltcube_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.fits outfile=/scratch/kocevski/700282/expmap_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.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/700282/ltcube_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.fits
.....................!
real 191.11
user 185.53
sys 5.20

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/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits outfile=/scratch/kocevski/700282/cmap_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits outfile=/scratch/kocevski/700282/cmap_HighResolution_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.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/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/700282/ft2_4FGL_J1440.9+0609_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700282/Model_4FGL_J1440.9+0609_daily_bin982.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/700282/ft1_filtered_4FGL_J1440.9+0609_daily_bin982.fits.....................!
real 55.75
user 54.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.321       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95449E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0413       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2926       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.283       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7131       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71136       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=   7290.332     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2565 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.576        .30373E-06** at limit **
   2  Prefactor     .10000E-03    14.440        .15459E-06** at limit **
   3  Prefactor     44.308        34.780       -.12197E-06   -.30024E-04
   4  norm          .10000E-03    8.3330        .11246E-06** at limit **
   5  Prefactor     .10000E-03    14.377        .24430E-08** at limit **
   6  norm          .10000E-03    7.7869       -.67673E-07** at limit **
   7  Prefactor     .10000E-03    2.5317       -.22887E-07** at limit **
   8  Prefactor     .10000E-03    3.7179        .88146E-07** at limit **
   9  Prefactor     26.407        49.217       -.11046E-05   -.94851E-04
  10  Prefactor     .10000E-03    34.178       -.26040E-06** at limit **
  11  norm          .10000E-03    33.950       -.19305E-06** at limit **
  12  Prefactor     .10000E-03    7.4349       -.85237E-07** at limit **
  13  Prefactor     .10000E-03    9.5037        .11014E-06** at limit **
  14  Prefactor     12.760        14.425       -.56430E-07    .45154E-05
  15  Prefactor     6.5828        27.339        .48059E-06   -.19599E-04
  16  Prefactor     .10000E-03    17.849       -.12034E-06** at limit **
  17  norm          1.0413        .23586       -.96550E-08   -.17278E-03
  18  norm          5.2931        2.9508        .14112E-05   -.14937E-03
  19  norm          .10000E-03    2.0515        .24795E-07** at limit **
  20  norm          2.4133        3.0344       -.16259E-06   -.79461E-04
  21  Prefactor     16.284        29.506       -.25798E-06   -.14610E-05
  22  Normalizat    1.7130        .22333        .98839E-06   -.95980E-04
  23  Prefactor     .71139        .12771       -.16964E-05    .56969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.3081
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7596
  Prefactor  = 6.58279
  Prefactor  = 0.0001
  norm       = 1.0413
  norm       = 5.29308
  norm       = 0.0001
  norm       = 2.41326
  Prefactor  = 16.2835
  Normalizat = 1.71298
  Prefactor  = 0.711394
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.332     FROM HESSE     STATUS=OK           362 CALLS     2927 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.308        34.849        .60221E-04   -1.4376    
   4  norm          .10000E-03    8.4031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.7936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5356        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9227        .31944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.407        49.309        .77846E-04   -1.4680    
  10  Prefactor     .10000E-03    34.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.760        14.414        .11215E-03   -1.4993    
  15  Prefactor     6.5828        27.310        .15623E-03   -1.5195    
  16  Prefactor     .10000E-03    17.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0413        .23601        .18973E-04   -1.5504    
  18  norm          5.2931        2.9810        .51724E-03   -1.5248    
  19  norm          .10000E-03    2.0535        .11944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4133        3.0281        .16020E-03   -1.5397    
  21  Prefactor     16.284        29.514        .99255E-04   -1.4901    
  22  Normalizat    1.7130        .26086        .27960E-03   -.71957    
  23  Prefactor     .71139        .14733        .23541E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78837e-10
Minuit parameter uncertainties:
  1  1.46024e-05
  2  1.3137e-05
  3  34.8652
  4  4.3951e-06
  5  1.43183e-05
  6  6.40182e-06
  7  9.02293e-07
  8  2.04013e-05
  9  49.3854
  10  1.28366e-05
  11  2.04359e-05
  12  8.37751e-06
  13  7.8328e-06
  14  14.4178
  15  26.8368
  16  2.6461e-05
  17  0.236006
  18  2.98111
  19  3.32818e-08
  20  3.02825
  21  29.5403
  22  0.261074
  23  0.147415
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  7.114e-01  1.474e-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.713e+00  2.611e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700282/likelihoodResults_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.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) = 7290.33181137
delta logL = -0.000138882802275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7289.72719741
delta logL = 0.60447507142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26206       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1569       1.0000          .0000       10.000    
     3 'Normalizat'    1.6115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74507       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.

 FCN=   7289.727     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      315 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26502        3.4288        .88949E-02    .27083E-02
   2  Index         4.1545        1.8636        .76294E-01    .28374E-03
   3  Normalizat    1.6111        .46494E-01    .64763E-01   -.47771E-04
   4  Prefactor     .74487        .26766E-01    .42998E-01   -.69842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.265024
  Index      = 4.15445
  Normalizat = 1.61109
  Prefactor  = 0.744869
 **********
 **   18 **HESSE 
 **********

 FCN=   7289.727     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26502        11.022        .40250E-04   -1.5605    
   2  Index         4.1545        3.8232        .42142E-02   -.16993    
   3  Normalizat    1.6111        .21663        .28644E-03   -.74703    
   4  Prefactor     .74487        .12088        .23053E-03   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.36896e-10
Minuit parameter uncertainties:
  1  3.41828
  2  4.3761
  3  0.216757
  4  0.120919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700282': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7289.72717704
delta logL = 0.604495439089

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  2.650e-01  3.418e+00  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  4.154e+00  4.376e+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:  7.449e-01  1.209e-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.611e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 220.242 6.163
Photon Index (Free Index): 4.15 +/- 4.38
Photon Flux (Free Index): 8.90e-08 +/- 8.85e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.27e-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/700282/cmap_HighResolution_493862401_494121601_4FGL_J1440.9+0609_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='6.04e-01', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-09-10 05:16:11.170600', photon_index_error2='4.38', photon_index2='4.15', ts='-0.00', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='8.39e-08', energy_flux_error2='1.27e-05', EG='1.71', time_epoch_completed='1631276171.17', return_code='0', job_id='700282', GAL2='0.74', EG2='1.61', return_code2='102', photon_flux_error2='8.85e-08', ts2='1.31', photon_index='2.12' WHERE bin_id='982' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:16:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 700282: <4FGL_J1440.9+0609_daily_bin982> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin982 220.242 6.1631 493862401 494121601 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            876 sec.

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

