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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin346
RA = 219.74, Dec = 37.1752
tmin = 329011201, tmax = 329270401
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='667435', job_status='RUN', time_executed='2021-09-10 03:16:31.540094', time_epoch_executed='1631268991.54' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667435/ft1_4FGL_J1438.9+3710_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667435/ft2_4FGL_J1438.9+3710_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667435/ft1_4FGL_J1438.9+3710_daily_bin346.fits outfile=/scratch/kocevski/667435/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin346.fits ra=219.74 dec=37.1752 rad=12.0 tmin=329011201.0 tmax=329270401.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.52
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667435/ft1_filtered_4FGL_J1438.9+3710_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/667435/ft2_4FGL_J1438.9+3710_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/667435/ltcube_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.fits outfile=/scratch/kocevski/667435/expmap_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.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/667435/ltcube_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.fits
.....................!
real 192.02
user 185.93
sys 5.33

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/667435/ft1_filtered_4FGL_J1438.9+3710_daily_bin346.fits scfile=/scratch/kocevski/667435/ft2_4FGL_J1438.9+3710_daily_bin346.fits outfile=/scratch/kocevski/667435/cmap_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667435/ft1_filtered_4FGL_J1438.9+3710_daily_bin346.fits scfile=/scratch/kocevski/667435/ft2_4FGL_J1438.9+3710_daily_bin346.fits outfile=/scratch/kocevski/667435/cmap_HighResolution_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.64       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35602       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.7426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61970E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.021       1.0000         .10000E-03   10000.    
    15 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.649       1.0000         .10000E-03   10000.    
    19 'norm      '    .41181       1.0000         .10000E-03   10000.    
    20 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.722       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.953       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8601       1.0000         .10000E-03   10000.    
    25 'norm      '    19.821       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11146E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.968       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0351       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0753       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=   6718.006     FROM MIGRAD    STATUS=CONVERGED   1394 CALLS     4530 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.52        98.061        .19471E-03   -.16523E-04
   2  Prefactor     .10000E-03    3.7959        .15532E-02** at limit **
   3  norm          .10000E-03    8.9044        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.979        .18142E-02** at limit **
   5  Prefactor     .83050E-01    28.329        .91194E-01    .39569E-03
   6  norm          3.8736        4.1481        .16434E-03    .12252E-03
   7  Prefactor     4.3858        12.449        .19244E-03    .82354E-04
   8  Prefactor     .10000E-03    8.6086        .18142E-02** at limit **
   9  Prefactor     .10000E-03    .85632        .73943E-03** at limit **
  10  norm          9.7436        12.274        .12838E-03    .12309E-04
  11  Prefactor     .10141E-03    22.239        .10887    ** at limit **
  12  norm          3.5027        4.3694        .18552E-03    .51169E-04
  13  Prefactor     .10000E-03    28.236        .18142E-02** at limit **
  14  Prefactor     27.021        42.407        .77067E-04   -.13129E-04
  15  norm          .10000E-03    2.7036        .13159E-02** at limit **
  16  Prefactor     .10000E-03    11.555        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.2143        .14295E-02** at limit **
  18  Prefactor     26.645        11.461        .38802E-03    .18781E-03
  19  norm          .41176        1.3424        .16179E-03    .17763E-03
  20  norm          .10000E-03    1.3573        .92939E-03** at limit **
  21  Prefactor     .10000E-03    5.3900        .18142E-02** at limit **
  22  Prefactor     51.631        56.825        .27883E-03    .11009E-05
  23  Prefactor     11.947        15.337        .57933E-03    .14842E-03
  24  Prefactor     8.8462        12.220        .13466E-03    .54962E-04
  25  norm          19.821        2.7687        .48749E-04    .26833E-03
  26  Prefactor     .10000E-03    24.792        .18142E-02** at limit **
  27  Prefactor     .10000E-03    24.194        .18142E-02** at limit **
  28  norm          16.950        17.490        .97232E-04    .21748E-04
  29  Normalizat    1.0359        .24348        .26807E-03    .35629E-03
  30  Prefactor     1.0750        .24466        .28598E-03    .34723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.522
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0830498
  norm       = 3.87355
  Prefactor  = 4.38582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.74365
  Prefactor  = 0.000101406
  norm       = 3.50268
  Prefactor  = 0.0001
  Prefactor  = 27.0207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6451
  norm       = 0.411759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6309
  Prefactor  = 11.9466
  Prefactor  = 8.8462
  norm       = 19.8206
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.9495
  Normalizat = 1.03586
  Prefactor  = 1.07503
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.006     FROM HESSE     STATUS=OK           576 CALLS     5106 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.52        98.047        .77886E-05   -1.3640    
   2  Prefactor     .10000E-03    3.7967        .31065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.9060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .83050E-01    23.854        .10082       -1.5650    
   6  norm          3.8736        4.1476        .65734E-05   -1.5314    
   7  Prefactor     4.3858        12.446        .76975E-05   -1.5289    
   8  Prefactor     .10000E-03    8.6089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .85634        .14789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.7436        12.274        .51353E-05   -1.5084    
  11  Prefactor     .10141E-03    21.501        .11172       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5027        4.3692        .74207E-05   -1.5334    
  13  Prefactor     .10000E-03    28.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.021        42.396        .30827E-05   -1.4668    
  15  norm          .10000E-03    2.7036        .26317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2149        .28589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.645        11.460        .15521E-04   -1.4675    
  19  norm          .41176        1.3420        .64718E-05   -1.5580    
  20  norm          .10000E-03    1.3573        .18588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.631        56.819        .11153E-04   -1.4270    
  23  Prefactor     11.947        15.333        .23173E-04   -1.5017    
  24  Prefactor     8.8462        12.215        .53863E-05   -1.5113    
  25  norm          19.821        2.7683        .97498E-05   -1.4817    
  26  Prefactor     .10000E-03    24.797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.950        17.488        .38893E-05   -1.4884    
  29  Normalizat    1.0359        .24304        .53615E-04   -.91839    
  30  Prefactor     1.0750        .24471        .57195E-04   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54757e-09
