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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin284
RA = 219.74, Dec = 37.1752
tmin = 312940801, tmax = 313200001
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='667346', job_status='RUN', time_executed='2021-09-10 03:19:00.886972', time_epoch_executed='1631269140.89' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667346

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667346/ft1_4FGL_J1438.9+3710_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667346/ft1_4FGL_J1438.9+3710_daily_bin284.fits outfile=/scratch/kocevski/667346/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin284.fits ra=219.74 dec=37.1752 rad=12.0 tmin=312940801.0 tmax=313200001.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.45
user 3.25
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.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/667346/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/667346/ltcube_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.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/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/667346/ltcube_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits outfile=/scratch/kocevski/667346/expmap_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.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/667346/ltcube_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits
.....................!
real 192.02
user 186.70
sys 4.96

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

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits outfile=/scratch/kocevski/667346/cmap_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.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=219.74 yref=37.1752 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/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits outfile=/scratch/kocevski/667346/cmap_HighResolution_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.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=219.74 yref=37.1752 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667346/Model_4FGL_J1438.9+3710_daily_bin284.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/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits.....................!
real 47.69
user 46.34
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits', '/scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits', expMap='/scratch/kocevski/667346/expmap_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits', expCube='/scratch/kocevski/667346/ltcube_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/667346/Model_4FGL_J1438.9+3710_daily_bin284.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/667346/ft1_filtered_4FGL_J1438.9+3710_daily_bin284.fits
Spacecraft file(s): /scratch/kocevski/667346/ft2_4FGL_J1438.9+3710_daily_bin284.fits
Exposure map: /scratch/kocevski/667346/expmap_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits
Exposure cube: /scratch/kocevski/667346/ltcube_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/667346/Model_4FGL_J1438.9+3710_daily_bin284.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) = 6028.78015284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4253       1.0000         .10000E-03   10000.    
    10 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.466       1.0000         .10000E-03   10000.    
    19 'norm      '    .39204       1.0000         .10000E-03   10000.    
    20 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.504       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9074       1.0000         .10000E-03   10000.    
    25 'norm      '    7.8350       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.090       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6028.724     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3334 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.095        .30277E-05** at limit **
   2  Prefactor     .10000E-03    3.9032       -.13747E-06** at limit **
   3  norm          9.8146        14.232       -.39294E-06    .23506E-03
   4  Prefactor     .10000E-03    31.873        .20769E-05** at limit **
   5  Prefactor     .10000E-03    34.346       -.39840E-05** at limit **
   6  norm          1.7254        3.0778       -.30538E-06    .64510E-04
   7  Prefactor     .50436        22.869        .61887E-05   -.87862E-04
   8  Prefactor     .10000E-03    13.193        .13410E-05** at limit **
   9  Prefactor     6.4245        3.8428       -.29815E-07    .43125E-04
  10  norm          .10000E-03    52.410       -.10693E-04** at limit **
  11  Prefactor     .10000E-03    13.863       -.49445E-06** at limit **
  12  norm          .10000E-03    1.7652       -.81951E-08** at limit **
  13  Prefactor     .10000E-03    14.282       -.10245E-05** at limit **
  14  Prefactor     .10000E-03    16.051       -.67750E-07** at limit **
  15  norm          .10000E-03    3.0546        .86080E-08** at limit **
  16  Prefactor     .10000E-03    6.6460       -.35680E-07** at limit **
  17  Prefactor     .10000E-03    3.3277       -.59340E-08** at limit **
  18  Prefactor     13.465        9.3139       -.10177E-07    .32295E-04
  19  norm          .39190        .99442       -.67835E-07    .50550E-03
  20  norm          .10000E-03    1.7825        .34882E-07** at limit **
  21  Prefactor     .10000E-03    3.5732        .86366E-07** at limit **
  22  Prefactor     .10000E-03    55.822       -.61679E-05** at limit **
  23  Prefactor     46.511        22.463       -.33728E-06   -.28299E-04
  24  Prefactor     2.8939        10.755        .31692E-06    .83418E-04
  25  norm          7.8353        2.2534        .20893E-08    .19145E-03
  26  Prefactor     17.084        16.910        .48691E-07    .33639E-04
  27  Prefactor     .10000E-03    4.4702        .53123E-07** at limit **
  28  norm          .10000E-03    3.4160        .17565E-06** at limit **
  29  Normalizat    1.0215        .17665       -.29898E-06    .12442E-03
  30  Prefactor     .93315        .18666        .52434E-06    .13980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.81463
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.72535
  Prefactor  = 0.504364
  Prefactor  = 0.0001
  Prefactor  = 6.42452
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4647
  norm       = 0.391895
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 46.5107
  Prefactor  = 2.89394
  norm       = 7.8353
  Prefactor  = 17.0845
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02153
  Prefactor  = 0.933148
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.724     FROM HESSE     STATUS=OK           584 CALLS     3918 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9558        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8146        14.956        .63959E-03   -1.5081    
   4  Prefactor     .10000E-03    32.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7254        3.0418        .17216E-03   -1.5445    
   7  Prefactor     .50436        89.868        .39902E-02   -1.5566    
   8  Prefactor     .10000E-03    13.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4245        3.8510        .11192E-03   -1.5201    
  10  norm          .10000E-03    66.531        .50778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7710        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0579        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3464        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.465        9.3156        .10915E-03   -1.4974    
  19  norm          .39190        1.0161        .11910E-03   -1.5583    
  20  norm          .10000E-03    1.8484        .20212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5897        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.511        22.364        .58797E-04   -1.4343    
  24  Prefactor     2.8939        10.724        .23829E-03   -1.5368    
  25  norm          7.8353        2.2824        .49486E-04   -1.5148    
  26  Prefactor     17.084        17.124        .96883E-04   -1.4881    
  27  Prefactor     .10000E-03    4.4711        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.4190        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0215        .20694        .23051E-03   -.92313    
  30  Prefactor     .93315        .21896        .26770E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94948e-10
