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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin618
RA = 219.74, Dec = 37.1752
tmin = 399513601, tmax = 399772801
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='670374', job_status='RUN', time_executed='2021-09-10 03:29:00.986810', time_epoch_executed='1631269740.99' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670374

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670374/ft1_4FGL_J1438.9+3710_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670374/ft1_4FGL_J1438.9+3710_daily_bin618.fits outfile=/scratch/kocevski/670374/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin618.fits ra=219.74 dec=37.1752 rad=12.0 tmin=399513601.0 tmax=399772801.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.87
user 3.63
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670374/ft1_filtered_4FGL_J1438.9+3710_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/670374/ltcube_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.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/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits
.....................!
real 8.81
user 8.51
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670374/ft1_filtered_4FGL_J1438.9+3710_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/670374/ltcube_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.fits outfile=/scratch/kocevski/670374/expmap_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.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/670374/ltcube_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.fits
.....................!
real 140.63
user 137.15
sys 3.15

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/670374/ft1_filtered_4FGL_J1438.9+3710_daily_bin618.fits scfile=/scratch/kocevski/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits outfile=/scratch/kocevski/670374/cmap_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670374/ft1_filtered_4FGL_J1438.9+3710_daily_bin618.fits scfile=/scratch/kocevski/670374/ft2_4FGL_J1438.9+3710_daily_bin618.fits outfile=/scratch/kocevski/670374/cmap_HighResolution_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3403       1.0000         .10000E-03   10000.    
     3 'norm      '    20.703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21938E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .78255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0974       1.0000         .10000E-03   10000.    
    15 'norm      '    11.979       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93377E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55187       1.0000         .10000E-03   10000.    
    19 'norm      '    .36662       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.259       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3415       1.0000         .10000E-03   10000.    
    25 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.542       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    38.121       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78079       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=   4273.151     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4072 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.033        269.54        .21098E-04    .14712E-04
   2  Prefactor     2.3389        6.2886        .35907E-05    .69548E-03
   3  norm          20.701        16.149       -.19939E-06   -.37170E-05
   4  Prefactor     .10000E-03    10.164       -.24032E-07** at limit **
   5  Prefactor     .10000E-03    7.0913       -.23224E-07** at limit **
   6  norm          6.7182        4.4621       -.18982E-06    .12778E-04
   7  Prefactor     .10000E-03    12.085       -.50040E-08** at limit **
   8  Prefactor     .10000E-03    17.741       -.10317E-06** at limit **
   9  Prefactor     .10000E-03    1.4356       -.24813E-07** at limit **
  10  norm          .10000E-03    6.3681       -.17758E-08** at limit **
  11  Prefactor     .10014E-03    22.858        .13786E-05** at limit **
  12  norm          .78217        6.8384        .43288E-06    .11419E-03
  13  Prefactor     .10000E-03    19.907        .28394E-06** at limit **
  14  Prefactor     3.0953        42.633        .11327E-05    .33634E-04
  15  norm          11.980        9.6535        .58905E-07    .24747E-03
  16  Prefactor     .10473E-03    26.942       -.65632E-05** at limit **
  17  Prefactor     6.6192        7.0449        .41669E-06    .38412E-03
  18  Prefactor     .51077        6.1560        .16783E-05   -.19781E-03
  19  norm          .36609        1.1925       -.13023E-07    .14737E-03
  20  norm          .10000E-03    1.6668        .74010E-08** at limit **
  21  Prefactor     .10000E-03    3.6287       -.84978E-09** at limit **
  22  Prefactor     .10000E-03    139.57       -.49578E-05** at limit **
  23  Prefactor     20.259        18.706       -.12377E-06    .27090E-04
  24  Prefactor     6.3405        13.195        .75135E-06    .11691E-03
  25  norm          .10000E-03    1.6193        .90317E-06** at limit **
  26  Prefactor     27.566        15.946        .10972E-05   -.23647E-03
  27  Prefactor     .10000E-03    39.846       -.11068E-05** at limit **
  28  norm          38.113        24.135        .26459E-06    .58061E-04
  29  Normalizat    1.0024        .19607        .87353E-07    .45790E-03
  30  Prefactor     .78079        .20499        .19930E-06    .19080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0329
  Prefactor  = 2.33894
  norm       = 20.7005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.71824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100136
  norm       = 0.782168
  Prefactor  = 0.0001
  Prefactor  = 3.09531
  norm       = 11.9802
  Prefactor  = 0.000104725
  Prefactor  = 6.61918
  Prefactor  = 0.510769
  norm       = 0.366093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2586
  Prefactor  = 6.34053
  norm       = 0.000100001
  Prefactor  = 27.5662
  Prefactor  = 0.0001
  norm       = 38.1133
  Normalizat = 1.00242
  Prefactor  = 0.780792
 **********
 **   18 **HESSE 
 **********

 FCN=   4273.151     FROM HESSE     STATUS=OK           602 CALLS     4674 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.033        264.05        .12623E-03   -1.5074    
   2  Prefactor     2.3389        6.7224        .13401E-02   -1.5402    
   3  norm          20.701        16.189        .88029E-04   -1.4798    
   4  Prefactor     .10000E-03    10.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1023        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7182        4.4702        .10857E-03   -1.5190    
   7  Prefactor     .10000E-03    12.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4464        .76472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.3715        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    260.52        .58530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .78217        6.8824        .32617E-03   -1.5531    
  13  Prefactor     .10000E-03    19.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0953        42.644        .23043E-03   -1.5356    
  15  norm          11.980        9.6537        .11574E-03   -1.5016    
  16  Prefactor     .10473E-03    24.678        .72354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6192        6.9505        .15599E-03   -1.5193    
  18  Prefactor     .51077        27.801        .28903E-02   -1.5565    
  19  norm          .36609        1.1054        .11743E-02   -1.5587    
  20  norm          .10000E-03    1.6769        .82339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6351        .12152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    139.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.259        18.670        .88987E-04   -1.4807    
  24  Prefactor     6.3405        13.189        .79696E-03   -1.5204    
  25  norm          .10000E-03    3.6967        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.566        16.522        .76336E-04   -1.4657    
  27  Prefactor     .10000E-03    39.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          38.113        24.101        .64915E-04   -1.4472    
  29  Normalizat    1.0024        .23284        .21540E-03   -.92949    
  30  Prefactor     .78079        .24168        .26330E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24099e-09
