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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin591
RA = 220.242, Dec = 6.1631
tmin = 392515201, tmax = 392774401
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='698641', job_status='RUN', time_executed='2021-09-10 04:58:32.826673', time_epoch_executed='1631275112.83' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698641/ft1_4FGL_J1440.9+0609_daily_bin591.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698641/ft1_4FGL_J1440.9+0609_daily_bin591.fits outfile=/scratch/kocevski/698641/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin591.fits ra=220.242 dec=6.1631 rad=12.0 tmin=392515201.0 tmax=392774401.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.37
user 3.10
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.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/698641/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin591.fits evtable="EVENTS" outfile="/scratch/kocevski/698641/ft1_filtered_4FGL_J1440.9+0609_daily_bin591.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/698641/ft1_filtered_4FGL_J1440.9+0609_daily_bin591.fits" evtable="EVENTS" scfile=/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits sctable="SC_DATA" outfile=/scratch/kocevski/698641/ltcube_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.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/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits
.....................!
real 11.96
user 11.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698641/ft1_filtered_4FGL_J1440.9+0609_daily_bin591.fits evtable="EVENTS" scfile=/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits sctable="SC_DATA" expcube=/scratch/kocevski/698641/ltcube_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.fits outfile=/scratch/kocevski/698641/expmap_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.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/698641/ltcube_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.fits
.....................!
real 192.53
user 187.09
sys 5.04

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/698641/ft1_filtered_4FGL_J1440.9+0609_daily_bin591.fits scfile=/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits outfile=/scratch/kocevski/698641/cmap_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.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.67
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698641/ft1_filtered_4FGL_J1440.9+0609_daily_bin591.fits scfile=/scratch/kocevski/698641/ft2_4FGL_J1440.9+0609_daily_bin591.fits outfile=/scratch/kocevski/698641/cmap_HighResolution_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.642       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3644       1.0000         .10000E-03   10000.    
     6 'norm      '    33.259       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7873       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.640       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.201       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13107       1.0000         .10000E-03   10000.    
    18 'norm      '    .18955E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4395       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.873       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93292       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0236       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=   6989.964     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2572 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.424        12.516       -.61884E-07   -.38832E-04
   2  Prefactor     43.052        23.971        .10288E-05    .22235E-03
   3  Prefactor     68.652        38.632        .25478E-05    .38437E-03
   4  norm          6.8359        8.2574        .37840E-07   -.58363E-06
   5  Prefactor     1.3781        89.116        .12771E-04    .78722E-04
   6  norm          33.254        25.434       -.20841E-05   -.40144E-03
   7  Prefactor     4.7883        8.9491       -.27514E-06   -.14297E-03
   8  Prefactor     9.6734        7.6600       -.14043E-06   -.16228E-03
   9  Prefactor     .10000E-03    19.794        .98028E-07** at limit **
  10  Prefactor     36.643        29.527        .10533E-05    .12624E-03
  11  norm          .10000E-03    12.397        .28110E-06** at limit **
  12  Prefactor     3.7367        12.790        .57919E-05   -.54726E-03
  13  Prefactor     41.204        24.039        .67728E-06    .12188E-03
  14  Prefactor     .87067        9.6228        .12712E-06   -.12556E-03
  15  Prefactor     .10000E-03    9.0758       -.10742E-06** at limit **
  16  Prefactor     .10000E-03    39.239        .52681E-06** at limit **
  17  norm          .13111        .11117        .48600E-08   -.28148E-03
  18  norm          .10000E-03    .89310        .26246E-07** at limit **
  19  norm          2.4398        3.3879        .51706E-07   -.82961E-05
  20  norm          3.0253        3.9088        .13896E-06   -.15309E-03
  21  Prefactor     23.873        30.487       -.78457E-07   -.25768E-04
  22  Normalizat    .93250        .22352       -.22661E-05   -.45672E-04
  23  Prefactor     1.0238        .12874        .44865E-06   -.26062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4242
  Prefactor  = 43.0522
  Prefactor  = 68.6517
  norm       = 6.83586
  Prefactor  = 1.37813
  norm       = 33.2535
  Prefactor  = 4.7883
  Prefactor  = 9.6734
  Prefactor  = 0.0001
  Prefactor  = 36.6432
  norm       = 0.0001
  Prefactor  = 3.73669
  Prefactor  = 41.204
  Prefactor  = 0.870668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.131107
  norm       = 0.000100001
  norm       = 2.43982
  norm       = 3.02527
  Prefactor  = 23.8726
  Normalizat = 0.932499
  Prefactor  = 1.02385
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.964     FROM HESSE     STATUS=OK           374 CALLS     2946 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.424        12.521        .11365E-03   -1.5003    
   2  Prefactor     43.052        24.069        .61102E-04   -1.4395    
   3  Prefactor     68.652        39.607        .48448E-04   -1.4049    
   4  norm          6.8359        8.2565        .15346E-03   -1.5185    
   5  Prefactor     1.3781        93.383        .37365E-03   -1.5473    
   6  norm          33.254        26.137        .69483E-04   -1.4554    
   7  Prefactor     4.7883        8.9255        .18388E-03   -1.5270    
   8  Prefactor     9.6734        7.6325        .12885E-03   -1.5086    
   9  Prefactor     .10000E-03    19.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.643        29.565        .66209E-04   -1.4497    
  11  norm          .10000E-03    12.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7367        14.618        .10442E-02   -1.5321    
  13  Prefactor     41.204        24.115        .62450E-04   -1.4423    
  14  Prefactor     .87067        38.329        .49065E-02   -1.5521    
  15  Prefactor     .10000E-03    9.0836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .13111        .11291        .24652E-04   -1.5636    
  18  norm          .10000E-03    11.021        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4398        3.3761        .17696E-03   -1.5396    
  20  norm          3.0253        3.8495        .17746E-03   -1.5360    
  21  Prefactor     23.873        30.500        .81982E-04   -1.4730    
  22  Normalizat    .93250        .26165        .32687E-03   -.95327    
  23  Prefactor     1.0238        .15314        .19232E-03   -.91939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01741e-09
