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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin783
RA = 212.236, Dec = -7.8575
tmin = 442281601, tmax = 442540801
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='226838', job_status='RUN', time_executed='2021-09-09 03:15:51.579926', time_epoch_executed='1631182551.58' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226838/ft1_4FGL_J1408.9-0751_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226838/ft1_4FGL_J1408.9-0751_daily_bin783.fits outfile=/scratch/kocevski/226838/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin783.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=442281601.0 tmax=442540801.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.44
user 3.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.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/226838/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/226838/ltcube_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.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/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits
.....................!
real 12.18
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/226838/ltcube_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits outfile=/scratch/kocevski/226838/expmap_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.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/226838/ltcube_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits
.....................!
real 190.84
user 185.39
sys 5.05

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

Setting source of interest to:
4FGL J1408.9-0751 @ 212.236 -7.8575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits outfile=/scratch/kocevski/226838/cmap_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.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=212.236 yref=-7.8575 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits outfile=/scratch/kocevski/226838/cmap_HighResolution_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.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=212.236 yref=-7.8575 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226838/Model_4FGL_J1408.9-0751_daily_bin783.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/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits.....................!
real 53.43
user 51.97
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits', '/scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits', expMap='/scratch/kocevski/226838/expmap_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits', expCube='/scratch/kocevski/226838/ltcube_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226838/Model_4FGL_J1408.9-0751_daily_bin783.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1408.9-0751'

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.948e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/226838/ft1_filtered_4FGL_J1408.9-0751_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/226838/ft2_4FGL_J1408.9-0751_daily_bin783.fits
Exposure map: /scratch/kocevski/226838/expmap_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits
Exposure cube: /scratch/kocevski/226838/ltcube_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226838/Model_4FGL_J1408.9-0751_daily_bin783.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) = 6602.46869487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49656E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5731       1.0000         .10000E-03   10000.    
     4 'norm      '    12.352       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9224       1.0000         .10000E-03   10000.    
     6 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4509       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34444       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0173       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.316       1.0000         .10000E-03   10000.    
    15 'norm      '    14.570       1.0000         .10000E-03   10000.    
    16 'norm      '    11.810       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6602.318     FROM MIGRAD    STATUS=FAILED       891 CALLS     2601 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1269        10.814        .16219E-03   -.42829E-04
   2  Prefactor     .10000E-03    94.622        .42322E-03** at limit **
   3  norm          2.5731        1.3875        .67357E-04   -.71732E-04
   4  norm          12.350        6.8807        .11398E-03   -.19490E-03
   5  norm          8.9215        11.220        .13418E-03   -.11192E-03
   6  norm          .10000E-03    17.351        .18142E-02** at limit **
   7  norm          6.4505        5.9437        .15802E-03   -.16296E-03
   8  Prefactor     .10000E-03    1.9388        .11017E-02** at limit **
   9  Prefactor     .38004        314.49        .52653E-02    .40055E-03
  10  Prefactor     .10000E-03    42.969        .18142E-02** at limit **
  11  norm          4.6467        4.9932        .18266E-03   -.10214E-03
  12  Prefactor     6.0066        15.838        .16369E-03   -.78553E-04
  13  norm          7.6910        3.1564        .87480E-04   -.57961E-04
  14  Prefactor     30.334        23.227        .72769E-04   -.25465E-04
  15  norm          14.569        11.068        .10493E-03   -.63922E-05
  16  norm          11.810        7.9330        .11657E-03   -.30136E-04
  17  Prefactor     61.795        28.348        .51044E-04   -.89089E-05
  18  Prefactor     .10000E-03    7.4357        .18142E-02** at limit **
  19  norm          .10000E-03    5.6103        .18142E-02** at limit **
  20  Prefactor     1.7841        3.5950        .21403E-03   -.17295E-03
  21  Prefactor     .10000E-03    25.623        .18142E-02** at limit **
  22  Normalizat    1.0334        .27776        .33283E-03   -.17113E-03
  23  Prefactor     .89024        .14025        .19276E-03    .14449E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6602.318     FROM SIMPLEX   STATUS=PROGRESS    1062 CALLS     3663 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1269        10.814        .37849E-06   -1.5213    
   2  Prefactor     .10000E-03    94.622        .13401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5731        1.3875        .37204E-06   -1.5387    
   4  norm          12.350        6.8807        .36465E-06   -1.5005    
   5  norm          8.9215        11.220        .36747E-06   -1.5110    
   6  norm          .10000E-03    17.351        .71087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4505        5.9437        .36764E-06   -1.5200    
   8  Prefactor     .10000E-03    1.9388        .10136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38004        314.49        .36088E-06   -1.5585    
  10  Prefactor     .10000E-03    42.969        .87863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6467        4.9932        .36966E-06   -1.5277    
  12  Prefactor     6.0066        15.838        .36668E-06   -1.5218    
  13  norm          7.6910        3.1564        .36620E-06   -1.5153    
  14  Prefactor     30.334        23.227        .35575E-06   -1.4606    
  15  norm          14.569        11.068        .36242E-06   -1.4944    
  16  norm          11.810        7.9330        .36335E-06   -1.5021    
  17  Prefactor     61.795        28.348        .34136E-06   -1.4134    
  18  Prefactor     .10000E-03    7.4357        .26752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.6103        .28516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7841        3.5950        .37342E-06   -1.5441    
  21  Prefactor     .10000E-03    25.623        .15103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0334        .27776        .22230E-06   -.91919    
  23  Prefactor     .89024        .14025        .23333E-06   -.96483    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6602.318     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     4014 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1269        10.810        .64875E-05    .35048E-06
   2  Prefactor     .10000E-03    94.621        .84643E-04** at limit **
   3  norm          2.5731        1.3874        .26943E-05    .84391E-06
   4  norm          12.350        6.8799        .45591E-05    .34910E-05
   5  norm          8.9215        11.218        .53674E-05    .84725E-06
   6  norm          .10000E-03    17.351        .36285E-03** at limit **
   7  norm          6.4506        5.9436        .63208E-05    .21584E-06
   8  Prefactor     .10000E-03    1.9390        .22035E-03** at limit **
   9  Prefactor     .38003        311.66        .10531E-02   -.15006E-05
  10  Prefactor     .10000E-03    42.974        .36285E-03** at limit **
  11  norm          4.6467        4.9928        .73063E-05    .31120E-06
  12  Prefactor     6.0067        15.689        .65474E-05    .34727E-06
  13  norm          7.6910        3.1556        .34992E-05    .64978E-06
  14  Prefactor     30.334        23.220        .29108E-05    .31246E-06
  15  norm          14.569        11.067        .41973E-05     .0000    
  16  norm          11.810        7.9322        .46628E-05    .97527E-07
  17  Prefactor     61.795        28.332        .20418E-05    .22272E-06
  18  Prefactor     .10000E-03    7.4359        .36285E-03** at limit **
  19  norm          .10000E-03    5.6107        .36285E-03** at limit **
  20  Prefactor     1.7841        3.5948        .85614E-05    .84986E-06
  21  Prefactor     .10000E-03    25.624        .36285E-03** at limit **
  22  Normalizat    1.0334        .27601        .13313E-04    .85393E-06
  23  Prefactor     .89023        .14015        .77105E-05    .14744E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.1269
  Prefactor  = 0.0001
  norm       = 2.57305
  norm       = 12.3497
  norm       = 8.92154
  norm       = 0.0001
  norm       = 6.45055
  Prefactor  = 0.0001
  Prefactor  = 0.380026
  Prefactor  = 0.0001
  norm       = 4.6467
  Prefactor  = 6.00667
  norm       = 7.69098
  Prefactor  = 30.3343
  norm       = 14.5693
  norm       = 11.8102
  Prefactor  = 61.7952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.78412
  Prefactor  = 0.0001
  Normalizat = 1.03341
  Prefactor  = 0.890234
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.318     FROM HESSE     STATUS=OK           346 CALLS     4360 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1269        10.810        .64875E-05   -1.5213    
   2  Prefactor     .10000E-03    94.610        .16929E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5731        1.3871        .53886E-06   -1.5387    
   4  norm          12.350        6.8821        .91183E-06   -1.5005    
   5  norm          8.9215        11.221        .10735E-05   -1.5110    
   6  norm          .10000E-03    17.351        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4506        5.9435        .63208E-05   -1.5200    
   8  Prefactor     .10000E-03    1.9390        .44070E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38003        308.50        .42122E-04   -1.5585    
  10  Prefactor     .10000E-03    42.974        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6467        4.9934        .14613E-05   -1.5277    
  12  Prefactor     6.0067        15.622        .13095E-05   -1.5218    
  13  norm          7.6910        3.1560        .69984E-06   -1.5153    
  14  Prefactor     30.334        23.216        .29108E-05   -1.4606    
  15  norm          14.569        11.067        .41973E-05   -1.4944    
  16  norm          11.810        7.9320        .46628E-05   -1.5021    
  17  Prefactor     61.795        28.328        .20418E-05   -1.4134    
  18  Prefactor     .10000E-03    7.4359        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.6108        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7841        3.5948        .85614E-05   -1.5441    
  21  Prefactor     .10000E-03    25.624        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0334        .27578        .26627E-05   -.91919    
  23  Prefactor     .89023        .14024        .15421E-05   -.96483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94562e-13
