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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin389
RA = 219.74, Dec = 37.1752
tmin = 340156801, tmax = 340416001
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='668713', job_status='RUN', time_executed='2021-09-10 03:21:19.049958', time_epoch_executed='1631269279.05' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668713/ft1_4FGL_J1438.9+3710_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668713/ft1_4FGL_J1438.9+3710_daily_bin389.fits outfile=/scratch/kocevski/668713/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin389.fits ra=219.74 dec=37.1752 rad=12.0 tmin=340156801.0 tmax=340416001.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.31
user 3.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.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/668713/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/668713/ltcube_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.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/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits
.....................!
real 12.15
user 11.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/668713/ltcube_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits outfile=/scratch/kocevski/668713/expmap_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.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/668713/ltcube_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits
.....................!
real 189.80
user 185.17
sys 4.11

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/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits scfile=/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits outfile=/scratch/kocevski/668713/cmap_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits scfile=/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits outfile=/scratch/kocevski/668713/cmap_HighResolution_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits', '/scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits', expMap='/scratch/kocevski/668713/expmap_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits', expCube='/scratch/kocevski/668713/ltcube_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668713/Model_4FGL_J1438.9+3710_daily_bin389.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/668713/ft1_filtered_4FGL_J1438.9+3710_daily_bin389.fits
Spacecraft file(s): /scratch/kocevski/668713/ft2_4FGL_J1438.9+3710_daily_bin389.fits
Exposure map: /scratch/kocevski/668713/expmap_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits
Exposure cube: /scratch/kocevski/668713/ltcube_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668713/Model_4FGL_J1438.9+3710_daily_bin389.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) = 5959.09791551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .93810E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13537E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.463       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .84009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7160       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2286       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3538       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.781       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3939       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4558       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.293       1.0000         .10000E-03   10000.    
    28 'norm      '    15.153       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71007       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=   5959.035     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3919 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.063        .75859E-06** at limit **
   2  Prefactor     .10009E-03    4.9566        .19020E-05** at limit **
   3  norm          .10000E-03    8.7722        .59393E-06** at limit **
   4  Prefactor     15.422        16.432       -.65758E-07   -.35614E-04
   5  Prefactor     .10000E-03    5.3799        .24675E-06** at limit **
   6  norm          5.4978        3.5618       -.19983E-06   -.34012E-03
   7  Prefactor     .10000E-03    10.149        .14621E-06** at limit **
   8  Prefactor     26.774        16.380       -.55469E-06   -.14643E-03
   9  Prefactor     .10000E-03    1.9182       -.26663E-06** at limit **
  10  norm          .10000E-03    4.3350        .30241E-07** at limit **
  11  Prefactor     22.457        22.227       -.27872E-06   -.32449E-04
  12  norm          3.9541        4.1885       -.12928E-06   -.79150E-04
  13  Prefactor     .10000E-03    10.787        .42915E-07** at limit **
  14  Prefactor     14.066        39.113       -.20007E-05   -.89847E-04
  15  norm          .10000E-03    2.5637       -.27659E-07** at limit **
  16  Prefactor     .10000E-03    26.962       -.26977E-05** at limit **
  17  Prefactor     .10000E-03    6.6877       -.41051E-06** at limit **
  18  Prefactor     4.7158        4.2569       -.54290E-07   -.41565E-04
  19  norm          1.2296        1.3994       -.17651E-07    .16489E-03
  20  norm          2.3546        2.7339        .19595E-07    .34710E-04
  21  Prefactor     .10000E-03    4.5447       -.55246E-08** at limit **
  22  Prefactor     .10000E-03    20.292        .54909E-07** at limit **
  23  Prefactor     19.790        21.222       -.93357E-06   -.73141E-04
  24  Prefactor     3.3794        12.142        .15476E-05    .12248E-03
  25  norm          6.4561        1.5066        .54946E-07    .48876E-03
  26  Prefactor     .10000E-03    17.719        .43119E-06** at limit **
  27  Prefactor     11.291        25.962       -.65658E-06    .11444E-05
  28  norm          15.152        17.252        .88972E-06    .16348E-03
  29  Normalizat    1.0956        .19350        .37071E-05   -.34459E-03
  30  Prefactor     .70988        .19766       -.53322E-05   -.30926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  norm       = 0.0001
  Prefactor  = 15.4224
  Prefactor  = 0.0001
  norm       = 5.49777
  Prefactor  = 0.0001
  Prefactor  = 26.7743
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4566
  norm       = 3.9541
  Prefactor  = 0.0001
  Prefactor  = 14.0664
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 4.71577
  norm       = 1.22956
  norm       = 2.3546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7896
  Prefactor  = 3.3794
  norm       = 6.45606
  Prefactor  = 0.0001
  Prefactor  = 11.291
  norm       = 15.1524
  Normalizat = 1.09558
  Prefactor  = 0.709879
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.035     FROM HESSE     STATUS=OK           588 CALLS     4507 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    19.955        .26701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.8574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.422        16.426        .10198E-03   -1.4922    
   5  Prefactor     .10000E-03    5.3901        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4978        3.5636        .56596E-03   -1.5239    
   7  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.774        16.356        .77397E-04   -1.4673    
   9  Prefactor     .10000E-03    1.9517        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.3370        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.457        22.229        .84513E-04   -1.4760    
  12  norm          3.9541        4.1821        .15709E-03   -1.5310    
  13  Prefactor     .10000E-03    10.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.066        39.332        .10653E-03   -1.4958    
  15  norm          .10000E-03    2.5647        .12071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.821        .35363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7158        4.2573        .14745E-03   -1.5274    
  19  norm          1.2296        1.2785        .86330E-04   -1.5486    
  20  norm          2.3546        2.7093        .12997E-03   -1.5401    
  21  Prefactor     .10000E-03    4.5592        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.790        21.046        .90055E-04   -1.4818    
  24  Prefactor     3.3794        12.076        .21962E-03   -1.5340    
  25  norm          6.4561        1.5016        .44017E-04   -1.5200    
  26  Prefactor     .10000E-03    18.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.291        26.026        .11921E-03   -1.5036    
  28  norm          15.152        17.379        .51446E-03   -1.4929    
  29  Normalizat    1.0956        .20027        .21626E-03   -.89894    
  30  Prefactor     .70988        .20502        .28544E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05775e-09
