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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin882
RA = 219.74, Dec = 37.1752
tmin = 467942401, tmax = 468201601
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='671827', job_status='RUN', time_executed='2021-09-10 03:31:59.709776', time_epoch_executed='1631269919.71' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671827/ft1_4FGL_J1438.9+3710_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671827/ft2_4FGL_J1438.9+3710_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671827/ft1_4FGL_J1438.9+3710_daily_bin882.fits outfile=/scratch/kocevski/671827/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin882.fits ra=219.74 dec=37.1752 rad=12.0 tmin=467942401.0 tmax=468201601.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.59
user 3.35
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671827/ft1_filtered_4FGL_J1438.9+3710_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/671827/ft2_4FGL_J1438.9+3710_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/671827/ltcube_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.fits outfile=/scratch/kocevski/671827/expmap_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.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/671827/ltcube_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.fits
.....................!
real 191.96
user 185.81
sys 5.73

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/671827/ft1_filtered_4FGL_J1438.9+3710_daily_bin882.fits scfile=/scratch/kocevski/671827/ft2_4FGL_J1438.9+3710_daily_bin882.fits outfile=/scratch/kocevski/671827/cmap_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.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/671827/ft1_filtered_4FGL_J1438.9+3710_daily_bin882.fits scfile=/scratch/kocevski/671827/ft2_4FGL_J1438.9+3710_daily_bin882.fits outfile=/scratch/kocevski/671827/cmap_HighResolution_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.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/671827/ft1_filtered_4FGL_J1438.9+3710_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/671827/ft2_4FGL_J1438.9+3710_daily_bin882.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671827/Model_4FGL_J1438.9+3710_daily_bin882.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/671827/ft1_filtered_4FGL_J1438.9+3710_daily_bin882.fits.....................!
real 50.76
user 49.36
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1283       1.0000         .10000E-03   10000.    
     3 'norm      '    21.641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23130E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.250       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5307       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8502       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20183E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17433E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2431       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12404E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72898       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5170       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=   6485.468     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3948 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.426        97.411       -.24574E-06    .26088E-05
   2  Prefactor     3.1294        8.3040       -.32766E-06    .96757E-04
   3  norm          21.639        17.404       -.53729E-07    .93817E-05
   4  Prefactor     26.907        20.252        .57537E-08    .28548E-04
   5  Prefactor     .10001E-03    78.978        .43676E-05** at limit **
   6  norm          3.2901        4.6631       -.23443E-06    .86921E-04
   7  Prefactor     4.1292        12.710        .22728E-05    .84262E-04
   8  Prefactor     .10000E-03    14.704       -.17923E-05** at limit **
   9  Prefactor     .10000E-03    4.6207       -.10999E-06** at limit **
  10  norm          .10000E-03    7.0695       -.10419E-06** at limit **
  11  Prefactor     23.251        22.020        .14901E-06    .22166E-04
  12  norm          1.0560        6.2549       -.15772E-05    .11104E-03
  13  Prefactor     33.152        41.803        .61358E-06    .45132E-04
  14  Prefactor     .10000E-03    26.922       -.16121E-05** at limit **
  15  norm          .10000E-03    2.2640        .29414E-07** at limit **
  16  Prefactor     1.5297        10.181       -.10241E-05    .24614E-04
  17  Prefactor     .10000E-03    7.6663        .42566E-06** at limit **
  18  Prefactor     12.625        8.4147       -.15507E-06   -.55484E-04
  19  norm          2.8498        1.8153        .11181E-07    .27696E-03
  20  norm          .10000E-03    2.0416       -.87760E-07** at limit **
  21  Prefactor     .10000E-03    3.6130       -.82789E-07** at limit **
  22  Prefactor     .10000E-03    60.235       -.19317E-05** at limit **
  23  Prefactor     .10011E-03    16.747        .29409E-07** at limit **
  24  Prefactor     .10000E-03    23.696       -.36490E-05** at limit **
  25  norm          6.2414        2.0256       -.32975E-07   -.85307E-03
  26  Prefactor     .10005E-03    22.046        .32289E-05** at limit **
  27  Prefactor     .10000E-03    7.8216       -.33088E-06** at limit **
  28  norm          .10000E-03    4.8352       -.18085E-07** at limit **
  29  Normalizat    .72891        .19442        .63683E-06    .16177E-03
  30  Prefactor     1.5172        .20469        .45416E-06    .19023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.4257
  Prefactor  = 3.12943
  norm       = 21.6389
  Prefactor  = 26.907
  Prefactor  = 0.000100006
  norm       = 3.29011
  Prefactor  = 4.12925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.2506
  norm       = 1.05596
  Prefactor  = 33.1515
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.52971
  Prefactor  = 0.0001
  Prefactor  = 12.6247
  norm       = 2.84978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100113
  Prefactor  = 0.0001
  norm       = 6.24141
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.72891
  Prefactor  = 1.51716
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.468     FROM HESSE     STATUS=OK           590 CALLS     4538 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.426        97.567        .46854E-04   -1.3992    
   2  Prefactor     3.1294        8.3460        .22922E-03   -1.5354    
   3  norm          21.639        17.407        .86101E-04   -1.4777    
   4  Prefactor     26.907        20.198        .77231E-04   -1.4670    
   5  Prefactor     .10001E-03    81.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2901        4.6430        .19605E-03   -1.5345    
   7  Prefactor     4.1292        13.137        .19796E-03   -1.5302    
   8  Prefactor     .10000E-03    85.379        .51656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7738        .33763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.0843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.251        22.033        .83072E-04   -1.4743    
  12  norm          1.0560        6.4593        .38999E-03   -1.5502    
  13  Prefactor     33.152        41.779        .69595E-04   -1.4556    
  14  Prefactor     .10000E-03    27.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2644        .11835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5297        10.090        .34496E-03   -1.5461    
  17  Prefactor     .10000E-03    7.7589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.625        8.4121        .11273E-03   -1.4997    
  19  norm          2.8498        1.8069        .81724E-04   -1.5370    
  20  norm          .10000E-03    2.0731        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6245        .14931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    60.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10011E-03    62.852        .54939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.156        .38692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2414        1.7903        .54987E-04   -1.5208    
  26  Prefactor     .10005E-03    55.985        .46614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.8517        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .72891        .23125        .30343E-03   -1.0276    
  30  Prefactor     1.5172        .24693        .24570E-03   -.77060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9956e-09
