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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1
RA = 217.229, Dec = 54.1114
tmin = 239587201, tmax = 239846401
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='542099', job_status='RUN', time_executed='2021-09-09 20:26:43.076650', time_epoch_executed='1631244403.08' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542099

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542099/ft1_4FGL_J1428.9+5406_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542099/ft1_4FGL_J1428.9+5406_daily_bin1.fits outfile=/scratch/kocevski/542099/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1.fits ra=217.229 dec=54.1114 rad=12.0 tmin=239587201.0 tmax=239846401.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.31
user 1.13
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.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/542099/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/542099/ltcube_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.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/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits
.....................!
real 12.81
user 12.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/542099/ltcube_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits outfile=/scratch/kocevski/542099/expmap_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.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/542099/ltcube_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits
.....................!
real 189.78
user 185.16
sys 4.12

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

Setting source of interest to:
4FGL J1428.9+5406 @ 217.229 54.1114

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits outfile=/scratch/kocevski/542099/cmap_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.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=217.229 yref=54.1114 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits outfile=/scratch/kocevski/542099/cmap_HighResolution_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.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=217.229 yref=54.1114 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542099/Model_4FGL_J1428.9+5406_daily_bin1.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/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits.....................!
real 38.40
user 37.06
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits', '/scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits', expMap='/scratch/kocevski/542099/expmap_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits', expCube='/scratch/kocevski/542099/ltcube_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542099/Model_4FGL_J1428.9+5406_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.9+5406'

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  4.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542099/ft1_filtered_4FGL_J1428.9+5406_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/542099/ft2_4FGL_J1428.9+5406_daily_bin1.fits
Exposure map: /scratch/kocevski/542099/expmap_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits
Exposure cube: /scratch/kocevski/542099/ltcube_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542099/Model_4FGL_J1428.9+5406_daily_bin1.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) = 3938.44501641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.970       1.0000         .10000E-03   10000.    
     4 'norm      '    20.065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1062       1.0000         .10000E-03   10000.    
     8 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .43528E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12894E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22695E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1547       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.601       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.501       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.947       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9625       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.5627       1.0000         .10000E-03   10000.    
    27 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86148       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3938.434     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3726 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.831        .13314E-04** at limit **
   2  Prefactor     .10000E-03    27.317        .10069E-04** at limit **
   3  Prefactor     15.974        28.789       -.98977E-06   -.36129E-04
   4  norm          20.065        7.8400       -.95547E-06   -.18343E-03
   5  Prefactor     .10000E-03    36.616        .37902E-05** at limit **
   6  Prefactor     .10000E-03    22.470       -.77845E-05** at limit **
   7  norm          3.1058        2.0145       -.19041E-06   -.23777E-04
   8  norm          .10000E-03    37.222       -.49176E-05** at limit **
   9  norm          .10061E-03    4.1502       -.42695E-05** at limit **
  10  Prefactor     .10000E-03    337.47        .49562E-04** at limit **
  11  Prefactor     .10006E-03    261.70        .13771E-03** at limit **
  12  Prefactor     .24611        85.443        .23683E-05    .15802E-04
  13  Prefactor     .10000E-03    5.6013       -.51018E-06** at limit **
  14  Prefactor     .10000E-03    15.713       -.56630E-05** at limit **
  15  Prefactor     3.1778        6.3983        .26873E-04    .82703E-03
  16  Prefactor     .10000E-03    13.826        .39196E-05** at limit **
  17  Prefactor     32.426        59.936       -.11388E-03   -.12936E-03
  18  Prefactor     .10016E-03    342.04       -.27897E-05** at limit **
  19  Prefactor     31.496        31.713        .50089E-05    .32870E-05
  20  Prefactor     .10000E-03    23.229       -.95016E-05** at limit **
  21  Prefactor     13.941        19.936       -.35128E-05   -.64238E-05
  22  Prefactor     .10000E-03    7.3818        .16744E-06** at limit **
  23  norm          .10000E-03    .59850        .21271E-06** at limit **
  24  Prefactor     .10000E-03    4.5922        .13576E-06** at limit **
  25  Prefactor     2.9615        4.0281       -.67699E-07   -.39100E-04
  26  Prefactor     8.5606        10.324        .36291E-06   -.55893E-04
  27  norm          .10000E-03    6.7984       -.13035E-06** at limit **
  28  Normalizat    .86182        .21450        .83838E-05   -.12990E-03
  29  Prefactor     1.0255        .23280       -.18198E-05    .24784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9737
  norm       = 20.0647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1058
  norm       = 0.0001
  norm       = 0.000100609
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 0.246105
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.1778
  Prefactor  = 0.0001
  Prefactor  = 32.4264
  Prefactor  = 0.000100157
  Prefactor  = 31.4956
  Prefactor  = 0.000100003
  Prefactor  = 13.9411
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96147
  Prefactor  = 8.56059
  norm       = 0.0001
  Normalizat = 0.861817
  Prefactor  = 1.02554
 **********
 **   18 **HESSE 
 **********

 FCN=   3938.434     FROM HESSE     STATUS=OK           563 CALLS     4289 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.974        28.780        .10022E-03   -1.4908    
   4  norm          20.065        7.8422        .89415E-04   -1.4812    
   5  Prefactor     .10000E-03    36.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1058        2.0156        .69268E-04   -1.5355    
   8  norm          .10000E-03    37.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10061E-03    10.119        .39867E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    337.37        .20586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    260.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24611        82.072        .13481       -1.5609    
  13  Prefactor     .10000E-03    12.821        .27986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1778        6.3456        .14595E-03   -1.5351    
  16  Prefactor     .10000E-03    13.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.426        60.020        .70179E-04   -1.4568    
  18  Prefactor     .10016E-03    345.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.496        31.712        .71390E-04   -1.4585    
  20  Prefactor     .10000E-03    23.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.941        19.944        .10725E-03   -1.4961    
  22  Prefactor     .10000E-03    7.3946        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .60461        .47404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5979        .13131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9615        4.0183        .14273E-03   -1.5364    
  26  Prefactor     8.5606        10.339        .13699E-03   -1.5123    
  27  norm          .10000E-03    7.0351        .31943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86182        .25731        .23637E-03   -.97815    
  29  Prefactor     1.0255        .27685        .25246E-03   -.91883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19854e-09
