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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1640
RA = 69.6099, Dec = -12.9053
tmin = 664416001, tmax = 664675201
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='274423', job_status='RUN', time_executed='2022-01-24 00:08:42.057715', time_epoch_executed='1643011722.06' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274423/ft1_4FGL_J0438.4-1254_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274423/ft1_4FGL_J0438.4-1254_daily_bin1640.fits outfile=/scratch/kocevski/274423/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1640.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=664416001.0 tmax=664675201.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.93
user 3.39
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.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/274423/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1640.fits evtable="EVENTS" outfile="/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.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.67
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/274423/ltcube_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.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/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits
.....................!
real 13.25
user 12.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/274423/ltcube_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits outfile=/scratch/kocevski/274423/expmap_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.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/274423/ltcube_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits
.....................!
real 191.52
user 185.99
sys 5.16

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J0438.4-1254 @ 69.6099 -12.9053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits outfile=/scratch/kocevski/274423/cmap_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.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=69.6099 yref=-12.9053 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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits outfile=/scratch/kocevski/274423/cmap_HighResolution_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.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=69.6099 yref=-12.9053 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274423/Model_4FGL_J0438.4-1254_daily_bin1640.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/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits.....................!
real 85.38
user 83.96
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits', '/scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits', expMap='/scratch/kocevski/274423/expmap_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits', expCube='/scratch/kocevski/274423/ltcube_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274423/Model_4FGL_J0438.4-1254_daily_bin1640.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0438.4-1254'

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.972e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/274423/ft1_filtered_4FGL_J0438.4-1254_daily_bin1640.fits
Spacecraft file(s): /scratch/kocevski/274423/ft2_4FGL_J0438.4-1254_daily_bin1640.fits
Exposure map: /scratch/kocevski/274423/expmap_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits
Exposure cube: /scratch/kocevski/274423/ltcube_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274423/Model_4FGL_J0438.4-1254_daily_bin1640.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) = 5834.66284259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4884       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.726       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5253       1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.5655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5668       1.0000         .10000E-03   10000.    
    13 'norm      '    .46958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.516       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
    17 'norm      '    34.248       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .86921       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5834.653     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1874 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4705        39.792        .28705E-04   -.35663E-04
   2  Prefactor     4.9923        4.0927       -.96296E-07   -.21310E-03
   3  Prefactor     13.726        9.6907       -.15369E-06   -.13610E-03
   4  norm          .10000E-03    10.818        .46463E-06** at limit **
   5  Prefactor     4.5250        5.6626        .20542E-06   -.46534E-03
   6  norm          .10000E-03    3.8845       -.42910E-06** at limit **
   7  norm          9.5575        13.093        .14319E-04   -.28033E-04
   8  Prefactor     .10000E-03    6.9094       -.73437E-06** at limit **
   9  Prefactor     .10000E-03    13.319       -.53214E-06** at limit **
  10  Prefactor     15.819        21.722       -.42699E-05    .17071E-05
  11  Prefactor     .10000E-03    1.9744        .23155E-06** at limit **
  12  Prefactor     3.5514        145.80       -.52557E-04   -.54034E-05
  13  norm          .46958        .20053        .11809E-06    .11350E-02
  14  Prefactor     14.439        49.985       -.12433E-03    .27587E-05
  15  Prefactor     10.388        22.330        .81723E-05   -.63859E-05
  16  Prefactor     16.580        30.387        .30343E-04    .11883E-03
  17  norm          34.230        51.633       -.20347E-04    .91525E-05
  18  Normalizat    .86947        .22073       -.38026E-05    .23408E-03
  19  Prefactor     .99481        .12618        .38221E-05   -.34702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47047
  Prefactor  = 4.99227
  Prefactor  = 13.726
  norm       = 0.0001
  Prefactor  = 4.52497
  norm       = 0.0001
  norm       = 9.5575
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.8186
  Prefactor  = 0.0001
  Prefactor  = 3.55137
  norm       = 0.469579
  Prefactor  = 14.4392
  Prefactor  = 10.3883
  Prefactor  = 16.5802
  norm       = 34.2298
  Normalizat = 0.86947
  Prefactor  = 0.994808
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.653     FROM HESSE     STATUS=OK           272 CALLS     2146 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4705        39.575        .21649E-03   -1.5335    
   2  Prefactor     4.9923        4.0893        .13343E-03   -1.5261    
   3  Prefactor     13.726        9.7476        .10811E-03   -1.4967    
   4  norm          .10000E-03    10.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5250        5.6718        .18804E-03   -1.5282    
   6  norm          .10000E-03    4.0417        .29397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.5575        13.092        .12957E-03   -1.5090    
   8  Prefactor     .10000E-03    6.9657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.819        21.754        .10070E-03   -1.4912    
  11  Prefactor     .10000E-03    1.9804        .10482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5514        147.02        .21399E-03   -1.5331    
  13  norm          .46958        .20117        .21363E-04   -1.5571    
  14  Prefactor     14.439        50.109        .10513E-03   -1.4948    
  15  Prefactor     10.388        22.321        .12425E-03   -1.5063    
  16  Prefactor     16.580        30.417        .98395E-04   -1.4893    
  17  norm          34.230        51.637        .68475E-04   -1.4537    
  18  Normalizat    .86947        .25635        .32024E-03   -.97541    
  19  Prefactor     .99481        .14679        .18778E-03   -.92903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05535e-09
