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


Performing analysis on: 4FGL_J0618.9-1138_daily_bin544
RA = 94.7482, Dec = -11.636
tmin = 380332801, tmax = 380592001
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='293278', job_status='RUN', time_executed='2021-08-24 21:06:03.440228', time_epoch_executed='1629864363.44' WHERE source_name='4FGL J0618.9-1138' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293278/ft1_4FGL_J0618.9-1138_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293278/ft1_4FGL_J0618.9-1138_daily_bin544.fits outfile=/scratch/kocevski/293278/ft1_filteredMKT_4FGL_J0618.9-1138_daily_bin544.fits ra=94.7482 dec=-11.636 rad=12.0 tmin=380332801.0 tmax=380592001.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.74
user 3.23
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.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/293278/ft1_filteredMKT_4FGL_J0618.9-1138_daily_bin544.fits evtable="EVENTS" outfile="/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.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.79
user 0.33
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/293278/ltcube_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.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/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits
.....................!
real 12.34
user 11.66
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/293278/ltcube_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits outfile=/scratch/kocevski/293278/expmap_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.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/293278/ltcube_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits
.....................!
real 192.13
user 185.53
sys 6.22

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 146 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0618.9-1138 @ 94.7482 -11.636

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits outfile=/scratch/kocevski/293278/cmap_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.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=94.7482 yref=-11.636 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.83
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits outfile=/scratch/kocevski/293278/cmap_HighResolution_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.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=94.7482 yref=-11.636 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.83
user 0.37
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293278/Model_4FGL_J0618.9-1138_daily_bin544.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits.....................!
real 230.01
user 227.95
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits', '/scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits', expMap='/scratch/kocevski/293278/expmap_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits', expCube='/scratch/kocevski/293278/ltcube_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293278/Model_4FGL_J0618.9-1138_daily_bin544.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0618.9-1138'

4FGL J0618.9-1138
   Spectrum: PowerLaw
278    Prefactor:  4.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.536e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/293278/ft1_filtered_4FGL_J0618.9-1138_daily_bin544.fits
Spacecraft file(s): /scratch/kocevski/293278/ft2_4FGL_J0618.9-1138_daily_bin544.fits
Exposure map: /scratch/kocevski/293278/expmap_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits
Exposure cube: /scratch/kocevski/293278/ltcube_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293278/Model_4FGL_J0618.9-1138_daily_bin544.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) = 13632.1001536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9962       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7006       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1268       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10170E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9548       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13632.07     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1385 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9976        5.1023       -.33550E-06   -.14155E-04
   2  norm          .10000E-03    12.299        .35865E-06** at limit **
   3  norm          .10000E-03    4.2720        .23970E-07** at limit **
   4  Prefactor     1.7031        5.0557        .19994E-05    .80028E-03
   5  norm          2.3001        11.003        .31545E-05    .19869E-03
   6  Prefactor     .10000E-03    2.4261       -.38439E-07** at limit **
   7  Prefactor     .10000E-03    31.781       -.43144E-06** at limit **
   8  Prefactor     .10000E-03    5.6767        .82112E-07** at limit **
   9  Prefactor     .10000E-03    129.16        .15848E-04** at limit **
  10  Prefactor     .10000E-03    16.704       -.59306E-06** at limit **
  11  norm          8.1282        6.0259       -.15219E-06    .35181E-04
  12  norm          .10000E-03    4.7700       -.23466E-06** at limit **
  13  norm          .10009E-03    2.5515        .19269E-05** at limit **
  14  norm          .10000E-03    2.5560       -.68178E-07** at limit **
  15  Prefactor     3.9553        3.0856       -.11474E-06   -.52326E-05
  16  Normalizat    1.2615        .28511        .25731E-05    .37331E-04
  17  Prefactor     .87368        .45531E-01    .30314E-06    .39384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.9976
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.70314
  norm       = 2.30006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.12817
  norm       = 0.0001
  norm       = 0.000100091
  norm       = 0.0001
  Prefactor  = 3.95526
  Normalizat = 1.26152
  Prefactor  = 0.873682
 **********
 **   18 **HESSE 
 **********

 FCN=   13632.07     FROM HESSE     STATUS=OK           221 CALLS     1606 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9976        5.1016        .17991E-03   -1.5261    
   2  norm          .10000E-03    12.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.2763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7031        5.3229        .16128E-02   -1.5447    
   5  norm          2.3001        11.280        .13491E-02   -1.5405    
   6  Prefactor     .10000E-03    2.4317        .17760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    127.54        .42502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1282        6.0249        .14064E-03   -1.5138    
  12  norm          .10000E-03    4.7885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10009E-03    11.128        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9553        3.0811        .17364E-03   -1.5310    
  16  Normalizat    1.2615        .29596        .63557E-03   -.84722    
  17  Prefactor     .87368        .47723E-01    .12311E-03   -.97067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36903e-09
