/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 35 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin282
RA = 219.504, Dec = 2.3272
tmin = 312422401, tmax = 312681601
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='639575', job_status='RUN', time_executed='2021-09-10 01:48:26.879234', time_epoch_executed='1631263706.88' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639575/ft1_4FGL_J1438.0+0219_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639575/ft1_4FGL_J1438.0+0219_daily_bin282.fits outfile=/scratch/kocevski/639575/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin282.fits ra=219.504 dec=2.3272 rad=12.0 tmin=312422401.0 tmax=312681601.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 5.03
user 3.66
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.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/639575/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.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 2.43
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/639575/ltcube_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.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/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits
.....................!
real 18.00
user 17.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/639575/ltcube_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits outfile=/scratch/kocevski/639575/expmap_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.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/639575/ltcube_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits
.....................!
real 195.39
user 184.83
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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits outfile=/scratch/kocevski/639575/cmap_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.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.504 yref=2.3272 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.83
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits outfile=/scratch/kocevski/639575/cmap_HighResolution_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.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.504 yref=2.3272 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 1.22
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639575/Model_4FGL_J1438.0+0219_daily_bin282.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/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits.....................!
real 61.55
user 49.79
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits', '/scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits', expMap='/scratch/kocevski/639575/expmap_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits', expCube='/scratch/kocevski/639575/ltcube_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639575/Model_4FGL_J1438.0+0219_daily_bin282.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639575/ft1_filtered_4FGL_J1438.0+0219_daily_bin282.fits
Spacecraft file(s): /scratch/kocevski/639575/ft2_4FGL_J1438.0+0219_daily_bin282.fits
Exposure map: /scratch/kocevski/639575/expmap_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits
Exposure cube: /scratch/kocevski/639575/ltcube_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639575/Model_4FGL_J1438.0+0219_daily_bin282.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) = 6451.44110721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.932       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    30.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .21795       1.0000         .10000E-03   10000.    
    13 'norm      '    .22178E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.419       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3699       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6451.432     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1858 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    17.593        .90712E-02** at limit **
   2  Prefactor     6.1774        14.446        .40376E-02    .69797E-04
   3  Prefactor     18.930        28.610        .23013E-02    .41896E-03
   4  norm          .10000E-03    6.8744        .90712E-02** at limit **
   5  norm          4.4263        5.7806        .47853E-02    .13447E-03
   6  Prefactor     .10000E-03    12.976        .90712E-02** at limit **
   7  norm          30.371        22.818        .18176E-02    .81945E-04
   8  Prefactor     .10000E-03    47.154        .90712E-02** at limit **
   9  Prefactor     .10000E-03    10.248        .90712E-02** at limit **
  10  norm          .10000E-03    5.6935        .90712E-02** at limit **
  11  Prefactor     .10004E-03    18.352        .90712E-02** at limit **
  12  norm          .21794        .16866        .61015E-02    .79188E-03
  13  norm          .10000E-03    1.0170        .47903E-01** at limit **
  14  norm          .10000E-03    2.2481        .90712E-02** at limit **
  15  norm          15.419        7.5551        .25500E-02    .56139E-04
  16  norm          .10000E-03    2.9482        .90712E-02** at limit **
  17  Prefactor     .10000E-03    62.621        .90712E-02** at limit **
  18  Normalizat    1.3700        .22033        .66864E-01    .50593E-04
  19  Prefactor     .89393        .12370        .44928E-01    .68664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  Prefactor  = 6.1774
  Prefactor  = 18.93
  norm       = 0.0001
  norm       = 4.42632
  Prefactor  = 0.000100001
  norm       = 30.3705
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.217943
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.4192
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.37003
  Prefactor  = 0.893926
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.432     FROM HESSE     STATUS=OK           264 CALLS     2122 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    17.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1774        14.401        .16150E-03   -1.5211    
   3  Prefactor     18.930        28.632        .92051E-04   -1.4838    
   4  norm          .10000E-03    6.8879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4263        5.7762        .19141E-03   -1.5287    
   6  Prefactor     .10000E-03    12.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.371        22.818        .72703E-04   -1.4605    
   8  Prefactor     .10000E-03    47.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    18.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .21794        .16246        .27941E-03   -1.5615    
  13  norm          .10000E-03    7.6841        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2495        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.419        7.5659        .10200E-03   -1.4922    
  16  norm          .10000E-03    3.0115        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3700        .26023        .29579E-03   -.81499    
  19  Prefactor     .89393        .14607        .20221E-03   -.96354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48427e-09
Minuit parameter uncertainties:
  1  0.00174143
  2  14.4091
  3  28.6531
  4  1.49512e-06
  5  5.77697
  6  0.000237523
  7  22.8249
  8  0.000782981
  9  4.7771e-05
  10  1.08434e-05
  11  0.0017082
  12  0.162462
  13  1.74477e-05
  14  1.03376e-05
  15  7.56639
  16  5.18038e-06
  17  0.000821079
  18  0.260477
  19  0.146129
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  7.830e-04  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.939e-01  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.370e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 8.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639575/likelihoodResults_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.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): 102
logL (Free Index) = 6451.43188907
delta logL = -0.000100853207186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6451.43178823
delta logL = -1.5422301658e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2942       1.0000          .0000       10.000    
     3 'Normalizat'    1.3700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6451.432     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8116.4        .90712E-02** at limit **
   2  Index         2.2881        6.1283        .50000        .11048E-05
   3  Normalizat    1.3700        .10909        .66864E-01   -.68415E-06
   4  Prefactor     .89393        .62038E-01    .44928E-01    .28561E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28809
  Normalizat = 1.37003
  Prefactor  = 0.893926
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.432     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2881        6.0804        .50000       -.57327    
   3  Normalizat    1.3700        .25265        .29579E-03   -.81499    
   4  Prefactor     .89393        .14404        .20221E-03   -.96354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38712e-12
Minuit parameter uncertainties:
  1  5.13411e-05
  2  5.13998
  3  0.252876
  4  0.144105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639575': 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) = 6451.43178823
delta logL = -1.36133166961e-08

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  5.134e-05  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.288e+00  5.140e+00  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.939e-01  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.370e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.504 2.327

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/639575/cmap_HighResolution_312422401_312681601_4FGL_J1438.0+0219_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.65e-08', time_completed='2021-09-10 01:58:06.342452', job_id='639575', GAL2='0.89', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631264286.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='282' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:58:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 639575: <4FGL_J1438.0+0219_daily_bin282> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin282> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:04 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 01:42:06 2021
Terminated at Fri Sep 10 01:58:08 2021
Results reported at Fri Sep 10 01:58:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin282 219.504 2.3272 312422401 312681601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

