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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin510
RA = 219.74, Dec = 37.1752
tmin = 371520001, tmax = 371779201
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='670206', job_status='RUN', time_executed='2021-09-10 03:26:21.434006', time_epoch_executed='1631269581.43' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670206/ft1_4FGL_J1438.9+3710_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670206/ft2_4FGL_J1438.9+3710_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670206/ft1_4FGL_J1438.9+3710_daily_bin510.fits outfile=/scratch/kocevski/670206/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin510.fits ra=219.74 dec=37.1752 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.49
user 4.20
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670206/ft1_filtered_4FGL_J1438.9+3710_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/670206/ft2_4FGL_J1438.9+3710_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/670206/ltcube_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.fits outfile=/scratch/kocevski/670206/expmap_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.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/670206/ltcube_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.fits
.....................!
real 191.99
user 186.47
sys 5.14

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/670206/ft1_filtered_4FGL_J1438.9+3710_daily_bin510.fits scfile=/scratch/kocevski/670206/ft2_4FGL_J1438.9+3710_daily_bin510.fits outfile=/scratch/kocevski/670206/cmap_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670206/ft1_filtered_4FGL_J1438.9+3710_daily_bin510.fits scfile=/scratch/kocevski/670206/ft2_4FGL_J1438.9+3710_daily_bin510.fits outfile=/scratch/kocevski/670206/cmap_HighResolution_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9241       1.0000         .10000E-03   10000.    
     3 'norm      '    29.357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7558       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.731       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36761E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2429       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3311       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.6474       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0034       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86627       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=   5814.695     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     4569 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5127        195.25        .14357E-04    .11271E-03
   2  Prefactor     1.9248        5.9472       -.14618E-06    .27042E-03
   3  norm          29.351        20.024       -.36274E-06   -.73867E-04
   4  Prefactor     .10000E-03    6.7045       -.11897E-06** at limit **
   5  Prefactor     .10000E-03    32.128       -.96860E-06** at limit **
   6  norm          17.693        5.9294        .27457E-07    .83178E-04
   7  Prefactor     14.649        13.214        .43208E-07    .48075E-04
   8  Prefactor     .10000E-03    30.321       -.10652E-06** at limit **
   9  Prefactor     1.7557        3.4376       -.15765E-07    .27948E-03
  10  norm          .10000E-03    8.4093       -.17061E-06** at limit **
  11  Prefactor     .10000E-03    22.842       -.50412E-07** at limit **
  12  norm          10.372        7.4695        .23458E-07    .21727E-04
  13  Prefactor     57.184        55.884       -.48355E-06   -.62424E-04
  14  Prefactor     83.730        42.629        .68098E-07    .22688E-04
  15  norm          .10000E-03    4.2875       -.18693E-07** at limit **
  16  Prefactor     18.080        17.903        .12119E-06    .36265E-04
  17  Prefactor     .10000E-03    2.8538       -.30462E-08** at limit **
  18  Prefactor     .10000E-03    3.0126        .38598E-07** at limit **
  19  norm          .10000E-03    .31225        .49989E-08** at limit **
  20  norm          .10001E-03    14.161       -.82733E-05** at limit **
  21  Prefactor     .10000E-03    6.7482        .13619E-05** at limit **
  22  Prefactor     .10000E-03    16.410       -.24536E-06** at limit **
  23  Prefactor     .10000E-03    16.056        .10927E-05** at limit **
  24  Prefactor     9.2397        12.199       -.15432E-05    .81499E-04
  25  norm          4.3312        1.7037        .11456E-06    .16277E-02
  26  Prefactor     .10000E-03    10.898       -.17627E-05** at limit **
  27  Prefactor     .10000E-03    25.957        .87917E-07** at limit **
  28  norm          4.6468        7.8671        .11638E-06   -.70625E-04
  29  Normalizat    1.0034        .18808        .14053E-05    .18298E-03
  30  Prefactor     .86620        .18743       -.19498E-05   -.27744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.51271
  Prefactor  = 1.92476
  norm       = 29.351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6926
  Prefactor  = 14.6494
  Prefactor  = 0.0001
  Prefactor  = 1.75574
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3717
  Prefactor  = 57.1838
  Prefactor  = 83.7303
  norm       = 0.0001
  Prefactor  = 18.0796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.23972
  norm       = 4.33115
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.64675
  Normalizat = 1.00342
  Prefactor  = 0.8662
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.695     FROM HESSE     STATUS=OK           582 CALLS     5151 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5127        212.32        .12951E-03   -1.5091    
   2  Prefactor     1.9248        5.9638        .29952E-03   -1.5430    
   3  norm          29.351        20.072        .73944E-04   -1.4624    
   4  Prefactor     .10000E-03    6.7110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.693        5.9260        .95220E-04   -1.4866    
   7  Prefactor     14.649        13.194        .10463E-03   -1.4942    
   8  Prefactor     .10000E-03    30.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7557        3.4178        .18862E-03   -1.5443    
  10  norm          .10000E-03    8.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.372        7.4669        .12441E-03   -1.5064    
  13  Prefactor     57.184        55.949        .53052E-04   -1.4194    
  14  Prefactor     83.730        42.679        .43899E-04   -1.3875    
  15  norm          .10000E-03    4.2933        .15415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.080        17.896        .94198E-04   -1.4857    
  17  Prefactor     .10000E-03    2.8720        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0216        .12925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .31323        .41598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    14.896        .19952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.2397        12.387        .65913E-03   -1.5100    
  25  norm          4.3312        1.5501        .54246E-04   -1.5292    
  26  Prefactor     .10000E-03    98.147        .43019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.6468        7.8080        .18669E-03   -1.5277    
  29  Normalizat    1.0034        .21842        .24287E-03   -.92916    
  30  Prefactor     .86620        .21552        .27478E-03   -.97332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79903e-09
