/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 182 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1440.9+0609_daily_bin110
RA = 220.242, Dec = 6.1631
tmin = 267840001, tmax = 268099201
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='698359', job_status='RUN', time_executed='2021-09-10 04:59:17.934950', time_epoch_executed='1631275157.93' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698359/ft1_4FGL_J1440.9+0609_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698359/ft1_4FGL_J1440.9+0609_daily_bin110.fits outfile=/scratch/kocevski/698359/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin110.fits ra=220.242 dec=6.1631 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.46
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/698359/ltcube_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.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/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits
.....................!
real 13.52
user 13.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/698359/ltcube_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.fits outfile=/scratch/kocevski/698359/expmap_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.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/698359/ltcube_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.fits
.....................!
real 191.08
user 186.07
sys 4.62

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/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits scfile=/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits outfile=/scratch/kocevski/698359/cmap_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits scfile=/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits outfile=/scratch/kocevski/698359/cmap_HighResolution_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.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/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/698359/ft2_4FGL_J1440.9+0609_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698359/Model_4FGL_J1440.9+0609_daily_bin110.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/698359/ft1_filtered_4FGL_J1440.9+0609_daily_bin110.fits.....................!
real 61.60
user 60.19
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.589       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.94       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.250       1.0000         .10000E-03   10000.    
    11 'norm      '    .11137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.738       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9175       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6301       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.546       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4854       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81244       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=   8292.822     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2555 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0079        .64774E-07** at limit **
   2  Prefactor     15.472        18.697        .43793E-07   -.34567E-04
   3  Prefactor     27.589        25.549        .23768E-07   -.36124E-06
   4  norm          .10000E-03    4.0423       -.54316E-08** at limit **
   5  Prefactor     .10000E-03    89.464        .18679E-04** at limit **
   6  norm          .10000E-03    10.966       -.81444E-07** at limit **
   7  Prefactor     1.7963        7.1928       -.10063E-05   -.30936E-05
   8  Prefactor     1.4255        .64961        .37558E-07   -.50409E-03
   9  Prefactor     102.94        58.999        .16853E-05   -.12679E-04
  10  Prefactor     31.268        27.286        .73300E-05    .46019E-04
  11  norm          .10001E-03    32.892       -.33789E-05** at limit **
  12  Prefactor     .10000E-03    95.753       -.16854E-04** at limit **
  13  Prefactor     .10000E-03    5.6362       -.19236E-07** at limit **
  14  Prefactor     16.306        16.311        .31763E-06    .51227E-04
  15  Prefactor     31.735        26.071        .28942E-06    .89552E-04
  16  Prefactor     .10000E-03    29.250        .76319E-06** at limit **
  17  norm          1.9175        .27576        .21667E-08   -.36891E-04
  18  norm          .10000E-03    .79932       -.80885E-08** at limit **
  19  norm          4.6301        5.5235        .11374E-08   -.36937E-05
  20  norm          4.7706        3.4632        .36085E-07   -.79857E-05
  21  Prefactor     15.545        26.386       -.36458E-06   -.14086E-05
  22  Normalizat    1.4853        .20327       -.63938E-06   -.21477E-04
  23  Prefactor     .81246        .11818       -.22857E-06   -.40553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.4718
  Prefactor  = 27.5886
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.79625
  Prefactor  = 1.42553
  Prefactor  = 102.944
  Prefactor  = 31.268
  norm       = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.3061
  Prefactor  = 31.7348
  Prefactor  = 0.0001
  norm       = 1.91748
  norm       = 0.0001
  norm       = 4.63014
  norm       = 4.77064
  Prefactor  = 15.5448
  Normalizat = 1.48535
  Prefactor  = 0.812461
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.822     FROM HESSE     STATUS=OK           368 CALLS     2923 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.472        18.753        .10183E-03   -1.4921    
   3  Prefactor     27.589        25.510        .76272E-04   -1.4657    
   4  norm          .10000E-03    4.0475        .17881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7963        8.1216        .31219E-03   -1.5440    
   8  Prefactor     1.4255        7.0424        .18098E-02   -1.5469    
   9  Prefactor     102.94        59.035        .39629E-04   -1.3675    
  10  Prefactor     31.268        27.465        .71676E-04   -1.4589    
  11  norm          .10001E-03    34.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.306        16.330        .99186E-04   -1.4900    
  15  Prefactor     31.735        26.059        .71124E-04   -1.4581    
  16  Prefactor     .10000E-03    29.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9175        .27635        .17379E-04   -1.5431    
  18  norm          .10000E-03    .81025        .79415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6301        5.5197        .18705E-03   -1.5278    
  20  norm          4.7706        3.4619        .13938E-03   -1.5271    
  21  Prefactor     15.545        26.390        .10158E-03   -1.4919    
  22  Normalizat    1.4853        .24026        .29166E-03   -.78191    
  23  Prefactor     .81246        .13855        .22614E-03   -.99271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19175e-10
