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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin970
RA = 219.74, Dec = 37.1752
tmin = 490752001, tmax = 491011201
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='673184', job_status='RUN', time_executed='2021-09-10 03:38:33.704960', time_epoch_executed='1631270313.7' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673184/ft1_4FGL_J1438.9+3710_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673184/ft2_4FGL_J1438.9+3710_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673184/ft1_4FGL_J1438.9+3710_daily_bin970.fits outfile=/scratch/kocevski/673184/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin970.fits ra=219.74 dec=37.1752 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.74
user 5.48
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673184/ft2_4FGL_J1438.9+3710_daily_bin970.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/673184/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/673184/ft1_filtered_4FGL_J1438.9+3710_daily_bin970.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/673184/ft1_filtered_4FGL_J1438.9+3710_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/673184/ft2_4FGL_J1438.9+3710_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/673184/ltcube_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.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/673184/ft2_4FGL_J1438.9+3710_daily_bin970.fits
.....................!
real 12.16
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673184/ft1_filtered_4FGL_J1438.9+3710_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/673184/ft2_4FGL_J1438.9+3710_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/673184/ltcube_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.fits outfile=/scratch/kocevski/673184/expmap_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.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/673184/ltcube_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.fits
.....................!
real 190.78
user 185.66
sys 4.65

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/673184/ft1_filtered_4FGL_J1438.9+3710_daily_bin970.fits scfile=/scratch/kocevski/673184/ft2_4FGL_J1438.9+3710_daily_bin970.fits outfile=/scratch/kocevski/673184/cmap_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12982E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.158       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6820       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5125       1.0000         .10000E-03   10000.    
    20 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14978E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.525       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8858       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    13.501       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94509       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67393       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=   4152.779     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4487 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.151        .62709E-06** at limit **
   2  Prefactor     .10000E-03    7.8737        .14894E-06** at limit **
   3  norm          3.9993        13.231        .67987E-05   -.31309E-03
   4  Prefactor     .10000E-03    60.641       -.57049E-06** at limit **
   5  Prefactor     .10000E-03    6.5235        .18888E-07** at limit **
   6  norm          .10000E-03    1.4824        .22308E-07** at limit **
   7  Prefactor     .10000E-03    39.323        .13179E-06** at limit **
   8  Prefactor     40.885        22.856       -.83824E-07    .91639E-04
   9  Prefactor     .10000E-03    2.1111       -.15705E-08** at limit **
  10  norm          .10000E-03    11.781        .51501E-07** at limit **
  11  Prefactor     .10000E-03    9.5584        .35991E-07** at limit **
  12  norm          .10000E-03    5.2633        .34649E-07** at limit **
  13  Prefactor     12.515        27.948       -.80957E-07   -.53349E-05
  14  Prefactor     57.107        46.060       -.49453E-05   -.46524E-03
  15  norm          8.0146        8.1481       -.40026E-06    .96329E-04
  16  Prefactor     9.5242        13.298        .29355E-06    .17232E-05
  17  Prefactor     13.318        11.206        .68579E-06   -.17873E-03
  18  Prefactor     7.6798        11.999       -.22404E-07   -.37948E-04
  19  norm          4.5124        2.4075       -.10731E-06   -.16039E-03
  20  norm          .10000E-03    2.0199       -.11408E-07** at limit **
  21  Prefactor     10.237        14.584       -.38764E-06   -.25476E-03
  22  Prefactor     .10000E-03    31.876       -.15989E-06** at limit **
  23  Prefactor     .10024E-03    36.417        .22371E-05** at limit **
  24  Prefactor     17.492        31.262       -.55564E-06   -.17957E-03
  25  norm          2.8860        1.2632        .98839E-09   -.10188E-04
  26  Prefactor     .10000E-03    3.6165        .21987E-07** at limit **
  27  Prefactor     .10000E-03    13.012        .63075E-07** at limit **
  28  norm          13.503        14.573       -.67426E-07   -.26846E-04
  29  Normalizat    .94541        .20257        .77169E-06   -.17136E-03
  30  Prefactor     .67366        .19372       -.66501E-06   -.64840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8854
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5149
  Prefactor  = 57.1066
  norm       = 8.01458
  Prefactor  = 9.52424
  Prefactor  = 13.3183
  Prefactor  = 7.67977
  norm       = 4.51236
  norm       = 0.0001
  Prefactor  = 10.2367
  Prefactor  = 0.0001
  Prefactor  = 0.000100243
  Prefactor  = 17.4915
  norm       = 2.88601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5027
  Normalizat = 0.945407
  Prefactor  = 0.673659
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.779     FROM HESSE     STATUS=OK           592 CALLS     5079 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9550        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9993        13.854        .10081E-02   -1.5308    
   4  Prefactor     .10000E-03    62.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5254        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4887        .76609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.885        22.901        .62675E-04   -1.4428    
   9  Prefactor     .10000E-03    2.1187        .36678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3330        .14433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.515        27.945        .11323E-03   -1.5000    
  14  Prefactor     57.107        50.001        .53062E-04   -1.4195    
  15  norm          8.0146        8.1537        .70812E-03   -1.5142    
  16  Prefactor     9.5242        13.291        .12986E-03   -1.5091    
  17  Prefactor     13.318        11.247        .54877E-03   -1.4978    
  18  Prefactor     7.6798        11.996        .14468E-03   -1.5154    
  19  norm          4.5124        2.4100        .64733E-04   -1.5283    
  20  norm          .10000E-03    2.0254        .89297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.237        14.554        .12529E-03   -1.5068    
  22  Prefactor     .10000E-03    31.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10024E-03    205.87        .62941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.492        28.214        .95673E-04   -1.4871    
  25  norm          2.8860        1.2631        .45902E-04   -1.5368    
  26  Prefactor     .10000E-03    3.6253        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          13.503        14.567        .10901E-03   -1.4973    
  29  Normalizat    .94541        .24170        .22906E-03   -.94882    
  30  Prefactor     .67366        .22895        .26865E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64884e-09