Minuit parameter uncertainties:
  1  98.1969
  2  3.96083e-06
  3  6.21765e-05
  4  3.39926e-05
  5  2.81447
  6  4.14786
  7  12.4529
  8  3.45414e-05
  9  3.24396e-06
  10  12.2768
  11  0.010999
  12  4.36957
  13  8.10034e-06
  14  42.4435
  15  1.72981e-06
  16  7.64233e-05
  17  4.60742e-06
  18  11.4613
  19  1.34208
  20  1.96109e-06
  21  1.68844e-05
  22  56.8786
  23  15.3379
  24  12.2184
  25  2.76829
  26  4.7078e-05
  27  0.000272858
  28  17.4936
  29  0.243302
  30  0.244964
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.503e+00  4.370e+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:  1.075e+00  2.450e-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.036e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 5.44e-06 +/- 6.79e-06

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

Saving results to:
/scratch/kocevski/667435/likelihoodResults_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.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) = 6717.80174436
delta logL = 0.204079777601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6717.79836081
delta logL = 0.207463322573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2546       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6737       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0696       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=   6717.798     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2546        3.9826        .56123E-02    .26486E-02
   2  alpha         1.6735        .73082        .44431       -.23994E-04
   3  Normalizat    1.0446        .17925        .60385E-01    .10190E-04
   4  Prefactor     1.0696        .19517        .64787E-01    .13145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25463
  alpha      = 1.67346
  Normalizat = 1.04455
  Prefactor  = 1.06959
 **********
 **   18 **HESSE 
 **********

 FCN=   6717.798     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2546        4.3260        .17288E-03   -1.5347    
   2  alpha         1.6735        .92630        .24665E-01   -.33696    
   3  Normalizat    1.0446        .21814        .26705E-03   -.91553    
   4  Prefactor     1.0696        .23746        .28657E-03   -.90444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50386e-09
Minuit parameter uncertainties:
  1  4.32639
  2  0.951918
  3  0.21833
  4  0.237697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667435': 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) = 6717.79836078
delta logL = 0.207463352584

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.255e+00  4.326e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.673e+00  9.519e-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:  1.070e+00  2.377e-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.045e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.67 +/- 0.95
Photon Flux (Free Index): 8.81e-09 +/- 1.41e-08
Energy Flux (Free Index): 8.03e-06 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/667435/cmap_HighResolution_329011201_329270401_4FGL_J1438.9+3710_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='8.03e-06', photon_flux_error='1.98e-08', dlogl='2.07e-01', energy_flux='5.44e-06', photon_flux2='8.81e-09', job_status='DONE', time_completed='2021-09-10 03:32:03.300749', photon_index_error2='0.95', photon_index2='1.67', ts='1.34', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='7.48e-08', energy_flux_error2='1.20e-05', EG='1.04', time_epoch_completed='1631269923.3', return_code='0', job_id='667435', GAL2='1.07', EG2='1.04', return_code2='0', energy_flux_error='6.79e-06', photon_flux_error2='1.41e-08', ts2='1.76', photon_index='2.31' WHERE bin_id='346' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 667435: <4FGL_J1438.9+3710_daily_bin346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin346 219.74 37.1752 329011201 329270401 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 :                                   921.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

