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


Performing analysis on: 4FGL_J1440.9+0609_daily_bin562
RA = 220.242, Dec = 6.1631
tmin = 384998401, tmax = 385257601
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='698596', job_status='RUN', time_executed='2021-09-10 04:59:30.825172', time_epoch_executed='1631275170.83' WHERE source_name='4FGL J1440.9+0609' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698596/ft1_4FGL_J1440.9+0609_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698596/ft2_4FGL_J1440.9+0609_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698596/ft1_4FGL_J1440.9+0609_daily_bin562.fits outfile=/scratch/kocevski/698596/ft1_filteredMKT_4FGL_J1440.9+0609_daily_bin562.fits ra=220.242 dec=6.1631 rad=12.0 tmin=384998401.0 tmax=385257601.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.61
user 3.36
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698596/ft1_filtered_4FGL_J1440.9+0609_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/698596/ft2_4FGL_J1440.9+0609_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/698596/ltcube_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.fits outfile=/scratch/kocevski/698596/expmap_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.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/698596/ltcube_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.fits
.....................!
real 191.12
user 185.45
sys 5.29

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/698596/ft1_filtered_4FGL_J1440.9+0609_daily_bin562.fits scfile=/scratch/kocevski/698596/ft2_4FGL_J1440.9+0609_daily_bin562.fits outfile=/scratch/kocevski/698596/cmap_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698596/ft1_filtered_4FGL_J1440.9+0609_daily_bin562.fits scfile=/scratch/kocevski/698596/ft2_4FGL_J1440.9+0609_daily_bin562.fits outfile=/scratch/kocevski/698596/cmap_HighResolution_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.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.58
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7393       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.274       1.0000         .10000E-03   10000.    
     4 'norm      '    11.161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.010       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5960       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.637       1.0000         .10000E-03   10000.    
    17 'norm      '    .24080       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3288       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.919       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5298       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72860       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=   8645.885     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2552 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3003        11.277       -.38225E-05   -.10489E-03
   2  Prefactor     3.7085        32.905        .14472E-04   -.25698E-04
   3  Prefactor     59.246        37.778       -.16319E-04    .14905E-04
   4  norm          11.159        10.595       -.19865E-06   -.32328E-04
   5  Prefactor     10.964        25.705       -.43433E-05   -.18143E-04
   6  norm          6.5954        12.544       -.95710E-06   -.33459E-04
   7  Prefactor     12.338        9.3960        .15467E-05    .32406E-04
   8  Prefactor     .30079        6.7304       -.16063E-06   -.66203E-05
   9  Prefactor     .10000E-03    18.406        .99926E-07** at limit **
  10  Prefactor     .10000E-03    12.374        .29957E-07** at limit **
  11  norm          19.719        17.338        .10478E-05   -.39716E-05
  12  Prefactor     11.073        23.491       -.26185E-05   -.51299E-05
  13  Prefactor     6.5711        17.265        .40284E-05   -.32866E-04
  14  Prefactor     .10000E-03    2.8435        .14342E-07** at limit **
  15  Prefactor     12.606        21.275       -.11900E-05   -.38329E-05
  16  Prefactor     16.635        28.188       -.17868E-05   -.77746E-06
  17  norm          .24077        .13832       -.50560E-07   -.17973E-02
  18  norm          5.3267        2.5442       -.23409E-06   -.39557E-03
  19  norm          .10000E-03    2.2375       -.15105E-07** at limit **
  20  norm          .10000E-03    1.2497       -.37477E-08** at limit **
  21  Prefactor     12.916        21.231       -.84355E-06   -.64661E-05
  22  Normalizat    1.5307        .20274        .18219E-05   -.99100E-04
  23  Prefactor     .72817        .11085        .10749E-06    .69701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.30029
  Prefactor  = 3.70847
  Prefactor  = 59.2459
  norm       = 11.1595
  Prefactor  = 10.9636
  norm       = 6.5954
  Prefactor  = 12.3376
  Prefactor  = 0.300787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7192
  Prefactor  = 11.073
  Prefactor  = 6.57114
  Prefactor  = 0.0001
  Prefactor  = 12.6062
  Prefactor  = 16.6351
  norm       = 0.240771
  norm       = 5.3267
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9164
  Normalizat = 1.53069
  Prefactor  = 0.728174
 **********
 **   18 **HESSE 
 **********

 FCN=   8645.885     FROM HESSE     STATUS=OK           382 CALLS     2934 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3003        11.275        .13138E-03   -1.5098    
   2  Prefactor     3.7085        32.858        .20881E-03   -1.5323    
   3  Prefactor     59.246        37.820        .52112E-04   -1.4167    
   4  norm          11.159        10.596        .11992E-03   -1.5040    
   5  Prefactor     10.964        25.857        .12074E-03   -1.5046    
   6  norm          6.5954        12.530        .15625E-03   -1.5194    
   7  Prefactor     12.338        9.5698        .11409E-03   -1.5005    
   8  Prefactor     .30079        63.013        .41839E-02   -1.5598    
   9  Prefactor     .10000E-03    18.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.719        17.341        .90193E-04   -1.4820    
  12  Prefactor     11.073        23.454        .12038E-03   -1.5042    
  13  Prefactor     6.5711        17.252        .15644E-03   -1.5195    
  14  Prefactor     .10000E-03    2.8444        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.606        21.233        .11279E-03   -1.4998    
  16  Prefactor     16.635        28.177        .98193E-04   -1.4892    
  17  norm          .24077        .13470        .25056E-04   -1.5610    
  18  norm          5.3267        2.5548        .95445E-04   -1.5246    
  19  norm          .10000E-03    2.2553        .13582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2785        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.916        21.230        .11144E-03   -1.4989    
  22  Normalizat    1.5307        .24412        .27281E-03   -.76920    
  23  Prefactor     .72817        .13149        .22198E-03   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58374e-08
