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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin131
RA = 219.74, Dec = 37.1752
tmin = 273283201, tmax = 273542401
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='665955', job_status='RUN', time_executed='2021-09-10 03:15:04.005220', time_epoch_executed='1631268904.01' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665955/ft1_4FGL_J1438.9+3710_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665955/ft1_4FGL_J1438.9+3710_daily_bin131.fits outfile=/scratch/kocevski/665955/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin131.fits ra=219.74 dec=37.1752 rad=12.0 tmin=273283201.0 tmax=273542401.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.34
user 1.16
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665955/ft1_filtered_4FGL_J1438.9+3710_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/665955/ltcube_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.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/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits
.....................!
real 9.64
user 9.36
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665955/ft1_filtered_4FGL_J1438.9+3710_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/665955/ltcube_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.fits outfile=/scratch/kocevski/665955/expmap_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.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/665955/ltcube_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.fits
.....................!
real 145.65
user 141.46
sys 3.89

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/665955/ft1_filtered_4FGL_J1438.9+3710_daily_bin131.fits scfile=/scratch/kocevski/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits outfile=/scratch/kocevski/665955/cmap_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665955/ft1_filtered_4FGL_J1438.9+3710_daily_bin131.fits scfile=/scratch/kocevski/665955/ft2_4FGL_J1438.9+3710_daily_bin131.fits outfile=/scratch/kocevski/665955/cmap_HighResolution_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12747E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .11384E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.214       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9179       1.0000         .10000E-03   10000.    
    10 'norm      '    9.1231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6042       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1387       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5627       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.986       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.713       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33679E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    7.7108       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.539       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0121       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0162       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=   7996.142     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3419 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.686       -.92065E-08** at limit **
   2  Prefactor     .10000E-03    3.6345       -.49454E-07** at limit **
   3  norm          .10000E-03    8.6824       -.99340E-07** at limit **
   4  Prefactor     .10000E-03    4.5018       -.37159E-07** at limit **
   5  Prefactor     .10000E-03    9.8979        .65079E-07** at limit **
   6  norm          .10000E-03    2.2119        .16315E-09** at limit **
   7  Prefactor     23.215        14.749        .69778E-07   -.42256E-05
   8  Prefactor     15.816        17.778        .19748E-06   -.34965E-05
   9  Prefactor     4.9196        3.5691        .20342E-06   -.17104E-04
  10  norm          9.1232        9.2131        .33246E-08   -.45920E-05
  11  Prefactor     .10000E-03    13.603        .57178E-07** at limit **
  12  norm          22.585        7.5778        .21110E-07   -.70976E-05
  13  Prefactor     36.407        32.817        .41830E-06    .27860E-04
  14  Prefactor     .10000E-03    12.330       -.30662E-06** at limit **
  15  norm          4.3981        4.4595        .19473E-06    .17029E-03
  16  Prefactor     .10000E-03    3.9839        .30256E-07** at limit **
  17  Prefactor     .10000E-03    2.7764       -.14946E-06** at limit **
  18  Prefactor     5.6039        6.4785        .30201E-05   -.13906E-03
  19  norm          1.1404        1.4562        .38456E-06   -.97615E-04
  20  norm          3.5616        2.7104       -.11426E-06    .35678E-04
  21  Prefactor     2.5491        7.3020        .74742E-06    .37140E-04
  22  Prefactor     14.061        75.704        .11023E-04    .10773E-03
  23  Prefactor     24.618        17.310       -.70798E-07    .43554E-04
  24  Prefactor     .30291        8.7248       -.36214E-06   -.52536E-04
  25  norm          7.7113        1.8362        .32104E-08   -.82283E-04
  26  Prefactor     12.539        11.133        .72527E-07   -.53580E-05
  27  Prefactor     .10000E-03    10.908        .39832E-06** at limit **
  28  norm          .10000E-03    7.7301        .13479E-06** at limit **
  29  Normalizat    1.0118        .16410       -.68848E-06   -.83485E-05
  30  Prefactor     1.0163        .17014       -.58645E-06   -.17519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 23.2152
  Prefactor  = 15.8158
  Prefactor  = 4.91958
  norm       = 9.12323
  Prefactor  = 0.0001
  norm       = 22.5852
  Prefactor  = 36.4067
  Prefactor  = 0.0001
  norm       = 4.3981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6039
  norm       = 1.14042
  norm       = 3.56163
  Prefactor  = 2.54913
  Prefactor  = 14.0611
  Prefactor  = 24.618
  Prefactor  = 0.302914
  norm       = 7.71128
  Prefactor  = 12.5393
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01181
  Prefactor  = 1.01629
 **********
 **   18 **HESSE 
 **********

 FCN=   7996.142     FROM HESSE     STATUS=OK           594 CALLS     4013 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6765        .16642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.022        .54137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2565        .25599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.215        14.730        .83137E-04   -1.4744    
   8  Prefactor     15.816        17.792        .10073E-03   -1.4912    
   9  Prefactor     4.9196        3.5638        .13600E-03   -1.5264    
  10  norm          9.1232        9.2079        .13269E-03   -1.5104    
  11  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.585        7.5800        .84287E-04   -1.4757    
  13  Prefactor     36.407        32.830        .66425E-04   -1.4500    
  14  Prefactor     .10000E-03    12.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3981        4.4730        .18578E-03   -1.5289    
  16  Prefactor     .10000E-03    3.9914        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7893        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6039        6.5636        .84849E-03   -1.5234    
  19  norm          1.1404        1.4265        .11145E-03   -1.5494    
  20  norm          3.5616        2.6983        .11784E-03   -1.5331    
  21  Prefactor     2.5491        7.5974        .25231E-03   -1.5389    
  22  Prefactor     14.061        82.633        .10710E-03   -1.4958    
  23  Prefactor     24.618        17.625        .80580E-04   -1.4715    
  24  Prefactor     .30291        109.38        .42023E-02   -1.5598    
  25  norm          7.7113        1.8444        .51478E-04   -1.5153    
  26  Prefactor     12.539        11.180        .11312E-03   -1.5000    
  27  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.7765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0118        .19236        .25458E-03   -.92636    
  30  Prefactor     1.0163        .20106        .27592E-03   -.92188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93598e-08
