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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin292
RA = 219.74, Dec = 37.1752
tmin = 315014401, tmax = 315273601
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='667357', job_status='RUN', time_executed='2021-09-10 03:20:08.111485', time_epoch_executed='1631269208.11' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667357/ft1_4FGL_J1438.9+3710_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667357/ft1_4FGL_J1438.9+3710_daily_bin292.fits outfile=/scratch/kocevski/667357/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin292.fits ra=219.74 dec=37.1752 rad=12.0 tmin=315014401.0 tmax=315273601.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.55
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.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/667357/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/667357/ft1_filtered_4FGL_J1438.9+3710_daily_bin292.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/667357/ft1_filtered_4FGL_J1438.9+3710_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/667357/ltcube_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.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/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits
.....................!
real 11.84
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667357/ft1_filtered_4FGL_J1438.9+3710_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/667357/ltcube_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.fits outfile=/scratch/kocevski/667357/expmap_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.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/667357/ltcube_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.fits
.....................!
real 190.14
user 185.23
sys 4.49

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/667357/ft1_filtered_4FGL_J1438.9+3710_daily_bin292.fits scfile=/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits outfile=/scratch/kocevski/667357/cmap_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667357/ft1_filtered_4FGL_J1438.9+3710_daily_bin292.fits scfile=/scratch/kocevski/667357/ft2_4FGL_J1438.9+3710_daily_bin292.fits outfile=/scratch/kocevski/667357/cmap_HighResolution_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24597E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.843       1.0000         .10000E-03   10000.    
    12 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0226       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.406       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    88.682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.179       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.368       1.0000         .10000E-03   10000.    
    25 'norm      '    6.0799       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.938       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1955       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64459       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=   5303.598     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3879 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    182.32       -.20623E-07** at limit **
   2  Prefactor     .10000E-03    2.2780       -.16338E-07** at limit **
   3  norm          13.738        14.626        .39953E-06    .26947E-04
   4  Prefactor     .10000E-03    6.1123        .26300E-08** at limit **
   5  Prefactor     .10000E-03    28.639       -.67714E-07** at limit **
   6  norm          2.2610        2.5175        .79153E-08    .13166E-04
   7  Prefactor     15.279        13.130       -.99132E-07    .64315E-05
   8  Prefactor     .10000E-03    9.9574       -.17507E-06** at limit **
   9  Prefactor     .10000E-03    1.6179       -.28199E-07** at limit **
  10  norm          .10000E-03    21.451       -.44442E-06** at limit **
  11  Prefactor     34.838        32.563        .88635E-07   -.26854E-04
  12  norm          .10000E-03    13.267       -.31764E-06** at limit **
  13  Prefactor     .10000E-03    21.746       -.25338E-06** at limit **
  14  Prefactor     .10000E-03    18.874        .49174E-06** at limit **
  15  norm          4.0229        5.7716        .79971E-07   -.20886E-04
  16  Prefactor     11.185        18.051        .12987E-06   -.10685E-03
  17  Prefactor     18.421        10.498       -.13742E-05   -.73195E-03
  18  Prefactor     .10000E-03    4.9968       -.34801E-07** at limit **
  19  norm          .10000E-03    1.8063        .14783E-05** at limit **
  20  norm          .10000E-03    1.0314        .33131E-08** at limit **
  21  Prefactor     .10000E-03    5.0250        .42418E-07** at limit **
  22  Prefactor     88.732        84.156        .68526E-06   -.53642E-04
  23  Prefactor     45.182        30.056       -.16915E-06   -.74761E-04
  24  Prefactor     13.360        15.005        .12967E-06   -.44925E-04
  25  norm          6.0804        1.8524        .96850E-08   -.35202E-03
  26  Prefactor     .10000E-03    10.658        .19482E-06** at limit **
  27  Prefactor     .10000E-03    28.758       -.27697E-06** at limit **
  28  norm          16.940        14.599       -.14427E-06   -.44229E-04
  29  Normalizat    1.1958        .18785       -.74837E-06   -.22692E-03
  30  Prefactor     .64421        .18972        .36101E-06   -.19693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26098
  Prefactor  = 15.2794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.8379
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0229
  Prefactor  = 11.1853
  Prefactor  = 18.4215
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.7317
  Prefactor  = 45.1816
  Prefactor  = 13.3604
  norm       = 6.08041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9396
  Normalizat = 1.19578
  Prefactor  = 0.64421
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.598     FROM HESSE     STATUS=OK           580 CALLS     4459 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2843        .10734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.738        14.648        .10801E-03   -1.4966    
   4  Prefactor     .10000E-03    6.1154        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2610        2.5162        .11832E-03   -1.5407    
   7  Prefactor     15.279        13.081        .10247E-03   -1.4926    
   8  Prefactor     .10000E-03    9.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6293        .90412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.838        32.792        .67890E-04   -1.4527    
  12  norm          .10000E-03    13.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0229        5.7625        .20106E-03   -1.5307    
  16  Prefactor     11.185        18.054        .11981E-03   -1.5039    
  17  Prefactor     18.421        11.400        .93357E-04   -1.4849    
  18  Prefactor     .10000E-03    5.0782        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7805        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0325        .72202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0349        .15911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     88.732        84.328        .21333E-03   -1.3821    
  23  Prefactor     45.182        30.041        .59649E-04   -1.4363    
  24  Prefactor     13.360        14.963        .10955E-03   -1.4977    
  25  norm          6.0804        1.8500        .52162E-04   -1.5215    
  26  Prefactor     .10000E-03    10.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.940        14.548        .97317E-04   -1.4885    
  29  Normalizat    1.1958        .22389        .22120E-03   -.86733    
  30  Prefactor     .64421        .22358        .30552E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29705e-10
