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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin720
RA = 219.74, Dec = 37.1752
tmin = 425952001, tmax = 426211201
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='671555', job_status='RUN', time_executed='2021-09-10 03:33:51.161928', time_epoch_executed='1631270031.16' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671555/ft1_4FGL_J1438.9+3710_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671555/ft2_4FGL_J1438.9+3710_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671555/ft1_4FGL_J1438.9+3710_daily_bin720.fits outfile=/scratch/kocevski/671555/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin720.fits ra=219.74 dec=37.1752 rad=12.0 tmin=425952001.0 tmax=426211201.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.64
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671555/ft2_4FGL_J1438.9+3710_daily_bin720.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/671555/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin720.fits evtable="EVENTS" outfile="/scratch/kocevski/671555/ft1_filtered_4FGL_J1438.9+3710_daily_bin720.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 2.74
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671555/ft1_filtered_4FGL_J1438.9+3710_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/671555/ft2_4FGL_J1438.9+3710_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/671555/ltcube_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.fits outfile=/scratch/kocevski/671555/expmap_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.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/671555/ltcube_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.fits
.....................!
real 190.72
user 185.58
sys 4.41

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/671555/ft1_filtered_4FGL_J1438.9+3710_daily_bin720.fits scfile=/scratch/kocevski/671555/ft2_4FGL_J1438.9+3710_daily_bin720.fits outfile=/scratch/kocevski/671555/cmap_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671555/ft1_filtered_4FGL_J1438.9+3710_daily_bin720.fits scfile=/scratch/kocevski/671555/ft2_4FGL_J1438.9+3710_daily_bin720.fits outfile=/scratch/kocevski/671555/cmap_HighResolution_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.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.63
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4399       1.0000         .10000E-03   10000.    
     3 'norm      '    21.257       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.876       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8952       1.0000         .10000E-03   10000.    
    19 'norm      '    .42376E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    107.21       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1867       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .54515E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3338       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.672       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88557       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=   5840.370     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3916 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.493        .32217E-07** at limit **
   2  Prefactor     2.4402        3.5724        .20157E-07   -.82231E-06
   3  norm          21.259        17.356        .28108E-07   -.76340E-05
   4  Prefactor     .10000E-03    6.1738        .50151E-08** at limit **
   5  Prefactor     .10000E-03    7.5030        .20519E-07** at limit **
   6  norm          .10000E-03    1.3069        .46859E-08** at limit **
   7  Prefactor     .10000E-03    4.2111        .32646E-08** at limit **
   8  Prefactor     .10000E-03    5.2459        .41109E-08** at limit **
   9  Prefactor     .10000E-03    2.5240        .58974E-07** at limit **
  10  norm          13.145        11.281       -.38818E-09   -.19780E-04
  11  Prefactor     .10000E-03    53.604        .21199E-06** at limit **
  12  norm          18.026        8.2450        .29667E-07   -.19175E-03
  13  Prefactor     .10000E-03    32.297        .72336E-08** at limit **
  14  Prefactor     36.882        44.893        .45392E-07    .65377E-05
  15  norm          .10000E-03    4.0546       -.47661E-08** at limit **
  16  Prefactor     4.5473        9.7241        .12298E-06   -.56663E-04
  17  Prefactor     6.6861        7.5015        .24483E-06   -.14362E-03
  18  Prefactor     3.8952        5.3738        .10699E-05    .10660E-03
  19  norm          .59045E-02    .93243        .35907E-06   -.15027E-02
  20  norm          2.3393        3.5745       -.40454E-06   -.39461E-03
  21  Prefactor     .10001E-03    8.1899        .14489E-05** at limit **
  22  Prefactor     107.15        83.623        .70411E-06   -.25456E-03
  23  Prefactor     1.1363        120.44       -.81870E-05   -.63683E-04
  24  Prefactor     .10002E-03    10.635        .22935E-06** at limit **
  25  norm          4.3340        1.6476        .13186E-07   -.11078E-03
  26  Prefactor     .10000E-03    7.0473        .65587E-09** at limit **
  27  Prefactor     .10000E-03    44.027       -.90413E-07** at limit **
  28  norm          12.670        15.323       -.11589E-06   -.27283E-04
  29  Normalizat    1.0337        .19101       -.21503E-06   -.23032E-03
  30  Prefactor     .88562        .19127        .15382E-06   -.16546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.44016
  norm       = 21.2594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1453
  Prefactor  = 0.000100001
  norm       = 18.0264
  Prefactor  = 0.0001
  Prefactor  = 36.882
  norm       = 0.0001
  Prefactor  = 4.54726
  Prefactor  = 6.68614
  Prefactor  = 3.89517
  norm       = 0.00590452
  norm       = 2.3393
  Prefactor  = 0.000100014
  Prefactor  = 107.147
  Prefactor  = 1.13629
  Prefactor  = 0.000100023
  norm       = 4.33401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6701
  Normalizat = 1.03373
  Prefactor  = 0.885619
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.370     FROM HESSE     STATUS=OK           600 CALLS     4516 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4402        3.5580        .17007E-03   -1.5396    
   3  norm          21.259        17.434        .86874E-04   -1.4785    
   4  Prefactor     .10000E-03    6.1782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3157        .85305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2159        .15315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2515        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1145        .23339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.145        11.281        .11048E-03   -1.4983    
  11  Prefactor     .10000E-03    54.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.026        8.2603        .94335E-04   -1.4859    
  13  Prefactor     .10000E-03    32.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.882        45.081        .65998E-04   -1.4493    
  15  norm          .10000E-03    4.0657        .15026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5473        9.7008        .18878E-03   -1.5281    
  17  Prefactor     6.6861        7.7430        .15511E-03   -1.5191    
  18  Prefactor     3.8952        5.4372        .10222E-02   -1.5313    
  19  norm          .59045E-02    3.3736        .21953E-01   -1.5693    
  20  norm          2.3393        3.4962        .16594E-03   -1.5402    
  21  Prefactor     .10001E-03    49.561        .34239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     107.15        88.585        .19420E-03   -1.3634    
  23  Prefactor     1.1363        124.02        .41873E-02   -1.5495    
  24  Prefactor     .10002E-03    53.833        .41028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3340        1.6453        .57694E-04   -1.5292    
  26  Prefactor     .10000E-03    7.0640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    44.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.670        15.238        .11253E-03   -1.4996    
  29  Normalizat    1.0337        .22276        .23875E-03   -.91909    
  30  Prefactor     .88562        .22309        .27166E-03   -.96645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17546e-09