Minuit parameter uncertainties:
  1  6.03673e-05
  2  6.07091e-06
  3  5.31346e-06
  4  7.76699e-07
  5  0.000635189
  6  4.3251e-05
  7  14.7319
  8  17.798
  9  3.56391
  10  9.20936
  11  1.3743e-05
  12  7.58028
  13  32.8459
  14  1.81044e-05
  15  4.47337
  16  9.06883e-08
  17  8.49594e-06
  18  6.5644
  19  1.42649
  20  2.69839
  21  7.60026
  22  68.316
  23  17.6292
  24  11.5316
  25  1.8444
  26  11.1822
  27  1.68392e-05
  28  2.19798e-06
  29  0.19249
  30  0.201209
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.259e+01  7.580e+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.016e+00  2.012e-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.012e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.11
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 3.43e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.18e-05

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) = 7995.92708084
delta logL = 0.215011924131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7995.91486569
delta logL = 0.227227072335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.626       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0749       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       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=   7995.915     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.626        12.223        .20602E-02   -.72402E-03
   2  alpha         2.0749        .47625        .27289        .66352E-04
   3  Normalizat    1.0317        .16201        .42004E-01    .90693E-04
   4  Prefactor     1.0032        .17431        .44618E-01   -.17991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.6263
  alpha      = 2.07493
  Normalizat = 1.03166
  Prefactor  = 1.00317
 **********
 **   18 **HESSE 
 **********

 FCN=   7995.915     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.626        8.1717        .82409E-04   -1.4735    
   2  alpha         2.0749        .34661        .11052E-01   -.17086    
   3  Normalizat    1.0317        .18580        .25255E-03   -.91977    
   4  Prefactor     1.0032        .19982        .27735E-03   -.92624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08382e-10
Minuit parameter uncertainties:
  1  8.17209
  2  0.347762
  3  0.18592
  4  0.199966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665955': 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) = 7995.91486568
delta logL = 0.2272270823

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.363e+01  8.172e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.075e+00  3.478e-01  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.003e+00  2.000e-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.032e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.51
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.07 +/- 0.35
Photon Flux (Free Index): 8.53e-08 +/- 3.89e-08
Energy Flux (Free Index): 3.89e-05 +/- 1.53e-05

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/665955/cmap_HighResolution_273283201_273542401_4FGL_J1438.9+3710_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.89e-05', photon_flux_error='3.43e-08', dlogl='2.27e-01', energy_flux='3.51e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-09-10 03:25:12.237413', photon_index_error2='0.35', photon_index2='2.07', ts='20.11', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.01', time_epoch_completed='1631269512.24', return_code='0', job_id='665955', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.89e-08', ts2='20.51', photon_index='2.31' WHERE bin_id='131' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 665955: <4FGL_J1438.9+3710_daily_bin131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin131 219.74 37.1752 273283201 273542401 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 :                                   607.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

