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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin69
RA = 219.74, Dec = 37.1752
tmin = 257212801, tmax = 257472001
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='665865', job_status='RUN', time_executed='2021-09-10 03:13:45.598797', time_epoch_executed='1631268825.6' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665865/ft1_4FGL_J1438.9+3710_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665865/ft2_4FGL_J1438.9+3710_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665865/ft1_4FGL_J1438.9+3710_daily_bin69.fits outfile=/scratch/kocevski/665865/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin69.fits ra=219.74 dec=37.1752 rad=12.0 tmin=257212801.0 tmax=257472001.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.45
user 2.10
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665865/ft1_filtered_4FGL_J1438.9+3710_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/665865/ft2_4FGL_J1438.9+3710_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/665865/ltcube_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.fits outfile=/scratch/kocevski/665865/expmap_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.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/665865/ltcube_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.fits
.....................!
real 190.94
user 185.69
sys 4.88

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/665865/ft1_filtered_4FGL_J1438.9+3710_daily_bin69.fits scfile=/scratch/kocevski/665865/ft2_4FGL_J1438.9+3710_daily_bin69.fits outfile=/scratch/kocevski/665865/cmap_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665865/ft1_filtered_4FGL_J1438.9+3710_daily_bin69.fits scfile=/scratch/kocevski/665865/ft2_4FGL_J1438.9+3710_daily_bin69.fits outfile=/scratch/kocevski/665865/cmap_HighResolution_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.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.58
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8714       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0890       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8468       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .27391       1.0000         .10000E-03   10000.    
    20 'norm      '    .13097E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    79.009       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.931       1.0000         .10000E-03   10000.    
    25 'norm      '    12.903       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71041       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1100       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=   5940.337     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3920 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.233        90.052        .51167E-05   -.57628E-04
   2  Prefactor     3.8697        5.3343       -.14361E-05   -.78818E-03
   3  norm          9.5696        13.389       -.58051E-06   -.10544E-03
   4  Prefactor     .10000E-03    7.0471        .99666E-07** at limit **
   5  Prefactor     11.706        21.045        .12099E-06   -.31479E-05
   6  norm          .10000E-03    1.0354        .33608E-07** at limit **
   7  Prefactor     .49399        40.524        .16069E-04   -.94388E-04
   8  Prefactor     .10000E-03    42.484        .12314E-05** at limit **
   9  Prefactor     1.0885        3.6803        .69907E-07   -.63420E-04
  10  norm          .10000E-03    5.0595        .45858E-07** at limit **
  11  Prefactor     8.8457        14.467       -.16090E-06   -.37055E-04
  12  norm          9.3252        6.2737       -.11530E-06   -.17862E-03
  13  Prefactor     .10000E-03    18.565       -.40725E-08** at limit **
  14  Prefactor     .10000E-03    11.740        .60790E-07** at limit **
  15  norm          5.2612        8.5085        .12365E-06   -.55908E-04
  16  Prefactor     4.4952        12.258       -.19474E-05   -.28463E-03
  17  Prefactor     .10000E-03    2.2128        .31869E-07** at limit **
  18  Prefactor     .10000E-03    7.3128        .36906E-06** at limit **
  19  norm          .27382        .83867        .45266E-06    .94468E-03
  20  norm          .10000E-03    11.099        .91679E-05** at limit **
  21  Prefactor     .10000E-03    6.4787        .21201E-06** at limit **
  22  Prefactor     78.975        67.604       -.83918E-06   -.11054E-04
  23  Prefactor     .10000E-03    17.433        .33640E-06** at limit **
  24  Prefactor     21.917        14.354        .23025E-06   -.29818E-03
  25  norm          12.903        2.0628        .86697E-08   -.42327E-03
  26  Prefactor     .10000E-03    3.6544        .34499E-07** at limit **
  27  Prefactor     .10000E-03    6.5166        .91309E-07** at limit **
  28  norm          .10000E-03    5.1176        .15096E-06** at limit **
  29  Normalizat    .71057        .20140       -.16749E-05   -.57879E-03
  30  Prefactor     1.1100        .19324        .74283E-06   -.14767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2329
  Prefactor  = 3.86969
  norm       = 9.56964
  Prefactor  = 0.0001
  Prefactor  = 11.7061
  norm       = 0.0001
  Prefactor  = 0.493987
  Prefactor  = 0.0001
  Prefactor  = 1.08853
  norm       = 0.0001
  Prefactor  = 8.84571
  norm       = 9.3252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26122
  Prefactor  = 4.49518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.27382
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 78.975
  Prefactor  = 0.0001
  Prefactor  = 21.9168
  norm       = 12.9032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.710566
  Prefactor  = 1.10998
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.337     FROM HESSE     STATUS=OK           586 CALLS     4506 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.233        93.659        .94136E-04   -1.4854    
   2  Prefactor     3.8697        5.4082        .10137E-02   -1.5315    
   3  norm          9.5696        13.366        .12955E-03   -1.5089    
   4  Prefactor     .10000E-03    7.0498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.706        21.143        .11699E-03   -1.5024    
   6  norm          .10000E-03    1.0371        .76549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .49399        104.35        .47853E-02   -1.5567    
   8  Prefactor     .10000E-03    42.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0885        3.6660        .24630E-03   -1.5499    
  10  norm          .10000E-03    5.0609        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8457        14.455        .13476E-03   -1.5113    
  12  norm          9.3252        6.2694        .13126E-03   -1.5097    
  13  Prefactor     .10000E-03    18.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2612        8.4880        .17523E-03   -1.5249    
  16  Prefactor     4.4952        12.362        .94878E-03   -1.5284    
  17  Prefactor     .10000E-03    2.2165        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27382        .84037        .11634E-03   -1.5603    
  20  norm          .10000E-03    15.507        .20018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     78.975        66.994        .22590E-03   -1.3928    
  23  Prefactor     .10000E-03    17.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.917        13.833        .85530E-04   -1.4771    
  25  norm          12.903        2.0629        .42557E-04   -1.4989    
  26  Prefactor     .10000E-03    3.6571        .14385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.5220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.1295        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .71057        .22370        .26095E-03   -1.0348    
  30  Prefactor     1.1100        .21636        .24000E-03   -.89148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11547e-09
