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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin631
RA = 219.74, Dec = 37.1752
tmin = 402883201, tmax = 403142401
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='670397', job_status='RUN', time_executed='2021-09-10 03:29:04.450113', time_epoch_executed='1631269744.45' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670397/ft1_4FGL_J1438.9+3710_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670397/ft2_4FGL_J1438.9+3710_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670397/ft1_4FGL_J1438.9+3710_daily_bin631.fits outfile=/scratch/kocevski/670397/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin631.fits ra=219.74 dec=37.1752 rad=12.0 tmin=402883201.0 tmax=403142401.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 4.57
user 4.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670397/ft1_filtered_4FGL_J1438.9+3710_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/670397/ft2_4FGL_J1438.9+3710_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/670397/ltcube_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.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/670397/ft2_4FGL_J1438.9+3710_daily_bin631.fits
.....................!
real 11.59
user 11.18
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1438.9+3710_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/670397/ft2_4FGL_J1438.9+3710_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/670397/ltcube_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.fits outfile=/scratch/kocevski/670397/expmap_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.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/670397/ltcube_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.fits
.....................!
real 189.94
user 184.62
sys 4.94

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1438.9+3710_daily_bin631.fits scfile=/scratch/kocevski/670397/ft2_4FGL_J1438.9+3710_daily_bin631.fits outfile=/scratch/kocevski/670397/cmap_HighResolution_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7022       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3873       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .54010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8115       1.0000         .10000E-03   10000.    
    12 'norm      '    .13507E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0204       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15589E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.746       1.0000         .10000E-03   10000.    
    25 'norm      '    3.7261       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.435       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16241E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    31.076       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99496       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2339       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=   6199.574     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3985 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.540        74.352       -.11573E-05   -.71503E-05
   2  Prefactor     6.7024        6.1794        .11649E-05   -.25988E-03
   3  norm          .10000E-03    7.6918        .28097E-07** at limit **
   4  Prefactor     .10000E-03    5.1716       -.50490E-07** at limit **
   5  Prefactor     .10000E-03    10.065        .56949E-06** at limit **
   6  norm          2.3878        3.6304        .45793E-06   -.11686E-03
   7  Prefactor     .10000E-03    5.8393        .12763E-06** at limit **
   8  Prefactor     .10000E-03    9.5414        .95494E-07** at limit **
   9  Prefactor     .10000E-03    2.9929        .28491E-06** at limit **
  10  norm          .10005E-03    7.9298        .13576E-05** at limit **
  11  Prefactor     7.8214        39.826        .25574E-05    .15401E-04
  12  norm          .10000E-03    15.331       -.65851E-05** at limit **
  13  Prefactor     48.654        70.957       -.14937E-04   -.41172E-03
  14  Prefactor     .10000E-03    12.134       -.12640E-06** at limit **
  15  norm          .10000E-03    3.8115       -.17079E-06** at limit **
  16  Prefactor     10.129        16.783       -.16090E-05    .17798E-04
  17  Prefactor     2.9225        5.7276        .85322E-05   -.49629E-03
  18  Prefactor     .10000E-03    2.3256        .50561E-07** at limit **
  19  norm          .10000E-03    .86239       -.82367E-06** at limit **
  20  norm          3.0209        3.9628       -.76760E-07   -.76593E-04
  21  Prefactor     .10000E-03    14.478       -.10509E-05** at limit **
  22  Prefactor     .10000E-03    37.290        .23485E-06** at limit **
  23  Prefactor     .10000E-03    7.1452       -.26142E-06** at limit **
  24  Prefactor     26.741        16.744       -.39950E-06    .57107E-04
  25  norm          3.7261        2.3716       -.50376E-07    .10672E-03
  26  Prefactor     19.437        20.565        .89648E-07    .50174E-04
  27  Prefactor     .10000E-03    17.058        .16053E-06** at limit **
  28  norm          31.068        22.308       -.49779E-06   -.62595E-04
  29  Normalizat    .99468        .19402        .48224E-06    .16189E-03
  30  Prefactor     1.2343        .20193        .32136E-06    .15421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5397
  Prefactor  = 6.70237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010005
  Prefactor  = 7.82139
  norm       = 0.000100004
  Prefactor  = 48.6539
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1285
  Prefactor  = 2.92247
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.02088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7406
  norm       = 3.72605
  Prefactor  = 19.4371
  Prefactor  = 0.0001
  norm       = 31.0677
  Normalizat = 0.994683
  Prefactor  = 1.23426
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.574     FROM HESSE     STATUS=OK           586 CALLS     4571 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.540        74.496        .80852E-04   -1.4717    
   2  Prefactor     6.7024        6.1828        .77498E-03   -1.5190    
   3  norm          .10000E-03    7.7215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1738        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3878        3.5778        .17651E-03   -1.5399    
   7  Prefactor     .10000E-03    5.8544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0568        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10005E-03    35.564        .42547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8214        39.974        .14347E-03   -1.5149    
  12  norm          .10000E-03    15.647        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.654        74.430        .28708E-03   -1.4312    
  14  Prefactor     .10000E-03    12.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8173        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.129        16.756        .12582E-03   -1.5071    
  17  Prefactor     2.9225        5.8542        .11884E-02   -1.5366    
  18  Prefactor     .10000E-03    2.3294        .11726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4607        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0209        3.9339        .16538E-03   -1.5360    
  21  Prefactor     .10000E-03    14.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.741        16.666        .77462E-04   -1.4673    
  25  norm          3.7261        2.3904        .72161E-04   -1.5322    
  26  Prefactor     19.437        20.756        .90853E-04   -1.4826    
  27  Prefactor     .10000E-03    17.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          31.068        22.309        .71876E-04   -1.4593    
  29  Normalizat    .99468        .23056        .26687E-03   -.93209    
  30  Prefactor     1.2343        .24051        .26322E-03   -.85284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1842e-09
