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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1085
RA = 212.236, Dec = -7.8575
tmin = 520560001, tmax = 520819201
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='228456', job_status='RUN', time_executed='2021-09-09 03:24:03.145793', time_epoch_executed='1631183043.15' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228456/ft1_4FGL_J1408.9-0751_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228456/ft1_4FGL_J1408.9-0751_daily_bin1085.fits outfile=/scratch/kocevski/228456/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1085.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.26
user 4.97
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.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/228456/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/228456/ltcube_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.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/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits
.....................!
real 11.75
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/228456/ltcube_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits outfile=/scratch/kocevski/228456/expmap_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.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/228456/ltcube_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits
.....................!
real 189.50
user 185.14
sys 4.01

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/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits outfile=/scratch/kocevski/228456/cmap_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits outfile=/scratch/kocevski/228456/cmap_HighResolution_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.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.54
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228456/Model_4FGL_J1408.9-0751_daily_bin1085.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/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits.....................!
real 53.66
user 52.23
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits', '/scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits', expMap='/scratch/kocevski/228456/expmap_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits', expCube='/scratch/kocevski/228456/ltcube_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228456/Model_4FGL_J1408.9-0751_daily_bin1085.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/228456/ft1_filtered_4FGL_J1408.9-0751_daily_bin1085.fits
Spacecraft file(s): /scratch/kocevski/228456/ft2_4FGL_J1408.9-0751_daily_bin1085.fits
Exposure map: /scratch/kocevski/228456/expmap_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits
Exposure cube: /scratch/kocevski/228456/ltcube_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228456/Model_4FGL_J1408.9-0751_daily_bin1085.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) = 6195.71938476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.327       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8090       1.0000         .10000E-03   10000.    
     4 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4712       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18359E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.627       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3546       1.0000         .10000E-03   10000.    
    19 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4655       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4288       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79445       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.

 FCN=   6195.712     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2521 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.656        16.482        .37334E-06   -.12467E-03
   2  Prefactor     42.326        29.437       -.27916E-07   -.18997E-03
   3  norm          5.8097        2.6811       -.70950E-07   -.36029E-03
   4  norm          .10000E-03    2.3046       -.88554E-09** at limit **
   5  norm          6.4716        7.7857       -.32269E-06   -.46637E-03
   6  norm          .10000E-03    42.273       -.17857E-04** at limit **
   7  norm          .12209        4.3752       -.82125E-06   -.32654E-04
   8  Prefactor     .10015E-03    5.9723        .34764E-05** at limit **
   9  Prefactor     49.311        36.904        .47363E-05    .16224E-04
  10  Prefactor     23.625        27.985       -.27902E-05   -.37528E-04
  11  norm          2.9291        6.3185       -.34735E-05   -.12054E-02
  12  Prefactor     .10000E-03    7.0812        .59195E-07** at limit **
  13  norm          .10000E-03    1.2190        .23556E-08** at limit **
  14  Prefactor     .10000E-03    16.532       -.15645E-04** at limit **
  15  norm          .10000E-03    10.285       -.49644E-06** at limit **
  16  norm          11.224        7.7723       -.38404E-07   -.17694E-03
  17  Prefactor     .10000E-03    14.803        .11905E-04** at limit **
  18  Prefactor     6.3495        18.288       -.24437E-05   -.45780E-04
  19  norm          .10000E-03    27.809        .30736E-05** at limit **
  20  Prefactor     6.4643        6.2987       -.21610E-05   -.30162E-03
  21  Prefactor     .10000E-03    37.294        .59855E-05** at limit **
  22  Normalizat    1.4283        .24638       -.11536E-05   -.30623E-03
  23  Prefactor     .79468        .11820        .89023E-06   -.51257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6562
  Prefactor  = 42.3263
  norm       = 5.80974
  norm       = 0.0001
  norm       = 6.47156
  norm       = 0.0001
  norm       = 0.122091
  Prefactor  = 0.000100145
  Prefactor  = 49.3107
  Prefactor  = 23.6247
  norm       = 2.92914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.2242
  Prefactor  = 0.0001
  Prefactor  = 6.34949
  norm       = 0.0001
  Prefactor  = 6.46428
  Prefactor  = 0.0001
  Normalizat = 1.4283
  Prefactor  = 0.794675
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.712     FROM HESSE     STATUS=OK           368 CALLS     2889 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.656        16.496        .80676E-04   -1.4714    
   2  Prefactor     42.326        29.315        .61618E-04   -1.4406    
   3  norm          5.8097        2.6891        .83747E-04   -1.5226    
   4  norm          .10000E-03    2.3063        .11641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4716        7.7244        .15777E-03   -1.5199    
   6  norm          .10000E-03    42.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .12209        38.353        .31837E-02   -1.5638    
   8  Prefactor     .10015E-03    30.588        .33953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.311        37.080        .57109E-04   -1.4302    
  10  Prefactor     23.625        27.968        .82407E-04   -1.4735    
  11  norm          2.9291        6.1181        .23731E-03   -1.5366    
  12  Prefactor     .10000E-03    7.0885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2315        .84799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.224        7.7793        .11959E-03   -1.5038    
  17  Prefactor     .10000E-03    14.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3495        18.293        .15923E-03   -1.5204    
  19  norm          .10000E-03    28.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4643        6.3155        .15784E-03   -1.5199    
  21  Prefactor     .10000E-03    37.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4283        .28840        .31318E-03   -.79814    
  23  Prefactor     .79468        .13935        .20064E-03   -.99925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62409e-08
