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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1446
RA = 69.6099, Dec = -12.9053
tmin = 614131201, tmax = 614390401
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='626180', job_status='RUN', time_executed='2021-08-21 01:33:11.512311', time_epoch_executed='1629534791.51' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626180

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626180/ft1_4FGL_J0438.4-1254_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626180/ft1_4FGL_J0438.4-1254_daily_bin1446.fits outfile=/scratch/kocevski/626180/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1446.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=614131201.0 tmax=614390401.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 9.06
user 4.43
sys 4.56

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/626180/ltcube_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.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/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits
.....................!
real 16.12
user 10.84
sys 5.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/626180/ltcube_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.fits outfile=/scratch/kocevski/626180/expmap_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.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/626180/ltcube_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.fits
.....................!
real 196.08
user 185.83
sys 9.66

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/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits scfile=/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits outfile=/scratch/kocevski/626180/cmap_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.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 4.74
user 0.39
sys 4.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits scfile=/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits outfile=/scratch/kocevski/626180/cmap_HighResolution_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.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 4.82
user 0.38
sys 4.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/626180/ft2_4FGL_J0438.4-1254_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626180/Model_4FGL_J0438.4-1254_daily_bin1446.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/626180/ft1_filtered_4FGL_J0438.4-1254_daily_bin1446.fits.....................!
real 80.36
user 73.20
sys 6.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7927       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.523       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .77472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97038       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97808       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=   5030.230     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1620 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.926        .18957E-05** at limit **
   2  Prefactor     11.470        4.9792       -.51061E-08    .83358E-05
   3  Prefactor     5.7921        7.6789        .10290E-05   -.89758E-03
   4  norm          .10000E-03    13.759       -.34947E-05** at limit **
   5  Prefactor     .10000E-03    1.5128        .14430E-06** at limit **
   6  norm          19.523        9.1174        .34091E-07   -.14707E-03
   7  norm          4.1159        5.9054        .11948E-05   -.11212E-02
   8  Prefactor     .10000E-03    9.5946       -.26846E-06** at limit **
   9  Prefactor     .69597        9.4904       -.24911E-06    .47005E-05
  10  Prefactor     .10000E-03    22.676       -.60578E-05** at limit **
  11  Prefactor     .10000E-03    1.7737        .58062E-07** at limit **
  12  Prefactor     .10000E-03    15.486        .61962E-07** at limit **
  13  norm          .77473        .26691        .47116E-08    .11801E-03
  14  Prefactor     .10000E-03    69.196       -.39124E-05** at limit **
  15  Prefactor     .10000E-03    41.880        .68339E-05** at limit **
  16  Prefactor     .10000E-03    19.136        .54814E-05** at limit **
  17  norm          .10000E-03    38.381       -.18235E-05** at limit **
  18  Normalizat    .97038        .21633        .66337E-07    .51096E-04
  19  Prefactor     .97810        .13301       -.13002E-06    .88611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4702
  Prefactor  = 5.79213
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.5226
  norm       = 4.11592
  Prefactor  = 0.0001
  Prefactor  = 0.695972
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.774727
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  norm       = 0.0001
  Normalizat = 0.970381
  Prefactor  = 0.978104
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.230     FROM HESSE     STATUS=OK           264 CALLS     1884 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.470        4.9870        .10098E-03   -1.5030    
   3  Prefactor     5.7921        8.6761        .83436E-03   -1.5227    
   4  norm          .10000E-03    13.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5173        .85174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.523        9.1243        .45324E-03   -1.4824    
   7  norm          4.1159        7.1103        .99343E-03   -1.5302    
   8  Prefactor     .10000E-03    9.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .69597        53.205        .41982E-02   -1.5541    
  10  Prefactor     .10000E-03    23.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7751        .92244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .77473        .26739        .20728E-04   -1.5532    
  14  Prefactor     .10000E-03    69.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97038        .24892        .30804E-03   -.94029    
  19  Prefactor     .97810        .15311        .19244E-03   -.93463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23822e-09
Minuit parameter uncertainties:
  1  0.000138528
  2  4.98715
  3  8.67794
  4  0.000267737
  5  3.27322e-06
  6  9.12491
  7  7.1118
  8  2.09889e-05
  9  12.1806
  10  0.000594411
  11  1.42249e-06
  12  3.88452e-06
  13  0.26739
  14  0.000693068
  15  0.000888645
  16  0.000491641
  17  0.000236741
  18  0.249214
  19  0.153181
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  5.944e-04  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.781e-01  1.532e-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.704e-01  2.492e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/626180/likelihoodResults_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.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) = 5030.23012072
delta logL = -0.000204927468076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5030.22991609
delta logL = -2.99854036712e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3457       1.0000          .0000       10.000    
     3 'Normalizat'    .97039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97811       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=   5030.230     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6703.3        .18142E-02** at limit **
   2  Index         2.3771        6.1839        .50000       -.13778E-04
   3  Normalizat    .97038        .11308        .30804E-03   -.36869E-04
   4  Prefactor     .97810        .71387E-01    .19244E-03   -.59444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.37708
  Normalizat = 0.970381
  Prefactor  = 0.978104
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.230     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3771        6.1853        .50000       -.55223    
   3  Normalizat    .97038        .23960        .12322E-04   -.94029    
   4  Prefactor     .97810        .15138        .38487E-04   -.93463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82953e-10
Minuit parameter uncertainties:
  1  0.000630445
  2  4.55194
  3  0.239862
  4  0.151441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626180': 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) = 5030.22991597
delta logL = -1.85534190678e-07

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  6.304e-04  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.377e+00  4.552e+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.781e-01  1.514e-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.704e-01  2.399e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/626180/cmap_HighResolution_614131201_614390401_4FGL_J0438.4-1254_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-08-21 01:43:03.789431', job_id='626180', GAL2='0.98', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1629535383.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1446' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:43:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 626180: <4FGL_J0438.4-1254_daily_bin1446> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1446> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 01:30:38 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:30:40 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:30:40 2021
Terminated at Sat Aug 21 01:43:05 2021
Results reported at Sat Aug 21 01:43:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1446 69.6099 -12.9053 614131201 614390401 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 :                                   642.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             239.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            747 sec.

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

