/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 34 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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin87
RA = 219.74, Dec = 37.1752
tmin = 261878401, tmax = 262137601
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='665891', job_status='RUN', time_executed='2021-09-10 03:12:00.093362', time_epoch_executed='1631268720.09' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665891/ft1_4FGL_J1438.9+3710_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665891/ft1_4FGL_J1438.9+3710_daily_bin87.fits outfile=/scratch/kocevski/665891/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin87.fits ra=219.74 dec=37.1752 rad=12.0 tmin=261878401.0 tmax=262137601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.41
user 1.20
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/665891/ltcube_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.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/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits
.....................!
real 12.46
user 12.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/665891/ltcube_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.fits outfile=/scratch/kocevski/665891/expmap_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.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/665891/ltcube_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.fits
.....................!
real 191.59
user 185.69
sys 5.47

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/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits scfile=/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits outfile=/scratch/kocevski/665891/cmap_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits scfile=/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits outfile=/scratch/kocevski/665891/cmap_HighResolution_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.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/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/665891/ft2_4FGL_J1438.9+3710_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665891/Model_4FGL_J1438.9+3710_daily_bin87.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/665891/ft1_filtered_4FGL_J1438.9+3710_daily_bin87.fits.....................!
real 46.92
user 45.49
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16149E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3535       1.0000         .10000E-03   10000.    
    10 'norm      '    .24251E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3431       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7819       1.0000         .10000E-03   10000.    
    19 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.859       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.883       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5329       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    10.982       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84849       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96825       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=   5900.221     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3422 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.091        .81669E-06** at limit **
   2  Prefactor     .10000E-03    2.6715        .92937E-07** at limit **
   3  norm          .10000E-03    25.586       -.17983E-06** at limit **
   4  Prefactor     .10000E-03    6.2518        .10275E-07** at limit **
   5  Prefactor     .10000E-03    73.172       -.20869E-05** at limit **
   6  norm          .10000E-03    2.2116        .10027E-07** at limit **
   7  Prefactor     2.6230        9.3705        .27532E-06    .50844E-04
   8  Prefactor     .10000E-03    14.638       -.10309E-05** at limit **
   9  Prefactor     2.3532        2.7458        .11617E-06   -.11371E-04
  10  norm          .10000E-03    9.4889       -.99176E-06** at limit **
  11  Prefactor     1.4553        130.11        .11881E-04   -.22101E-04
  12  norm          3.6692        5.9576        .96678E-06   -.76775E-04
  13  Prefactor     .10000E-03    24.158       -.81854E-06** at limit **
  14  Prefactor     .10000E-03    12.455        .17252E-06** at limit **
  15  norm          .10000E-03    2.7200       -.34618E-07** at limit **
  16  Prefactor     28.717        15.934        .12116E-06   -.69011E-04
  17  Prefactor     .10000E-03    2.1947       -.36229E-07** at limit **
  18  Prefactor     2.7831        8.9666        .54109E-05   -.12963E-04
  19  norm          .10000E-03    .61545        .56672E-07** at limit **
  20  norm          .10000E-03    2.4933        .96929E-07** at limit **
  21  Prefactor     .29621        8.5893        .99223E-07   -.10702E-03
  22  Prefactor     .10000E-03    219.35        .84496E-05** at limit **
  23  Prefactor     39.862        22.687        .23611E-06   -.69699E-04
  24  Prefactor     .10000E-03    30.508       -.46533E-06** at limit **
  25  norm          17.883        2.4709       -.43725E-07   -.16069E-03
  26  Prefactor     4.5318        9.1585        .19022E-05    .65306E-06
  27  Prefactor     .10000E-03    46.055        .15224E-05** at limit **
  28  norm          10.970        11.590       -.23466E-06   -.12945E-03
  29  Normalizat    .84841        .17348        .15401E-06   -.19448E-03
  30  Prefactor     .96850        .18774       -.23364E-05   -.23824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.62298
  Prefactor  = 0.0001
  Prefactor  = 2.35317
  norm       = 0.000100004
  Prefactor  = 1.45533
  norm       = 3.66915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.7167
  Prefactor  = 0.0001
  Prefactor  = 2.78311
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.29621
  Prefactor  = 0.000100002
  Prefactor  = 39.8615
  Prefactor  = 0.0001
  norm       = 17.8828
  Prefactor  = 4.5318
  Prefactor  = 0.0001
  norm       = 10.9703
  Normalizat = 0.848409
  Prefactor  = 0.9685
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.221     FROM HESSE     STATUS=OK           586 CALLS     4008 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6935        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    26.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    75.978        .40823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2484        .11147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6230        8.7771        .25237E-03   -1.5384    
   8  Prefactor     .10000E-03    14.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3532        2.7379        .13189E-03   -1.5401    
  10  norm          .10000E-03    32.042        .42813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4553        132.15        .37803E-03   -1.5467    
  12  norm          3.6692        5.9357        .21079E-03   -1.5325    
  13  Prefactor     .10000E-03    24.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7210        .12372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.717        15.893        .74769E-04   -1.4636    
  17  Prefactor     .10000E-03    2.1989        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7831        9.0181        .12199E-02   -1.5374    
  19  norm          .10000E-03    5.7661        .11606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5179        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .29621        59.171        .39212E-02   -1.5599    
  22  Prefactor     .10000E-03    224.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     39.862        22.804        .63489E-04   -1.4444    
  24  Prefactor     .10000E-03    30.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.883        2.4702        .41539E-04   -1.4862    
  26  Prefactor     4.5318        9.1516        .94545E-03   -1.5282    
  27  Prefactor     .10000E-03    47.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          10.970        11.549        .12090E-03   -1.5045    
  29  Normalizat    .84841        .20417        .24214E-03   -.98297    
  30  Prefactor     .96850        .22137        .25611E-03   -.93787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12763e-08