Minuit parameter uncertainties:
  1  82.8538
  2  5.40892
  3  13.3705
  4  7.77583e-06
  5  21.1569
  6  7.14413e-07
  7  14.3836
  8  3.37499e-05
  9  3.66673
  10  1.01348e-05
  11  14.4608
  12  6.26988
  13  9.88546e-05
  14  4.67474e-05
  15  8.48994
  16  12.3691
  17  3.69129e-06
  18  4.39654e-05
  19  0.840404
  20  0.000329562
  21  2.5568e-05
  22  67.0586
  23  8.63425e-05
  24  13.8348
  25  2.06293
  26  3.27671e-06
  27  1.94645e-05
  28  7.92717e-06
  29  0.223986
  30  0.21653
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  9.325e+00  6.270e+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.110e+00  2.165e-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:  7.106e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.58
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 9.74e-06

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) = 5940.24915675
delta logL = 0.087461936112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5940.23245585
delta logL = 0.104162837317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9617       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8450       1.0000          .0000       5.0000    
     3 'Normalizat'    .73501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0957       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=   5940.232     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9546        6.0799        .35525E-02    .13881E-03
   2  alpha         1.8437        .64075        .43096       -.44102E-04
   3  Normalizat    .73507        .15849        .42756E-01   -.10716E-03
   4  Prefactor     1.0957        .17683        .54598E-01   -.14563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.95459
  alpha      = 1.8437
  Normalizat = 0.735067
  Prefactor  = 1.09565
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.232     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9546        7.8847        .14210E-03   -1.5144    
   2  alpha         1.8437        1.0110        .19230E-01   -.26563    
   3  Normalizat    .73507        .18717        .25695E-03   -1.0252    
   4  Prefactor     1.0957        .20696        .24140E-03   -.89606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32445e-11
Minuit parameter uncertainties:
  1  7.88577
  2  1.04324
  3  0.187331
  4  0.207116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665865': 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) = 5940.23245515
delta logL = 0.104163535262

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  7.955e+00  7.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.844e+00  1.043e+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.096e+00  2.071e-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:  7.351e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.76
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.84 +/- 1.04
Photon Flux (Free Index): 2.39e-08 +/- 3.75e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.39e-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/665865/cmap_HighResolution_257212801_257472001_4FGL_J1438.9+3710_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.57e-05', photon_flux_error='2.84e-08', dlogl='1.04e-01', energy_flux='1.45e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-10 03:25:32.742909', photon_index_error2='1.04', photon_index2='1.84', ts='6.58', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.71', time_epoch_completed='1631269532.74', return_code='0', job_id='665865', GAL2='1.10', EG2='0.74', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='3.75e-08', ts2='6.76', photon_index='2.31' WHERE bin_id='69' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 665865: <4FGL_J1438.9+3710_daily_bin69> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin69 219.74 37.1752 257212801 257472001 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