Minuit parameter uncertainties:
  1  11.2775
  2  22.0933
  3  37.8354
  4  10.5978
  5  25.8835
  6  12.5352
  7  9.57101
  8  8.71497
  9  1.48247e-05
  10  2.72991e-05
  11  17.3451
  12  23.4732
  13  17.2653
  14  1.20092e-06
  15  21.2454
  16  28.1999
  17  0.134704
  18  2.55487
  19  1.69396e-06
  20  1.00374e-06
  21  21.2428
  22  0.244311
  23  0.131543
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.730e-05  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:  7.282e-01  1.315e-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.531e+00  2.443e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698596/likelihoodResults_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.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) = 8645.88507277
delta logL = -0.000384817798476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8645.88468791
delta logL = 3.71783244191e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1013       1.0000          .0000       10.000    
     3 'Normalizat'    1.5307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72817       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=   8645.885     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    180.55        .90712E-02** at limit **
   2  Index         2.0826        8.8450        .50000        .11692E-04
   3  Normalizat    1.5307        .18508E-01    .61686E-01   -.73876E-05
   4  Prefactor     .72817        .10905E-01    .42775E-01    .27771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08258
  Normalizat = 1.53069
  Prefactor  = 0.728173
 **********
 **   18 **HESSE 
 **********

 FCN=   8645.885     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0826        6.0036        .50000       -.62301    
   3  Normalizat    1.5307        .21958        .27281E-03   -.76920    
   4  Prefactor     .72817        .12942        .22198E-03   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43538e-10
Minuit parameter uncertainties:
  1  9.06509e-05
  2  4.55454
  3  0.219718
  4  0.129476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698596': 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) = 8645.88468784
delta logL = 1.13912392408e-07

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  9.065e-05  1.000e-04  1.000e+04 ( 1.000e-14)
227        Index:  2.083e+00  4.555e+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:  7.282e-01  1.295e-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.531e+00  2.197e-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/698596/cmap_HighResolution_384998401_385257601_4FGL_J1440.9+0609_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-10 05:11:00.408455', job_id='698596', GAL2='0.73', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631275860.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='562' AND source_name='4FGL J1440.9+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 698596: <4FGL_J1440.9+0609_daily_bin562> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_daily_bin562 220.242 6.1631 384998401 385257601 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