Minuit parameter uncertainties:
  1  4.85823e-05
  2  1.7099e-06
  3  14.6514
  4  1.5068e-06
  5  4.68777e-05
  6  2.51634
  7  13.0837
  8  9.87701e-06
  9  2.93592e-06
  10  3.49556e-05
  11  32.8092
  12  5.74058e-05
  13  9.1428e-06
  14  5.23667e-05
  15  5.7633
  16  18.0629
  17  11.4013
  18  4.18028e-06
  19  0.000133412
  20  1.58976e-07
  21  4.51882e-08
  22  84.442
  23  30.0511
  24  14.9676
  25  1.84997
  26  1.26597e-05
  27  5.3749e-05
  28  14.5515
  29  0.224065
  30  0.223894
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.741e-05  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:  6.442e-01  2.239e-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.196e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/667357/likelihoodResults_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.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) = 5303.59811246
delta logL = -0.000349226731487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5303.5977645
delta logL = -1.25697715703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11361E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4316       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64370       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=   5301.355     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      337 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77669        .62090        .76174E-02   -.72388E-02
   2  alpha         4.8871        .56562        .41171       -.15875E-03
   3  Normalizat    1.0397        .18559        .52912E-01    .73847E-04
   4  Prefactor     .74988        .18936        .64358E-01    .16707E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.776686
  alpha      = 4.88714
  Normalizat = 1.0397
  Prefactor  = 0.749876
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.355     FROM HESSE     STATUS=OK            33 CALLS      370 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77669        1.3101        .34182E-04   -1.5532    
   2  alpha         4.8871        3.8644        .35570E-01    1.2692    
   3  Normalizat    1.0397        .22353        .23397E-03   -.91712    
   4  Prefactor     .74988        .22909        .28472E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2447e-09
Minuit parameter uncertainties:
  1  1.31019
  2  1.04437
  3  0.223735
  4  0.229379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667357': 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) = 5301.35518316
delta logL = 2.24258008304

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  7.767e-01  1.310e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.887e+00  1.044e+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.499e-01  2.294e-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.040e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 219.740 37.175
Photon Index (Free Index): 4.89 +/- 1.04
Photon Flux (Free Index): 1.26e-07 +/- 7.18e-08
Energy Flux (Free Index): 1.74e-05 +/- 9.92e-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/667357/cmap_HighResolution_315014401_315273601_4FGL_J1438.9+3710_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='2.24e+00', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-10 03:32:39.753347', photon_index_error2='1.04', photon_index2='4.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='8.40e-08', energy_flux_error2='9.92e-06', EG='1.20', time_epoch_completed='1631269959.75', return_code='0', job_id='667357', GAL2='0.75', EG2='1.04', return_code2='0', photon_flux_error2='7.18e-08', ts2='4.90', photon_index='2.31' WHERE bin_id='292' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:32:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 667357: <4FGL_J1438.9+3710_daily_bin292> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin292 219.74 37.1752 315014401 315273601 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 :                                   750.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