Minuit parameter uncertainties:
  1  5.10203
  2  2.08592e-05
  3  1.68638e-06
  4  5.32439
  5  10.1899
  6  9.44071e-06
  7  7.02012e-05
  8  6.12113e-06
  9  0.000316677
  10  9.46652e-05
  11  6.02535
  12  1.72972e-05
  13  0.0020125
  14  6.14891e-06
  15  3.08118
  16  0.296354
  17  0.0477253
Done.

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

Extracting fit parameters...

4FGL J0618.9-1138
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.167e-04  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.536e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.737e-01  4.773e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.262e+00  2.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 94.748 -11.636
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293278/likelihoodResults_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.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) = 13632.0672146
delta logL = -3.72664799215e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13632.0671776
delta logL = -2.07566699828e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13629.70     FROM MIGRAD    STATUS=CONVERGED    256 CALLS      461 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20827E-02    .12392E-01    .90712E-03** at limit **
   2  Index         7.7181        1.6523        .14913        .25309E-03
   3  Normalizat    1.0896        .71440E-01    .15197        .24138E-04
   4  Prefactor     .88724        .11839E-01    .27644E-01    .19410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00208268
  Index      = 7.71814
  Normalizat = 1.08956
  Prefactor  = 0.887237
 **********
 **   18 **HESSE 
 **********

 FCN=   13629.70     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      496 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20827E-02    .34304E-01    .31548E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7181        3.1535        .57344E-02    .57475    
   3  Normalizat    1.0896        .24210        .67555E-03   -.90088    
   4  Prefactor     .88724        .39651E-01    .12217E-03   -.96589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69006e-07
Minuit parameter uncertainties:
  1  0.0164942
  2  3.56819
  3  0.242344
  4  0.0396523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293278': 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) = 13629.6959933
delta logL = 2.37118401271

Extracting fit parameters...

4FGL J0618.9-1138
   Spectrum: PowerLaw
278    Prefactor:  2.083e-03  1.649e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  7.718e+00  3.568e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.872e-01  3.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.090e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 94.748 -11.636
Photon Index (Free Index): 7.72 +/- 3.57
Photon Flux (Free Index): 1.96e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.29e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293278/cmap_HighResolution_380332801_380592001_4FGL_J0618.9-1138_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', energy_flux2='2.29e-05', dlogl='2.37e+00', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-08-24 21:20:52.209956', photon_index_error2='3.57', photon_index2='7.72', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.30e-05', EG='1.26', time_epoch_completed='1629865252.21', return_code='0', job_id='293278', GAL2='0.89', EG2='1.09', return_code2='102', photon_flux_error2='1.05e-07', ts2='5.08', photon_index='2.54' WHERE bin_id='544' AND source_name='4FGL J0618.9-1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 21:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 293278: <4FGL_J0618.9-1138_daily_bin544> in cluster <slac> Done

Job <4FGL_J0618.9-1138_daily_bin544> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 24 21:05:44 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 21:05:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 21:05:46 2021
Terminated at Tue Aug 24 21:20:53 2021
Results reported at Tue Aug 24 21:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0618.9-1138_daily_bin544 94.7482 -11.636 380332801 380592001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0618.9-1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   888.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             380.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

