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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin166
RA = 219.74, Dec = 37.1752
tmin = 282355201, tmax = 282614401
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='666005', job_status='RUN', time_executed='2021-09-10 03:14:27.339737', time_epoch_executed='1631268867.34' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666005/ft1_4FGL_J1438.9+3710_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666005/ft2_4FGL_J1438.9+3710_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666005/ft1_4FGL_J1438.9+3710_daily_bin166.fits outfile=/scratch/kocevski/666005/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin166.fits ra=219.74 dec=37.1752 rad=12.0 tmin=282355201.0 tmax=282614401.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.72
user 3.42
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666005/ft1_filtered_4FGL_J1438.9+3710_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/666005/ft2_4FGL_J1438.9+3710_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/666005/ltcube_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.fits outfile=/scratch/kocevski/666005/expmap_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.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/666005/ltcube_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.fits
.....................!
real 191.07
user 185.13
sys 4.56

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/666005/ft1_filtered_4FGL_J1438.9+3710_daily_bin166.fits scfile=/scratch/kocevski/666005/ft2_4FGL_J1438.9+3710_daily_bin166.fits outfile=/scratch/kocevski/666005/cmap_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666005/ft1_filtered_4FGL_J1438.9+3710_daily_bin166.fits scfile=/scratch/kocevski/666005/ft2_4FGL_J1438.9+3710_daily_bin166.fits outfile=/scratch/kocevski/666005/cmap_HighResolution_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35661       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6880       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8637       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9439       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 '    .10248E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.981       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.251       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.4196       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3227       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .46807       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=   5721.711     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3862 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.251        90.183       -.16470E-05    .22017E-03
   2  Prefactor     .35753        4.0435       -.15941E-05   -.19913E-03
   3  norm          1.1935        60.570       -.43751E-04    .10810E-03
   4  Prefactor     23.564        27.751       -.54530E-06    .43746E-03
   5  Prefactor     .10000E-03    13.283        .91237E-05** at limit **
   6  norm          .10000E-03    2.2375       -.13237E-06** at limit **
   7  Prefactor     4.4897        14.103        .61224E-05   -.89039E-04
   8  Prefactor     .10000E-03    7.2325        .51294E-06** at limit **
   9  Prefactor     .10000E-03    2.2195       -.12230E-06** at limit **
  10  norm          .10000E-03    5.8187       -.60286E-06** at limit **
  11  Prefactor     8.6919        20.089       -.27886E-05    .49221E-04
  12  norm          .10000E-03    1.9864       -.41314E-07** at limit **
  13  Prefactor     15.729        22.268       -.61835E-06    .26105E-04
  14  Prefactor     .10000E-03    11.899       -.65885E-05** at limit **
  15  norm          12.219        9.2535       -.14387E-06    .21311E-04
  16  Prefactor     .10000E-03    4.1697       -.86228E-07** at limit **
  17  Prefactor     .10000E-03    4.7575        .19667E-06** at limit **
  18  Prefactor     5.8636        7.0671       -.44628E-06   -.12816E-03
  19  norm          1.9439        1.8119       -.27029E-06   -.33326E-03
  20  norm          .10000E-03    .97263       -.18083E-07** at limit **
  21  Prefactor     .10000E-03    2.0776       -.32704E-07** at limit **
  22  Prefactor     .10000E-03    30.428       -.42287E-05** at limit **
  23  Prefactor     11.980        17.247       -.10932E-05    .45908E-04
  24  Prefactor     .10000E-03    3.0539       -.16712E-08** at limit **
  25  norm          14.251        2.4379       -.86490E-07    .88094E-03
  26  Prefactor     .10000E-03    16.135       -.30237E-05** at limit **
  27  Prefactor     .10013E-03    14.080       -.36584E-05** at limit **
  28  norm          9.3829        14.776        .37375E-05    .32536E-03
  29  Normalizat    1.3226        .19015        .33229E-05    .71024E-03
  30  Prefactor     .46819        .19291       -.13109E-05    .46853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.2506
  Prefactor  = 0.357529
  norm       = 1.19347
  Prefactor  = 23.5637
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 4.48967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.69188
  norm       = 0.0001
  Prefactor  = 15.7286
  Prefactor  = 0.000100002
  norm       = 12.2193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86364
  norm       = 1.9439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9795
  Prefactor  = 0.0001
  norm       = 14.2509
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  norm       = 9.3829
  Normalizat = 1.3226
  Prefactor  = 0.468193
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.711     FROM HESSE     STATUS=OK           584 CALLS     4446 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.251        90.083        .41182E-04   -1.3753    
   2  Prefactor     .35753        10.361        .29419E-02   -1.5588    
   3  norm          1.1935        67.312        .43394E-02   -1.5489    
   4  Prefactor     23.564        27.294        .82517E-04   -1.4737    
   5  Prefactor     .10000E-03    13.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2735        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4897        13.873        .19012E-03   -1.5284    
   8  Prefactor     .10000E-03    7.2315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2618        .10997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.8229        .17819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6919        20.155        .13599E-03   -1.5118    
  12  norm          .10000E-03    1.9913        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.729        22.264        .10099E-03   -1.4915    
  14  Prefactor     .10000E-03    11.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.219        9.2528        .11459E-03   -1.5009    
  16  Prefactor     .10000E-03    4.1727        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7865        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8636        7.0665        .16584E-03   -1.5224    
  19  norm          1.9439        1.7993        .92403E-04   -1.5429    
  20  norm          .10000E-03    .97663        .72842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0798        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.980        17.242        .11573E-03   -1.5016    
  24  Prefactor     .10000E-03    3.0557        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.251        2.4342        .46557E-04   -1.4953    
  26  Prefactor     .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10013E-03    142.75        .49686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.3829        13.584        .13058E-03   -1.5095    
  29  Normalizat    1.3226        .21434        .20380E-03   -.82894    
  30  Prefactor     .46819        .21362        .34640E-03   -1.1346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9258e-08