Minuit parameter uncertainties:
  1  0.000140131
  2  1.00698e-05
  3  13.8649
  4  0.000341204
  5  1.89993e-06
  6  7.62701e-07
  7  0.000174814
  8  22.9059
  9  2.40047e-05
  10  8.37176e-06
  11  2.24766e-06
  12  1.30791e-06
  13  27.9744
  14  50.0375
  15  8.15484
  16  13.2951
  17  11.2493
  18  12.0002
  19  2.41009
  20  2.88264e-06
  21  14.5595
  22  4.71269e-05
  23  0.0141826
  24  28.2351
  25  1.26311
  26  3.10984e-08
  27  1.85541e-06
  28  14.5708
  29  0.241982
  30  0.22927
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.308e-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:  6.737e-01  2.293e-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.454e-01  2.420e-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: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/673184/likelihoodResults_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.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) = 4152.77949333
delta logL = -0.000893073954103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4152.77860025
delta logL = 1.12950147013e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3247       1.0000          .0000       5.0000    
     3 'Normalizat'    .94540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67369       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.

 FCN=   4152.719     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      279 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10559        33.282        .13829E-01    .54838E-03
   2  alpha         5.0000        2.7310        .16512    ** at limit **
   3  Normalizat    .92408        .18399        .22906E-03    .21356E-03
   4  Prefactor     .68791        .88407E-01    .26865E-03    .16407E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.105594
  alpha      = 5
  Normalizat = 0.924077
  Prefactor  = 0.68791
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.719     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10559        .33010        .56784E-03   -1.5643    
   2  alpha         5.0000        4.7327        .66048E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92408        .23258        .45811E-04   -.95619    
   4  Prefactor     .68791        .22989        .10746E-04   -1.0400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69195e-10
Minuit parameter uncertainties:
  1  0.330101
  2  8.92633e-05
  3  0.232831
  4  0.230204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673184': 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) = 4152.71931537
delta logL = 0.0592848850292

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.056e-01  3.301e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  8.926e-05  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:  6.879e-01  2.302e-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.241e-01  2.328e-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/673184/cmap_HighResolution_490752001_491011201_4FGL_J1438.9+3710_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-10 03:50:01.223987', job_id='673184', GAL2='0.69', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1631271001.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='5.93e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='970' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 673184: <4FGL_J1438.9+3710_daily_bin970> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin970> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 10 03:36:02 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:36:04 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:36:04 2021
Terminated at Fri Sep 10 03:50:01 2021
Results reported at Fri Sep 10 03:50:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin970 219.74 37.1752 490752001 491011201 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 :                                   682.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

