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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin571
RA = 219.74, Dec = 37.1752
tmin = 387331201, tmax = 387590401
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='670300', job_status='RUN', time_executed='2021-09-10 03:29:00.319505', time_epoch_executed='1631269740.32' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670300/ft1_4FGL_J1438.9+3710_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670300/ft1_4FGL_J1438.9+3710_daily_bin571.fits outfile=/scratch/kocevski/670300/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin571.fits ra=219.74 dec=37.1752 rad=12.0 tmin=387331201.0 tmax=387590401.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 4.51
user 4.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.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/670300/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin571.fits evtable="EVENTS" outfile="/scratch/kocevski/670300/ft1_filtered_4FGL_J1438.9+3710_daily_bin571.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670300/ft1_filtered_4FGL_J1438.9+3710_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/670300/ltcube_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.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/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits
.....................!
real 11.83
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670300/ft1_filtered_4FGL_J1438.9+3710_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/670300/ltcube_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.fits outfile=/scratch/kocevski/670300/expmap_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.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/670300/ltcube_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.fits
.....................!
real 192.02
user 186.50
sys 5.10

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/670300/ft1_filtered_4FGL_J1438.9+3710_daily_bin571.fits scfile=/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits outfile=/scratch/kocevski/670300/cmap_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670300/ft1_filtered_4FGL_J1438.9+3710_daily_bin571.fits scfile=/scratch/kocevski/670300/ft2_4FGL_J1438.9+3710_daily_bin571.fits outfile=/scratch/kocevski/670300/cmap_HighResolution_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.418       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7378       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.322       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
    19 'norm      '    .15936       1.0000         .10000E-03   10000.    
    20 'norm      '    .11453E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0230       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.591       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.639       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9652       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1938       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14638E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.320       1.0000         .10000E-03   10000.    
    28 'norm      '    1.0619       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .56015       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2540       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5555.055     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3958 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.472        88.260         .0000        .33033E-02
   2  Prefactor     .10000E-03    4.4565         .0000    ** at limit **
   3  norm          12.892        14.838         .0000        .22977E-02
   4  Prefactor     .10000E-03    4.6429         .0000    ** at limit **
   5  Prefactor     32.418        21.437         .0000        .83856E-03
   6  norm          5.7633        3.5427         .0000        .12765E-02
   7  Prefactor     .10000E-03    3.1258         .0000    ** at limit **
   8  Prefactor     .10001E-03    3.6692         .0000    ** at limit **
   9  Prefactor     2.7377        3.7043         .0000        .24954E-02
  10  norm          .10000E-03    5.1361         .0000    ** at limit **
  11  Prefactor     .10002E-03    25.797         .0000    ** at limit **
  12  norm          .10001E-03    3.2671         .0000    ** at limit **
  13  Prefactor     .10002E-03    14.481         .0000    ** at limit **
  14  Prefactor     29.323        26.917         .0000       -.42509E-03
  15  norm          5.0855        5.1206         .0000       -.14415E-03
  16  Prefactor     1.0604        13.046         .0000        .22784E-01
  17  Prefactor     .10000E-03    2.3020         .0000    ** at limit **
  18  Prefactor     11.410        8.6470         .0000        .14649E-02
  19  norm          .15919        .77242         .0000        .15815E-02
  20  norm          .10001E-03    3.1248         .0000    ** at limit **
  21  Prefactor     1.0536        67.114         .0000        .26921E-01
  22  Prefactor     23.588        36.947         .0000        .35689E-02
  23  Prefactor     45.635        24.430         .0000        .11281E-02
  24  Prefactor     1.9385        65.115         .0000        .34178E-02
  25  norm          3.1942        1.3343         .0000       -.85844E-03
  26  Prefactor     .10013E-03    5.6025         .0000    ** at limit **
  27  Prefactor     30.307        24.295         .0000       -.89493E-02
  28  norm          1.0160        15.175         .0000        .72171E-03
  29  Normalizat    .56019        .17818         .0000       -.61589E-04
  30  Prefactor     1.2540        .18803         .0000       -.10634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4724
  Prefactor  = 0.000100002
  norm       = 12.8925
  Prefactor  = 0.000100002
  Prefactor  = 32.418
  norm       = 5.76333
  Prefactor  = 0.000100002
  Prefactor  = 0.000100012
  Prefactor  = 2.73774
  norm       = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.000100012
  Prefactor  = 0.000100024
  Prefactor  = 29.323
  norm       = 5.08548
  Prefactor  = 1.06038
  Prefactor  = 0.0001
  Prefactor  = 11.41
  norm       = 0.159192
  norm       = 0.000100005
  Prefactor  = 1.0536
  Prefactor  = 23.5878
  Prefactor  = 45.6355
  Prefactor  = 1.93855
  norm       = 3.19424
  Prefactor  = 0.000100129
  Prefactor  = 30.3066
  norm       = 1.01597
  Normalizat = 0.560186
  Prefactor  = 1.25398
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.055     FROM HESSE     STATUS=OK           590 CALLS     4548 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.472        88.719        .64617E-04   -1.4467    
   2  Prefactor     .10000E-03    4.6237        .30713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.892        14.851        .11153E-03   -1.4990    
   4  Prefactor     .10000E-03    4.6442        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.418        21.509        .70376E-04   -1.4569    
   6  norm          5.7633        3.5417        .10612E-03   -1.5228    
   7  Prefactor     .10000E-03    3.1287        .12868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    3.6727        .13942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7377        3.6935        .15579E-03   -1.5377    
  10  norm          .10000E-03    5.1441        .16497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    25.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    3.3122        .13151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    14.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.323        26.936        .73989E-04   -1.4624    
  15  norm          5.0855        5.1227        .16486E-03   -1.5257    
  16  Prefactor     1.0604        13.062        .23814E-02   -1.5502    
  17  Prefactor     .10000E-03    2.3088        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.410        8.6521        .59304E-03   -1.5032    
  19  norm          .15919        1.2292        .12336E-02   -1.5628    
  20  norm          .10001E-03    5.8045        .22192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0536        13.554        .60738E-01   -1.5503    
  22  Prefactor     23.588        36.908        .82471E-04   -1.4736    
  23  Prefactor     45.635        24.386        .59349E-04   -1.4356    
  24  Prefactor     1.9385        28.897        .29585E-03   -1.5429    
  25  norm          3.1942        1.2343        .49422E-04   -1.5351    
  26  Prefactor     .10013E-03    25.401        .31583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     30.307        33.579        .72764E-04   -1.4606    
  28  norm          1.0160        162.86        .44591E-02   -1.5506    
  29  Normalizat    .56019        .21021        .28098E-03   -1.0970    
  30  Prefactor     1.2540        .22478        .22292E-03   -.84686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19442e-07
