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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin654
RA = 219.504, Dec = 2.3272
tmin = 408844801, tmax = 409104001
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='799045', job_status='RUN', time_executed='2021-09-10 10:24:21.158787', time_epoch_executed='1631294661.16' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799045/ft1_4FGL_J1438.0+0219_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799045/ft1_4FGL_J1438.0+0219_daily_bin654.fits outfile=/scratch/kocevski/799045/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin654.fits ra=219.504 dec=2.3272 rad=12.0 tmin=408844801.0 tmax=409104001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.34
user 4.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799045/ft1_filtered_4FGL_J1438.0+0219_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/799045/ltcube_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.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/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits
.....................!
real 11.78
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799045/ft1_filtered_4FGL_J1438.0+0219_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/799045/ltcube_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.fits outfile=/scratch/kocevski/799045/expmap_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.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/799045/ltcube_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.fits
.....................!
real 192.70
user 186.98
sys 5.34

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/799045/ft1_filtered_4FGL_J1438.0+0219_daily_bin654.fits scfile=/scratch/kocevski/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits outfile=/scratch/kocevski/799045/cmap_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799045/ft1_filtered_4FGL_J1438.0+0219_daily_bin654.fits scfile=/scratch/kocevski/799045/ft2_4FGL_J1438.0+0219_daily_bin654.fits outfile=/scratch/kocevski/799045/cmap_HighResolution_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13843E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4069       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.932       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.866       1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73247E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .25071       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5893       1.0000         .10000E-03   10000.    
    15 'norm      '    11.445       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4029       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7680.805     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1670 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.365        17.592        .16512E-06   -.12573E-01
   2  Prefactor     .10000E-03    19.059       -.52684E-05** at limit **
   3  Prefactor     4.3889        3.7457        .44055E-05   -.18762E-02
   4  norm          .10000E-03    5.1455       -.88899E-06** at limit **
   5  norm          15.144        7.9812        .87717E-05    .12712E-01
   6  Prefactor     37.891        12.014       -.16438E-05   -.45628E-02
   7  norm          .10000E-03    8.1307       -.17723E-05** at limit **
   8  Prefactor     23.659        35.463       -.15622E-04    .10075E-01
   9  Prefactor     44.811        15.982       -.92430E-06   -.10024E-01
  10  norm          .10005E-03    5.3635        .58688E-05** at limit **
  11  Prefactor     .10005E-03    5.2387        .47446E-08** at limit **
  12  norm          .73254E-01    .14091        .43112E-06    .87144E-03
  13  norm          .25423        7.0955        .16542E-06    .12931E-03
  14  norm          3.5895        1.0771        .15584E-06    .19429E-03
  15  norm          11.445        5.6449        .51616E-05    .66426E-02
  16  norm          1.4664        2.5378        .22621E-06    .21792E-04
  17  Prefactor     .10005E-03    63.132       -.19317E-04** at limit **
  18  Normalizat    1.4035        .27009        .46589E-06   -.50637E-04
  19  Prefactor     .95781        .14463       -.33932E-05   -.97565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3651
  Prefactor  = 0.000100002
  Prefactor  = 4.38891
  norm       = 0.0001
  norm       = 15.1444
  Prefactor  = 37.8914
  norm       = 0.0001
  Prefactor  = 23.6589
  Prefactor  = 44.8107
  norm       = 0.000100054
  Prefactor  = 0.000100051
  norm       = 0.0732542
  norm       = 0.254228
  norm       = 3.58952
  norm       = 11.4447
  norm       = 1.46635
  Prefactor  = 0.000100053
  Normalizat = 1.40346
  Prefactor  = 0.957807
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.805     FROM HESSE     STATUS=OK           316 CALLS     1986 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.365        29.005        .17074E-02   -1.4535    
   2  Prefactor     .10000E-03    18.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3889        23.130        .47961E-02   -1.5289    
   4  norm          .10000E-03    5.1240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.144        8.5727        .25727E-02   -1.4929    
   6  Prefactor     37.891        34.557        .16269E-02   -1.4476    
   7  norm          .10000E-03    8.1337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.659        62.566        .20541E-02   -1.4735    
   9  Prefactor     44.811        32.759        .14964E-02   -1.4368    
  10  norm          .10005E-03    9.2394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    9.2097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73254E-01    .16402        .93829E-02   -1.5654    
  13  norm          .25423        1.2804        .59410E-01   -1.5607    
  14  norm          3.5895        6.8518        .53324E-02   -1.5329    
  15  norm          11.445        5.7766        .29605E-02   -1.5031    
  16  norm          1.4664        2.5807        .88759E-02   -1.5466    
  17  Prefactor     .10005E-03    62.948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4035        .23053        .71685E-01   -.80529    
  19  Prefactor     .95781        .12151        .45741E-01   -.94149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54102e-06
