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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin221
RA = 220.242, Dec = 6.1631
tmin = 296611201, tmax = 296870401
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='697058', job_status='RUN', time_executed='2021-09-10 04:53:42.061054', time_epoch_executed='1631274822.06' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697058/ft1_4FGL_J1440.9+0609_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697058/ft2_4FGL_J1440.9+0609_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697058/ft1_4FGL_J1440.9+0609_daily_bin221.fits outfile=/scratch/kocevski/697058/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin221.fits ra=220.242 dec=6.1631 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.30
user 4.07
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697058/ft1_filtered_4FGL_J1440.9+0609_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/697058/ft2_4FGL_J1440.9+0609_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/697058/ltcube_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.fits outfile=/scratch/kocevski/697058/expmap_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.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/697058/ltcube_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.fits
.....................!
real 190.58
user 185.11
sys 5.00

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/697058/ft1_filtered_4FGL_J1440.9+0609_daily_bin221.fits scfile=/scratch/kocevski/697058/ft2_4FGL_J1440.9+0609_daily_bin221.fits outfile=/scratch/kocevski/697058/cmap_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697058/ft1_filtered_4FGL_J1440.9+0609_daily_bin221.fits scfile=/scratch/kocevski/697058/ft2_4FGL_J1440.9+0609_daily_bin221.fits outfile=/scratch/kocevski/697058/cmap_HighResolution_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.998       1.0000         .10000E-03   10000.    
     6 'norm      '    .63914E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4055       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19498E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33813E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    31.254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25137E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.796       1.0000         .10000E-03   10000.    
    17 'norm      '    .12651       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7466       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88607       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=   7177.525     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2665 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32895        7.1153       -.79131E-06    .20833E-03
   2  Prefactor     8.8193        17.610       -.10729E-05    .27826E-04
   3  Prefactor     .10000E-03    35.293        .20864E-06** at limit **
   4  norm          19.982        11.165        .23612E-06    .77727E-05
   5  Prefactor     14.991        18.689       -.13674E-06   -.78798E-05
   6  norm          .10004E-03    13.046        .37003E-06** at limit **
   7  Prefactor     1.3874        2.0029        .26428E-06   -.73793E-03
   8  Prefactor     .10000E-03    3.8644       -.26035E-06** at limit **
   9  Prefactor     .10000E-03    70.845       -.67201E-06** at limit **
  10  Prefactor     .10000E-03    277.43        .20900E-04** at limit **
  11  norm          31.254        21.786       -.97650E-06   -.33739E-03
  12  Prefactor     4.9179        15.844       -.23031E-05    .64635E-05
  13  Prefactor     .10000E-03    7.7188        .11054E-07** at limit **
  14  Prefactor     .10000E-03    4.5707        .82114E-07** at limit **
  15  Prefactor     .10000E-03    18.222        .18707E-06** at limit **
  16  Prefactor     57.748        44.243       -.13542E-04   -.84704E-05
  17  norm          .12641        .12631        .58115E-08    .30086E-03
  18  norm          2.7472        2.5098       -.12972E-06   -.71244E-04
  19  norm          .10000E-03    1.8039       -.42763E-08** at limit **
  20  norm          4.6593        3.6132       -.54464E-07   -.72563E-05
  21  Prefactor     .10000E-03    17.853        .62151E-07** at limit **
  22  Normalizat    1.2672        .20253        .92136E-06   -.12780E-04
  23  Prefactor     .88595        .11959        .46671E-06   -.11276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.328953
  Prefactor  = 8.81925
  Prefactor  = 0.0001
  norm       = 19.9824
  Prefactor  = 14.9908
  norm       = 0.000100037
  Prefactor  = 1.38742
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.2538
  Prefactor  = 4.91791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 57.7481
  norm       = 0.126413
  norm       = 2.74725
  norm       = 0.0001
  norm       = 4.65931
  Prefactor  = 0.0001
  Normalizat = 1.26717
  Prefactor  = 0.885947
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.525     FROM HESSE     STATUS=OK           378 CALLS     3043 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32895        69.403        .43121E-02   -1.5593    
   2  Prefactor     8.8193        17.580        .13495E-03   -1.5114    
   3  Prefactor     .10000E-03    35.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.982        11.167        .89589E-04   -1.4814    
   5  Prefactor     14.991        18.707        .10342E-03   -1.4933    
   6  norm          .10004E-03    93.962        .59391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3874        12.403        .18286E-02   -1.5472    
   8  Prefactor     .10000E-03    21.941        .31708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    281.06        .39390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          31.254        21.520        .71671E-04   -1.4589    
  12  Prefactor     4.9179        15.814        .18115E-03   -1.5264    
  13  Prefactor     .10000E-03    7.7274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5766        .17690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.362        .21463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.748        44.118        .52770E-04   -1.4187    
  17  norm          .12641        .11917        .28923E-03   -1.5637    
  18  norm          2.7472        2.5000        .11961E-03   -1.5376    
  19  norm          .10000E-03    1.8048        .11112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6593        3.6114        .13554E-03   -1.5276    
  21  Prefactor     .10000E-03    17.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2672        .23942        .28679E-03   -.84552    
  23  Prefactor     .88595        .14229        .20203E-03   -.96634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87892e-09
Minuit parameter uncertainties:
  1  9.56601
  2  17.5903
  3  3.96938e-05
  4  11.1678
  5  18.7143
  6  0.00373765
  7  8.29843
  8  0.000372217
  9  6.29761e-05
  10  0.000558827
  11  21.525
  12  15.8274
  13  4.95396e-07
  14  1.80832e-05
  15  0.000214199
  16  44.1426
  17  0.119166
  18  2.50008
  19  4.70394e-07
  20  3.6116
  21  8.24219e-06
  22  0.239625
  23  0.14235
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  5.588e-04  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.859e-01  1.424e-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.267e+00  2.396e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697058/likelihoodResults_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.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) = 7177.52471287
delta logL = -1.68372725966e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7177.52471287
delta logL = -1.68362348631e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1204       1.0000          .0000       10.000    
     3 'Normalizat'    1.2672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88595       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=   7177.224     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      269 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51078E-01    .78468        .53509E-02    .55745E-02
   2  Index         4.5655        1.7881        .91426E-01    .22837E-03
   3  Normalizat    1.2003        .33375E-01    .66314E-01    .12075E-05
   4  Prefactor     .90956        .20172E-01    .44826E-01   -.73267E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0510776
  Index      = 4.56549
  Normalizat = 1.2003
  Prefactor  = 0.909557
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.224     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51078E-01    4.0358        .23550E-04   -1.5663    
   2  Index         4.5655        7.1552        .48810E-02   -.87012E-01
   3  Normalizat    1.2003        .18492        .29338E-03   -.86594    
   4  Prefactor     .90956        .10838        .19961E-03   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20158e-06
Minuit parameter uncertainties:
  1  0.907222
  2  5.79283
  3  0.185019
  4  0.108408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697058': 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) = 7177.2236695
delta logL = 0.301026534014

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  5.108e-02  9.072e-01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  4.565e+00  5.793e+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:  9.096e-01  1.084e-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.200e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 220.242 6.163

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/697058/cmap_HighResolution_296611201_296870401_4FGL_J1440.9+0609_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-10 05:04:19.407378', job_id='697058', GAL2='0.91', fit_tolerance='1e-08', EG2='1.20', EG='1.27', time_epoch_completed='1631275459.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.01e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='221' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:04:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 697058: <4FGL_J1440.9+0609_daily_bin221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin221 220.242 6.1631 296611201 296870401 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 :                                   635.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