Minuit parameter uncertainties:
  1  12.5232
  2  24.0749
  3  39.6226
  4  8.25784
  5  22.7248
  6  26.1465
  7  8.92801
  8  7.63323
  9  1.85017e-05
  10  29.5768
  11  2.90193e-07
  12  14.632
  13  24.1203
  14  11.5609
  15  5.52721e-06
  16  0.000167688
  17  0.112908
  18  0.000164466
  19  3.37638
  20  3.84985
  21  30.5199
  22  0.262011
  23  0.153204
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.664e+01  2.958e+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.024e+00  1.532e-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:  9.325e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.30
Ra Dec: 220.242 6.163
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.65e-05

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) = 6989.95999374
delta logL = 0.00411878296291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6989.95706875
delta logL = 0.00704377094553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.557       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0302       1.0000          .0000       10.000    
     3 'Normalizat'    .93824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0223       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=   6989.957     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      287 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.557        43.003        .63730E-04   -.79596E-04
   2  Index         2.0302        .83396        .93528E-02    .60676E-03
   3  Normalizat    .93827        .24853        .32598E-03    .15589E-03
   4  Prefactor     1.0223        .15029        .19246E-03    .82403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5569
  Index      = 2.03018
  Normalizat = 0.938275
  Prefactor  = 1.02226
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.957     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.557        40.333        .12746E-04   -1.4449    
   2  Index         2.0302        .78179        .18706E-02   -.63598    
   3  Normalizat    .93827        .24782        .13039E-04   -.95128    
   4  Prefactor     1.0223        .15028        .38492E-04   -.91991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44602e-10
Minuit parameter uncertainties:
  1  40.361
  2  0.786797
  3  0.248118
  4  0.150344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698641': 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) = 6989.95706874
delta logL = 0.0070437803306

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.956e+01  4.036e+01  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.030e+00  7.868e-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:  1.022e+00  1.503e-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:  9.383e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 220.242 6.163
Photon Index (Free Index): 2.03 +/- 0.79
Photon Flux (Free Index): 3.37e-08 +/- 5.15e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/698641/cmap_HighResolution_392515201_392774401_4FGL_J1440.9+0609_daily_bin591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='2.17e-05', photon_flux_error='3.13e-08', dlogl='7.04e-03', energy_flux='2.04e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-10 05:08:01.216333', photon_index_error2='0.79', photon_index2='2.03', ts='5.30', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.93', time_epoch_completed='1631275681.22', return_code='0', job_id='698641', GAL2='1.02', EG2='0.94', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.15e-08', ts2='5.30', photon_index='2.12' WHERE bin_id='591' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:08:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 698641: <4FGL_J1440.9+0609_daily_bin591> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin591 220.242 6.1631 392515201 392774401 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 :                                   567.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            696 sec.

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

