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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin693
RA = 219.74, Dec = 37.1752
tmin = 418953601, tmax = 419212801
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='671510', job_status='RUN', time_executed='2021-09-10 03:31:27.344784', time_epoch_executed='1631269887.34' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671510/ft1_4FGL_J1438.9+3710_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671510/ft1_4FGL_J1438.9+3710_daily_bin693.fits outfile=/scratch/kocevski/671510/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin693.fits ra=219.74 dec=37.1752 rad=12.0 tmin=418953601.0 tmax=419212801.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.54
user 5.23
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671510/ft1_filtered_4FGL_J1438.9+3710_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/671510/ltcube_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.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/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits
.....................!
real 12.07
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671510/ft1_filtered_4FGL_J1438.9+3710_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/671510/ltcube_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.fits outfile=/scratch/kocevski/671510/expmap_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.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/671510/ltcube_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.fits
.....................!
real 190.26
user 185.13
sys 4.75

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671510/ft1_filtered_4FGL_J1438.9+3710_daily_bin693.fits scfile=/scratch/kocevski/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits outfile=/scratch/kocevski/671510/cmap_HighResolution_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.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/671510/ft1_filtered_4FGL_J1438.9+3710_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/671510/ft2_4FGL_J1438.9+3710_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671510/Model_4FGL_J1438.9+3710_daily_bin693.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/671510/ft1_filtered_4FGL_J1438.9+3710_daily_bin693.fits.....................!
real 34.66
user 33.26
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.465       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6412       1.0000         .10000E-03   10000.    
    10 'norm      '    20.721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2117       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.552       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6195       1.0000         .10000E-03   10000.    
    19 'norm      '    .26835       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    178.30       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.461       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6129       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15899E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13866E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    21.350       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83609       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75006       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=   3559.187     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3892 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.060       -.21326E-05** at limit **
   2  Prefactor     .10000E-03    2.6458       -.12091E-06** at limit **
   3  norm          .10000E-03    6.7559        .37693E-07** at limit **
   4  Prefactor     .10000E-03    12.301        .33303E-06** at limit **
   5  Prefactor     16.477        23.757        .10824E-05    .63274E-04
   6  norm          .10000E-03    2.5335       -.74081E-07** at limit **
   7  Prefactor     .10000E-03    10.087       -.35724E-06** at limit **
   8  Prefactor     .10000E-03    27.768       -.59111E-06** at limit **
   9  Prefactor     3.6440        4.5081        .13492E-06    .53926E-04
  10  norm          20.724        17.652        .21327E-06    .50591E-04
  11  Prefactor     2.3164        186.08       -.19588E-04   -.26876E-04
  12  norm          .10000E-03    2.9755        .15027E-06** at limit **
  13  Prefactor     .10000E-03    37.821        .20849E-05** at limit **
  14  Prefactor     17.572        37.933       -.11891E-05   -.62262E-06
  15  norm          .10000E-03    8.3164        .13821E-05** at limit **
  16  Prefactor     1.8776        38.244        .61400E-05    .70212E-04
  17  Prefactor     .10000E-03    7.0609        .29670E-07** at limit **
  18  Prefactor     9.6228        13.626        .10565E-06    .27222E-04
  19  norm          .26843        1.6576        .41619E-06   -.18696E-03
  20  norm          .10000E-03    1.8052       -.94421E-08** at limit **
  21  Prefactor     9.9835        9.6741        .94425E-07    .12040E-04
  22  Prefactor     178.32        114.14       -.11607E-05   -.48957E-04
  23  Prefactor     .10000E-03    13.986       -.67450E-07** at limit **
  24  Prefactor     11.465        16.872        .32263E-08    .39742E-05
  25  norm          5.6087        1.9114        .14423E-07   -.14579E-02
  26  Prefactor     .10077E-03    11.285        .24049E-05** at limit **
  27  Prefactor     .10000E-03    36.270        .12947E-05** at limit **
  28  norm          21.365        21.860       -.36450E-06   -.61542E-04
  29  Normalizat    .83551        .22318       -.25006E-05    .15582E-04
  30  Prefactor     .75047        .21577        .41126E-05    .57307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64403
  norm       = 20.7239
  Prefactor  = 2.31638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5724
  norm       = 0.0001
  Prefactor  = 1.87757
  Prefactor  = 0.0001
  Prefactor  = 9.62285
  norm       = 0.268431
  norm       = 0.0001
  Prefactor  = 9.98349
  Prefactor  = 178.319
  Prefactor  = 0.0001
  Prefactor  = 11.4648
  norm       = 5.60873
  Prefactor  = 0.000100771
  Prefactor  = 0.0001
  norm       = 21.3648
  Normalizat = 0.835513
  Prefactor  = 0.750469
 **********
 **   18 **HESSE 
 **********

 FCN=   3559.187     FROM HESSE     STATUS=OK           584 CALLS     4476 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6521        .94773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.7620        .15144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.477        23.817        .98704E-04   -1.4896    
   6  norm          .10000E-03    2.5900        .92677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6440        4.5160        .13142E-03   -1.5326    
  10  norm          20.724        17.640        .87990E-04   -1.4797    
  11  Prefactor     2.3164        192.34        .27658E-03   -1.5404    
  12  norm          .10000E-03    2.9892        .10049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.572        38.187        .95600E-04   -1.4869    
  15  norm          .10000E-03    8.3754        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8776        40.020        .15198E-02   -1.5434    
  17  Prefactor     .10000E-03    7.1231        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6228        13.623        .12921E-03   -1.5087    
  19  norm          .26843        2.5156        .13787E-02   -1.5604    
  20  norm          .10000E-03    1.8085        .78261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9835        9.6676        .12682E-03   -1.5076    
  22  Prefactor     178.32        113.17        .15113E-03   -1.3029    
  23  Prefactor     .10000E-03    14.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.465        16.852        .11834E-03   -1.5031    
  25  norm          5.6087        1.7665        .42467E-04   -1.5234    
  26  Prefactor     .10077E-03    78.561        .32114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    36.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          21.365        21.847        .86686E-04   -1.4783    
  29  Normalizat    .83551        .25084        .22347E-03   -.98765    
  30  Prefactor     .75047        .24306        .25131E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07406e-08
