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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin743
RA = 219.74, Dec = 37.1752
tmin = 431913601, tmax = 432172801
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='671592', job_status='RUN', time_executed='2021-09-10 03:33:35.573064', time_epoch_executed='1631270015.57' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671592/ft1_4FGL_J1438.9+3710_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671592/ft1_4FGL_J1438.9+3710_daily_bin743.fits outfile=/scratch/kocevski/671592/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin743.fits ra=219.74 dec=37.1752 rad=12.0 tmin=431913601.0 tmax=432172801.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.22
user 4.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.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/671592/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/671592/ft1_filtered_4FGL_J1438.9+3710_daily_bin743.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671592/ft1_filtered_4FGL_J1438.9+3710_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/671592/ltcube_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.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/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits
.....................!
real 11.93
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671592/ft1_filtered_4FGL_J1438.9+3710_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/671592/ltcube_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.fits outfile=/scratch/kocevski/671592/expmap_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.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/671592/ltcube_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.fits
.....................!
real 192.02
user 187.04
sys 4.51

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/671592/ft1_filtered_4FGL_J1438.9+3710_daily_bin743.fits scfile=/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits outfile=/scratch/kocevski/671592/cmap_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671592/ft1_filtered_4FGL_J1438.9+3710_daily_bin743.fits scfile=/scratch/kocevski/671592/ft2_4FGL_J1438.9+3710_daily_bin743.fits outfile=/scratch/kocevski/671592/cmap_HighResolution_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18287E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .21010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.627       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96047       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6427       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0996       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0835       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9255       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.5199       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2410       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87725       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=   5235.090     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3879 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    60.966       -.63791E-05** at limit **
   2  Prefactor     .10000E-03    6.9691        .38309E-07** at limit **
   3  norm          .10000E-03    15.777        .15827E-05** at limit **
   4  Prefactor     .10000E-03    8.8021        .63034E-08** at limit **
   5  Prefactor     .10000E-03    17.891        .71812E-07** at limit **
   6  norm          .10000E-03    2.4524        .89363E-08** at limit **
   7  Prefactor     8.0216        10.895        .19365E-06   -.11974E-04
   8  Prefactor     .10000E-03    8.5342        .46256E-06** at limit **
   9  Prefactor     .10000E-03    8.4547        .15947E-06** at limit **
  10  norm          .10000E-03    24.826       -.30106E-05** at limit **
  11  Prefactor     .10002E-03    38.149        .90763E-05** at limit **
  12  norm          .10000E-03    5.4110        .10823E-05** at limit **
  13  Prefactor     26.953        33.414       -.50828E-07   -.57188E-04
  14  Prefactor     29.646        47.330        .71571E-05    .27413E-03
  15  norm          .10000E-03    3.2336       -.10283E-07** at limit **
  16  Prefactor     .10000E-03    11.831       -.16481E-05** at limit **
  17  Prefactor     .96160        9.0592        .20359E-06   -.45746E-03
  18  Prefactor     2.6424        4.4369        .34556E-05   -.13870E-02
  19  norm          2.0996        1.7494       -.44140E-09   -.22020E-04
  20  norm          3.0822        3.3578        .20298E-07   -.20455E-04
  21  Prefactor     .10000E-03    3.6966       -.29315E-07** at limit **
  22  Prefactor     35.744        64.665       -.24010E-05   -.75980E-04
  23  Prefactor     .10000E-03    7.0073       -.13830E-06** at limit **
  24  Prefactor     .10000E-03    26.000       -.22709E-05** at limit **
  25  norm          4.9247        2.2424       -.13139E-07   -.99131E-04
  26  Prefactor     20.285        18.488        .28776E-06    .21728E-04
  27  Prefactor     .10000E-03    8.8051       -.91105E-07** at limit **
  28  norm          8.5206        14.109        .15160E-05   -.20742E-03
  29  Normalizat    1.2411        .19721       -.14653E-05   -.83137E-04
  30  Prefactor     .87717        .20447        .94340E-07   -.14701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.02159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100023
  norm       = 0.000100005
  Prefactor  = 26.9534
  Prefactor  = 29.6457
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.961596
  Prefactor  = 2.64244
  norm       = 2.09956
  norm       = 3.08216
  Prefactor  = 0.0001
  Prefactor  = 35.7439
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.92466
  Prefactor  = 20.2849
  Prefactor  = 0.0001
  norm       = 8.52056
  Normalizat = 1.24106
  Prefactor  = 0.877166
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.090     FROM HESSE     STATUS=OK           580 CALLS     4459 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    61.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.013        .36783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4681        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0216        10.874        .14158E-03   -1.5141    
   8  Prefactor     .10000E-03    8.5445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7753        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    25.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    40.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.040        .32093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.953        33.384        .77163E-04   -1.4669    
  14  Prefactor     29.646        48.726        .73608E-04   -1.4618    
  15  norm          .10000E-03    3.2345        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .96160        9.5218        .42216E-03   -1.5512    
  18  Prefactor     2.6424        4.7918        .10432E-02   -1.5383    
  19  norm          2.0996        1.7359        .80901E-04   -1.5418    
  20  norm          3.0822        3.3496        .13385E-03   -1.5357    
  21  Prefactor     .10000E-03    3.7102        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.744        64.706        .67026E-04   -1.4512    
  23  Prefactor     .10000E-03    7.0157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9247        2.2731        .55964E-04   -1.5264    
  26  Prefactor     20.285        18.753        .88946E-04   -1.4807    
  27  Prefactor     .10000E-03    8.8084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.5206        14.172        .68667E-03   -1.5124    
  29  Normalizat    1.2411        .23417        .23331E-03   -.85343    
  30  Prefactor     .87717        .24444        .28833E-03   -.96944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61968e-09
