/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 5 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1404.8+6554_daily_bin39
RA = 211.216, Dec = 65.9048
tmin = 249436801, tmax = 249696001
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='166215', job_status='RUN', time_executed='2021-09-08 23:50:43.837311', time_epoch_executed='1631170243.84' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166215/ft1_4FGL_J1404.8+6554_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166215/ft1_4FGL_J1404.8+6554_daily_bin39.fits outfile=/scratch/kocevski/166215/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin39.fits ra=211.216 dec=65.9048 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.43
user 1.25
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.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/166215/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/166215/ltcube_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.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/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits
.....................!
real 12.92
user 12.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/166215/ltcube_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits outfile=/scratch/kocevski/166215/expmap_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.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/166215/ltcube_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits
.....................!
real 191.14
user 185.92
sys 4.76

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits outfile=/scratch/kocevski/166215/cmap_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.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=211.216 yref=65.9048 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits outfile=/scratch/kocevski/166215/cmap_HighResolution_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.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=211.216 yref=65.9048 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166215/Model_4FGL_J1404.8+6554_daily_bin39.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/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits.....................!
real 48.88
user 47.66
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits', '/scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits', expMap='/scratch/kocevski/166215/expmap_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits', expCube='/scratch/kocevski/166215/ltcube_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166215/Model_4FGL_J1404.8+6554_daily_bin39.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166215/ft1_filtered_4FGL_J1404.8+6554_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/166215/ft2_4FGL_J1404.8+6554_daily_bin39.fits
Exposure map: /scratch/kocevski/166215/expmap_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits
Exposure cube: /scratch/kocevski/166215/ltcube_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166215/Model_4FGL_J1404.8+6554_daily_bin39.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) = 5190.47251742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.508       1.0000         .10000E-03   10000.    
     2 'norm      '    6.7044       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    100.85       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11411E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6565       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.983       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34790E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5872       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.767       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.404       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    81.986       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88306       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5190.464     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     4027 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.512        36.416        .19650E-05    .69716E-05
   2  norm          6.7056        5.5984       -.32483E-06   -.13329E-03
   3  norm          .10000E-03    1.2883       -.23472E-07** at limit **
   4  Prefactor     74.722        54.604        .46985E-05    .13441E-04
   5  Prefactor     .10000E-03    5.4505       -.81497E-06** at limit **
   6  Prefactor     .10000E-03    27.756       -.31565E-05** at limit **
   7  Prefactor     .10000E-03    17.432        .93367E-05** at limit **
   8  Prefactor     100.79        85.821       -.52977E-04   -.46947E-05
   9  Prefactor     .10000E-03    1.8047       -.95203E-07** at limit **
  10  Prefactor     .10000E-03    6.6540        .82248E-05** at limit **
  11  Prefactor     .10001E-03    81.104        .26287E-04** at limit **
  12  Prefactor     .10000E-03    6.9205       -.42352E-05** at limit **
  13  Prefactor     .10000E-03    3.3764        .14315E-07** at limit **
  14  norm          .10000E-03    35.553       -.85946E-05** at limit **
  15  Prefactor     .10000E-03    4.6101        .80152E-07** at limit **
  16  norm          5.6533        5.1804        .20744E-05    .15899E-03
  17  Prefactor     15.999        49.353        .24701E-04    .62378E-04
  18  Prefactor     .10002E-03    6402.4       -.34546E-02** at limit **
  19  Prefactor     4.5871        3.2240        .18207E-06    .24874E-03
  20  Prefactor     .10000E-03    15.409       -.25473E-05** at limit **
  21  Prefactor     .10000E-03    40.010        .12705E-05** at limit **
  22  Prefactor     50.766        35.478       -.41587E-06    .68315E-04
  23  Prefactor     .10000E-03    7.2337       -.88247E-05** at limit **
  24  Prefactor     31.414        34.159        .52554E-05    .15543E-04
  25  Prefactor     .10000E-03    3.4878        .65194E-07** at limit **
  26  Prefactor     .10000E-03    12.684       -.47848E-05** at limit **
  27  Prefactor     .10000E-03    8.3742        .65729E-05** at limit **
  28  norm          .10000E-03    1.4373        .51899E-07** at limit **
  29  Prefactor     81.979        96.751       -.70103E-05    .11231E-04
  30  Normalizat    1.0152        .17669        .21277E-05    .86402E-03
  31  Prefactor     .88278        .18752       -.23961E-06    .86456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.5117
  norm       = 6.70561
  norm       = 0.0001
  Prefactor  = 74.722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.65332
  Prefactor  = 15.9994
  Prefactor  = 0.000100023
  Prefactor  = 4.58707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7659
  Prefactor  = 0.0001
  Prefactor  = 31.4141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.9794
  Normalizat = 1.01515
  Prefactor  = 0.882779
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.464     FROM HESSE     STATUS=OK           602 CALLS     4629 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.512        36.462        .61487E-04   -1.4403    
   2  norm          6.7056        5.5969        .15099E-03   -1.5190    
   3  norm          .10000E-03    1.3097        .79850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     74.722        54.669        .46451E-04   -1.3977    
   5  Prefactor     .10000E-03    5.4621        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     100.79        85.930        .20017E-03   -1.3697    
   9  Prefactor     .10000E-03    1.8229        .94457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    81.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3955        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    35.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6121        .15108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6533        5.1714        .14857E-03   -1.5232    
  17  Prefactor     15.999        49.333        .10018E-03   -1.4908    
  18  Prefactor     .10002E-03    6402.1        .18391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5871        3.2230        .10456E-03   -1.5280    
  20  Prefactor     .10000E-03    15.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.766        35.484        .56285E-04   -1.4282    
  23  Prefactor     .10000E-03    7.2394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.414        34.240        .71500E-04   -1.4586    
  25  Prefactor     .10000E-03    3.4977        .13140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.4564        .84268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     81.979        96.778        .44359E-04   -1.3895    
  30  Normalizat    1.0152        .21033        .22073E-03   -.92525    
  31  Prefactor     .88278        .22200        .25544E-03   -.96745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39471e-09
