/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 109 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin265
RA = 219.74, Dec = 37.1752
tmin = 308016001, tmax = 308275201
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='667319', job_status='RUN', time_executed='2021-09-10 03:18:13.588386', time_epoch_executed='1631269093.59' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667319/ft1_4FGL_J1438.9+3710_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667319/ft1_4FGL_J1438.9+3710_daily_bin265.fits outfile=/scratch/kocevski/667319/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin265.fits ra=219.74 dec=37.1752 rad=12.0 tmin=308016001.0 tmax=308275201.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.41
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.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/667319/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/667319/ltcube_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.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/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits
.....................!
real 11.58
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/667319/ltcube_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.fits outfile=/scratch/kocevski/667319/expmap_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.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/667319/ltcube_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.fits
.....................!
real 189.80
user 184.18
sys 5.23

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/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits outfile=/scratch/kocevski/667319/cmap_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits outfile=/scratch/kocevski/667319/cmap_HighResolution_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.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/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/667319/ft2_4FGL_J1438.9+3710_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667319/Model_4FGL_J1438.9+3710_daily_bin265.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/667319/ft1_filtered_4FGL_J1438.9+3710_daily_bin265.fits.....................!
real 52.19
user 50.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4267       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .44355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5283       1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.346       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1543       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2248       1.0000         .10000E-03   10000.    
    20 'norm      '    .10856E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.143       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4464       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6161       1.0000         .10000E-03   10000.    
    28 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0764       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0275       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=   6770.689     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3332 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.990        .94151E-05** at limit **
   2  Prefactor     1.4271        2.4352       -.82381E-07   -.11137E-02
   3  norm          .10000E-03    3.9852        .12524E-05** at limit **
   4  Prefactor     .10000E-03    11.765       -.20487E-05** at limit **
   5  Prefactor     .10000E-03    7.3673       -.35245E-06** at limit **
   6  norm          .44077        2.8654       -.28163E-06    .26625E-04
   7  Prefactor     14.082        15.542        .59280E-07    .23478E-04
   8  Prefactor     8.3899        16.409       -.83420E-06    .26935E-04
   9  Prefactor     .10000E-03    1.6189       -.13946E-06** at limit **
  10  norm          .10000E-03    4.6403        .12570E-05** at limit **
  11  Prefactor     8.5266        12.196       -.56114E-07    .14560E-04
  12  norm          .10000E-03    3.8710        .61903E-06** at limit **
  13  Prefactor     .10000E-03    22.218       -.87792E-05** at limit **
  14  Prefactor     13.331        33.988       -.21882E-04    .78720E-06
  15  norm          .10000E-03    3.4348        .27360E-07** at limit **
  16  Prefactor     2.1528        14.078        .12687E-05   -.19706E-03
  17  Prefactor     .10000E-03    4.3952       -.17895E-05** at limit **
  18  Prefactor     .10000E-03    3.8033       -.11450E-05** at limit **
  19  norm          1.2245        1.3080        .28819E-07   -.54996E-03
  20  norm          .10000E-03    1.9837       -.14101E-06** at limit **
  21  Prefactor     6.1481        5.8064       -.23255E-06    .92967E-04
  22  Prefactor     .10000E-03    58.883       -.99629E-06** at limit **
  23  Prefactor     .10000E-03    7.2034        .66036E-06** at limit **
  24  Prefactor     .10000E-03    7.7934       -.91305E-06** at limit **
  25  norm          13.143        2.4707       -.59159E-08    .86344E-04
  26  Prefactor     7.4462        14.941       -.38018E-07   -.66557E-04
  27  Prefactor     5.6191        10.982       -.83895E-06   -.11845E-03
  28  norm          .10000E-03    11.179        .28977E-05** at limit **
  29  Normalizat    1.0765        .17214        .23591E-05    .30196E-04
  30  Prefactor     1.0273        .18481       -.38676E-06    .17932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.42712
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440771
  Prefactor  = 14.0819
  Prefactor  = 8.38987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.52661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3314
  norm       = 0.0001
  Prefactor  = 2.15285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22454
  norm       = 0.0001
  Prefactor  = 6.1481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1431
  Prefactor  = 7.44618
  Prefactor  = 5.61914
  norm       = 0.0001
  Normalizat = 1.07653
  Prefactor  = 1.02728
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.689     FROM HESSE     STATUS=OK           586 CALLS     3918 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4271        6.6373        .18094E-02   -1.5469    
   3  norm          .10000E-03    3.9882        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44077        5.8508        .26105E-02   -1.5575    
   7  Prefactor     14.082        15.413        .53364E-03   -1.4957    
   8  Prefactor     8.3899        16.339        .13837E-03   -1.5129    
   9  Prefactor     .10000E-03    1.6639        .20432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6407        .17309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5266        12.197        .13727E-03   -1.5124    
  12  norm          .10000E-03    3.9044        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.331        34.054        .10964E-03   -1.4978    
  15  norm          .10000E-03    3.4389        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1528        15.614        .14035E-02   -1.5415    
  17  Prefactor     .10000E-03    4.4300        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8368        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2245        1.2944        .46789E-03   -1.5487    
  20  norm          .10000E-03    4.1380        .21877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1481        5.6442        .16195E-03   -1.5212    
  22  Prefactor     .10000E-03    59.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.2224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.143        2.4802        .46524E-04   -1.4983    
  26  Prefactor     7.4462        15.029        .73486E-03   -1.5162    
  27  Prefactor     5.6191        10.912        .16952E-03   -1.5234    
  28  norm          .10000E-03    11.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0765        .20675        .23745E-03   -.90509    
  30  Prefactor     1.0273        .22036        .27083E-03   -.91826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66162e-09