Minuit parameter uncertainties:
  1  29.0167
  2  0.000358446
  3  20.163
  4  1.33046e-05
  5  8.57344
  6  34.5757
  7  2.44878e-05
  8  62.7405
  9  32.7722
  10  0.00141447
  11  0.00136656
  12  0.164021
  13  1.14089
  14  6.85332
  15  5.77687
  16  2.58088
  17  0.00365911
  18  0.2307
  19  0.121541
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  2.366e+01  6.274e+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:  9.578e-01  1.215e-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.403e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799045/likelihoodResults_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.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) = 7680.70761119
delta logL = 0.097461514717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7680.69599314
delta logL = 0.109079566372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.908       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7919       1.0000          .0000       10.000    
     3 'Normalizat'    1.3847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96282       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.

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

 FCN=   7680.696     FROM MIGRAD    STATUS=FAILED       101 CALLS      318 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.885        59.767        .10373E-03   -.51510E-05
   2  Index         2.7939        1.6896        .95631E-02    .54648E-03
   3  Normalizat    1.3849        .26488        .31897E-03   -.94450E-05
   4  Prefactor     .96274        .14403        .20590E-03    .12810E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7680.696     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      394 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.885        59.767        .51118E-03   -1.4936    
   2  Index         2.7939        1.6896        .14851E-02   -.45697    
   3  Normalizat    1.3849        .26488        .42287E-03   -.81065    
   4  Prefactor     .96274        .14403        .30079E-03   -.93982    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7680.696     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      422 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.885        43.728        .41493E-05    .10960E-05
   2  Index         2.7939        1.2516        .19126E-02    .21185E-04
   3  Normalizat    1.3849        .26451        .12759E-04    .35641E-06
   4  Prefactor     .96274        .14380        .82361E-05    .27607E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8853
  Index      = 2.79386
  Normalizat = 1.38494
  Prefactor  = 0.962743
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.696     FROM HESSE     STATUS=OK            25 CALLS      447 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.885        42.110        .82986E-06   -1.4936    
   2  Index         2.7939        1.2059        .38252E-03   -.45697    
   3  Normalizat    1.3849        .26461        .25518E-05   -.81065    
   4  Prefactor     .96274        .14391        .16472E-05   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97718e-14
Minuit parameter uncertainties:
  1  42.194
  2  1.22087
  3  0.26487
  4  0.143971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799045': 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) = 7680.69599006
delta logL = 0.109082652681

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.489e+01  4.219e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.794e+00  1.221e+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:  9.627e-01  1.440e-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.385e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/799045/cmap_HighResolution_408844801_409104001_4FGL_J1438.0+0219_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-10 10:34:17.840546', job_id='799045', GAL2='0.96', fit_tolerance='1e-08', EG2='1.38', EG='1.40', time_epoch_completed='1631295257.84', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.09e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='654' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 799045: <4FGL_J1438.0+0219_daily_bin654> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin654> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 10:21:05 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 10:21: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 10:21:06 2021
Terminated at Fri Sep 10 10:34:18 2021
Results reported at Fri Sep 10 10:34:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin654 219.504 2.3272 408844801 409104001 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