Minuit parameter uncertainties:
  1  23.4581
  2  4.08951
  3  9.74875
  4  3.1771e-05
  5  5.67251
  6  7.7553e-05
  7  13.0954
  8  0.000163269
  9  8.10592e-05
  10  21.7652
  11  2.4597e-05
  12  45.8202
  13  0.201175
  14  50.2557
  15  22.3392
  16  30.4456
  17  51.7041
  18  0.256712
  19  0.146846
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.582e+01  2.177e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.948e-01  1.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.695e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274423/likelihoodResults_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.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) = 5834.63496743
delta logL = 0.0180301449509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.62953712
delta logL = 0.0234604621373

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5834.630     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.250        26.884        .23438E-02   -.18129E-02
   2  Index         2.1744        1.1137        .24874E-01    .25614E-05
   3  Normalizat    .87979        .20082        .71971E-01    .22582E-04
   4  Prefactor     .99078        .12458        .46152E-01   -.25917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2503
  Index      = 2.17441
  Normalizat = 0.879787
  Prefactor  = 0.990777
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.630     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.250        25.821        .93753E-04   -1.4853    
   2  Index         2.1744        1.0730        .99494E-03   -.60058    
   3  Normalizat    .87979        .23129        .31847E-03   -.97174    
   4  Prefactor     .99078        .14385        .18810E-03   -.93038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21313e-08
Minuit parameter uncertainties:
  1  25.8365
  2  1.08545
  3  0.231548
  4  0.143908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274423': 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) = 5834.62953711
delta logL = 0.0234604663292

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.825e+01  2.584e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.174e+00  1.085e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.908e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.798e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
Ra Dec: 69.610 -12.905

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/274423/cmap_HighResolution_664416001_664675201_4FGL_J0438.4-1254_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2022-01-24 00:17:48.044382', job_id='274423', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.87', time_epoch_completed='1643012268.04', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.35e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1640' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:17:48 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 274472: <4FGL_J0438.4-1254_daily_bin1640> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1640> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 24 00:06:09 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:07:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:07:12 2022
Terminated at Mon Jan 24 00:17:14 2022
Results reported at Mon Jan 24 00:17:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1640 69.6099 -12.9053 664416001 664675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0438.4-1254 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            665 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 274423: <4FGL_J0438.4-1254_daily_bin1640> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1640> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jan 24 00:06:07 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:07:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:07:02 2022
Terminated at Mon Jan 24 00:17:48 2022
Results reported at Mon Jan 24 00:17:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1640 69.6099 -12.9053 664416001 664675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0438.4-1254 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            701 sec.

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

