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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin320
RA = 219.74, Dec = 37.1752
tmin = 322272001, tmax = 322531201
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='667397', job_status='RUN', time_executed='2021-09-10 03:18:19.405532', time_epoch_executed='1631269099.41' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667397/ft1_4FGL_J1438.9+3710_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667397/ft1_4FGL_J1438.9+3710_daily_bin320.fits outfile=/scratch/kocevski/667397/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin320.fits ra=219.74 dec=37.1752 rad=12.0 tmin=322272001.0 tmax=322531201.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.42
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/667397/ltcube_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.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/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits
.....................!
real 12.03
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/667397/ltcube_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.fits outfile=/scratch/kocevski/667397/expmap_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.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/667397/ltcube_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.fits
.....................!
real 192.72
user 186.93
sys 5.39

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/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits scfile=/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits outfile=/scratch/kocevski/667397/cmap_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits scfile=/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits outfile=/scratch/kocevski/667397/cmap_HighResolution_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.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/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/667397/ft2_4FGL_J1438.9+3710_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667397/Model_4FGL_J1438.9+3710_daily_bin320.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/667397/ft1_filtered_4FGL_J1438.9+3710_daily_bin320.fits.....................!
real 47.11
user 45.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62676E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99247E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    10.274       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6791       1.0000         .10000E-03   10000.    
    10 'norm      '    11.580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.150       1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.013       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.606       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.012       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .49889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4081       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.3688       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .41598E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.8175       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76015       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=   5826.542     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3929 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.803        70.970        .42293E-06    .54208E-04
   2  Prefactor     .69482E-01    6.1902       -.14109E-05    .32844E-03
   3  norm          .10000E-03    8.7695        .51330E-06** at limit **
   4  Prefactor     .10000E-03    12.360        .86766E-09** at limit **
   5  Prefactor     .10017E-03    37.388        .42002E-06** at limit **
   6  norm          10.274        4.8888       -.32170E-06   -.66151E-03
   7  Prefactor     .10000E-03    3.5184        .10737E-07** at limit **
   8  Prefactor     .10000E-03    9.1426        .55505E-07** at limit **
   9  Prefactor     1.6792        1.8736        .31072E-07    .31279E-04
  10  norm          11.582        12.803        .36306E-07   -.36951E-05
  11  Prefactor     29.141        27.524        .31614E-06   -.83242E-05
  12  norm          .10000E-03    4.9628       -.96307E-07** at limit **
  13  Prefactor     27.010        26.272        .10487E-06    .54827E-05
  14  Prefactor     15.609        35.707        .13353E-06    .31307E-05
  15  norm          7.7221        7.1989       -.18256E-07    .15477E-04
  16  Prefactor     .10000E-03    9.3674       -.15718E-06** at limit **
  17  Prefactor     .10000E-03    5.7589       -.11382E-06** at limit **
  18  Prefactor     14.012        9.1441       -.39109E-07   -.18008E-04
  19  norm          .10000E-03    .63327       -.80550E-07** at limit **
  20  norm          .50243        3.8539       -.20423E-06   -.10147E-04
  21  Prefactor     .10000E-03    14.374       -.32054E-05** at limit **
  22  Prefactor     .10000E-03    16.902       -.80404E-07** at limit **
  23  Prefactor     7.4158        15.193        .30847E-06    .96161E-04
  24  Prefactor     .10000E-03    6.5833       -.38559E-06** at limit **
  25  norm          9.3645        2.1398        .27295E-06    .16686E-02
  26  Prefactor     .10006E-03    42.176        .26685E-05** at limit **
  27  Prefactor     .10000E-03    12.006       -.47886E-07** at limit **
  28  norm          2.8227        11.707       -.11099E-05   -.53373E-04
  29  Normalizat    1.2288        .20497       -.34862E-05    .91753E-04
  30  Prefactor     .75966        .21956        .50209E-05    .49964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8034
  Prefactor  = 0.0694822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100174
  norm       = 10.2738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67922
  norm       = 11.5819
  Prefactor  = 29.1412
  norm       = 0.0001
  Prefactor  = 27.0097
  Prefactor  = 15.6088
  norm       = 7.72207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0121
  norm       = 0.0001
  norm       = 0.502426
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.41575
  Prefactor  = 0.0001
  norm       = 9.36454
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  norm       = 2.82271
  Normalizat = 1.22885
  Prefactor  = 0.75966
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.542     FROM HESSE     STATUS=OK           594 CALLS     4523 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.803        72.034        .61229E-04   -1.4399    
   2  Prefactor     .69482E-01    3.4694        .46717E-01   -1.5655    
   3  norm          .10000E-03    8.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10017E-03    71.323        .55109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.274        4.9872        .56726E-03   -1.5067    
   7  Prefactor     .10000E-03    3.5216        .13981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6792        1.8732        .10716E-03   -1.5449    
  10  norm          11.582        12.796        .11772E-03   -1.5027    
  11  Prefactor     29.141        27.563        .74206E-04   -1.4628    
  12  norm          .10000E-03    5.0789        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.010        26.274        .77079E-04   -1.4668    
  14  Prefactor     15.609        35.704        .10138E-03   -1.4918    
  15  norm          7.7221        7.1983        .14431E-03   -1.5152    
  16  Prefactor     .10000E-03    9.4191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8409        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.012        9.1425        .10700E-03   -1.4959    
  19  norm          .10000E-03    .65599        .11851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .50243        4.0319        .29102E-03   -1.5566    
  21  Prefactor     .10000E-03    14.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4158        15.147        .14736E-03   -1.5163    
  24  Prefactor     .10000E-03    6.6127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.3645        2.0026        .47705E-04   -1.5096    
  26  Prefactor     .10006E-03    61.849        .42711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.8227        11.716        .24231E-03   -1.5372    
  29  Normalizat    1.2288        .21436        .22065E-03   -.85716    
  30  Prefactor     .75966        .22873        .29951E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5222e-09
