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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin155
RA = 220.242, Dec = 6.1631
tmin = 279504001, tmax = 279763201
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='696951', job_status='RUN', time_executed='2021-09-10 04:55:15.029203', time_epoch_executed='1631274915.03' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696951/ft1_4FGL_J1440.9+0609_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696951/ft1_4FGL_J1440.9+0609_daily_bin155.fits outfile=/scratch/kocevski/696951/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin155.fits ra=220.242 dec=6.1631 rad=12.0 tmin=279504001.0 tmax=279763201.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.55
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.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/696951/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/696951/ft1_filtered_4FGL_J1440.9+0609_daily_bin155.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696951/ft1_filtered_4FGL_J1440.9+0609_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/696951/ltcube_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.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/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits
.....................!
real 11.71
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696951/ft1_filtered_4FGL_J1440.9+0609_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/696951/ltcube_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.fits outfile=/scratch/kocevski/696951/expmap_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.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/696951/ltcube_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.fits
.....................!
real 189.34
user 185.06
sys 3.93

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/696951/ft1_filtered_4FGL_J1440.9+0609_daily_bin155.fits scfile=/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits outfile=/scratch/kocevski/696951/cmap_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.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/696951/ft1_filtered_4FGL_J1440.9+0609_daily_bin155.fits scfile=/scratch/kocevski/696951/ft2_4FGL_J1440.9+0609_daily_bin155.fits outfile=/scratch/kocevski/696951/cmap_HighResolution_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.805       1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32600E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    11 'norm      '    19.094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.167       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.086       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5438       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3830       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1746       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7470       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0404       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=   7803.970     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2630 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0309       -.11711E-06** at limit **
   2  Prefactor     .10000E-03    8.0828        .38158E-05** at limit **
   3  Prefactor     26.817        25.173       -.20027E-04   -.12682E-03
   4  norm          .10000E-03    9.9326        .24358E-05** at limit **
   5  Prefactor     .10000E-03    9.2779       -.37302E-05** at limit **
   6  norm          .10000E-03    7.7085       -.30935E-05** at limit **
   7  Prefactor     .10129E-03    4.2349        .17092E-05** at limit **
   8  Prefactor     .10000E-03    7.2434        .21955E-06** at limit **
   9  Prefactor     45.585        84.306       -.57855E-04    .14994E-04
  10  Prefactor     10.180        30.286        .96089E-05   -.77353E-05
  11  norm          19.094        19.388        .11923E-04    .15042E-04
  12  Prefactor     .10000E-03    14.612       -.62798E-06** at limit **
  13  Prefactor     31.343        24.308        .56897E-05   -.21313E-05
  14  Prefactor     19.167        17.525        .26385E-05   -.15520E-04
  15  Prefactor     .10000E-03    18.501        .15705E-05** at limit **
  16  Prefactor     48.063        62.149       -.16877E-04   -.58031E-05
  17  norm          1.5438        .30716       -.11518E-06    .88116E-03
  18  norm          2.3839        2.2024       -.17349E-06   -.26158E-03
  19  norm          .10000E-03    3.9646       -.32123E-07** at limit **
  20  norm          8.1753        4.5306        .16880E-06    .44757E-04
  21  Prefactor     5.5652        95.507       -.61705E-04   -.41392E-05
  22  Normalizat    1.0988        .22468        .61487E-05   -.24975E-03
  23  Prefactor     1.0406        .13059        .14335E-05   -.77444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8166
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101286
  Prefactor  = 0.0001
  Prefactor  = 45.5846
  Prefactor  = 10.1803
  norm       = 19.0935
  Prefactor  = 0.0001
  Prefactor  = 31.3425
  Prefactor  = 19.1665
  Prefactor  = 0.0001
  Prefactor  = 48.0633
  norm       = 1.54383
  norm       = 2.38395
  norm       = 0.0001
  norm       = 8.17529
  Prefactor  = 5.56525
  Normalizat = 1.09879
  Prefactor  = 1.04061
 **********
 **   18 **HESSE 
 **********

 FCN=   7803.970     FROM HESSE     STATUS=OK           376 CALLS     3006 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0334        .15020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.817        25.276        .77376E-04   -1.4672    
   4  norm          .10000E-03    9.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.7151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10129E-03    7.5636        .59149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.585        84.467        .59347E-04   -1.4357    
  10  Prefactor     10.180        30.197        .12559E-03   -1.5070    
  11  norm          19.094        19.355        .91660E-04   -1.4834    
  12  Prefactor     .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.343        24.349        .71570E-04   -1.4588    
  14  Prefactor     19.167        17.529        .91485E-04   -1.4832    
  15  Prefactor     .10000E-03    18.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.063        62.099        .57826E-04   -1.4320    
  17  norm          1.5438        .30717        .20503E-04   -1.5459    
  18  norm          2.3839        2.1895        .11919E-03   -1.5399    
  19  norm          .10000E-03    3.9792        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1753        4.5291        .13365E-03   -1.5136    
  21  Prefactor     5.5652        95.897        .16754E-03   -1.5236    
  22  Normalizat    1.0988        .26460        .33688E-03   -.89791    
  23  Prefactor     1.0406        .15429        .20826E-03   -.91388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50615e-10