Minuit parameter uncertainties:
  1  3.11946e-06
  2  7.48083e-06
  3  0.000147165
  4  1.87233e-06
  5  0.000150406
  6  2.24065e-06
  7  8.78144
  8  8.40541e-05
  9  2.73805
  10  0.000751849
  11  27.7988
  12  5.93662
  13  0.000116639
  14  8.89466e-06
  15  2.51623e-06
  16  15.8958
  17  1.80064e-06
  18  9.02249
  19  1.3739e-05
  20  1.9682e-06
  21  8.38003
  22  0.00130243
  23  22.8085
  24  8.65192e-05
  25  2.47021
  26  9.15438
  27  1.26883e-05
  28  11.5509
  29  0.204356
  30  0.221576
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.669e+00  5.937e+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:  9.685e-01  2.216e-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.484e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/665891/likelihoodResults_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.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) = 5900.08397244
delta logL = 0.136962903609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5900.07332501
delta logL = 0.147610336297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9737       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9492       1.0000          .0000       5.0000    
     3 'Normalizat'    .83161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98042       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=   5900.073     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9706        127.09        .58863E-02    .46710E-03
   2  alpha         2.9496        2.8687        .42024        .34785E-04
   3  Normalizat    .83163        .51151E-01    .44021E-01    .10876E-04
   4  Prefactor     .98043        .56205E-01    .46022E-01    .36316E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97056
  alpha      = 2.94964
  Normalizat = 0.831634
  Prefactor  = 0.980435
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.073     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9706        6.0003        .16172E-03   -1.5363    
   2  alpha         2.9496        1.3753        .22930E-01    .18084    
   3  Normalizat    .83163        .19937        .24427E-03   -.98906    
   4  Prefactor     .98043        .22193        .25470E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38838e-09
Minuit parameter uncertainties:
  1  6.00151
  2  1.45948
  3  0.199541
  4  0.222132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665891': 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) = 5900.07332478
delta logL = 0.147610561326

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.971e+00  6.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.950e+00  1.459e+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:  9.804e-01  2.221e-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.316e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/665891/cmap_HighResolution_261878401_262137601_4FGL_J1438.9+3710_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-10 03:24:52.570490', job_id='665891', GAL2='0.98', fit_tolerance='1e-08', EG2='0.83', EG='0.85', time_epoch_completed='1631269492.57', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.48e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='87' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:24:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 665891: <4FGL_J1438.9+3710_daily_bin87> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin87> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:14 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:11:16 2021
Terminated at Fri Sep 10 03:24:53 2021
Results reported at Fri Sep 10 03:24:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin87 219.74 37.1752 261878401 262137601 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

