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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin233
RA = 219.74, Dec = 37.1752
tmin = 299721601, tmax = 299980801
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='667275', job_status='RUN', time_executed='2021-09-10 03:19:14.762568', time_epoch_executed='1631269154.76' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667275/ft1_4FGL_J1438.9+3710_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667275/ft1_4FGL_J1438.9+3710_daily_bin233.fits outfile=/scratch/kocevski/667275/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin233.fits ra=219.74 dec=37.1752 rad=12.0 tmin=299721601.0 tmax=299980801.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.36
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.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/667275/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin233.fits evtable="EVENTS" outfile="/scratch/kocevski/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.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/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/667275/ltcube_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.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/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits
.....................!
real 11.70
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/667275/ltcube_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.fits outfile=/scratch/kocevski/667275/expmap_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.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/667275/ltcube_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.fits
.....................!
real 190.55
user 185.49
sys 4.70

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/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits outfile=/scratch/kocevski/667275/cmap_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits outfile=/scratch/kocevski/667275/cmap_HighResolution_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.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/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/667275/ft2_4FGL_J1438.9+3710_daily_bin233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667275/Model_4FGL_J1438.9+3710_daily_bin233.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/667275/ft1_filtered_4FGL_J1438.9+3710_daily_bin233.fits.....................!
real 44.65
user 43.30
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7472       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7968       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.910       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8201       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0289       1.0000         .10000E-03   10000.    
    19 'norm      '    .12794E-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 '    121.69       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6437       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6716       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.003       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55777       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=   5443.564     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3861 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.61        .17218E-06** at limit **
   2  Prefactor     7.7477        5.8446        .77037E-07    .10679E-04
   3  norm          2.1520        24.761        .79136E-05   -.29885E-04
   4  Prefactor     .10000E-03    10.490       -.98599E-07** at limit **
   5  Prefactor     9.7941        18.441        .12692E-06    .17908E-04
   6  norm          .10000E-03    2.6206        .19178E-06** at limit **
   7  Prefactor     .10000E-03    15.529        .10853E-05** at limit **
   8  Prefactor     29.900        18.495        .33721E-06    .38070E-03
   9  Prefactor     .10000E-03    1.2167        .13137E-07** at limit **
  10  norm          .10000E-03    8.7141        .42692E-06** at limit **
  11  Prefactor     7.8165        25.711        .66029E-06    .38463E-04
  12  norm          6.7981        6.7173        .11123E-06    .44610E-04
  13  Prefactor     51.362        56.591       -.14783E-06    .46262E-04
  14  Prefactor     .10000E-03    14.975        .13529E-06** at limit **
  15  norm          3.6981        5.9918       -.13933E-07   -.39469E-04
  16  Prefactor     .10000E-03    12.248        .10120E-06** at limit **
  17  Prefactor     4.3776        6.7154        .58893E-06    .41000E-03
  18  Prefactor     3.0312        6.6513        .29379E-05   -.20947E-03
  19  norm          .10000E-03    .93913       -.82204E-06** at limit **
  20  norm          .10000E-03    1.0530        .22511E-08** at limit **
  21  Prefactor     .10000E-03    2.6373       -.18807E-07** at limit **
  22  Prefactor     121.67        66.246        .13669E-05    .91684E-04
  23  Prefactor     .10000E-03    3.7180        .51464E-08** at limit **
  24  Prefactor     6.6431        7.7204        .36369E-06    .21498E-04
  25  norm          4.6717        1.8253        .60337E-08   -.45806E-04
  26  Prefactor     21.001        14.905        .73920E-07    .46597E-04
  27  Prefactor     .10000E-03    4.1007       -.50233E-07** at limit **
  28  norm          .10000E-03    2.8712       -.46752E-07** at limit **
  29  Normalizat    1.2397        .18383       -.11619E-05    .31821E-03
  30  Prefactor     .55780        .18335        .47809E-06    .17679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.74766
  norm       = 2.15197
  Prefactor  = 0.0001
  Prefactor  = 9.79409
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 29.9004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.81653
  norm       = 6.79813
  Prefactor  = 51.3616
  Prefactor  = 0.0001
  norm       = 3.69812
  Prefactor  = 0.0001
  Prefactor  = 4.3776
  Prefactor  = 3.03116
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.673
  Prefactor  = 0.0001
  Prefactor  = 6.64311
  norm       = 4.67174
  Prefactor  = 21.0015
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.23973
  Prefactor  = 0.557802
 **********
 **   18 **HESSE 
 **********

 FCN=   5443.564     FROM HESSE     STATUS=OK           582 CALLS     4443 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7477        5.8553        .14407E-03   -1.5151    
   3  norm          2.1520        24.988        .14045E-02   -1.5415    
   4  Prefactor     .10000E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7941        18.473        .12803E-03   -1.5082    
   6  norm          .10000E-03    2.6973        .23321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.900        18.523        .73259E-04   -1.4614    
   9  Prefactor     .10000E-03    1.2336        .79451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.7549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8165        25.688        .14339E-03   -1.5149    
  12  norm          6.7981        6.7056        .15389E-03   -1.5186    
  13  Prefactor     51.362        56.529        .55963E-04   -1.4273    
  14  Prefactor     .10000E-03    14.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6981        5.9784        .21001E-03   -1.5323    
  16  Prefactor     .10000E-03    12.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3776        6.6357        .19241E-03   -1.5289    
  18  Prefactor     3.0312        6.7227        .11658E-02   -1.5360    
  19  norm          .10000E-03    1.7581        .13380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0580        .73914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6446        .11697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     121.67        66.616        .18242E-03   -1.3497    
  23  Prefactor     .10000E-03    3.7190        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.6431        7.7155        .77842E-03   -1.5192    
  25  norm          4.6717        1.8491        .50927E-04   -1.5276    
  26  Prefactor     21.001        15.106        .87399E-04   -1.4791    
  27  Prefactor     .10000E-03    4.1013        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.8717        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2397        .20876        .20473E-03   -.85384    
  30  Prefactor     .55780        .20753        .31247E-03   -1.0939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75737e-10