Minuit parameter uncertainties:
  1  6.04334e-06
  2  2.52664e-05
  3  25.2859
  4  4.55691e-05
  5  2.27694e-05
  6  1.90979e-06
  7  0.00623944
  8  3.63889e-05
  9  84.6904
  10  30.2421
  11  19.3614
  12  2.47453e-05
  13  24.3568
  14  17.5335
  15  0.000122601
  16  62.1828
  17  0.307166
  18  2.18955
  19  4.97334e-06
  20  4.52929
  21  46.2901
  22  0.264918
  23  0.154353
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  1.041e+00  1.544e-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.099e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/696951/likelihoodResults_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.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) = 7803.71242552
delta logL = 0.25793895949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7803.56041183
delta logL = 0.409952649145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6704       1.0000          .0000       10.000    
     3 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7803.560     FROM MIGRAD    STATUS=CONVERGED    343 CALLS      686 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25369E-01    .17059E-03** at limit **
   2  Index         6.6697        3.6246        .45765E-02   -.44051E-04
   3  Normalizat    1.0045        .11411        .35049E-03   -.98542E-04
   4  Prefactor     1.0811        .67479E-01    .20486E-03    .79345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.66974
  Normalizat = 1.00453
  Prefactor  = 1.0811
 **********
 **   18 **HESSE 
 **********

 FCN=   7803.560     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      721 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12647E-01    .24138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6697        3.4846        .18306E-03    .34049    
   3  Normalizat    1.0045        .95636E-01    .14020E-04   -.92879    
   4  Prefactor     1.0811        .57116E-01    .40973E-04   -.90073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80986e-09
Minuit parameter uncertainties:
  1  1.95386e-07
  2  3.92173
  3  0.095652
  4  0.0571189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696951': 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) = 7803.56040892
delta logL = 0.409955557676

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  1.954e-07  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  6.670e+00  3.922e+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:  1.081e+00  5.712e-02  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.005e+00  9.565e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 220.242 6.163
Photon Index (Free Index): 6.67 +/- 3.92
Photon Flux (Free Index): 8.36e-08 +/- 1.02e-06
Energy Flux (Free Index): 1.01e-05 +/- 1.23e-04

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/696951/cmap_HighResolution_279504001_279763201_4FGL_J1440.9+0609_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='4.10e-01', photon_flux2='8.36e-08', job_status='DONE', time_completed='2021-09-10 05:06:46.706672', photon_index_error2='3.92', photon_index2='6.67', ts='0.18', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.18e-08', energy_flux_error2='1.23e-04', EG='1.10', time_epoch_completed='1631275606.71', return_code='0', job_id='696951', GAL2='1.08', EG2='1.00', return_code2='102', photon_flux_error2='1.02e-06', ts2='1.13', photon_index='2.12' WHERE bin_id='155' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 696951: <4FGL_J1440.9+0609_daily_bin155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin155 220.242 6.1631 279504001 279763201 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 :                                   691.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

