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


Performing analysis on: 4FGL_J0237.6-3602_daily_bin1547
RA = 39.4244, Dec = -36.0422
tmin = 640310401, tmax = 640569601
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='552127', job_status='RUN', time_executed='2021-08-16 07:00:13.931728', time_epoch_executed='1629122413.93' WHERE source_name='4FGL J0237.6-3602' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552127/ft1_4FGL_J0237.6-3602_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552127/ft1_4FGL_J0237.6-3602_daily_bin1547.fits outfile=/scratch/kocevski/552127/ft1_filteredMKT_4FGL_J0237.6-3602_daily_bin1547.fits ra=39.4244 dec=-36.0422 rad=12.0 tmin=640310401.0 tmax=640569601.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 7.55
user 4.76
sys 1.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.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/552127/ft1_filteredMKT_4FGL_J0237.6-3602_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.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.95
user 0.34
sys 1.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/552127/ltcube_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.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/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits
.....................!
real 17.33
user 12.53
sys 2.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/552127/ltcube_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits outfile=/scratch/kocevski/552127/expmap_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.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/552127/ltcube_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits
.....................!
real 196.95
user 186.04
sys 7.21

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 point sources and 1 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 J0237.6-3602 @ 39.4244 -36.0422

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits outfile=/scratch/kocevski/552127/cmap_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.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=39.4244 yref=-36.0422 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 2.26
user 0.38
sys 1.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits outfile=/scratch/kocevski/552127/cmap_HighResolution_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.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=39.4244 yref=-36.0422 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 2.25
user 0.39
sys 1.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552127/Model_4FGL_J0237.6-3602_daily_bin1547.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits.....................!
real 89.44
user 83.67
sys 3.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits', '/scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits', expMap='/scratch/kocevski/552127/expmap_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits', expCube='/scratch/kocevski/552127/ltcube_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/552127/Model_4FGL_J0237.6-3602_daily_bin1547.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0237.6-3602'

4FGL J0237.6-3602
   Spectrum: PowerLaw
285    Prefactor:  2.145e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.862e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  3.578e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/552127/ft1_filtered_4FGL_J0237.6-3602_daily_bin1547.fits
Spacecraft file(s): /scratch/kocevski/552127/ft2_4FGL_J0237.6-3602_daily_bin1547.fits
Exposure map: /scratch/kocevski/552127/expmap_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits
Exposure cube: /scratch/kocevski/552127/ltcube_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/552127/Model_4FGL_J0237.6-3602_daily_bin1547.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) = 4072.58430131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .43469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    155.56       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13879E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13187       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2008       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4072.580     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2471 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.3983        .16433E-05** at limit **
   2  Prefactor     .10000E-03    10.195        .28819E-06** at limit **
   3  Prefactor     33.794        41.133        .14136E-04   -.76851E-04
   4  Prefactor     .10000E-03    6.0485        .24425E-06** at limit **
   5  Prefactor     .10000E-03    4.4145        .17951E-07** at limit **
   6  Prefactor     .10000E-03    5.1606        .23116E-07** at limit **
   7  Prefactor     .10000E-03    39.035       -.18884E-04** at limit **
   8  norm          .10000E-03    2.3131       -.50099E-06** at limit **
   9  Prefactor     .10000E-03    42.698        .31113E-04** at limit **
  10  Prefactor     .10000E-03    20.469        .90900E-07** at limit **
  11  Prefactor     .10000E-03    17.210       -.27383E-06** at limit **
  12  Prefactor     .10000E-03    48.069        .16461E-04** at limit **
  13  Prefactor     .10000E-03    1.8039        .45237E-07** at limit **
  14  norm          .43553        .93718        .11119E-06   -.17104E-02
  15  Prefactor     155.93        317.94        .29448E-03   -.11176E-05
  16  Prefactor     .10000E-03    158.69        .22234E-04** at limit **
  17  Prefactor     .36529        19.992        .25156E-05   -.15510E-03
  18  Prefactor     .10000E-03    52.456       -.34054E-04** at limit **
  19  norm          .10000E-03    5.4997        .23764E-06** at limit **
  20  norm          .13317        1.0863        .78387E-06   -.73147E-03
  21  Normalizat    1.2006        .21073       -.56629E-05   -.48333E-03
  22  Prefactor     1.0583        .23442       -.62432E-05   -.31425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 33.7937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.435532
  Prefactor  = 155.933
  Prefactor  = 0.000100001
  Prefactor  = 0.365294
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.133172
  Normalizat = 1.20062
  Prefactor  = 1.05829
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.580     FROM HESSE     STATUS=OK           338 CALLS     2809 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.0434        .25745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.794        41.239        .68946E-04   -1.4545    
   4  Prefactor     .10000E-03    6.0932        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4179        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1613        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.4485        .18644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8074        .83703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .43553        .85638        .87266E-03   -1.5576    
  15  Prefactor     155.93        318.06        .16162E-03   -1.3204    
  16  Prefactor     .10000E-03    162.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36529        218.07        .54813E-02   -1.5587    
  18  Prefactor     .10000E-03    52.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7034        .29143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .13317        4.7262        .12637E-02   -1.5635    
  21  Normalizat    1.2006        .24721        .21842E-03   -.86584    
  22  Prefactor     1.0583        .27825        .26347E-03   -.90811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69873e-09
