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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin50
RA = 219.74, Dec = 37.1752
tmin = 252288001, tmax = 252547201
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='665838', job_status='RUN', time_executed='2021-09-10 03:13:35.664101', time_epoch_executed='1631268815.66' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665838/ft1_4FGL_J1438.9+3710_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665838/ft1_4FGL_J1438.9+3710_daily_bin50.fits outfile=/scratch/kocevski/665838/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin50.fits ra=219.74 dec=37.1752 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.57
user 2.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665838/ft1_filtered_4FGL_J1438.9+3710_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/665838/ltcube_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.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/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits
.....................!
real 12.53
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665838/ft1_filtered_4FGL_J1438.9+3710_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/665838/ltcube_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.fits outfile=/scratch/kocevski/665838/expmap_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.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/665838/ltcube_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.fits
.....................!
real 192.17
user 186.55
sys 5.26

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/665838/ft1_filtered_4FGL_J1438.9+3710_daily_bin50.fits scfile=/scratch/kocevski/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits outfile=/scratch/kocevski/665838/cmap_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665838/ft1_filtered_4FGL_J1438.9+3710_daily_bin50.fits scfile=/scratch/kocevski/665838/ft2_4FGL_J1438.9+3710_daily_bin50.fits outfile=/scratch/kocevski/665838/cmap_HighResolution_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.425       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .28014       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11172E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    185.40       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.354       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.245       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.112       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70766       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=   6268.520     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3960 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.227        .65712E-05** at limit **
   2  Prefactor     .10000E-03    2.5712        .67812E-07** at limit **
   3  norm          .10000E-03    6.8834        .39277E-06** at limit **
   4  Prefactor     .10000E-03    6.5548       -.56691E-07** at limit **
   5  Prefactor     22.423        22.920       -.10896E-05   -.11770E-04
   6  norm          .10000E-03    1.7207        .14311E-06** at limit **
   7  Prefactor     5.3571        19.712       -.36262E-05    .28184E-04
   8  Prefactor     1.9612        85.505        .45843E-05    .16987E-04
   9  Prefactor     .10000E-03    .83665        .16031E-07** at limit **
  10  norm          .10000E-03    12.558       -.16898E-05** at limit **
  11  Prefactor     .10000E-03    13.280        .44637E-06** at limit **
  12  norm          .10000E-03    2.3336       -.80677E-07** at limit **
  13  Prefactor     .10000E-03    13.198        .34219E-06** at limit **
  14  Prefactor     .10000E-03    15.794        .15478E-05** at limit **
  15  norm          10.099        7.7095       -.56124E-07    .15292E-04
  16  Prefactor     1.0310        11.907       -.29040E-06    .62201E-04
  17  Prefactor     8.3424        8.8222       -.48270E-06    .19466E-04
  18  Prefactor     .10000E-03    1.8686        .18176E-07** at limit **
  19  norm          .10000E-03    .93312        .34665E-07** at limit **
  20  norm          .27191        2.3969        .19689E-06    .11059E-03
  21  Prefactor     .10007E-03    9.1868       -.21669E-06** at limit **
  22  Prefactor     185.42        100.06        .83403E-05    .57851E-04
  23  Prefactor     14.343        24.854       -.27478E-05   -.17171E-05
  24  Prefactor     .10000E-03    29.943       -.59219E-06** at limit **
  25  norm          13.245        2.1382       -.43412E-07    .56752E-04
  26  Prefactor     .10000E-03    5.4208        .68196E-07** at limit **
  27  Prefactor     .10000E-03    28.763       -.30756E-05** at limit **
  28  norm          20.103        17.727       -.62586E-06    .35422E-04
  29  Normalizat    1.2262        .17475        .34257E-06   -.64933E-04
  30  Prefactor     .70744        .17511       -.14314E-05    .38143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4232
  norm       = 0.0001
  Prefactor  = 5.35715
  Prefactor  = 1.96117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0989
  Prefactor  = 1.031
  Prefactor  = 8.34241
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.271906
  Prefactor  = 0.000100071
  Prefactor  = 185.424
  Prefactor  = 14.3428
  Prefactor  = 0.000100001
  norm       = 13.245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1029
  Normalizat = 1.22617
  Prefactor  = 0.707436
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.520     FROM HESSE     STATUS=OK           586 CALLS     4546 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6053        .12396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.423        23.076        .84585E-04   -1.4761    
   6  norm          .10000E-03    1.7468        .10141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3571        19.990        .17405E-03   -1.5245    
   8  Prefactor     1.9612        90.625        .29346E-03   -1.5428    
   9  Prefactor     .10000E-03    .83911        .70712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.3405        .11808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.099        7.7130        .12609E-03   -1.5072    
  16  Prefactor     1.0310        78.931        .48720E-02   -1.5505    
  17  Prefactor     8.3424        8.6156        .13877E-03   -1.5130    
  18  Prefactor     .10000E-03    1.8699        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3516        .14246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .27191        7.9320        .21048E-02   -1.5604    
  21  Prefactor     .10007E-03    33.958        .39222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     185.42        99.772        .14827E-03   -1.2976    
  23  Prefactor     14.343        23.684        .10572E-03   -1.4950    
  24  Prefactor     .10000E-03    30.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.245        2.1373        .44716E-04   -1.4980    
  26  Prefactor     .10000E-03    5.4273        .17992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          20.103        17.678        .89311E-04   -1.4811    
  29  Normalizat    1.2262        .20954        .22093E-03   -.85798    
  30  Prefactor     .70744        .20708        .30018E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77254e-09