Minuit parameter uncertainties:
  1  72.1813
  2  0.981307
  3  6.75583e-05
  4  2.01953e-05
  5  0.00705416
  6  4.98741
  7  2.82388e-06
  8  1.47852e-05
  9  1.87327
  10  12.7993
  11  27.5752
  12  8.93705e-06
  13  26.2847
  14  35.7527
  15  7.19908
  16  1.41191e-05
  17  3.06365e-06
  18  9.14339
  19  1.49635e-06
  20  2.84655
  21  0.000229579
  22  1.77373e-05
  23  15.1551
  24  2.45186e-05
  25  2.0026
  26  0.0037539
  27  2.18365e-05
  28  11.5049
  29  0.214517
  30  0.22902
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  8.937e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.597e-01  2.290e-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.229e+00  2.145e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667397/likelihoodResults_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.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) = 5826.54269798
delta logL = -0.000938116142606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5826.54175991
delta logL = -4.44360921392e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3099       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75968       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=   5826.542     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    85.588        .90712E-02** at limit **
   2  alpha         2.3101        2.7471        .41303       -.13163E-06
   3  Normalizat    1.2288        .18326E-01    .49909E-01    .18079E-04
   4  Prefactor     .75966        .20156E-01    .67694E-01    .30908E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31005
  Normalizat = 1.22885
  Prefactor  = 0.75966
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.542     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      231 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    915.24        .16599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3101        3.6434        .16521       -.76053E-01
   3  Normalizat    1.2288        .87097E-01    .22065E-03   -.85716    
   4  Prefactor     .75966        .95654E-01    .29951E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65764e-08
Minuit parameter uncertainties:
  1  0.000268219
  2  3105.25
  3  0.0871074
  4  0.0956748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667397': 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): 102
logL (Free Index) = 5826.54175986
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.682e-04  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  3.105e+03  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.597e-01  9.567e-02  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.229e+00  8.711e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/667397/cmap_HighResolution_322272001_322531201_4FGL_J1438.9+3710_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-10 03:31:54.368306', job_id='667397', GAL2='0.76', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631269914.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='320' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 667397: <4FGL_J1438.9+3710_daily_bin320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin320 219.74 37.1752 322272001 322531201 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 :                                   811.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

