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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin319
RA = 219.74, Dec = 37.1752
tmin = 322012801, tmax = 322272001
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='667395', job_status='RUN', time_executed='2021-09-10 03:16:31.526293', time_epoch_executed='1631268991.53' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667395/ft1_4FGL_J1438.9+3710_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667395/ft2_4FGL_J1438.9+3710_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667395/ft1_4FGL_J1438.9+3710_daily_bin319.fits outfile=/scratch/kocevski/667395/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin319.fits ra=219.74 dec=37.1752 rad=12.0 tmin=322012801.0 tmax=322272001.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.38
user 3.17
sys 0.19

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667395/ft1_filtered_4FGL_J1438.9+3710_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/667395/ft2_4FGL_J1438.9+3710_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/667395/ltcube_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.fits outfile=/scratch/kocevski/667395/expmap_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.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/667395/ltcube_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.fits
.....................!
real 190.11
user 185.84
sys 3.91

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/667395/ft1_filtered_4FGL_J1438.9+3710_daily_bin319.fits scfile=/scratch/kocevski/667395/ft2_4FGL_J1438.9+3710_daily_bin319.fits outfile=/scratch/kocevski/667395/cmap_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667395/ft1_filtered_4FGL_J1438.9+3710_daily_bin319.fits scfile=/scratch/kocevski/667395/ft2_4FGL_J1438.9+3710_daily_bin319.fits outfile=/scratch/kocevski/667395/cmap_HighResolution_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.51       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3217       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42647E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3026       1.0000         .10000E-03   10000.    
    10 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.962       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7605       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    105.37       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.213       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.4987       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70642       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0837       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=   6270.483     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3948 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.51        82.669       -.26804E-05    .11221E-04
   2  Prefactor     1.3229        .81369        .32301E-07   -.16261E-02
   3  norm          .10000E-03    12.546       -.30979E-05** at limit **
   4  Prefactor     .10000E-03    6.5976        .27610E-07** at limit **
   5  Prefactor     .10000E-03    9.3295       -.53226E-06** at limit **
   6  norm          4.1912        3.7617        .56377E-06    .33112E-04
   7  Prefactor     10.324        14.838        .13571E-05    .18954E-04
   8  Prefactor     17.191        18.125       -.13725E-05    .21076E-04
   9  Prefactor     4.3038        4.0694       -.13937E-05   -.41308E-04
  10  norm          .10000E-03    7.9314       -.44772E-06** at limit **
  11  Prefactor     36.963        27.278       -.92561E-06    .15909E-04
  12  norm          .10000E-03    2.1033        .22508E-07** at limit **
  13  Prefactor     11.395        22.398       -.18459E-05   -.31257E-05
  14  Prefactor     .10000E-03    33.299       -.50981E-07** at limit **
  15  norm          4.7600        6.7555        .26188E-06   -.22710E-03
  16  Prefactor     25.091        15.477       -.36411E-05   -.87394E-04
  17  Prefactor     .10000E-03    3.1563        .88461E-07** at limit **
  18  Prefactor     .10000E-03    1.8457       -.25295E-07** at limit **
  19  norm          .10000E-03    .55941        .39459E-06** at limit **
  20  norm          6.9746        3.6851       -.12977E-06   -.32251E-03
  21  Prefactor     .10000E-03    9.7426        .17681E-05** at limit **
  22  Prefactor     105.35        60.935       -.10724E-04   -.60651E-04
  23  Prefactor     .10000E-03    10.660       -.13159E-05** at limit **
  24  Prefactor     .10000E-03    14.002        .40531E-05** at limit **
  25  norm          11.211        1.9569        .25800E-07    .18340E-03
  26  Prefactor     .10000E-03    17.233       -.18053E-05** at limit **
  27  Prefactor     .10000E-03    10.448        .14419E-07** at limit **
  28  norm          8.4987        9.9123        .12509E-06   -.83867E-05
  29  Normalizat    .70618        .17336        .28281E-05   -.12933E-03
  30  Prefactor     1.0839        .18089       -.34949E-06   -.10576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.509
  Prefactor  = 1.32289
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19125
  Prefactor  = 10.3238
  Prefactor  = 17.191
  Prefactor  = 4.30379
  norm       = 0.0001
  Prefactor  = 36.9634
  norm       = 0.0001
  Prefactor  = 11.395
  Prefactor  = 0.0001
  norm       = 4.75998
  Prefactor  = 25.0913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.9746
  Prefactor  = 0.0001
  Prefactor  = 105.353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.49869
  Normalizat = 0.706179
  Prefactor  = 1.08388
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.483     FROM HESSE     STATUS=OK           594 CALLS     4542 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.51        82.797        .37596E-04   -1.3564    
   2  Prefactor     1.3229        4.4469        .14737E-02   -1.5478    
   3  norm          .10000E-03    12.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.170        .78438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1912        3.7560        .13866E-03   -1.5298    
   7  Prefactor     10.324        14.809        .12471E-03   -1.5065    
   8  Prefactor     17.191        18.112        .96607E-04   -1.4878    
   9  Prefactor     4.3038        4.0718        .14376E-03   -1.5293    
  10  norm          .10000E-03    7.9549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.963        27.358        .65922E-04   -1.4491    
  12  norm          .10000E-03    2.1171        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.395        22.392        .11868E-03   -1.5033    
  14  Prefactor     .10000E-03    33.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7600        6.7951        .92204E-03   -1.5272    
  16  Prefactor     25.091        15.494        .79980E-04   -1.4706    
  17  Prefactor     .10000E-03    3.1763        .13730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8477        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4510        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9746        3.6767        .10661E-03   -1.5180    
  21  Prefactor     .10000E-03    10.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     105.35        61.035        .19587E-03   -1.3652    
  23  Prefactor     .10000E-03    10.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.211        1.9535        .44236E-04   -1.5038    
  26  Prefactor     .10000E-03    17.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.4987        9.9081        .13751E-03   -1.5125    
  29  Normalizat    .70618        .20597        .26560E-03   -1.0365    
  30  Prefactor     1.0839        .21487        .24645E-03   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87673e-09