Minuit parameter uncertainties:
  1  0.000496888
  2  8.36268e-05
  3  41.2736
  4  6.30687e-05
  5  2.55229e-06
  6  6.76012e-08
  7  0.000141925
  8  0.000104953
  9  0.000234107
  10  0.000269915
  11  5.38891e-05
  12  0.000351974
  13  5.1091e-06
  14  0.856409
  15  321.664
  16  0.000662258
  17  17.9138
  18  0.000237292
  19  5.72546e-05
  20  1.58623
  21  0.247446
  22  0.278634
Done.

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

Extracting fit parameters...

4FGL J0237.6-3602
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.699e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.862e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  3.578e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.058e+00  2.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.201e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.424 -36.042
Photon Flux Upper Limit: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552127/likelihoodResults_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.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) = 4072.57980727
delta logL = -0.000232018260249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4072.5795767
delta logL = -1.44057003126e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4072.580     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.8650        .90712E-02** at limit **
   2  Index         2.2202        8.7252        .50000       -.13367E-04
   3  Normalizat    1.2006        .12777E-02    .34876E-01   -.14511E-04
   4  Prefactor     1.0583        .14647E-02    .59577E-01   -.10029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.22019
  Normalizat = 1.20062
  Prefactor  = 1.05829
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.580     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2202        6.1087        .20000       -.58952    
   3  Normalizat    1.2006        .24003        .21843E-03   -.86584    
   4  Prefactor     1.0583        .27474        .26347E-03   -.90811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69036e-10
Minuit parameter uncertainties:
  1  0.000892239
  2  4.21483
  3  0.240248
  4  0.275105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552127': 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) = 4072.57957448
delta logL = 7.71135091782e-07

Extracting fit parameters...

4FGL J0237.6-3602
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.922e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.220e+00  4.215e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  3.578e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.058e+00  2.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.201e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.424 -36.042

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/552127/cmap_HighResolution_640310401_640569601_4FGL_J0237.6-3602_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-08-16 07:11:04.238768', job_id='552127', GAL2='1.06', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1629123064.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='1547' AND source_name='4FGL J0237.6-3602' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 07:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 552127: <4FGL_J0237.6-3602_daily_bin1547> in cluster <slac> Done

Job <4FGL_J0237.6-3602_daily_bin1547> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 06:55:42 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 06:58:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 06:58:50 2021
Terminated at Mon Aug 16 07:11:05 2021
Results reported at Mon Aug 16 07:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0237.6-3602_daily_bin1547 39.4244 -36.0422 640310401 640569601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0237.6-3602 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   637.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            923 sec.

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

