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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1155
RA = 69.6099, Dec = -12.9053
tmin = 538704001, tmax = 538963201
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='624570', job_status='RUN', time_executed='2021-08-21 01:27:20.694742', time_epoch_executed='1629534440.69' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624570/ft1_4FGL_J0438.4-1254_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624570/ft1_4FGL_J0438.4-1254_daily_bin1155.fits outfile=/scratch/kocevski/624570/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1155.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=538704001.0 tmax=538963201.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 10.62
user 3.30
sys 7.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/624570/ltcube_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.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/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits
.....................!
real 19.94
user 11.68
sys 8.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/624570/ltcube_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.fits outfile=/scratch/kocevski/624570/expmap_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.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/624570/ltcube_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.fits
.....................!
real 199.56
user 185.41
sys 13.59

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/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits scfile=/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits outfile=/scratch/kocevski/624570/cmap_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.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 7.49
user 0.38
sys 7.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits scfile=/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits outfile=/scratch/kocevski/624570/cmap_HighResolution_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.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 7.42
user 0.38
sys 7.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/624570/ft2_4FGL_J0438.4-1254_daily_bin1155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624570/Model_4FGL_J0438.4-1254_daily_bin1155.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/624570/ft1_filtered_4FGL_J0438.4-1254_daily_bin1155.fits.....................!
real 101.51
user 90.86
sys 10.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7781       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11873E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .19033       1.0000         .10000E-03   10000.    
     7 'norm      '    8.9952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40733       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    86.808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    42.288       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98471       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83386       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=   6397.323     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1900 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.027        15.645        .60693E-06   -.40484E-04
   2  Prefactor     1.6369        1.7906        .45211E-07   -.15227E-03
   3  Prefactor     5.7782        4.9649       -.58426E-06   -.21598E-03
   4  norm          .10000E-03    5.9982       -.70079E-05** at limit **
   5  Prefactor     .10001E-03    1.6481        .87731E-06** at limit **
   6  norm          .23126        2.6070       -.81128E-06    .35086E-03
   7  norm          8.9927        9.0172        .84247E-06   -.11554E-03
   8  Prefactor     .10000E-03    7.9928        .58240E-05** at limit **
   9  Prefactor     .10000E-03    5.7298        .40059E-05** at limit **
  10  Prefactor     35.011        23.693        .41733E-05   -.45200E-04
  11  Prefactor     .10000E-03    2.2352        .83929E-07** at limit **
  12  Prefactor     .10000E-03    9.4666       -.91627E-05** at limit **
  13  norm          .40733        .18691        .19678E-07   -.39409E-03
  14  Prefactor     .10000E-03    23.182       -.73038E-05** at limit **
  15  Prefactor     86.814        33.998        .51586E-05   -.13296E-04
  16  Prefactor     .10000E-03    16.252        .68130E-05** at limit **
  17  norm          42.298        60.653        .15679E-04   -.15819E-04
  18  Normalizat    .98489        .18561       -.16371E-05   -.25028E-03
  19  Prefactor     .83369        .11486       -.71614E-06   -.19539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0272
  Prefactor  = 1.63687
  Prefactor  = 5.7782
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.231261
  norm       = 8.99275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.407334
  Prefactor  = 0.0001
  Prefactor  = 86.8136
  Prefactor  = 0.0001
  norm       = 42.2983
  Normalizat = 0.98489
  Prefactor  = 0.83369
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.323     FROM HESSE     STATUS=OK           266 CALLS     2166 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.027        15.660        .10694E-03   -1.4959    
   2  Prefactor     1.6369        1.7871        .10864E-03   -1.5452    
   3  Prefactor     5.7782        4.9707        .15944E-03   -1.5227    
   4  norm          .10000E-03    6.0036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    6.9211        .19534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .23126        19.752        .24744E-02   -1.5612    
   7  norm          8.9927        8.9908        .13364E-03   -1.5108    
   8  Prefactor     .10000E-03    8.1056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.011        23.731        .67730E-04   -1.4524    
  11  Prefactor     .10000E-03    2.2476        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40733        .18711        .22547E-04   -1.5580    
  14  Prefactor     .10000E-03    23.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     86.814        34.023        .43120E-04   -1.3842    
  16  Prefactor     .10000E-03    16.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          42.298        60.635        .61646E-04   -1.4406    
  18  Normalizat    .98489        .21019        .27624E-03   -.93538    
  19  Prefactor     .83369        .13188        .19160E-03   -.98498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03748e-09
Minuit parameter uncertainties:
  1  15.6648
  2  1.78712
  3  4.97109
  4  5.81983e-06
  5  0.000539953
  6  4.27506
  7  8.99216
  8  9.8333e-06
  9  2.97818e-06
  10  23.7378
  11  5.76211e-07
  12  5.06343e-06
  13  0.187113
  14  6.82958e-06
  15  34.0306
  16  7.72098e-05
  17  60.7232
  18  0.210369
  19  0.131927
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  3.501e+01  2.374e+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:  8.337e-01  1.319e-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:  9.849e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/624570/likelihoodResults_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.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) = 6396.82040655
delta logL = 0.502504749294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.81570618
delta logL = 0.507205120581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.340       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0436       1.0000          .0000       10.000    
     3 'Normalizat'    .94779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84864       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=   6396.816     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      302 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.346        26.541        .96181E-04    .11584E-03
   2  Index         3.0432        .83671        .44174E-02    .68062E-04
   3  Normalizat    .94782        .20708        .28082E-03   -.15457E-03
   4  Prefactor     .84862        .13184        .19004E-03    .39183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3462
  Index      = 3.04316
  Normalizat = 0.947818
  Prefactor  = 0.848619
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.816     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.346        21.305        .38473E-05   -1.4875    
   2  Index         3.0432        .67220        .17669E-03   -.40212    
   3  Normalizat    .94782        .20663        .11233E-04   -.94800    
   4  Prefactor     .84862        .13141        .76017E-05   -.97960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83754e-10
Minuit parameter uncertainties:
  1  21.3138
  2  0.674613
  3  0.206799
  4  0.131455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624570': 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) = 6396.81570579
delta logL = 0.507205509287

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.735e+01  2.131e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.043e+00  6.746e-01  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:  8.486e-01  1.315e-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:  9.478e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 3.04 +/- 0.67
Photon Flux (Free Index): 1.02e-07 +/- 6.12e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.20e-05

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/624570/cmap_HighResolution_538704001_538963201_4FGL_J0438.4-1254_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='1.98e-05', photon_flux_error='4.78e-08', dlogl='5.07e-01', energy_flux='2.22e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-21 01:38:51.726558', photon_index_error2='0.67', photon_index2='3.04', ts='3.12', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.20e-05', EG='0.98', time_epoch_completed='1629535131.73', return_code='0', job_id='624570', GAL2='0.85', EG2='0.95', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.12e-08', ts2='4.17', photon_index='2.43' WHERE bin_id='1155' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:38:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 624570: <4FGL_J0438.4-1254_daily_bin1155> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1155> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 21 01:25:21 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:25:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 01:25:22 2021
Terminated at Sat Aug 21 01:38:53 2021
Results reported at Sat Aug 21 01:38:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1155 69.6099 -12.9053 538704001 538963201 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 :                                   794.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

