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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin944
RA = 219.74, Dec = 37.1752
tmin = 484012801, tmax = 484272001
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='671928', job_status='RUN', time_executed='2021-09-10 03:34:22.721273', time_epoch_executed='1631270062.72' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671928/ft1_4FGL_J1438.9+3710_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671928/ft2_4FGL_J1438.9+3710_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671928/ft1_4FGL_J1438.9+3710_daily_bin944.fits outfile=/scratch/kocevski/671928/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin944.fits ra=219.74 dec=37.1752 rad=12.0 tmin=484012801.0 tmax=484272001.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.62
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671928/ft1_filtered_4FGL_J1438.9+3710_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/671928/ft2_4FGL_J1438.9+3710_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/671928/ltcube_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.fits outfile=/scratch/kocevski/671928/expmap_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.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/671928/ltcube_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.fits
.....................!
real 193.83
user 187.41
sys 5.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/671928/ft1_filtered_4FGL_J1438.9+3710_daily_bin944.fits scfile=/scratch/kocevski/671928/ft2_4FGL_J1438.9+3710_daily_bin944.fits outfile=/scratch/kocevski/671928/cmap_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671928/ft1_filtered_4FGL_J1438.9+3710_daily_bin944.fits scfile=/scratch/kocevski/671928/ft2_4FGL_J1438.9+3710_daily_bin944.fits outfile=/scratch/kocevski/671928/cmap_HighResolution_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5448       1.0000         .10000E-03   10000.    
     3 'norm      '    12.207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.245       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12045       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.790       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.594       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0217       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6432       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3340       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4002       1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
    25 'norm      '    .13522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.740       1.0000         .10000E-03   10000.    
    28 'norm      '    .81361E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65535       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1546       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=   5398.895     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3961 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.031        .44964E-07** at limit **
   2  Prefactor     3.5499        6.1291        .30873E-05    .27228E-03
   3  norm          12.210        12.405        .85748E-07   -.10074E-05
   4  Prefactor     .10000E-03    4.5336        .33119E-07** at limit **
   5  Prefactor     23.255        23.916        .14013E-05   -.22195E-04
   6  norm          .10000E-03    1.0222        .19795E-07** at limit **
   7  Prefactor     .10000E-03    4.8505        .62551E-07** at limit **
   8  Prefactor     .10000E-03    8.8375        .52545E-06** at limit **
   9  Prefactor     .11820        1.7411       -.72379E-06    .45177E-03
  10  norm          .10000E-03    8.9391       -.26015E-06** at limit **
  11  Prefactor     19.786        29.505       -.11024E-05    .61373E-07
  12  norm          5.4818        6.0245        .42522E-06    .65437E-05
  13  Prefactor     17.216        59.628        .17681E-06   -.15536E-05
  14  Prefactor     22.609        30.185        .25172E-05   -.20054E-04
  15  norm          2.0209        4.7623        .15923E-06    .68938E-05
  16  Prefactor     7.6441        7.9115       -.24253E-07   -.42488E-05
  17  Prefactor     .10000E-03    3.0433       -.21564E-10** at limit **
  18  Prefactor     2.3341        4.1675        .19293E-06    .11772E-04
  19  norm          2.4004        1.5972        .83105E-07    .15394E-03
  20  norm          .10000E-03    2.2406       -.18175E-06** at limit **
  21  Prefactor     .10000E-03    4.9117       -.34112E-06** at limit **
  22  Prefactor     .10000E-03    55.386       -.61827E-06** at limit **
  23  Prefactor     .10000E-03    31.211       -.80774E-06** at limit **
  24  Prefactor     10.382        10.864        .68771E-06    .52992E-04
  25  norm          .13474        .46897        .16886E-06    .63247E-04
  26  Prefactor     .10000E-03    3.2956        .17860E-07** at limit **
  27  Prefactor     16.734        18.905        .19043E-05    .42738E-03
  28  norm          .30053E-01    12.107       -.30156E-05    .35592E-03
  29  Normalizat    .65461        .18341       -.15734E-05    .20817E-03
  30  Prefactor     1.1555        .18266        .77494E-07    .12760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.54994
  norm       = 12.2104
  Prefactor  = 0.0001
  Prefactor  = 23.2551
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.118204
  norm       = 0.0001
  Prefactor  = 19.7859
  norm       = 5.48185
  Prefactor  = 17.216
  Prefactor  = 22.6095
  norm       = 2.02091
  Prefactor  = 7.64407
  Prefactor  = 0.0001
  Prefactor  = 2.33411
  norm       = 2.40042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3823
  norm       = 0.134741
  Prefactor  = 0.0001
  Prefactor  = 16.7339
  norm       = 0.0300528
  Normalizat = 0.654611
  Prefactor  = 1.15547
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.895     FROM HESSE     STATUS=OK           600 CALLS     4561 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5499        6.1831        .10734E-02   -1.5331    
   3  norm          12.210        12.419        .11465E-03   -1.5009    
   4  Prefactor     .10000E-03    4.5354        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.255        24.001        .83081E-04   -1.4743    
   6  norm          .10000E-03    1.0261        .72536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8614        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.8804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11820        13.552        .17533E-02   -1.5639    
  10  norm          .10000E-03    8.9991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.786        29.608        .90033E-04   -1.4818    
  12  norm          5.4818        6.0008        .17168E-03   -1.5240    
  13  Prefactor     17.216        59.481        .96511E-04   -1.4878    
  14  Prefactor     22.609        30.017        .84267E-04   -1.4757    
  15  norm          2.0209        4.7263        .23948E-03   -1.5424    
  16  Prefactor     7.6441        7.9092        .14505E-03   -1.5155    
  17  Prefactor     .10000E-03    3.0508        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3341        4.1454        .19487E-03   -1.5402    
  19  norm          2.4004        1.5913        .71308E-04   -1.5398    
  20  norm          .10000E-03    2.3134        .21431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9483        .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.382        10.814        .12439E-03   -1.5063    
  25  norm          .13474        .52013        .90043E-03   -1.5635    
  26  Prefactor     .10000E-03    3.3051        .13019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.734        19.650        .97891E-04   -1.4890    
  28  norm          .30053E-01    13.868        .74417E-01   -1.5673    
  29  Normalizat    .65461        .21178        .25042E-03   -1.0571    
  30  Prefactor     1.1555        .21161        .21941E-03   -.87713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52386e-09