Minuit parameter uncertainties:
  1  103.452
  2  6.72462
  3  16.1927
  4  1.03986e-05
  5  7.77595e-06
  6  4.47039
  7  1.81425e-05
  8  3.88802e-05
  9  2.58599e-06
  10  1.3241e-06
  11  0.0119712
  12  4.64077
  13  1.64705e-06
  14  22.9974
  15  9.65493
  16  0.021606
  17  6.95132
  18  7.53954
  19  1.10546
  20  2.75137e-06
  21  4.07529e-06
  22  0.000512444
  23  18.6759
  24  13.195
  25  9.80518e-05
  26  16.5246
  27  0.000124103
  28  24.1074
  29  0.233077
  30  0.24201
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  7.822e-01  4.641e+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:  7.808e-01  2.420e-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.002e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/670374/likelihoodResults_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.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) = 4273.05198239
delta logL = 0.0987429707948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4273.05139074
delta logL = 0.0993346260393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1870       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77207       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=   4273.051     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1856        8.0110        .69581E-02    .41933E-03
   2  alpha         1.6184        1.3959        .44959       -.15682E-04
   3  Normalizat    1.0077        .18329        .46260E-01    .53316E-05
   4  Prefactor     .77171        .20274        .43353E-01    .12750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18555
  alpha      = 1.61837
  Normalizat = 1.00775
  Prefactor  = 0.771712
 **********
 **   18 **HESSE 
 **********

 FCN=   4273.051     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1856        5.1189        .22006E-03   -1.5412    
   2  alpha         1.6184        1.0941        .26100E-01   -.36040    
   3  Normalizat    1.0077        .21503        .21485E-03   -.92771    
   4  Prefactor     .77171        .23650        .26460E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49234e-12
Minuit parameter uncertainties:
  1  5.11988
  2  1.13854
  3  0.215215
  4  0.236808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670374': 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) = 4273.05138883
delta logL = 0.0993365334616

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.186e+00  5.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.618e+00  1.139e+00  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.717e-01  2.368e-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.008e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/670374/cmap_HighResolution_399513601_399772801_4FGL_J1438.9+3710_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-10 03:37:29.687976', job_id='670374', GAL2='0.77', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1631270249.69', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='618' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 670374: <4FGL_J1438.9+3710_daily_bin618> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin618> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:19 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:21 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:26:21 2021
Terminated at Fri Sep 10 03:37:30 2021
Results reported at Fri Sep 10 03:37:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin618 219.74 37.1752 399513601 399772801 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 :                                   505.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            671 sec.

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