Minuit parameter uncertainties:
  1  10.8136
  2  4.35578e-06
  3  1.38712
  4  6.88255
  5  11.2236
  6  2.44128e-08
  7  5.94405
  8  1.37879e-07
  9  21.7657
  10  1.6562e-06
  11  4.99386
  12  15.6327
  13  3.15609
  14  23.2229
  15  11.0689
  16  7.93266
  17  28.3344
  18  5.37824e-08
  19  4.66427e-08
  20  3.59523
  21  7.52703e-07
  22  0.27616
  23  0.140292
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  7.691e+00  3.156e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.902e-01  1.403e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.033e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.78
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 5.07e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 1.89e-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) = 6602.27240604
delta logL = 0.0454046801642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6602.26987533
delta logL = 0.0479353910887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8971       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4726       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6602.270     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      261 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8980        40.415        .38192E-02    .14198E-03
   2  alpha         2.4729        3.7081        .21634        .81203E-04
   3  Normalizat    1.0144        .14583        .75791E-01    .16175E-04
   4  Prefactor     .89645        .54363E-01    .44959E-01    .59358E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.89798
  alpha      = 2.47287
  Normalizat = 1.01444
  Prefactor  = 0.896455
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.270     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8980        4.1094        .80049E-04   -1.5183    
   2  alpha         2.4729        .48238        .83870E-02   -.10851E-01
   3  Normalizat    1.0144        .25978        .33541E-03   -.92548    
   4  Prefactor     .89645        .13782        .19214E-03   -.96265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.902e-12