Minuit parameter uncertainties:
  1  0.00014454
  2  1.39795e-06
  3  8.46895e-06
  4  1.0099e-05
  5  23.0848
  6  4.18686e-06
  7  20.0153
  8  26.7055
  9  6.2653e-07
  10  2.76372e-05
  11  2.10086e-05
  12  2.93919e-06
  13  9.04576e-06
  14  2.34833e-05
  15  7.7138
  16  18.0659
  17  8.61692
  18  8.7797e-07
  19  3.82961e-05
  20  2.93706
  21  0.00310384
  22  99.8628
  23  23.6996
  24  0.000328082
  25  2.13733
  26  9.09626e-07
  27  3.43431e-05
  28  17.6825
  29  0.20968
  30  0.207302
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.939e-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:  7.074e-01  2.073e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.226e+00  2.097e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665838/likelihoodResults_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.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) = 6268.52198832
delta logL = -0.00201868177555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.51996952
delta logL = 1.24225152831e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70745       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=   6268.520     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7548        .90712E-02** at limit **
   2  alpha         2.3359        3.5566        .41283       -.28395E-04
   3  Normalizat    1.2262        .16146        .49974E-01    .27252E-05
   4  Prefactor     .70743        .17205        .67839E-01    .27461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33592
  Normalizat = 1.22617
  Prefactor  = 0.707435
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.520     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3816        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3359        3.5132        .50000       -.65679E-01
   3  Normalizat    1.2262        .18954        .22093E-03   -.85798    
   4  Prefactor     .70743        .20169        .30018E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25245e-10
Minuit parameter uncertainties:
  1  1.10929e-05
  2  2.50017
  3  0.189644
  4  0.201898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665838': 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) = 6268.51996935
delta logL = 2.95653990179e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.109e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.336e+00  2.500e+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:  7.074e-01  2.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.226e+00  1.896e-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/665838/cmap_HighResolution_252288001_252547201_4FGL_J1438.9+3710_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-10 03:27:44.797645', job_id='665838', GAL2='0.71', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631269664.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='50' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 665838: <4FGL_J1438.9+3710_daily_bin50> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin50> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:10 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:11 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:11 2021
Terminated at Fri Sep 10 03:27:45 2021
Results reported at Fri Sep 10 03:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin50 219.74 37.1752 252288001 252547201 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 :                                   847.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