Minuit parameter uncertainties:
  1  0.000281509
  2  8.13347e-06
  3  14.9613
  4  0.000135229
  5  0.000308743
  6  3.04211
  7  13.4842
  8  5.41564e-05
  9  3.85114
  10  4.57275e-05
  11  3.64489e-05
  12  8.41837e-07
  13  6.64067e-05
  14  1.18348e-05
  15  1.5887e-07
  16  2.06749e-06
  17  5.17232e-06
  18  9.31657
  19  1.01612
  20  6.6415e-08
  21  4.14723e-06
  22  0.000725147
  23  22.3684
  24  10.731
  25  2.28246
  26  17.1285
  27  1.85691e-06
  28  5.33617e-06
  29  0.207099
  30  0.219163
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  8.418e-07  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.331e-01  2.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.022e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 4.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667346/likelihoodResults_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.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) = 6028.72659416
delta logL = -0.00266471512441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.7239296
delta logL = -1.5166006051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3025       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   6028.724     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3820        .10095E-02** at limit **
   2  alpha         2.0707        2.5284        .16526        .82551E-09
   3  Normalizat    1.0215        .19290        .23051E-03    .77284E-04
   4  Prefactor     .93315        .21616        .26770E-03    .68203E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07067
  Normalizat = 1.02153
  Prefactor  = 0.933147
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.724     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8364        .20190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0707        3.0623        .66104E-02   -.17259    
   3  Normalizat    1.0215        .19309        .92204E-05   -.92313    
   4  Prefactor     .93315        .21637        .10708E-04   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0146e-12
Minuit parameter uncertainties:
  1  9.14047e-08
  2  169.101
  3  0.193222
  4  0.21657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667346': 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) = 6028.72392844
delta logL = 1.00353827293e-06

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  9.140e-08  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.071e+00  1.691e+02  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.331e-01  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.022e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/667346/cmap_HighResolution_312940801_313200001_4FGL_J1438.9+3710_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-05', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-09-10 03:32:04.591492', job_id='667346', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631269924.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='284' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 667346: <4FGL_J1438.9+3710_daily_bin284> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin284> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:15 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:16:17 2021
Terminated at Fri Sep 10 03:32:05 2021
Results reported at Fri Sep 10 03:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin284 219.74 37.1752 312940801 313200001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            950 sec.

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