Minuit parameter uncertainties:
  1  6.13118e-06
  2  6.18419
  3  12.4214
  4  3.28832e-06
  5  24.0107
  6  1.6843e-06
  7  1.1069e-05
  8  2.5246e-05
  9  2.53082
  10  1.71941e-05
  11  29.6303
  12  6.00149
  13  59.6872
  14  30.0369
  15  4.72721
  16  7.91031
  17  1.03159e-06
  18  4.14594
  19  1.59128
  20  1.15682e-05
  21  3.71072e-05
  22  4.28437e-05
  23  0.000215482
  24  10.8164
  25  0.520148
  26  1.66464e-06
  27  19.6574
  28  1.28933
  29  0.212041
  30  0.21177
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.155e+00  2.118e-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:  6.546e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 8.51e-06 +/- 9.32e-06

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

Saving results to:
/scratch/kocevski/671928/likelihoodResults_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.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) = 5397.26891678
delta logL = 1.62603796867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5397.15353156
delta logL = 1.74142319293

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5397.154     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      333 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55996        6.3831        .58680E-02    .19330E-02
   2  alpha         5.0000        4.4609        .46341    ** at limit **
   3  Normalizat    .52014        .97039E-01    .62993E-01   -.71669E-05
   4  Prefactor     1.2615        .11029        .47808E-01   -.34832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.559957
  alpha      = 5
  Normalizat = 0.520136
  Prefactor  = 1.26146
 **********
 **   18 **HESSE 
 **********

 FCN=   5397.154     FROM HESSE     STATUS=OK            33 CALLS      366 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55996        .39827        .26295E-04   -1.5558    
   2  alpha         5.0000        1.0213        .44028        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52014        .19524        .27874E-03   -1.1149    
   4  Prefactor     1.2615        .21520        .21133E-03   -.84460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07648e-10
Minuit parameter uncertainties:
  1  0.398272
  2  3.13148e-06
  3  0.195497
  4  0.215355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671928': 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) = 5397.15352968
delta logL = 1.74142507227

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.600e-01  3.983e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  3.131e-06  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.261e+00  2.154e-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:  5.201e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.09e-07 +/- 7.68e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/671928/cmap_HighResolution_484012801_484272001_4FGL_J1438.9+3710_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='1.48e-05', photon_flux_error='2.72e-08', dlogl='1.74e+00', energy_flux='8.51e-06', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-10 03:47:27.361336', photon_index_error2='0.00', photon_index2='5.00', ts='1.67', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='1.05e-05', EG='0.65', time_epoch_completed='1631270847.36', return_code='0', job_id='671928', GAL2='1.26', EG2='0.52', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='7.68e-08', ts2='5.78', photon_index='2.31' WHERE bin_id='944' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 671928: <4FGL_J1438.9+3710_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin944 219.74 37.1752 484012801 484272001 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