Minuit parameter uncertainties:
  1  89.0254
  2  0.000202569
  3  14.8552
  4  0.000206342
  5  21.514
  6  3.54178
  7  0.000143334
  8  0.000428126
  9  3.69382
  10  5.15337e-05
  11  0.00132901
  12  0.000391457
  13  0.00117589
  14  26.9472
  15  5.12315
  16  7.44493
  17  1.28156e-05
  18  8.65309
  19  0.884475
  20  0.000356265
  21  7.55972
  22  36.9432
  23  24.3913
  24  14.9774
  25  1.23436
  26  0.00362003
  27  33.6002
  28  25.7966
  29  0.210508
  30  0.224951
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  3.915e-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:  1.254e+00  2.250e-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:  5.602e-01  2.105e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670300/likelihoodResults_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.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) = 5555.05674627
delta logL = -0.00143569747252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5555.05531262
delta logL = -2.04819207283e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11300E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3095       1.0000          .0000       5.0000    
     3 'Normalizat'    .56026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2539       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=   5555.055     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      233 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    782.51        .13151E-02** at limit **
   2  alpha         2.3041        2.5144        .16521        .28619E-06
   3  Normalizat    .56019        .15406        .28098E-03   -.21889E-04
   4  Prefactor     1.2540        .17791        .22292E-03   -.84657E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.3041
  Normalizat = 0.560186
  Prefactor  = 1.25398
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.055     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3141        .26302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3041        2.7443        .66086E-02   -.78439E-01
   3  Normalizat    .56019        .19067        .11239E-04   -1.0970    
   4  Prefactor     1.2540        .22024        .89169E-05   -.84686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25958e-09
Minuit parameter uncertainties:
  1  0.000161951
  2  226.179
  3  0.190889
  4  0.220407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670300': 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) = 5555.05531057
delta logL = 2.43380782194e-09

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.620e-04  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.304e+00  2.262e+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.254e+00  2.204e-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:  5.602e-01  1.909e-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/670300/cmap_HighResolution_387331201_387590401_4FGL_J1438.9+3710_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-10 03:42:02.926671', job_id='670300', GAL2='1.25', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631270522.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.43e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='571' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 670300: <4FGL_J1438.9+3710_daily_bin571> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin571> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:13 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:15 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:15 2021
Terminated at Fri Sep 10 03:42:03 2021
Results reported at Fri Sep 10 03:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin571 219.74 37.1752 387331201 387590401 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 :                                   781.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