Minuit parameter uncertainties:
  1  36.4816
  2  5.59736
  3  4.9273e-07
  4  54.7057
  5  2.49587e-05
  6  3.46011e-05
  7  3.05836e-05
  8  86.0363
  9  1.87343e-05
  10  2.85204e-05
  11  0.00198249
  12  0.000111403
  13  1.37129e-05
  14  6.8606e-05
  15  4.10359e-06
  16  5.17185
  17  49.4594
  18  0.0167831
  19  3.22311
  20  2.67027e-05
  21  4.58694e-05
  22  35.4984
  23  5.46225e-06
  24  34.2609
  25  1.66974e-06
  26  3.90988e-05
  27  2.42015e-06
  28  5.51592e-06
  29  96.9644
  30  0.210506
  31  0.222223
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.600e+01  4.946e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  8.828e-01  2.222e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.015e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166215/likelihoodResults_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.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): 0
logL (Free Index) = 5190.13008349
delta logL = 0.333906618014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5190.1244615
delta logL = 0.339528601554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6667       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7135       1.0000          .0000       10.000    
     3 'Normalizat'    .98853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   5190.124     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      300 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6526        35.228        .12889E-03   -.36332E-03
   2  Index         2.7146        1.4276        .60204E-02   -.15819E-03
   3  Normalizat    .98853        .20799        .22339E-03    .31869E-03
   4  Prefactor     .89372        .22326        .25392E-03    .18898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.65264
  Index      = 2.71458
  Normalizat = 0.988534
  Prefactor  = 0.893721
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.124     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6526        23.162        .51556E-05   -1.5086    
   2  Index         2.7146        .94543        .24082E-03   -.47471    
   3  Normalizat    .98853        .20712        .44678E-04   -.93416    
   4  Prefactor     .89372        .22232        .10157E-04   -.96361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03358e-10
Minuit parameter uncertainties:
  1  23.1837
  2  0.952706
  3  0.207293
  4  0.222545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166215': 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) = 5190.12445914
delta logL = 0.339530969676

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  9.653e+00  2.318e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.715e+00  9.527e-01  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  8.937e-01  2.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.885e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 211.216 65.905

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/166215/cmap_HighResolution_249436801_249696001_4FGL_J1404.8+6554_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-09 00:05:26.980856', job_id='166215', GAL2='0.89', fit_tolerance='1e-08', EG2='0.99', EG='1.02', time_epoch_completed='1631171126.98', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.40e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='39' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:05:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 166215: <4FGL_J1404.8+6554_daily_bin39> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin39> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:50:30 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 23:50:31 2021
Terminated at Thu Sep  9 00:05:27 2021
Results reported at Thu Sep  9 00:05:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin39 211.216 65.9048 249436801 249696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