Minuit parameter uncertainties:
  1  97.7806
  2  8.34915
  3  17.411
  4  20.2027
  5  0.00135797
  6  4.64349
  7  13.1462
  8  0.000304913
  9  1.3112e-05
  10  5.82597e-06
  11  22.0411
  12  5.22392
  13  41.8163
  14  0.000474897
  15  2.47624e-06
  16  7.85924
  17  5.59882e-05
  18  8.41292
  19  1.80697
  20  3.7213e-06
  21  1.99329e-06
  22  0.000866471
  23  0.00534404
  24  9.03134e-05
  25  1.79034
  26  0.00343174
  27  5.18103e-05
  28  9.94418e-07
  29  0.231564
  30  0.247128
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.056e+00  5.224e+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.517e+00  2.471e-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.289e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671827/likelihoodResults_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.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) = 6485.10731129
delta logL = 0.360776359154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6485.06435738
delta logL = 0.403730271975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2905       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9693       1.0000          .0000       5.0000    
     3 'Normalizat'    .66520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5603       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=   6485.064     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2939        31.844        .97455E-02    .94726E-03
   2  alpha         3.9676        3.8186        .50000        .52098E-04
   3  Normalizat    .66513        .45565E-01    .71533E-01    .16121E-04
   4  Prefactor     1.5604        .50893E-01    .54921E-01   -.11965E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29388
  alpha      = 3.9676
  Normalizat = 0.665126
  Prefactor  = 1.56036
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.064     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2939        20.545        .97875E-04   -1.5480    
   2  alpha         3.9676        4.2951        .28435E-01    .62740    
   3  Normalizat    .66513        .23544        .31661E-03   -1.0529    
   4  Prefactor     1.5604        .25728        .24281E-03   -.75863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40048e-07
Minuit parameter uncertainties:
  1  10.3154
  2  5.57545
  3  0.235794
  4  0.257496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671827': 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) = 6485.06435663
delta logL = 0.403731016559

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.294e+00  1.032e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  3.968e+00  5.575e+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.560e+00  2.575e-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:  6.651e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/671827/cmap_HighResolution_467942401_468201601_4FGL_J1438.9+3710_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-10 03:46:10.952754', job_id='671827', GAL2='1.56', fit_tolerance='1e-08', EG2='0.67', EG='0.73', time_epoch_completed='1631270770.95', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.52', dlogl='4.04e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='882' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 671827: <4FGL_J1438.9+3710_daily_bin882> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin882> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:38 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:41 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:31:41 2021
Terminated at Fri Sep 10 03:46:11 2021
Results reported at Fri Sep 10 03:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin882 219.74 37.1752 467942401 468201601 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 :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

