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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin455
RA = 219.504, Dec = 2.3272
tmin = 357264001, tmax = 357523201
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='639828', job_status='RUN', time_executed='2021-09-10 01:44:21.957833', time_epoch_executed='1631263461.96' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639828/ft1_4FGL_J1438.0+0219_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639828/ft1_4FGL_J1438.0+0219_daily_bin455.fits outfile=/scratch/kocevski/639828/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin455.fits ra=219.504 dec=2.3272 rad=12.0 tmin=357264001.0 tmax=357523201.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.94
user 3.38
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.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/639828/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin455.fits evtable="EVENTS" outfile="/scratch/kocevski/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.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.83
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/639828/ltcube_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.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/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits
.....................!
real 12.91
user 11.31
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/639828/ltcube_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits outfile=/scratch/kocevski/639828/expmap_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.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/639828/ltcube_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits
.....................!
real 199.28
user 185.74
sys 5.50

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/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits scfile=/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits outfile=/scratch/kocevski/639828/cmap_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits scfile=/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits outfile=/scratch/kocevski/639828/cmap_HighResolution_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.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 0.55
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits', '/scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits', expMap='/scratch/kocevski/639828/expmap_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits', expCube='/scratch/kocevski/639828/ltcube_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639828/Model_4FGL_J1438.0+0219_daily_bin455.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/639828/ft1_filtered_4FGL_J1438.0+0219_daily_bin455.fits
Spacecraft file(s): /scratch/kocevski/639828/ft2_4FGL_J1438.0+0219_daily_bin455.fits
Exposure map: /scratch/kocevski/639828/expmap_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits
Exposure cube: /scratch/kocevski/639828/ltcube_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639828/Model_4FGL_J1438.0+0219_daily_bin455.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) = 8745.52668637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.209       1.0000         .10000E-03   10000.    
     5 'norm      '    9.6886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.557       1.0000         .10000E-03   10000.    
     7 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11076E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    43.928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.237       1.0000         .10000E-03   10000.    
    12 'norm      '    .24104E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .27458       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6286       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.146       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1100       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8745.506     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1901 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.917       -.11191E-05** at limit **
   2  Prefactor     .10000E-03    5.9501       -.14999E-06** at limit **
   3  Prefactor     .10000E-03    7.5459       -.54337E-07** at limit **
   4  norm          12.210        10.127        .70284E-07   -.32238E-05
   5  norm          9.6896        7.4094        .10702E-06    .13754E-05
   6  Prefactor     10.545        23.325        .61817E-06   -.19082E-04
   7  norm          .10000E-03    16.172       -.16523E-06** at limit **
   8  Prefactor     6.2999        108.16        .75720E-06    .22711E-04
   9  Prefactor     .10000E-03    42.438       -.91701E-06** at limit **
  10  norm          43.917        23.427        .83678E-06   -.31108E-04
  11  Prefactor     13.241        18.909       -.16899E-07   -.39076E-04
  12  norm          .24191E-01    .93462E-01    .13263E-06   -.18798E-02
  13  norm          .27486        1.5215        .20563E-05    .31364E-04
  14  norm          .10000E-03    1.9916       -.29447E-07** at limit **
  15  norm          3.6289        3.4120        .92831E-07    .13213E-04
  16  norm          .10000E-03    1.4742       -.11455E-06** at limit **
  17  Prefactor     15.156        26.539       -.86224E-07   -.59822E-05
  18  Normalizat    1.0433        .19437       -.85032E-06   -.16596E-03
  19  Prefactor     1.1100        .11134       -.15468E-06   -.28157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2104
  norm       = 9.68956
  Prefactor  = 10.5453
  norm       = 0.0001
  Prefactor  = 6.29995
  Prefactor  = 0.0001
  norm       = 43.917
  Prefactor  = 13.2407
  norm       = 0.0241908
  norm       = 0.274857
  norm       = 0.0001
  norm       = 3.62889
  norm       = 0.0001
  Prefactor  = 15.1565
  Normalizat = 1.04333
  Prefactor  = 1.11
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.506     FROM HESSE     STATUS=OK           272 CALLS     2173 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.210        10.131        .11464E-03   -1.5009    
   5  norm          9.6896        7.4098        .12874E-03   -1.5085    
   6  Prefactor     10.545        23.418        .12332E-03   -1.5058    
   7  norm          .10000E-03    16.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2999        106.47        .16071E-03   -1.5206    
   9  Prefactor     .10000E-03    42.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          43.917        23.426        .60489E-04   -1.4382    
  11  Prefactor     13.241        18.883        .11009E-03   -1.4980    
  12  norm          .24191E-01    .16820        .52094E-03   -1.5677    
  13  norm          .27486        1.5397        .22013E-03   -1.5603    
  14  norm          .10000E-03    1.9946        .12888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6289        3.4139        .16241E-03   -1.5327    
  16  norm          .10000E-03    1.4959        .11095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.156        26.530        .10292E-03   -1.4929    
  18  Normalizat    1.0433        .22591        .32601E-03   -.91593    
  19  Prefactor     1.1100        .12984        .18675E-03   -.89148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20889e-10