Minuit parameter uncertainties:
  1  82.8808
  2  4.44796
  3  1.03239e-05
  4  6.88407e-06
  5  3.70668e-05
  6  3.7562
  7  14.8146
  8  18.118
  9  4.07209
  10  8.97982e-06
  11  27.3672
  12  3.91776e-06
  13  22.4082
  14  3.661e-05
  15  6.79617
  16  15.4962
  17  1.3786e-05
  18  1.61127e-06
  19  8.08881e-05
  20  3.67677
  21  5.81747e-05
  22  61.0712
  23  1.62327e-05
  24  0.000105868
  25  1.95356
  26  7.90777e-07
  27  4.31947e-06
  28  9.91005
  29  0.206198
  30  0.215038
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  3.918e-06  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.084e+00  2.150e-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.062e-01  2.062e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667395/likelihoodResults_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.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) = 6270.48512727
delta logL = -0.0022323811063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6270.48289488
delta logL = 7.71888153395e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3033       1.0000          .0000       5.0000    
     3 'Normalizat'    .70618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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=   6270.483     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6699        .11232E-02** at limit **
   2  alpha         2.0711        2.7256        .16525       -.14681E-06
   3  Normalizat    .70618        .18598        .26560E-03    .69300E-04
   4  Prefactor     1.0839        .21092        .24645E-03    .80035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07113
  Normalizat = 0.70618
  Prefactor  = 1.08388
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.483     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1876        .22464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0711        3.4731        .66102E-02   -.17240    
   3  Normalizat    .70618        .18618        .10624E-04   -1.0365    
   4  Prefactor     1.0839        .21115        .98580E-05   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80342e-10
Minuit parameter uncertainties:
  1  3.08451e-05
  2  188.363
  3  0.186349
  4  0.211311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667395': 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) = 6270.48289413
delta logL = 7.57658199291e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  3.085e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.071e+00  1.884e+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:  1.084e+00  2.113e-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.062e-01  1.863e-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/667395/cmap_HighResolution_322012801_322272001_4FGL_J1438.9+3710_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-05', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-10 03:30:31.695325', job_id='667395', GAL2='1.08', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631269831.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='319' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 667395: <4FGL_J1438.9+3710_daily_bin319> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin319> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:19 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16: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:16:20 2021
Terminated at Fri Sep 10 03:30:32 2021
Results reported at Fri Sep 10 03:30:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin319 219.74 37.1752 322012801 322272001 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 :                                   834.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