Minuit parameter uncertainties:
  1  0.00165122
  2  0.000712465
  3  0.00022515
  4  3.40755e-06
  5  3.21546e-05
  6  2.04146e-06
  7  10.8763
  8  4.5432e-05
  9  1.61515e-05
  10  0.000489653
  11  0.00193351
  12  0.000521557
  13  33.4069
  14  48.7918
  15  3.9188e-07
  16  0.000215026
  17  6.05276
  18  4.7925
  19  1.73596
  20  3.34983
  21  3.6129e-06
  22  64.8331
  23  3.96992e-06
  24  0.000250707
  25  2.27319
  26  18.7584
  27  7.60772e-06
  28  14.1776
  29  0.234365
  30  0.244745
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.216e-04  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:  8.772e-01  2.447e-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.241e+00  2.344e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671592/likelihoodResults_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.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) = 5235.09010495
delta logL = -0.000337982452038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5235.08976693
delta logL = 3.66226231563e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3471       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87722       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5235.090     FROM MIGRAD    STATUS=FAILED        95 CALLS      266 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10963E-03    6187.8        .32236E-02** at limit **
   2  alpha         2.7544        3.1900        .16500       -.28169E-05
   3  Normalizat    1.2411        .60197E-01    .23331E-03   -.15928E-03
   4  Prefactor     .87717        .63623E-01    .28833E-03   -.25495E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5235.090     FROM SIMPLEX   STATUS=PROGRESS     158 CALLS      424 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10945E-03    6187.8        .62962E-03** at limit **
   2  alpha         2.7544        3.1900        .11738E-04   -.28169E-05
   3  Normalizat    1.2411        .60197E-01    .35899E-06   -.15928E-03
   4  Prefactor     .87716        .63623E-01    .36693E-06   -.25495E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5235.090     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      466 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.588        .64472E-03** at limit **
   2  alpha         2.8447        3.0340        .65999E-01   -.24116E-07
   3  Normalizat    1.2411        .22697        .46663E-04    .63150E-04
   4  Prefactor     .87717        .24131        .11533E-04   -.21686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.8447
  Normalizat = 1.24106
  Prefactor  = 0.877167
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.090     FROM HESSE     STATUS=OK            23 CALLS      489 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.471        .12894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8447        3.0344        .26400E-02    .13832    
   3  Normalizat    1.2411        .22715        .93326E-05   -.85343    
   4  Prefactor     .87717        .24155        .23066E-05   -.96944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51141e-11
Minuit parameter uncertainties:
  1  2.27818e-05
  2  289.652
  3  0.22733
  4  0.24184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671592': 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) = 5235.08976548
delta logL = 1.49455718201e-06

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.278e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.845e+00  2.897e+02  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:  8.772e-01  2.418e-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.241e+00  2.273e-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/671592/cmap_HighResolution_431913601_432172801_4FGL_J1438.9+3710_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-10 03:46:17.933663', job_id='671592', GAL2='0.88', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631270777.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='743' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 671592: <4FGL_J1438.9+3710_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin743 219.74 37.1752 431913601 432172801 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

