/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 58 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin333
RA = 219.504, Dec = 2.3272
tmin = 325641601, tmax = 325900801
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='639650', job_status='RUN', time_executed='2021-09-10 01:43:30.187947', time_epoch_executed='1631263410.19' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639650/ft1_4FGL_J1438.0+0219_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639650/ft2_4FGL_J1438.0+0219_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639650/ft1_4FGL_J1438.0+0219_daily_bin333.fits outfile=/scratch/kocevski/639650/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin333.fits ra=219.504 dec=2.3272 rad=12.0 tmin=325641601.0 tmax=325900801.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.52
user 3.80
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639650/ft1_filtered_4FGL_J1438.0+0219_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/639650/ft2_4FGL_J1438.0+0219_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/639650/ltcube_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.fits outfile=/scratch/kocevski/639650/expmap_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.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/639650/ltcube_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.fits
.....................!
real 191.73
user 187.26
sys 3.95

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/639650/ft1_filtered_4FGL_J1438.0+0219_daily_bin333.fits scfile=/scratch/kocevski/639650/ft2_4FGL_J1438.0+0219_daily_bin333.fits outfile=/scratch/kocevski/639650/cmap_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639650/ft1_filtered_4FGL_J1438.0+0219_daily_bin333.fits scfile=/scratch/kocevski/639650/ft2_4FGL_J1438.0+0219_daily_bin333.fits outfile=/scratch/kocevski/639650/cmap_HighResolution_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0908       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.225       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.05       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13270E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6515       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .39944E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8482       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2361       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84403       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=   7459.174     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1872 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7951        27.492       -.66851E-05   -.92921E-04
   2  Prefactor     3.0697        15.690        .60885E-05    .34346E-03
   3  Prefactor     .10000E-03    21.079       -.90141E-06** at limit **
   4  norm          .10000E-03    2.8466       -.96562E-08** at limit **
   5  norm          .10000E-03    2.3871       -.24234E-07** at limit **
   6  Prefactor     42.230        25.814       -.15251E-06    .84860E-05
   7  norm          4.2862        11.548        .15320E-05   -.33609E-04
   8  Prefactor     136.06        67.192       -.44448E-06    .11790E-04
   9  Prefactor     .10000E-03    43.496        .15632E-06** at limit **
  10  norm          1.1005        66.735        .27656E-04   -.10280E-03
  11  Prefactor     .10000E-03    27.109        .53607E-06** at limit **
  12  norm          1.6514        .30121        .31222E-08   -.51113E-03
  13  norm          .10000E-03    .91780       -.69938E-07** at limit **
  14  norm          .10000E-03    4.4110       -.21363E-06** at limit **
  15  norm          4.8483        5.2317        .23682E-06   -.14567E-04
  16  norm          5.0763        3.5925        .75580E-07    .46790E-04
  17  Prefactor     .10000E-03    34.147       -.74345E-06** at limit **
  18  Normalizat    1.2358        .20742       -.19370E-05   -.10273E-03
  19  Prefactor     .84414        .11284        .22009E-06   -.14257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.79512
  Prefactor  = 3.06972
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.2296
  norm       = 4.28619
  Prefactor  = 136.059
  Prefactor  = 0.0001
  norm       = 1.1005
  Prefactor  = 0.0001
  norm       = 1.65139
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.84834
  norm       = 5.0763
  Prefactor  = 0.0001
  Normalizat = 1.2358
  Prefactor  = 0.844139
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.174     FROM HESSE     STATUS=OK           268 CALLS     2140 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7951        27.681        .14390E-03   -1.5149    
   2  Prefactor     3.0697        16.539        .23068E-03   -1.5358    
   3  Prefactor     .10000E-03    21.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8473        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3902        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.230        25.902        .61692E-04   -1.4407    
   7  norm          4.2862        11.536        .97299E-03   -1.5294    
   8  Prefactor     136.06        67.301        .34529E-04   -1.3370    
   9  Prefactor     .10000E-03    43.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1005        67.703        .21957E-02   -1.5498    
  11  Prefactor     .10000E-03    27.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6514        .30063        .19419E-04   -1.5451    
  13  norm          .10000E-03    .93331        .80733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.927        .35208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8483        5.2311        .18270E-03   -1.5268    
  16  norm          5.0763        3.5939        .13333E-03   -1.5257    
  17  Prefactor     .10000E-03    34.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2358        .24430        .30598E-03   -.85504    
  19  Prefactor     .84414        .13316        .20302E-03   -.98121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42978e-09
Minuit parameter uncertainties:
  1  27.7262
  2  14.2564
  3  0.000192795
  4  1.06429e-06
  5  2.13666e-06
  6  25.9094
  7  11.5415
  8  67.3391
  9  1.29635e-05
  10  17.2832
  11  0.000176378
  12  0.30063
  13  4.36653e-06
  14  5.23443e-06
  15  5.2316
  16  3.59405
  17  3.45478e-05
  18  0.244527
  19  0.133208
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.361e+02  6.734e+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:  8.441e-01  1.332e-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.236e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.90
Ra Dec: 219.504 2.327
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.97e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.66e-05

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) = 7459.05355697
delta logL = 0.120279052313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7459.01610354
delta logL = 0.157732491022

Fit tolerance = 1e-08

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

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

 FCN=   7459.016     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      297 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.872        95.822        .20529E-03    .50942E-03
   2  Index         2.5071        .56782        .40804E-02    .54268E-03
   3  Normalizat    1.2097        .23935        .30871E-03    .10835E-02
   4  Prefactor     .85247        .13164        .20210E-03    .21860E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.8719
  Index      = 2.50715
  Normalizat = 1.20966
  Prefactor  = 0.852473
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.016     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.872        84.170        .41058E-04   -1.3747    
   2  Index         2.5071        .49839        .16322E-03   -.52195    
   3  Normalizat    1.2097        .23833        .61742E-04   -.86305    
   4  Prefactor     .85247        .13144        .40420E-04   -.97822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47968e-09
Minuit parameter uncertainties:
  1  84.2752
  2  0.499496
  3  0.238548
  4  0.131487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639650': 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) = 7459.01609975
delta logL = 0.157736278353

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  9.587e+01  8.428e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.507e+00  4.995e-01  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.525e-01  1.315e-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.210e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.21
Ra Dec: 219.504 2.327
Photon Index (Free Index): 2.51 +/- 0.50
Photon Flux (Free Index): 1.03e-07 +/- 6.25e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.45e-05

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/639650/cmap_HighResolution_325641601_325900801_4FGL_J1438.0+0219_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.97e-08', energy_flux2='2.96e-05', photon_flux_error='3.94e-08', dlogl='1.58e-01', energy_flux='3.36e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-10 01:52:48.309823', photon_index_error2='0.50', photon_index2='2.51', ts='10.90', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.24', time_epoch_completed='1631263968.31', return_code='0', job_id='639650', GAL2='0.85', EG2='1.21', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.25e-08', ts2='11.21', photon_index='2.23' WHERE bin_id='333' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:52:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 639650: <4FGL_J1438.0+0219_daily_bin333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin333 219.504 2.3272 325641601 325900801 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 :                                   549.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

