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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin657
RA = 219.74, Dec = 37.1752
tmin = 409622401, tmax = 409881601
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='670438', job_status='RUN', time_executed='2021-09-10 03:29:57.548041', time_epoch_executed='1631269797.55' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670438/ft1_4FGL_J1438.9+3710_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670438/ft1_4FGL_J1438.9+3710_daily_bin657.fits outfile=/scratch/kocevski/670438/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin657.fits ra=219.74 dec=37.1752 rad=12.0 tmin=409622401.0 tmax=409881601.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 5.74
user 5.49
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.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/670438/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/670438/ft1_filtered_4FGL_J1438.9+3710_daily_bin657.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/670438/ft1_filtered_4FGL_J1438.9+3710_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/670438/ltcube_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.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/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits
.....................!
real 11.86
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670438/ft1_filtered_4FGL_J1438.9+3710_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/670438/ltcube_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.fits outfile=/scratch/kocevski/670438/expmap_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.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/670438/ltcube_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.fits
.....................!
real 189.90
user 185.46
sys 4.08

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/670438/ft1_filtered_4FGL_J1438.9+3710_daily_bin657.fits scfile=/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits outfile=/scratch/kocevski/670438/cmap_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.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/670438/ft1_filtered_4FGL_J1438.9+3710_daily_bin657.fits scfile=/scratch/kocevski/670438/ft2_4FGL_J1438.9+3710_daily_bin657.fits outfile=/scratch/kocevski/670438/cmap_HighResolution_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.55       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.568       1.0000         .10000E-03   10000.    
     3 'norm      '    9.3662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92217E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4051       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1633       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8863       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13618E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    25 'norm      '    7.4668       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80870       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77539       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=   3787.138     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     3925 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.55        87.726       -.45464E-05   -.68293E-05
   2  Prefactor     10.568        8.0615        .26503E-06   -.62274E-04
   3  norm          9.3671        11.987        .99486E-06   -.33473E-04
   4  Prefactor     .10000E-03    9.6401        .31597E-06** at limit **
   5  Prefactor     .10034E-03    25.960        .72886E-06** at limit **
   6  norm          4.4047        3.9653        .15761E-06   -.34774E-04
   7  Prefactor     .10000E-03    4.7980        .44639E-07** at limit **
   8  Prefactor     .10000E-03    5.4567        .44611E-06** at limit **
   9  Prefactor     3.1634        3.7404        .35765E-07   -.24510E-03
  10  norm          .10000E-03    9.2707        .22232E-05** at limit **
  11  Prefactor     .10000E-03    10.507       -.13244E-05** at limit **
  12  norm          .10000E-03    5.7603       -.45309E-06** at limit **
  13  Prefactor     15.656        63.925       -.31109E-04   -.37299E-05
  14  Prefactor     .10000E-03    10.645       -.12580E-05** at limit **
  15  norm          .10000E-03    6.6442        .12945E-05** at limit **
  16  Prefactor     10.093        21.967        .59607E-05   -.29220E-04
  17  Prefactor     .10000E-03    3.7029       -.45476E-07** at limit **
  18  Prefactor     .10000E-03    3.4113       -.33687E-07** at limit **
  19  norm          3.8865        2.1366       -.18477E-06   -.16271E-03
  20  norm          .10000E-03    2.8703       -.41582E-06** at limit **
  21  Prefactor     .10000E-03    7.2560       -.27067E-05** at limit **
  22  Prefactor     .10000E-03    24.895        .23372E-05** at limit **
  23  Prefactor     .10017E-03    97.423       -.51565E-05** at limit **
  24  Prefactor     10.082        15.622        .15549E-04    .12833E-03
  25  norm          7.4662        1.9995       -.15239E-07   -.33631E-03
  26  Prefactor     .10000E-03    14.315        .23328E-05** at limit **
  27  Prefactor     .10000E-03    19.489       -.53725E-06** at limit **
  28  norm          .10000E-03    19.046       -.28812E-05** at limit **
  29  Normalizat    .80841        .20387       -.26762E-05    .64317E-04
  30  Prefactor     .77581        .20330        .14882E-05   -.94707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.551
  Prefactor  = 10.5676
  norm       = 9.36706
  Prefactor  = 0.0001
  Prefactor  = 0.000100337
  norm       = 4.40474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16339
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6561
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.88654
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100174
  Prefactor  = 10.0824
  norm       = 7.46624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.808413
  Prefactor  = 0.775814
 **********
 **   18 **HESSE 
 **********

 FCN=   3787.138     FROM HESSE     STATUS=OK           588 CALLS     4513 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.55        87.998        .19214E-03   -1.3611    
   2  Prefactor     10.568        8.0704        .12325E-03   -1.5058    
   3  norm          9.3671        11.995        .13095E-03   -1.5096    
   4  Prefactor     .10000E-03    9.6524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10034E-03    40.048        .81566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4047        3.9624        .11239E-03   -1.5288    
   7  Prefactor     .10000E-03    4.8027        .13165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4613        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1634        3.7349        .12353E-03   -1.5352    
  10  norm          .10000E-03    9.2981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.8016        .14404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.656        63.641        .10114E-03   -1.4916    
  14  Prefactor     .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6688        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.093        21.923        .12606E-03   -1.5072    
  17  Prefactor     .10000E-03    3.7073        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4165        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8865        2.1383        .62785E-04   -1.5314    
  20  norm          .10000E-03    2.9462        .20372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3844        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10017E-03    100.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.082        15.718        .12620E-03   -1.5073    
  25  norm          7.4662        1.9969        .42865E-04   -1.5161    
  26  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    19.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .80841        .24208        .22841E-03   -.99757    
  30  Prefactor     .77581        .23874        .24905E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73044e-09