Minuit parameter uncertainties:
  1  4.10955
  2  0.485421
  3  0.260102
  4  0.137877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226838': 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) = 6602.26987446
delta logL = 0.0479362586657

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  6.898e+00  4.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.473e+00  4.854e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.965e-01  1.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.014e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.92
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.47 +/- 0.49
Photon Flux (Free Index): 1.39e-07 +/- 7.34e-08
Energy Flux (Free Index): 4.42e-05 +/- 1.86e-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/226838/cmap_HighResolution_442281601_442540801_4FGL_J1408.9-0751_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.42e-05', photon_flux_error='5.07e-08', dlogl='4.79e-02', energy_flux='4.61e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-09 03:27:07.735098', photon_index_error2='0.49', photon_index2='2.47', ts='14.78', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.03', time_epoch_completed='1631183227.74', return_code='0', job_id='226838', GAL2='0.90', EG2='1.01', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='7.34e-08', ts2='14.92', photon_index='2.33' WHERE bin_id='783' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 226838: <4FGL_J1408.9-0751_daily_bin783> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin783> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 03:15:32 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:15:34 2021
Terminated at Thu Sep  9 03:27:08 2021
Results reported at Thu Sep  9 03:27:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin783 212.236 -7.8575 442281601 442540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1408.9-0751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