Minuit parameter uncertainties:
  1  90.2129
  2  3.84959
  3  17.9465
  4  27.3082
  5  0.00048672
  6  1.34807e-05
  7  13.8829
  8  8.03105e-05
  9  1.40851e-05
  10  1.08843e-05
  11  20.1704
  12  6.68822e-06
  13  22.2759
  14  0.000278066
  15  9.25391
  16  3.75156e-06
  17  1.0631e-05
  18  7.06746
  19  1.79932
  20  1.35813e-06
  21  1.40902e-06
  22  0.000289764
  23  17.2495
  24  1.93311e-06
  25  2.43425
  26  0.000150303
  27  0.00867043
  28  13.5884
  29  0.214484
  30  0.213982
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  6.688e-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:  4.682e-01  2.140e-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.323e+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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666005/likelihoodResults_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.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) = 5721.71328526
delta logL = -0.00234654924498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5721.71093873
delta logL = -2.00907379622e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5721.711     FROM MIGRAD    STATUS=FAILED        83 CALLS      226 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    4.2345        .10411E-02** at limit **
   2  alpha         2.2604        3.7950        .16522        .19179E-05
   3  Normalizat    1.3226        .19711        .20380E-03   -.88695E-05
   4  Prefactor     .46819        .20892        .34641E-03    .50541E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5721.711     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      346 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    4.2345        .21351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2604        3.7950        .68775E-03   -.95971E-01
   3  Normalizat    1.3226        .19711        .43673E-04   -.82894    
   4  Prefactor     .46819        .20892        .61142E-04   -1.1346    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5721.711     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      373 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9974        .20822E-03** at limit **
   2  alpha         2.2062        3.5615        .66089E-02   -.15516E-06
   3  Normalizat    1.3226        .19726        .81521E-05    .20361E-04
   4  Prefactor     .46819        .20907        .13856E-04    .22973E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.2062
  Normalizat = 1.3226
  Prefactor  = 0.468191
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.711     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9974        .41644E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2062        3.2659        .13218E-02   -.11779    
   3  Normalizat    1.3226        .19732        .16304E-05   -.82894    
   4  Prefactor     .46819        .20917        .27713E-05   -1.1346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20166e-10
Minuit parameter uncertainties:
  1  7.64492e-05
  2  255.06
  3  0.197436
  4  0.209516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666005': 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) = 5721.71093863
delta logL = 7.58418536861e-08

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  7.645e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.206e+00  2.551e+02  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:  4.682e-01  2.095e-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.323e+00  1.974e-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/666005/cmap_HighResolution_282355201_282614401_4FGL_J1438.9+3710_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-10 03:27:53.687111', job_id='666005', GAL2='0.47', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631269673.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='7.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='166' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:27:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 666005: <4FGL_J1438.9+3710_daily_bin166> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin166> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:22 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:23 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:11:23 2021
Terminated at Fri Sep 10 03:27:57 2021
Results reported at Fri Sep 10 03:27:57 2021

Your job looked like:

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

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