Minuit parameter uncertainties:
  1  6.82323e-06
  2  4.965e-05
  3  28.8051
  4  7.84258
  5  6.46473e-05
  6  3.57968e-05
  7  2.01562
  8  4.98666e-06
  9  0.00496443
  10  9.1901e-05
  11  0.00763443
  12  8.99914
  13  0.000216052
  14  1.85351e-05
  15  6.34692
  16  0.00012477
  17  60.1316
  18  0.0148087
  19  31.7294
  20  0.000510782
  21  19.9537
  22  4.37444e-05
  23  1.71569e-05
  24  2.53474e-05
  25  4.01866
  26  10.3408
  27  5.05909e-05
  28  0.257679
  29  0.277234
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.243e+01  6.013e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.026e+00  2.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.618e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542099/likelihoodResults_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.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) = 3937.47197862
delta logL = 0.961532891174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3937.45634145
delta logL = 0.977170062059

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3937.456     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.426        145.38        .30988E-02    .17155E-03
   2  Index         3.9015        3.4335        .10467        .10446E-03
   3  Normalizat    .76670        .76959E-01    .43174E-01    .10701E-04
   4  Prefactor     1.0961        .84466E-01    .55423E-01   -.10846E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4262
  Index      = 3.90147
  Normalizat = 0.766703
  Prefactor  = 1.09615
 **********
 **   18 **HESSE 
 **********

 FCN=   3937.456     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.426        32.505        .12395E-03   -1.5062    
   2  Index         3.9015        1.7636        .40921E-02   -.22151    
   3  Normalizat    .76670        .24968        .24873E-03   -1.0132    
   4  Prefactor     1.0961        .27970        .24506E-03   -.89590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72532e-11
Minuit parameter uncertainties:
  1  32.5604
  2  1.80449
  3  0.250056
  4  0.280073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542099': 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) = 3937.45634062
delta logL = 0.977170887674

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.043e+01  3.256e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.901e+00  1.804e+00  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.096e+00  2.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.667e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 217.229 54.111
Photon Index (Free Index): 3.90 +/- 1.80
Photon Flux (Free Index): 1.30e-07 +/- 9.19e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.44e-05

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/542099/cmap_HighResolution_239587201_239846401_4FGL_J1428.9+5406_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='9.77e-01', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-09 20:37:59.177633', photon_index_error2='1.80', photon_index2='3.90', ts='0.70', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.44e-05', EG='0.86', time_epoch_completed='1631245079.18', return_code='0', job_id='542099', GAL2='1.10', EG2='0.77', return_code2='0', photon_flux_error2='9.19e-08', ts2='2.91', photon_index='2.57' WHERE bin_id='1' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:37:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 542099: <4FGL_J1428.9+5406_daily_bin1> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:08 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:26:09 2021
Terminated at Thu Sep  9 20:37:59 2021
Results reported at Thu Sep  9 20:37:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1 217.229 54.1114 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.9+5406 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