Minuit parameter uncertainties:
  1  3.72708e-05
  2  5.85576
  3  14.6735
  4  0.000117776
  5  18.4834
  6  1.47196e-05
  7  0.000419862
  8  18.5266
  9  1.35879e-06
  10  4.2924e-05
  11  25.7243
  12  6.70633
  13  56.5883
  14  4.28085e-05
  15  5.97931
  16  0.000132161
  17  6.63679
  18  6.72441
  19  4.58766e-05
  20  5.54413e-07
  21  1.50217e-06
  22  66.6569
  23  3.28901e-06
  24  7.71666
  25  1.84913
  26  15.109
  27  4.22378e-06
  28  2.37717e-06
  29  0.208897
  30  0.207811
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.798e+00  6.706e+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:  5.578e-01  2.078e-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.240e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.08e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/667275/likelihoodResults_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.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) = 5443.5575935
delta logL = 0.00670671000717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5443.55697523
delta logL = 0.00732497843001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6049       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4057       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56046       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=   5443.557     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      199 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6016        234.01        .39036E-02    .17898E-03
   2  alpha         2.4059        2.6960        .41189        .16682E-04
   3  Normalizat    1.2368        .84512E-01    .34059E-01    .62488E-05
   4  Prefactor     .55986        .83188E-01    .70468E-01    .30155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.60161
  alpha      = 2.40585
  Normalizat = 1.23678
  Prefactor  = 0.559858
 **********
 **   18 **HESSE 
 **********

 FCN=   5443.557     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6016        6.7654        .15614E-03   -1.5194    
   2  alpha         2.4059        .79896        .18207E-01   -.37667E-01
   3  Normalizat    1.2368        .19584        .20493E-03   -.85474    
   4  Prefactor     .55986        .20634        .31193E-03   -1.0930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66978e-13
Minuit parameter uncertainties:
  1  6.76619
  2  0.813252
  3  0.195959
  4  0.206619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667275': 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) = 5443.55696984
delta logL = 0.00733036903057

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.602e+00  6.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.406e+00  8.133e-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:  5.599e-01  2.066e-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.237e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.41 +/- 0.81
Photon Flux (Free Index): 3.31e-08 +/- 3.60e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.02e-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/667275/cmap_HighResolution_299721601_299980801_4FGL_J1438.9+3710_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-05', comment='SUCCESS', photon_flux='3.08e-08', energy_flux2='1.03e-05', photon_flux_error='3.04e-08', dlogl='7.33e-03', energy_flux='1.06e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-10 03:31:53.753727', photon_index_error2='0.81', photon_index2='2.41', ts='1.63', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='9.91e-08', energy_flux_error2='1.02e-05', EG='1.24', time_epoch_completed='1631269913.75', return_code='0', job_id='667275', GAL2='0.56', EG2='1.24', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.60e-08', ts2='1.65', photon_index='2.31' WHERE bin_id='233' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 667275: <4FGL_J1438.9+3710_daily_bin233> in cluster <slac> Done

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

Your job looked like:

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

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