Minuit parameter uncertainties:
  1  0.000110046
  2  5.88757e-06
  3  3.24409e-06
  4  4.32941e-06
  5  23.8311
  6  5.2592e-06
  7  1.46087e-05
  8  0.000168367
  9  4.51642
  10  17.6447
  11  42.3563
  12  4.423e-06
  13  0.000182804
  14  38.24
  15  3.24837e-05
  16  17.3494
  17  1.33251e-05
  18  13.6273
  19  1.64328
  20  3.61541e-07
  21  9.66915
  22  113.307
  23  8.05781e-06
  24  16.8589
  25  1.76647
  26  0.0155868
  27  2.64125e-05
  28  21.8552
  29  0.251188
  30  0.243408
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.505e-01  2.434e-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:  8.355e-01  2.512e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671510/likelihoodResults_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.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) = 3559.18813015
delta logL = -0.00158205481603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3559.18654811
delta logL = -8.9767127065e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2949       1.0000          .0000       5.0000    
     3 'Normalizat'    .83552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75048       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=   3559.187     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      229 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.02        .10139E-01** at limit **
   2  alpha         1.8780        2.5285        .16531        .35348E-07
   3  Normalizat    .83551        .35124E-01    .22348E-03    .99961E-04
   4  Prefactor     .75047        .37837E-01    .25130E-03    .88984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87804
  Normalizat = 0.835514
  Prefactor  = 0.750469
 **********
 **   18 **HESSE 
 **********

 FCN=   3559.187     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4579        .10787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8780        2.7479        .66125E-02   -.25143    
   3  Normalizat    .83551        .22140        .89393E-05   -.98765    
   4  Prefactor     .75047        .23841        .10052E-04   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53738e-11
Minuit parameter uncertainties:
  1  5.09704e-06
  2  198.297
  3  0.221636
  4  0.238735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671510': 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) = 3559.18654586
delta logL = 2.24026325668e-06

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.097e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.878e+00  1.983e+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:  7.505e-01  2.387e-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:  8.355e-01  2.216e-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/671510/cmap_HighResolution_418953601_419212801_4FGL_J1438.9+3710_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-10 03:41:35.397212', job_id='671510', GAL2='0.75', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631270495.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='693' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 671510: <4FGL_J1438.9+3710_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin693 219.74 37.1752 418953601 419212801 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

