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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin872
RA = 220.242, Dec = 6.1631
tmin = 465350401, tmax = 465609601
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='700110', job_status='RUN', time_executed='2021-09-10 05:04:31.276220', time_epoch_executed='1631275471.28' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='872'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700110/ft1_4FGL_J1440.9+0609_daily_bin872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700110/ft2_4FGL_J1440.9+0609_daily_bin872.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700110/ft1_4FGL_J1440.9+0609_daily_bin872.fits outfile=/scratch/kocevski/700110/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin872.fits ra=220.242 dec=6.1631 rad=12.0 tmin=465350401.0 tmax=465609601.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.41
user 3.19
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700110/ft1_filtered_4FGL_J1440.9+0609_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/700110/ft2_4FGL_J1440.9+0609_daily_bin872.fits sctable="SC_DATA" expcube=/scratch/kocevski/700110/ltcube_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.fits outfile=/scratch/kocevski/700110/expmap_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.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/700110/ltcube_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.fits
.....................!
real 190.35
user 185.62
sys 4.36

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/700110/ft1_filtered_4FGL_J1440.9+0609_daily_bin872.fits scfile=/scratch/kocevski/700110/ft2_4FGL_J1440.9+0609_daily_bin872.fits outfile=/scratch/kocevski/700110/cmap_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.960       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13575E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    22.380       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5806       1.0000         .10000E-03   10000.    
    11 'norm      '    .14193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2918       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0340       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1125       1.0000         .10000E-03   10000.    
    20 'norm      '    8.2695       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1882       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90825       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=   6846.407     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2522 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6579       -.95052E-07** at limit **
   2  Prefactor     1.0386        25.372        .38288E-05   -.23333E-03
   3  Prefactor     .10000E-03    8.4663       -.25389E-06** at limit **
   4  norm          20.960        15.407        .78526E-07   -.13012E-05
   5  Prefactor     .10000E-03    93.338        .11380E-05** at limit **
   6  norm          22.405        24.368        .75729E-06    .32096E-04
   7  Prefactor     .10000E-03    2.9447       -.27831E-06** at limit **
   8  Prefactor     14.370        8.4722        .15039E-05    .56995E-03
   9  Prefactor     33.303        71.298        .26772E-05    .47313E-04
  10  Prefactor     5.6056        57.134        .48673E-05    .35398E-04
  11  norm          .10000E-03    18.759        .25605E-05** at limit **
  12  Prefactor     .10000E-03    25.045       -.83931E-06** at limit **
  13  Prefactor     .10000E-03    10.078       -.54214E-07** at limit **
  14  Prefactor     6.3908        16.029        .78620E-06    .25867E-04
  15  Prefactor     .10000E-03    26.305       -.65419E-06** at limit **
  16  Prefactor     .10000E-03    11.142       -.81609E-07** at limit **
  17  norm          3.2920        .37353        .30511E-07    .83694E-03
  18  norm          2.0334        2.4579        .33876E-06    .28055E-03
  19  norm          2.1115        6.2414        .95125E-06    .15977E-03
  20  norm          8.2723        5.1373       -.52173E-07    .73935E-04
  21  Prefactor     .10000E-03    23.703       -.48624E-06** at limit **
  22  Normalizat    1.1878        .27193       -.74063E-05   -.60870E-05
  23  Prefactor     .90850        .15801        .42920E-05   -.20336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.03861
  Prefactor  = 0.0001
  norm       = 20.9596
  Prefactor  = 0.0001
  norm       = 22.4053
  Prefactor  = 0.0001
  Prefactor  = 14.3702
  Prefactor  = 33.3027
  Prefactor  = 5.60558
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.39082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.292
  norm       = 2.03342
  norm       = 2.11155
  norm       = 8.2723
  Prefactor  = 0.0001
  Normalizat = 1.18777
  Prefactor  = 0.908505
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.407     FROM HESSE     STATUS=OK           372 CALLS     2894 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6594        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0386        160.68        .71921E-02   -1.5504    
   3  Prefactor     .10000E-03    8.4769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.960        15.412        .87488E-04   -1.4792    
   5  Prefactor     .10000E-03    96.649        .36363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.405        24.363        .84669E-04   -1.4761    
   7  Prefactor     .10000E-03    2.9590        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.370        8.5941        .52835E-03   -1.4950    
   9  Prefactor     33.303        71.463        .34813E-03   -1.4553    
  10  Prefactor     5.6056        56.531        .17006E-03   -1.5234    
  11  norm          .10000E-03    18.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3908        16.017        .15876E-03   -1.5202    
  15  Prefactor     .10000E-03    26.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2920        .37394        .16195E-04   -1.5345    
  18  norm          2.0334        2.4446        .13371E-03   -1.5423    
  19  norm          2.1115        6.2610        .28383E-03   -1.5417    
  20  norm          8.2723        5.1307        .13941E-03   -1.5133    
  21  Prefactor     .10000E-03    23.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1878        .28070        .31685E-03   -.86982    
  23  Prefactor     .90850        .16432        .22002E-03   -.95845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9016e-09