Minuit parameter uncertainties:
  1  90.2483
  2  5.96562
  3  20.0767
  4  1.92347e-05
  5  0.000203682
  6  5.92618
  7  13.1962
  8  2.00665e-05
  9  3.41816
  10  2.95665e-05
  11  5.82459e-05
  12  7.46755
  13  56.0003
  14  42.6945
  15  4.14758e-06
  16  17.9015
  17  3.80965e-06
  18  1.31022e-05
  19  1.01027e-06
  20  0.000888346
  21  0.000293946
  22  5.98223e-05
  23  0.000364304
  24  12.39
  25  1.55011
  26  0.00111736
  27  0.000104402
  28  7.80975
  29  0.218615
  30  0.215735
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.037e+01  7.468e+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:  8.662e-01  2.157e-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.003e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.16e-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) = 5814.62243207
delta logL = 0.0723912213762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5814.61685172
delta logL = 0.07797157401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7751       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5736       1.0000          .0000       5.0000    
     3 'Normalizat'    .99028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87451       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=   5814.617     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7750        7.2048        .12817E-03    .33600E-03
   2  alpha         2.5739        .67605        .14807E-01    .25448E-04
   3  Normalizat    .99024        .20406        .24419E-03   -.25652E-04
   4  Prefactor     .87453        .21379        .27357E-03   -.28133E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.77504
  alpha      = 2.57393
  Normalizat = 0.990244
  Prefactor  = 0.874532
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.617     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7750        7.0747        .51268E-05   -1.5083    
   2  alpha         2.5739        .66358        .59228E-03    .29578E-01
   3  Normalizat    .99024        .20419        .97677E-05   -.93358    
   4  Prefactor     .87453        .21393        .10943E-04   -.97037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02094e-11
Minuit parameter uncertainties:
  1  7.07535
  2  0.671634
  3  0.204355
  4  0.214138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670206': 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) = 5814.61685154
delta logL = 0.0779717537735

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  9.775e+00  7.075e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.574e+00  6.716e-01  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:  8.745e-01  2.141e-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:  9.902e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.57 +/- 0.67
Photon Flux (Free Index): 5.92e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.07e-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/670206/cmap_HighResolution_371520001_371779201_4FGL_J1438.9+3710_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='1.60e-05', photon_flux_error='3.38e-08', dlogl='7.80e-02', energy_flux='1.61e-05', photon_flux2='5.92e-08', job_status='DONE', time_completed='2021-09-10 03:38:50.267450', photon_index_error2='0.67', photon_index2='2.57', ts='5.06', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.00', time_epoch_completed='1631270330.27', return_code='0', job_id='670206', GAL2='0.87', EG2='0.99', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.91e-08', ts2='5.24', photon_index='2.31' WHERE bin_id='510' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 670206: <4FGL_J1438.9+3710_daily_bin510> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin510> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:06 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:07 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:26:07 2021
Terminated at Fri Sep 10 03:38:51 2021
Results reported at Fri Sep 10 03:38:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin510 219.74 37.1752 371520001 371779201 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 :                                   745.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             342.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