Minuit parameter uncertainties:
  1  74.7805
  2  6.18339
  3  2.04303e-05
  4  6.7237e-06
  5  1.81582e-05
  6  3.5781
  7  1.81908e-05
  8  4.4596e-05
  9  1.28465e-05
  10  0.0026657
  11  35.4012
  12  0.000517055
  13  74.573
  14  3.18954e-05
  15  1.64209e-06
  16  16.7636
  17  5.85531
  18  1.07047e-06
  19  1.16679e-05
  20  3.93424
  21  8.51213e-06
  22  2.17947e-05
  23  2.0755e-05
  24  16.6691
  25  2.39043
  26  20.7634
  27  6.64248e-05
  28  22.3153
  29  0.230787
  30  0.240722
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.234e+00  2.407e-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:  9.947e-01  2.308e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670397/likelihoodResults_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.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): 102
logL (Free Index) = 6199.5741038
delta logL = -0.000303295239974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6199.57380219
delta logL = -1.69267150341e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4424       1.0000          .0000       5.0000    
     3 'Normalizat'    .99410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2349       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6199.168     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      344 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95483        2.8009        .81137E-04   -.14993E-03
   2  alpha         4.3073        2.7800        .82331E-02    .27424E-05
   3  Normalizat    .91415        .23598        .27709E-03    .91083E-05
   4  Prefactor     1.2866        .24642        .25856E-03    .38121E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.954827
  alpha      = 4.30727
  Normalizat = 0.914148
  Prefactor  = 1.28661
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.168     FROM HESSE     STATUS=OK            25 CALLS      369 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95483        3.1255        .32455E-05   -1.5513    
   2  alpha         4.3073        2.7193        .32932E-03    2.3336    
   3  Normalizat    .91415        .23618        .11084E-04   -.95965    
   4  Prefactor     1.2866        .24674        .10342E-04   -.83706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29631e-12
Minuit parameter uncertainties:
  1  3.12603
  2  2.10312
  3  0.236446
  4  0.246966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670397': 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) = 6199.16777268
delta logL = 0.406027821141

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  9.548e-01  3.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.307e+00  2.103e+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:  1.287e+00  2.470e-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:  9.141e-01  2.364e-01  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/670397/cmap_HighResolution_402883201_403142401_4FGL_J1438.9+3710_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='8.27e-08', time_completed='2021-09-10 03:42:52.003222', job_id='670397', GAL2='1.29', fit_tolerance='1e-08', EG2='0.91', EG='0.99', time_epoch_completed='1631270572.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='4.06e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='631' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:42:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 670397: <4FGL_J1438.9+3710_daily_bin631> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin631> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:20 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:22 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:26:22 2021
Terminated at Fri Sep 10 03:42:52 2021
Results reported at Fri Sep 10 03:42:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin631 219.74 37.1752 402883201 403142401 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 :                                   824.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