Minuit parameter uncertainties:
  1  5.03888e-06
  2  25.9066
  3  1.97456e-05
  4  15.4151
  5  0.000394497
  6  24.3737
  7  1.77783e-05
  8  8.59483
  9  71.6472
  10  35.6462
  11  0.000218666
  12  0.000112442
  13  3.26389e-07
  14  16.028
  15  8.86069e-05
  16  1.06889e-05
  17  0.373943
  18  2.44475
  19  6.26297
  20  5.13095
  21  7.2917e-05
  22  0.281058
  23  0.164405
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  9.085e-01  1.644e-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.188e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/700110/likelihoodResults_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.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) = 6845.87620244
delta logL = 0.53123760462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6845.7208864
delta logL = 0.686553640023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30753E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4852       1.0000          .0000       10.000    
     3 'Normalizat'    1.1081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94097       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=   6845.721     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      333 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29744E-02    .49262E-01    .99007E-03    .15705E-01
   2  Index         5.4964        1.9062        .79037E-01    .25554E-03
   3  Normalizat    1.1080        .48801E-01    .73755E-01    .17184E-03
   4  Prefactor     .94109        .30246E-01    .45525E-01    .26087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00297441
  Index      = 5.49641
  Normalizat = 1.108
  Prefactor  = 0.941091
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.721     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      366 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29744E-02    .14199        .44842E-04   -1.5697    
   2  Index         5.4964        3.7629        .39719E-02    .99445E-01
   3  Normalizat    1.1080        .18489        .32640E-03   -.89495    
   4  Prefactor     .94109        .11314        .21657E-03   -.94720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32832e-07
Minuit parameter uncertainties:
  1  0.0404049
  2  4.26713
  3  0.184993
  4  0.113171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700110': 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) = 6845.72088041
delta logL = 0.68655963449

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  2.974e-03  4.040e-02  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  5.496e+00  4.267e+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.411e-01  1.132e-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.108e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 220.242 6.163
Photon Index (Free Index): 5.50 +/- 4.27
Photon Flux (Free Index): 6.21e-08 +/- 5.76e-08
Energy Flux (Free Index): 7.96e-06 +/- 8.26e-06

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/700110/cmap_HighResolution_465350401_465609601_4FGL_J1440.9+0609_daily_bin872.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', comment='SUCCESS', energy_flux2='7.96e-06', dlogl='6.87e-01', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-10 05:15:04.475340', photon_index_error2='4.27', photon_index2='5.50', ts='0.03', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='8.26e-06', EG='1.19', time_epoch_completed='1631276104.48', return_code='0', job_id='700110', GAL2='0.94', EG2='1.11', return_code2='102', photon_flux_error2='5.76e-08', ts2='1.48', photon_index='2.12' WHERE bin_id='872' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 700110: <4FGL_J1440.9+0609_daily_bin872> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin872 220.242 6.1631 465350401 465609601 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