Minuit parameter uncertainties:
  1  2.55038e-06
  2  18.7597
  3  25.5203
  4  1.00042e-06
  5  0.00075471
  6  8.18484e-06
  7  7.64048
  8  6.33792
  9  59.0692
  10  27.4761
  11  0.00110946
  12  0.000476776
  13  3.51317e-06
  14  16.3342
  15  26.0688
  16  2.05222e-06
  17  0.276352
  18  2.78653e-07
  19  5.52032
  20  3.46201
  21  26.41
  22  0.240449
  23  0.138606
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.127e+01  2.748e+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.125e-01  1.386e-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.485e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.53e-05

TS (Fixed Index): 2.53
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698359/likelihoodResults_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.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): 0
logL (Free Index) = 8292.24584122
delta logL = 0.576011964658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8292.13177625
delta logL = 0.690076931916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.185       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4515       1.0000          .0000       10.000    
     3 'Normalizat'    1.5041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80837       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=   8292.132     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      216 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.185        102.66        .14152E-02   -.13913E-03
   2  Index         1.4515        1.1026        .19659        .51214E-05
   3  Normalizat    1.5040        .20095        .65588E-01    .62261E-05
   4  Prefactor     .80838        .11740        .43826E-01    .15757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.1849
  Index      = 1.45148
  Normalizat = 1.50404
  Prefactor  = 0.808385
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.132     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.185        44.137        .56609E-04   -1.4290    
   2  Index         1.4515        .55478        .11822E-01   -.78908    
   3  Normalizat    1.5040        .22882        .29011E-03   -.77665    
   4  Prefactor     .80838        .13683        .22661E-03   -.99420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77614e-11
Minuit parameter uncertainties:
  1  44.1662
  2  0.557095
  3  0.228979
  4  0.136886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698359': 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) = 8292.13177624
delta logL = 0.690076940513

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.018e+01  4.417e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  1.451e+00  5.571e-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.084e-01  1.369e-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.504e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 220.242 6.163
Photon Index (Free Index): 1.45 +/- 0.56
Photon Flux (Free Index): 1.35e-08 +/- 1.73e-08
Energy Flux (Free Index): 5.03e-05 +/- 6.41e-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/698359/cmap_HighResolution_267840001_268099201_4FGL_J1440.9+0609_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='5.03e-05', photon_flux_error='2.91e-08', dlogl='6.90e-01', energy_flux='1.74e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-10 05:10:55.664050', photon_index_error2='0.56', photon_index2='1.45', ts='2.53', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='6.41e-05', EG='1.49', time_epoch_completed='1631275855.66', return_code='0', job_id='698359', GAL2='0.81', EG2='1.50', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.73e-08', ts2='3.91', photon_index='2.12' WHERE bin_id='110' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 698359: <4FGL_J1440.9+0609_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin110 220.242 6.1631 267840001 268099201 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