Minuit parameter uncertainties:
  1  8.92737e-07
  2  6.15631
  3  4.1638e-06
  4  8.85478e-06
  5  1.39645e-05
  6  3.21178
  7  15.4177
  8  16.3478
  9  4.32623e-06
  10  2.47127e-07
  11  12.201
  12  2.78786e-06
  13  2.15108e-05
  14  34.1032
  15  3.41964e-06
  16  11.5997
  17  7.34757e-06
  18  6.84526e-06
  19  1.29439
  20  8.04494e-07
  21  5.64466
  22  4.68799e-05
  23  7.92489e-06
  24  1.42442e-05
  25  2.4802
  26  15.0367
  27  10.9154
  28  2.44555e-05
  29  0.206904
  30  0.22055
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.788e-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:  1.027e+00  2.206e-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.077e+00  2.069e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667319/likelihoodResults_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.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) = 6770.69034403
delta logL = -0.00122020642993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6770.68912368
delta logL = 1.42797944136e-07

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.3265       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0273       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=   6770.689     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      192 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4998        .90712E-02** at limit **
   2  alpha         2.3434        3.5523        .41277       -.21569E-04
   3  Normalizat    1.0765        .16359        .39047E-01   -.12507E-03
   4  Prefactor     1.0273        .18354        .61240E-01    .78245E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.34335
  Normalizat = 1.07653
  Prefactor  = 1.02728
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.689     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9944        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3434        3.5143        .16511       -.62700E-01
   3  Normalizat    1.0765        .19416        .23745E-03   -.90509    
   4  Prefactor     1.0273        .21770        .27083E-03   -.91826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69076e-10
Minuit parameter uncertainties:
  1  8.9361e-05
  2  2.49714
  3  0.194289
  4  0.217892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667319': 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) = 6770.68912354
delta logL = 2.88304363494e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  8.936e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.343e+00  2.497e+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:  1.027e+00  2.179e-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.077e+00  1.943e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/667319/cmap_HighResolution_308016001_308275201_4FGL_J1438.9+3710_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-10 03:31:57.081474', job_id='667319', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631269917.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='265' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 667319: <4FGL_J1438.9+3710_daily_bin265> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin265> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:14 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16:15 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:16:15 2021
Terminated at Fri Sep 10 03:31:57 2021
Results reported at Fri Sep 10 03:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin265 219.74 37.1752 308016001 308275201 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 :                                   821.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

