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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin576
RA = 219.74, Dec = 37.1752
tmin = 388627201, tmax = 388886401
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='670309', job_status='RUN', time_executed='2021-09-10 03:28:28.374954', time_epoch_executed='1631269708.37' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670309/ft1_4FGL_J1438.9+3710_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670309/ft1_4FGL_J1438.9+3710_daily_bin576.fits outfile=/scratch/kocevski/670309/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin576.fits ra=219.74 dec=37.1752 rad=12.0 tmin=388627201.0 tmax=388886401.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.99
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670309/ft1_filtered_4FGL_J1438.9+3710_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/670309/ltcube_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.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/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits
.....................!
real 11.69
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670309/ft1_filtered_4FGL_J1438.9+3710_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/670309/ltcube_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.fits outfile=/scratch/kocevski/670309/expmap_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.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/670309/ltcube_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.fits
.....................!
real 189.59
user 184.83
sys 4.42

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/670309/ft1_filtered_4FGL_J1438.9+3710_daily_bin576.fits scfile=/scratch/kocevski/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits outfile=/scratch/kocevski/670309/cmap_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.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/670309/ft1_filtered_4FGL_J1438.9+3710_daily_bin576.fits scfile=/scratch/kocevski/670309/ft2_4FGL_J1438.9+3710_daily_bin576.fits outfile=/scratch/kocevski/670309/cmap_HighResolution_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5706       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.061       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34219E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.894       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.481       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.1104       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2073       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.943       1.0000         .10000E-03   10000.    
    28 'norm      '    12.515       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97638       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91370       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=   4677.847     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3891 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.337        .84727E-06** at limit **
   2  Prefactor     3.5716        8.1883        .16359E-06    .21827E-03
   3  norm          .10000E-03    5.3028       -.37992E-07** at limit **
   4  Prefactor     .10000E-03    7.4711       -.33842E-06** at limit **
   5  Prefactor     .10000E-03    18.175        .54131E-07** at limit **
   6  norm          2.1193        3.7334        .85226E-07    .34551E-03
   7  Prefactor     .10000E-03    18.110        .13640E-06** at limit **
   8  Prefactor     .10000E-03    8.6508        .40140E-06** at limit **
   9  Prefactor     .10000E-03    1.4769        .19000E-07** at limit **
  10  norm          11.538        15.028        .28678E-07   -.89486E-05
  11  Prefactor     18.067        33.773       -.27451E-06    .13018E-04
  12  norm          .10000E-03    2.9471        .28175E-07** at limit **
  13  Prefactor     .10000E-03    49.204       -.15828E-05** at limit **
  14  Prefactor     .10000E-03    10.695       -.11448E-06** at limit **
  15  norm          12.853        8.8521        .11396E-07   -.16088E-04
  16  Prefactor     .10000E-03    4.7857        .41018E-07** at limit **
  17  Prefactor     .10000E-03    3.0358        .15731E-07** at limit **
  18  Prefactor     .10000E-03    6.2411        .21997E-06** at limit **
  19  norm          .10000E-03    .69633        .41208E-07** at limit **
  20  norm          3.1619        3.9671       -.10761E-05   -.17173E-03
  21  Prefactor     .10000E-03    38.439       -.87653E-05** at limit **
  22  Prefactor     24.904        40.903       -.89578E-06   -.71295E-05
  23  Prefactor     12.457        22.694       -.16913E-05   -.53400E-04
  24  Prefactor     .10000E-03    17.933        .16338E-06** at limit **
  25  norm          5.1087        2.8887        .16328E-06    .35693E-03
  26  Prefactor     3.2388        45.559       -.18774E-05    .70670E-04
  27  Prefactor     35.942        38.720       -.68496E-07    .18231E-04
  28  norm          12.510        26.342        .15864E-06    .28523E-04
  29  Normalizat    .97633        .18928       -.66102E-06    .14771E-05
  30  Prefactor     .91369        .19936        .40296E-06    .48057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.57162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5383
  Prefactor  = 18.0675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.16189
  Prefactor  = 0.000100001
  Prefactor  = 24.9045
  Prefactor  = 12.457
  Prefactor  = 0.0001
  norm       = 5.10871
  Prefactor  = 3.23879
  Prefactor  = 35.9415
  norm       = 12.5095
  Normalizat = 0.976329
  Prefactor  = 0.913694
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.847     FROM HESSE     STATUS=OK           586 CALLS     4477 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5716        8.1987        .21388E-03   -1.5330    
   3  norm          .10000E-03    5.3082        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1193        3.7172        .16837E-03   -1.5417    
   7  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4832        .81150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.538        14.983        .11795E-03   -1.5028    
  11  Prefactor     18.067        33.989        .94243E-04   -1.4858    
  12  norm          .10000E-03    2.9815        .11465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.853        8.8527        .11173E-03   -1.4991    
  16  Prefactor     .10000E-03    4.7910        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0591        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3231        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .72132        .11139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1619        3.9505        .14541E-03   -1.5352    
  21  Prefactor     .10000E-03    38.026        .36690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.904        40.961        .80287E-04   -1.4709    
  23  Prefactor     12.457        22.631        .11338E-03   -1.5002    
  24  Prefactor     .10000E-03    18.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.1087        2.8693        .51927E-04   -1.5256    
  26  Prefactor     3.2388        44.378        .22623E-03   -1.5348    
  27  Prefactor     35.942        38.683        .66846E-04   -1.4508    
  28  norm          12.510        26.316        .11323E-03   -1.5000    
  29  Normalizat    .97633        .22301        .22881E-03   -.93828    
  30  Prefactor     .91369        .23419        .25619E-03   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04106e-10