Minuit parameter uncertainties:
  1  88.103
  2  8.07122
  3  11.9982
  4  9.4897e-06
  5  0.00735741
  6  3.96264
  7  1.23494e-05
  8  1.66902e-05
  9  3.7352
  10  2.10794e-05
  11  5.18725e-05
  12  8.29532e-05
  13  63.2475
  14  3.69593e-06
  15  2.36437e-05
  16  21.94
  17  5.66516e-06
  18  8.60393e-06
  19  2.13831
  20  7.69414e-05
  21  0.000326352
  22  8.12504e-06
  23  0.00837627
  24  15.724
  25  1.99696
  26  2.07364e-06
  27  1.61436e-05
  28  2.28394e-05
  29  0.242403
  30  0.239055
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  8.295e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.758e-01  2.391e-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:  8.084e-01  2.424e-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: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670438/likelihoodResults_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.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): 102
logL (Free Index) = 3787.13869367
delta logL = -0.000821206318051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3787.13787262
delta logL = -1.58349848789e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3225       1.0000          .0000       5.0000    
     3 'Normalizat'    .80835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77591       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3787.030     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      287 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13015        15.357        .10541E-01    .89225E-03
   2  alpha         5.0000        4.9814        .50000    ** at limit **
   3  Normalizat    .77467        .64086E-01    .22841E-03   -.82423E-04
   4  Prefactor     .79919        .61572E-01    .24905E-03   -.12553E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13015
  alpha      = 5
  Normalizat = 0.77467
  Prefactor  = 0.799189
 **********
 **   18 **HESSE 
 **********

 FCN=   3787.030     FROM HESSE     STATUS=OK            31 CALLS      318 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13015        .31838        .45710E-04   -1.5636    
   2  alpha         5.0000        4.6718        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77467        .23119        .91365E-05   -1.0102    
   4  Prefactor     .79919        .24103        .99618E-05   -.99758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65852e-11
Minuit parameter uncertainties:
  1  0.318388
  2  1.33514e-07
  3  0.23148
  4  0.241351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670438': 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) = 3787.03032959
delta logL = 0.107542880832

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.302e-01  3.184e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  1.335e-07  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.992e-01  2.414e-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.747e-01  2.315e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/670438/cmap_HighResolution_409622401_409881601_4FGL_J1438.9+3710_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-10 03:40:33.893812', job_id='670438', GAL2='0.80', fit_tolerance='1e-08', EG2='0.77', EG='0.81', time_epoch_completed='1631270433.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.08e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='657' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:40:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 670438: <4FGL_J1438.9+3710_daily_bin657> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin657> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:24 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:26:25 2021
Terminated at Fri Sep 10 03:40:34 2021
Results reported at Fri Sep 10 03:40:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin657 219.74 37.1752 409622401 409881601 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 :                                   634.00 sec.
    Max Memory :                                 1143 MB
    Average Memory :                             261.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

