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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1624
RA = 69.6099, Dec = -12.9053
tmin = 660268801, tmax = 660528001
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='192842', job_status='RUN', time_executed='2021-12-07 15:07:44.973963', time_epoch_executed='1638918464.97' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192842/ft1_4FGL_J0438.4-1254_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192842/ft1_4FGL_J0438.4-1254_daily_bin1624.fits outfile=/scratch/kocevski/192842/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1624.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=660268801.0 tmax=660528001.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.02
user 3.72
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/192842/ltcube_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.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/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits
.....................!
real 16.43
user 15.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/192842/ltcube_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits outfile=/scratch/kocevski/192842/expmap_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.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/192842/ltcube_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits
.....................!
real 193.73
user 187.95
sys 4.54

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/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits scfile=/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits outfile=/scratch/kocevski/192842/cmap_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits scfile=/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits outfile=/scratch/kocevski/192842/cmap_HighResolution_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192842/Model_4FGL_J0438.4-1254_daily_bin1624.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/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits.....................!
real 95.79
user 94.03
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits', '/scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits', expMap='/scratch/kocevski/192842/expmap_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits', expCube='/scratch/kocevski/192842/ltcube_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192842/Model_4FGL_J0438.4-1254_daily_bin1624.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/192842/ft1_filtered_4FGL_J0438.4-1254_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/192842/ft2_4FGL_J0438.4-1254_daily_bin1624.fits
Exposure map: /scratch/kocevski/192842/expmap_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits
Exposure cube: /scratch/kocevski/192842/ltcube_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192842/Model_4FGL_J0438.4-1254_daily_bin1624.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) = 6816.2210026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8827       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47642E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72989E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .72522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.054       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95677       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=   6816.131     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1652 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.485       -.15417E-05** at limit **
   2  Prefactor     4.8843        3.6511       -.98107E-07    .14740E-03
   3  Prefactor     .10002E-03    12.758       -.56068E-05** at limit **
   4  norm          .10000E-03    6.3901       -.44291E-07** at limit **
   5  Prefactor     .10000E-03    2.0145       -.71495E-07** at limit **
   6  norm          .10000E-03    3.8496       -.44809E-07** at limit **
   7  norm          .10000E-03    17.758        .30720E-05** at limit **
   8  Prefactor     5.5996        11.135       -.87016E-08   -.11562E-03
   9  Prefactor     .10000E-03    49.297        .13153E-04** at limit **
  10  Prefactor     .10000E-03    4.3200        .48943E-07** at limit **
  11  Prefactor     1.2908        3.2429       -.13453E-05    .73290E-04
  12  Prefactor     .10000E-03    16.402       -.27247E-05** at limit **
  13  norm          .72522        .20713       -.55971E-08    .60912E-03
  14  Prefactor     .10000E-03    49.401        .45833E-05** at limit **
  15  Prefactor     .10000E-03    13.883        .14305E-06** at limit **
  16  Prefactor     .10000E-03    10.091        .14637E-07** at limit **
  17  norm          15.892        48.684        .17459E-05    .13764E-04
  18  Normalizat    1.1105        .18944        .87146E-06    .76621E-04
  19  Prefactor     .95696        .11687        .12839E-06    .16682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.88433
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.59964
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.29079
  Prefactor  = 0.0001
  norm       = 0.725218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8925
  Normalizat = 1.11054
  Prefactor  = 0.956956
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.131     FROM HESSE     STATUS=OK           266 CALLS     1918 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8843        3.6564        .13161E-03   -1.5266    
   3  Prefactor     .10002E-03    48.336        .38849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.3922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0490        .11437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9271        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5996        11.091        .16991E-03   -1.5235    
   9  Prefactor     .10000E-03    54.960        .48787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3219        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2908        3.3129        .23613E-03   -1.5481    
  12  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .72522        .20743        .19444E-04   -1.5538    
  14  Prefactor     .10000E-03    50.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.892        48.796        .99960E-04   -1.4910    
  18  Normalizat    1.1105        .21680        .28408E-03   -.89414    
  19  Prefactor     .95696        .13670        .19392E-03   -.94178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64605e-10
Minuit parameter uncertainties:
  1  8.83433e-05
  2  3.65656
  3  0.00181394
  4  3.25539e-06
  5  5.03321e-06
  6  1.67268e-05
  7  7.55251e-05
  8  11.0951
  9  0.00070806
  10  1.01789e-06
  11  3.31342
  12  0.000128987
  13  0.207434
  14  0.00027463
  15  7.14122e-06
  16  2.14317e-05
  17  48.9184
  18  0.216979
  19  0.136752
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.018e-06  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.570e-01  1.368e-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:  1.111e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192842/likelihoodResults_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.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) = 6816.13167535
delta logL = -0.00109798296126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6816.13057721
delta logL = 1.63524418895e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6816.131     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.836        .17019E-01** at limit **
   2  Index         1.8018        7.8889        .50000        .50700E-06
   3  Normalizat    1.1105        .91629E-02    .28408E-03    .18141E-03
   4  Prefactor     .95696        .58873E-02    .19392E-03    .28763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8018
  Normalizat = 1.11054
  Prefactor  = 0.956956
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.131     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    185.60        .19347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8018        5.7453        .50000       -.69403    
   3  Normalizat    1.1105        .29008E-01    .11363E-04   -.89414    
   4  Prefactor     .95696        .18638E-01    .38784E-04   -.94178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45488e-08
Minuit parameter uncertainties:
  1  9.77517e-05
  2  849.934
  3  0.0290087
  4  0.0186383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192842': 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): 102
logL (Free Index) = 6816.13057448
delta logL = 2.88564388029e-06

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  9.775e-05  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.802e+00  8.499e+02  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.570e-01  1.864e-02  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:  1.111e+00  2.901e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/192842/cmap_HighResolution_660268801_660528001_4FGL_J0438.4-1254_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-12-07 15:17:39.075903', job_id='192842', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1638919059.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1624' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 15:17:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 192842: <4FGL_J0438.4-1254_daily_bin1624> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1624> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 15:05:19 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 15:06:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 15:06:07 2021
Terminated at Tue Dec  7 15:17:39 2021
Results reported at Tue Dec  7 15:17:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1624 69.6099 -12.9053 660268801 660528001 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 :                                   591.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            740 sec.

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