Minuit parameter uncertainties:
  1  2.02026e-05
  2  3.55831
  3  17.4379
  4  8.49398e-07
  5  1.20307e-05
  6  1.46843e-06
  7  1.14442e-07
  8  1.15693e-06
  9  2.29429e-05
  10  11.283
  11  0.000349717
  12  8.26086
  13  2.90703e-05
  14  45.1224
  15  1.49495e-06
  16  9.70413
  17  7.74413
  18  5.43787
  19  0.279889
  20  3.4965
  21  0.00164795
  22  88.6946
  23  23.7916
  24  0.0022211
  25  1.64529
  26  1.16892e-05
  27  0.000208376
  28  15.2426
  29  0.222962
  30  0.223316
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.803e+01  8.261e+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.856e-01  2.233e-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.034e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.73
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.28e-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) = 5840.02402277
delta logL = 0.345843684634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.01600301
delta logL = 0.353863442265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.095       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8943       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86157       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=   5840.016     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.092        9.0166        .91657E-04    .39319E-04
   2  alpha         1.8942        .46324        .12409E-01    .20439E-04
   3  Normalizat    1.0655        .20970        .23562E-03    .45123E-03
   4  Prefactor     .86150        .22130        .27491E-03    .37936E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.092
  alpha      = 1.89422
  Normalizat = 1.06547
  Prefactor  = 0.861503
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.016     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.092        9.0530        .36663E-05   -1.4834    
   2  alpha         1.8942        .46497        .49638E-03   -.24475    
   3  Normalizat    1.0655        .20988        .47124E-04   -.90868    
   4  Prefactor     .86150        .22148        .54982E-04   -.97500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20316e-10
Minuit parameter uncertainties:
  1  9.05364
  2  0.467866
  3  0.210046
  4  0.221706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671555': 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) = 5840.01600291
delta logL = 0.353863546804

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.909e+01  9.054e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.894e+00  4.679e-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.615e-01  2.217e-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.065e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.40
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.89 +/- 0.47
Photon Flux (Free Index): 5.95e-08 +/- 3.78e-08
Energy Flux (Free Index): 3.58e-05 +/- 2.11e-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/671555/cmap_HighResolution_425952001_426211201_4FGL_J1438.9+3710_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='3.58e-05', photon_flux_error='3.74e-08', dlogl='3.54e-01', energy_flux='2.80e-05', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-10 03:45:22.339231', photon_index_error2='0.47', photon_index2='1.89', ts='9.73', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.03', time_epoch_completed='1631270722.34', return_code='0', job_id='671555', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.78e-08', ts2='10.40', photon_index='2.31' WHERE bin_id='720' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 671555: <4FGL_J1438.9+3710_daily_bin720> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin720 219.74 37.1752 425952001 426211201 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 :                                   687.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

