/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 4 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1
RA = 219.74, Dec = 37.1752
tmin = 239587201, tmax = 239846401
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='665765', job_status='RUN', time_executed='2021-09-10 03:11:25.447218', time_epoch_executed='1631268685.45' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665765

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665765/ft1_4FGL_J1438.9+3710_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665765/ft1_4FGL_J1438.9+3710_daily_bin1.fits outfile=/scratch/kocevski/665765/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1.fits ra=219.74 dec=37.1752 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.31
user 1.13
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.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/665765/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.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.50
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/665765/ltcube_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.fits outfile=/scratch/kocevski/665765/expmap_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.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/665765/ltcube_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.fits
.....................!
real 191.58
user 185.68
sys 5.54

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/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.fits scfile=/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.fits outfile=/scratch/kocevski/665765/cmap_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.fits scfile=/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.fits outfile=/scratch/kocevski/665765/cmap_HighResolution_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.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/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/665765/ft2_4FGL_J1438.9+3710_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665765/Model_4FGL_J1438.9+3710_daily_bin1.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/665765/ft1_filtered_4FGL_J1438.9+3710_daily_bin1.fits.....................!
real 37.59
user 36.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15361E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2391       1.0000         .10000E-03   10000.    
     3 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19337E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2624       1.0000         .10000E-03   10000.    
    19 'norm      '    .16035       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.1510       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79650       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=   4226.023     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3400 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1276.7       -.57616E-06** at limit **
   2  Prefactor     8.2375        7.8219        .13249E-06   -.79872E-04
   3  norm          .10000E-03    6.1013       -.45690E-07** at limit **
   4  Prefactor     1.5828        43.453        .19038E-04    .15568E-03
   5  Prefactor     .10000E-03    11.614       -.33977E-06** at limit **
   6  norm          .10000E-03    1.0668       -.15246E-07** at limit **
   7  Prefactor     .10000E-03    21.683        .94738E-06** at limit **
   8  Prefactor     .10000E-03    23.183       -.13924E-05** at limit **
   9  Prefactor     .10351E-03    3.3536        .28766E-05** at limit **
  10  norm          .10000E-03    5.3744       -.31684E-07** at limit **
  11  Prefactor     .10000E-03    13.135        .63577E-06** at limit **
  12  norm          .10000E-03    2.4143        .10422E-07** at limit **
  13  Prefactor     19.958        40.793       -.17112E-06   -.30612E-05
  14  Prefactor     .10000E-03    16.939       -.26874E-06** at limit **
  15  norm          .10000E-03    2.8574       -.21677E-08** at limit **
  16  Prefactor     .10000E-03    5.6176       -.41109E-08** at limit **
  17  Prefactor     .10000E-03    2.0392       -.59184E-08** at limit **
  18  Prefactor     5.2632        6.1501        .80766E-07    .19575E-04
  19  norm          .16072        1.1691        .39287E-06    .90026E-04
  20  norm          .10000E-03    2.9620        .11357E-07** at limit **
  21  Prefactor     .10000E-03    3.3467        .14387E-07** at limit **
  22  Prefactor     .10000E-03    64.368        .86331E-06** at limit **
  23  Prefactor     .10000E-03    14.722       -.29537E-06** at limit **
  24  Prefactor     .10000E-03    8.0084       -.26601E-06** at limit **
  25  norm          5.1497        1.6835       -.15606E-07   -.70980E-03
  26  Prefactor     .10000E-03    22.629        .76613E-07** at limit **
  27  Prefactor     .10000E-03    8.3190        .30494E-06** at limit **
  28  norm          .10000E-03    6.7873        .21131E-07** at limit **
  29  Normalizat    1.0438        .18679       -.10127E-05   -.31546E-03
  30  Prefactor     .79641        .19598        .13988E-06   -.21121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Prefactor  = 8.23753
  norm       = 0.0001
  Prefactor  = 1.5828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000103511
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.9578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26317
  norm       = 0.160724
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.14973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04385
  Prefactor  = 0.796411
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.023     FROM HESSE     STATUS=OK           572 CALLS     3972 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    1314.2        .36398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2375        7.8463        .13967E-03   -1.5134    
   3  norm          .10000E-03    6.1142        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5828        43.908        .16818E-02   -1.5456    
   5  Prefactor     .10000E-03    11.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0679        .65570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10351E-03    85.658        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.3774        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4311        .98627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.958        40.796        .89653E-04   -1.4814    
  14  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8590        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6308        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0408        .90642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2632        6.1483        .16967E-03   -1.5249    
  19  norm          .16072        1.1657        .13518E-03   -1.5628    
  20  norm          .10000E-03    3.0250        .10921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3547        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0552        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.1497        1.6768        .45904E-04   -1.5254    
  26  Prefactor     .10000E-03    22.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.3294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.7992        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0438        .21708        .20871E-03   -.91576    
  30  Prefactor     .79641        .23023        .25373E-03   -.99861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80697e-08
Minuit parameter uncertainties:
  1  0.0156228
  2  7.84729
  3  3.48401e-06
  4  16.686
  5  5.22305e-05
  6  1.99835e-06
  7  0.000469393
  8  0.000197895
  9  0.0347353
  10  6.67232e-06
  11  0.000116848
  12  7.09031e-08
  13  40.8532
  14  4.40736e-05
  15  2.59288e-07
  16  3.70134e-06
  17  4.3294e-07
  18  6.14904
  19  0.865458
  20  2.21557e-06
  21  2.36828e-06
  22  0.000398311
  23  7.89208e-05
  24  5.1256e-05
  25  1.67678
  26  7.86541e-05
  27  4.68126e-05
  28  8.97109e-06
  29  0.217263
  30  0.230511
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  7.090e-08  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.964e-01  2.305e-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.044e+00  2.173e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665765/likelihoodResults_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.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) = 4226.02459313
delta logL = -0.00194244759859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4226.0226507
delta logL = -1.0890289559e-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.3118       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79642       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=   4226.023     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      231 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1352        .98638E-03** at limit **
   2  alpha         2.4708        3.6335        .16520       -.87399E-08
   3  Normalizat    1.0438        .21159        .20871E-03   -.71359E-04
   4  Prefactor     .79641        .22873        .25373E-03   -.62908E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.47078
  Normalizat = 1.04385
  Prefactor  = 0.79641
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.023     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4466        .19728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4708        3.2575        .66080E-02   -.11690E-01
   3  Normalizat    1.0438        .21181        .83482E-05   -.91576    
   4  Prefactor     .79641        .22896        .10149E-04   -.99861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70159e-12
Minuit parameter uncertainties:
  1  5.31869e-06
  2  323.553
  3  0.211979
  4  0.229234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665765': 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) = 4226.02265056
delta logL = 1.28910869535e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.319e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.471e+00  3.236e+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.964e-01  2.292e-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.044e+00  2.120e-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/665765/cmap_HighResolution_239587201_239846401_4FGL_J1438.9+3710_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-10 03:21:51.505877', job_id='665765', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631269311.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:21:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 665765: <4FGL_J1438.9+3710_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1 219.74 37.1752 239587201 239846401 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 :                                   622.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            647 sec.

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