Minuit parameter uncertainties:
  1  6.68038e-05
  2  8.20131
  3  2.14281e-07
  4  8.43214e-06
  5  3.27853e-05
  6  3.71763
  7  7.85111e-06
  8  2.62099e-05
  9  3.10762e-07
  10  14.9882
  11  34.0257
  12  5.79293e-06
  13  5.0272e-05
  14  2.73402e-06
  15  8.8536
  16  3.63384e-06
  17  5.33428e-06
  18  7.39403e-06
  19  5.39359e-06
  20  3.95087
  21  0.000345631
  22  41.0068
  23  22.6463
  24  3.71188e-05
  25  2.86934
  26  23.999
  27  38.7098
  28  26.3404
  29  0.223227
  30  0.234446
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.793e-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:  9.137e-01  2.344e-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:  9.763e-01  2.232e-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: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670309/likelihoodResults_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.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) = 4677.84823073
delta logL = -0.00159408439777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4677.84663666
delta logL = -1.79770722752e-08

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.3135       1.0000          .0000       5.0000    
     3 'Normalizat'    .97634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91370       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=   4677.847     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      230 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    698.66        .11470E-02** at limit **
   2  alpha         2.4285        3.7748        .16519        .38747E-07
   3  Normalizat    .97633        .15836        .22881E-03   -.11726E-04
   4  Prefactor     .91369        .17296        .25619E-03   -.23519E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42846
  Normalizat = 0.97633
  Prefactor  = 0.913693
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.847     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0093        .22939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4285        2.5432        .66075E-02   -.28621E-01
   3  Normalizat    .97633        .21246        .91525E-05   -.93828    
   4  Prefactor     .91369        .23207        .10248E-04   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03671e-11
Minuit parameter uncertainties:
  1  2.26466e-06
  2  211.914
  3  0.212648
  4  0.232327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670309': 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) = 4677.84663649
delta logL = 1.50701453094e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.265e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.428e+00  2.119e+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:  9.137e-01  2.323e-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:  9.763e-01  2.126e-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/670309/cmap_HighResolution_388627201_388886401_4FGL_J1438.9+3710_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-09-10 03:40:03.720690', job_id='670309', GAL2='0.91', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631270403.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='576' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:40:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 670309: <4FGL_J1438.9+3710_daily_bin576> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin576 219.74 37.1752 388627201 388886401 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