Minuit parameter uncertainties:
  1  0.000120436
  2  4.90721e-06
  3  4.19053e-06
  4  10.1322
  5  7.41052
  6  23.4382
  7  3.80879e-06
  8  51.906
  9  1.89824e-05
  10  23.4311
  11  18.8913
  12  0.127314
  13  1.3009
  14  9.55691e-07
  15  3.41405
  16  6.36171e-06
  17  26.5508
  18  0.226114
  19  0.129873
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  6.300e+00  5.191e+01  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:  1.110e+00  1.299e-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.043e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/639828/likelihoodResults_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.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) = 8745.38297644
delta logL = 0.122872581998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8745.32979758
delta logL = 0.176051441493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4624       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7719       1.0000          .0000       10.000    
     3 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1227       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8745.330     FROM MIGRAD    STATUS=FAILED       100 CALLS      293 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4625        182.06        .89667E-03   -.15830E-02
   2  Index         3.7721        6.5491        .83095E-02    .40727E-04
   3  Normalizat    1.0037        .15274        .33173E-03   -.15031E-03
   4  Prefactor     1.1227        .86529E-01    .18582E-03   -.28246E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8745.330     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      393 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4625        182.06        .25201E-03   -.15830E-02
   2  Index         3.7721        6.5491        .15949E-02    .40727E-04
   3  Normalizat    1.0037        .15274        .68479E-04   -.15031E-03
   4  Prefactor     1.1227        .86529E-01    .16709E-04   -.28246E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8745.330     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      424 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4637        20.634        .35867E-04   -.66056E-03
   2  Index         3.7718        2.8265        .33238E-03   -.97617E-04
   3  Normalizat    1.0037        .22993        .13269E-04   -.54148E-04
   4  Prefactor     1.1227        .13128        .37164E-04    .57510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46367
  Index      = 3.77179
  Normalizat = 1.00368
  Prefactor  = 1.12272
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.330     FROM HESSE     STATUS=OK            23 CALLS      447 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4637        15.315        .14347E-05   -1.5466    
   2  Index         3.7718        2.4770        .13295E-04   -.24818    
   3  Normalizat    1.0037        .22984        .26539E-05   -.92907    
   4  Prefactor     1.1227        .13121        .74328E-05   -.88744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81044e-10
Minuit parameter uncertainties:
  1  9.47181
  2  2.59992
  3  0.230069
  4  0.131247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639828': 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) = 8745.32979743
delta logL = 0.176051593951

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.464e+00  9.472e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  3.772e+00  2.600e+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:  1.123e+00  1.312e-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.004e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 219.504 2.327

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/639828/cmap_HighResolution_357264001_357523201_4FGL_J1438.0+0219_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-10 01:55:19.242895', job_id='639828', GAL2='1.12', fit_tolerance='1e-08', EG2='1.00', EG='1.04', time_epoch_completed='1631264119.24', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.76e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='455' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:55:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 639828: <4FGL_J1438.0+0219_daily_bin455> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin455> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:23 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:25 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:25 2021
Terminated at Fri Sep 10 01:55:19 2021
Results reported at Fri Sep 10 01:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin455 219.504 2.3272 357264001 357523201 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 :                                   640.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