Minuit parameter uncertainties:
  1  0.000238479
  2  0.0026922
  3  6.23782e-05
  4  16.4303
  5  1.95546e-05
  6  3.56376
  7  2.18188e-05
  8  16.3583
  9  1.48053e-05
  10  3.42254e-06
  11  22.237
  12  4.18243
  13  6.69342e-06
  14  39.4043
  15  6.59659e-07
  16  0.000458714
  17  0.000602657
  18  4.25752
  19  1.27851
  20  2.70946
  21  6.74751e-06
  22  3.80961e-06
  23  21.0537
  24  12.0847
  25  1.50161
  26  5.94158e-05
  27  26.0524
  28  17.3847
  29  0.200414
  30  0.205234
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.954e+00  4.182e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.099e-01  2.052e-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.096e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 6.14e-06 +/- 6.50e-06

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

Saving results to:
/scratch/kocevski/668713/likelihoodResults_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.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) = 5959.03152499
delta logL = 0.00363823671978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.03119744
delta logL = 0.00396578779691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8655       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1767       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70739       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.

 FCN=   5959.031     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8622        233.78        .51311E-02   -.36121E-04
   2  alpha         2.1755        2.5940        .41595       -.15056E-04
   3  Normalizat    1.0991        .34332        .38026E-01    .69363E-05
   4  Prefactor     .70764        .25675        .64614E-01    .26855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86222
  alpha      = 2.17547
  Normalizat = 1.09915
  Prefactor  = 0.707637
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.031     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8622        4.3317        .15892E-03   -1.5315    
   2  alpha         2.1755        1.3937        .32130E-01   -.13018    
   3  Normalizat    1.0991        .19040        .21596E-03   -.89779    
   4  Prefactor     .70764        .20396        .28586E-03   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32129e-09
Minuit parameter uncertainties:
  1  4.33204
  2  1.48006
  3  0.190518
  4  0.204173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668713': 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) = 5959.031196
delta logL = 0.00396722123969

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.862e+00  4.332e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.175e+00  1.480e+00  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:  7.076e-01  2.042e-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.099e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.18 +/- 1.48
Photon Flux (Free Index): 1.53e-08 +/- 3.11e-08
Energy Flux (Free Index): 6.12e-06 +/- 6.63e-06

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/668713/cmap_HighResolution_340156801_340416001_4FGL_J1438.9+3710_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='6.12e-06', photon_flux_error='1.89e-08', dlogl='3.97e-03', energy_flux='6.14e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-10 03:35:00.532675', photon_index_error2='1.48', photon_index2='2.18', ts='2.29', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.11e-08', energy_flux_error2='6.63e-06', EG='1.10', time_epoch_completed='1631270100.53', return_code='0', job_id='668713', GAL2='0.71', EG2='1.10', return_code2='0', energy_flux_error='6.50e-06', photon_flux_error2='3.11e-08', ts2='2.30', photon_index='2.31' WHERE bin_id='389' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:35:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 668713: <4FGL_J1438.9+3710_daily_bin389> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin389> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:21:04 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:21:06 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:21:06 2021
Terminated at Fri Sep 10 03:35:01 2021
Results reported at Fri Sep 10 03:35:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin389 219.74 37.1752 340156801 340416001 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 :                                   816.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