Minuit parameter uncertainties:
  1  16.4994
  2  29.3254
  3  2.68918
  4  5.56341e-07
  5  7.72557
  6  1.27485e-05
  7  4.32888
  8  0.00421745
  9  37.0971
  10  27.9836
  11  6.11936
  12  1.78173e-05
  13  6.96685e-07
  14  2.52984e-06
  15  1.74042e-06
  16  7.77998
  17  1.05948e-05
  18  18.3092
  19  0.000139032
  20  6.31617
  21  0.000160983
  22  0.288727
  23  0.139415
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  6.967e-07  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:  7.947e-01  1.394e-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.428e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.236 -7.857
Photon Flux Upper Limit: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228456/likelihoodResults_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.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) = 6195.7155814
delta logL = -0.00383439160032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6195.71174673
delta logL = 2.83516783384e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79470       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=   6194.986     FROM MIGRAD    STATUS=FAILED       165 CALLS      312 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60350E-01    1.9276        .36879E-02    .34425E-02
   2  alpha         4.8060        3.1243        .50000        .50110E-04
   3  Normalizat    1.2967        .13384        .31318E-02    .50651E-04
   4  Prefactor     .83459        .60535E-01    .20064E-03    .50600E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6194.986     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      391 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60350E-01    1.9276        .39633E-04    .34425E-02
   2  alpha         4.8060        3.1243        .71992E-02    .50110E-04
   3  Normalizat    1.2967        .13384        .14173E-03    .50651E-04
   4  Prefactor     .83459        .60535E-01    .62143E-04    .50600E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6194.986     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      438 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60350E-01    .21327         .0000        .14973E-01
   2  alpha         4.8060        3.3299         .0000        .90674E-05
   3  Normalizat    1.2967        .29400         .0000        .49170E-04
   4  Prefactor     .83459        .14055         .0000        .50430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0603498
  alpha      = 4.80602
  Normalizat = 1.29674
  Prefactor  = 0.83459
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.986     FROM HESSE     STATUS=OK            27 CALLS      465 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60350E-01    .27042        .33580E-04   -1.5659    
   2  alpha         4.8060        3.7299        .18791E-02    1.9673    
   3  Normalizat    1.2967        .29384        .25054E-04   -.83664    
   4  Prefactor     .83459        .14046        .16051E-05   -.98466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04366e-11
Minuit parameter uncertainties:
  1  0.255288
  2  1.95897
  3  0.294216
  4  0.140525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228456': 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) = 6194.98562668
delta logL = 0.726120329758

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  6.035e-02  2.553e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  4.806e+00  1.959e+00  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.346e-01  1.405e-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.297e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 4.81 +/- 1.96
Photon Flux (Free Index): 1.17e-07 +/- 9.68e-07
Energy Flux (Free Index): 1.62e-05 +/- 1.31e-04

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/228456/cmap_HighResolution_520560001_520819201_4FGL_J1408.9-0751_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='7.26e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-09 03:34:37.303478', photon_index_error2='1.96', photon_index2='4.81', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='1.31e-04', EG='1.43', time_epoch_completed='1631183677.3', return_code='0', job_id='228456', GAL2='0.83', EG2='1.30', return_code2='0', photon_flux_error2='9.68e-07', ts2='1.63', photon_index='2.33' WHERE bin_id='1085' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 228456: <4FGL_J1408.9-0751_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1085> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:20:40 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:20:42 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:20:42 2021
Terminated at Thu Sep  9 03:34:38 2021
Results reported at Thu Sep  9 03:34:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin1085 212.236 -7.8575 520560001 520819201 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

