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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1141
RA = 339.414, Dec = -51.4347
tmin = 535075201, tmax = 535334401
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='430435', job_status='RUN', time_executed='2021-09-28 18:17:48.920972', time_epoch_executed='1632878268.92' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430435/ft1_4FGL_J2237.6-5126_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430435/ft1_4FGL_J2237.6-5126_daily_bin1141.fits outfile=/scratch/kocevski/430435/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1141.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=535075201.0 tmax=535334401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.95
user 4.70
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.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/430435/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/430435/ltcube_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.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/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits
.....................!
real 11.59
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/430435/ltcube_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits outfile=/scratch/kocevski/430435/expmap_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.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/430435/ltcube_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits
.....................!
real 190.70
user 185.39
sys 4.98

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2237.6-5126 @ 339.414 -51.4347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits outfile=/scratch/kocevski/430435/cmap_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.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=339.414 yref=-51.4347 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits outfile=/scratch/kocevski/430435/cmap_HighResolution_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.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=339.414 yref=-51.4347 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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430435/Model_4FGL_J2237.6-5126_daily_bin1141.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/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits.....................!
real 50.89
user 49.58
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits', '/scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits', expMap='/scratch/kocevski/430435/expmap_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits', expCube='/scratch/kocevski/430435/ltcube_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430435/Model_4FGL_J2237.6-5126_daily_bin1141.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2237.6-5126'

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  4.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430435/ft1_filtered_4FGL_J2237.6-5126_daily_bin1141.fits
Spacecraft file(s): /scratch/kocevski/430435/ft2_4FGL_J2237.6-5126_daily_bin1141.fits
Exposure map: /scratch/kocevski/430435/expmap_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits
Exposure cube: /scratch/kocevski/430435/ltcube_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430435/Model_4FGL_J2237.6-5126_daily_bin1141.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) = 7044.98930252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    90.275       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-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 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4824       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6505       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4160       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68555E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6135       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92175       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7044.981     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3315 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9216        15.889        .18827E-07   -.17982E-04
   2  Prefactor     .50523        2.1845        .50076E-06   -.31922E-03
   3  Prefactor     35.116        32.362        .20671E-07   -.24033E-04
   4  Prefactor     .10000E-03    5.6727       -.13023E-05** at limit **
   5  Prefactor     .74020        2.5727        .10134E-05   -.67487E-04
   6  Prefactor     90.229        79.239       -.61769E-06   -.10099E-03
   7  norm          4.1361        4.0791       -.15804E-06   -.11775E-03
   8  Prefactor     2.3766        2.7781        .22206E-06   -.39404E-04
   9  Prefactor     .10000E-03    14.803        .89772E-07** at limit **
  10  Prefactor     .10000E-03    1.3584       -.40251E-07** at limit **
  11  Prefactor     .10000E-03    68.946       -.11159E-05** at limit **
  12  Prefactor     5.3685        9.2092        .48181E-06   -.35699E-04
  13  Prefactor     .10000E-03    30.932       -.28556E-06** at limit **
  14  Prefactor     .10000E-03    2.9719        .60432E-07** at limit **
  15  Prefactor     .10000E-03    23.019        .48641E-06** at limit **
  16  Prefactor     .10000E-03    7.7729        .58141E-07** at limit **
  17  norm          .10000E-03    4.2306        .25357E-07** at limit **
  18  norm          .10000E-03    2.4274       -.91027E-07** at limit **
  19  Prefactor     1.4912        5.9044        .32067E-05    .39094E-04
  20  Prefactor     4.6223        21.199       -.40838E-05   -.78687E-04
  21  norm          1.4162        .89651        .12485E-08   -.83170E-04
  22  Prefactor     .10004E-03    12.040       -.10083E-06** at limit **
  23  Prefactor     6.6152        3.7694        .43555E-07    .93620E-04
  24  Prefactor     .10000E-03    10.557        .17193E-06** at limit **
  25  norm          .10000E-03    19.431       -.22311E-06** at limit **
  26  Normalizat    .92163        .16476       -.10414E-07   -.10141E-03
  27  Prefactor     1.0095        .14433       -.41647E-06   -.66087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.92164
  Prefactor  = 0.505231
  Prefactor  = 35.1155
  Prefactor  = 0.0001
  Prefactor  = 0.740204
  Prefactor  = 90.2289
  norm       = 4.13608
  Prefactor  = 2.37663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.36847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.49123
  Prefactor  = 4.62233
  norm       = 1.41616
  Prefactor  = 0.000100035
  Prefactor  = 6.61517
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.92163
  Prefactor  = 1.0095
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.981     FROM HESSE     STATUS=OK           500 CALLS     3815 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9216        15.870        .14245E-03   -1.5145    
   2  Prefactor     .50523        3.9765        .23145E-02   -1.5566    
   3  Prefactor     35.116        32.315        .67621E-04   -1.4522    
   4  Prefactor     .10000E-03    5.6416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .74020        2.5316        .23617E-03   -1.5536    
   6  Prefactor     90.229        78.941        .21146E-03   -1.3805    
   7  norm          4.1361        4.0832        .16408E-03   -1.5301    
   8  Prefactor     2.3766        2.7661        .14415E-03   -1.5400    
   9  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3640        .95507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    70.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3685        9.1640        .17313E-03   -1.5245    
  13  Prefactor     .10000E-03    30.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0031        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2437        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4427        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4912        5.8644        .30913E-03   -1.5464    
  20  Prefactor     4.6223        20.681        .18663E-03   -1.5278    
  21  norm          1.4162        .88964        .59582E-04   -1.5470    
  22  Prefactor     .10004E-03    14.399        .83009E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.6152        3.7679        .11743E-03   -1.5194    
  24  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    19.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92163        .19508        .24341E-03   -.95704    
  27  Prefactor     1.0095        .17116        .21668E-03   -.92413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75065e-08
Minuit parameter uncertainties:
  1  15.8787
  2  2.83482
  3  32.3313
  4  1.97662e-05
  5  2.53199
  6  79.0329
  7  4.08351
  8  2.76622
  9  1.95593e-05
  10  3.45063e-07
  11  9.15385e-05
  12  9.1664
  13  0.000143755
  14  4.68247e-07
  15  0.000198402
  16  1.29373e-06
  17  5.48455e-07
  18  5.26564e-06
  19  5.86663
  20  19.5654
  21  0.889651
  22  0.0014257
  23  3.76805
  24  4.22522e-06
  25  0.000122716
  26  0.195226
  27  0.171252
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  9.154e-05  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.010e+00  1.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.216e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.414 -51.435
Photon Flux Upper Limit: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430435/likelihoodResults_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.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) = 7044.98109473
delta logL = -6.73244830978e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7044.98102835
delta logL = -9.44940438785e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4206       1.0000          .0000       10.000    
     3 'Normalizat'    .92162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7044.981     FROM MIGRAD    STATUS=FAILED        96 CALLS      283 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14933E-03    547.04        .36285E-02** at limit **
   2  Index         3.0005        7.9881        .50000        .84724E-05
   3  Normalizat    .92163        .10699E-01    .24341E-03    .42035E-06
   4  Prefactor     1.0095        .99753E-02    .21668E-03   -.15741E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7044.981     FROM SIMPLEX   STATUS=PROGRESS     113 CALLS      396 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11063E-03    547.04        .11037E-02** at limit **
   2  Index         2.9984        7.9881        .63329E-03    .84724E-05
   3  Normalizat    .92163        .10699E-01    .22350E-05    .42035E-06
   4  Prefactor     1.0095        .99753E-02    .20458E-05   -.15741E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7044.981     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      445 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    384.23        .72569E-02** at limit **
   2  Index         2.7852        5.8491        .50000        .21518E-05
   3  Normalizat    .92164        .77197E-02    .97366E-05    .40517E-02
   4  Prefactor     1.0095        .71977E-02    .86671E-05    .45514E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010221
  Index      = 2.78519
  Normalizat = 0.921636
  Prefactor  = 1.00951
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.981     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      474 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10221E-03    7816.7        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7852        6.0429        .50000       -.45890    
   3  Normalizat    .92164        .35722E-01    .19473E-05   -.95704    
   4  Prefactor     1.0095        .33313E-01    .17334E-05   -.92413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00929e-08
Minuit parameter uncertainties:
  1  0.252406
  2  2758.29
  3  0.0357226
  4  0.0333138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430435': 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) = 7044.98102723
delta logL = 1.78217305802e-07

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.022e-04  2.524e-01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.785e+00  2.758e+03  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.010e+00  3.331e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.216e-01  3.572e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.414 -51.435

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/430435/cmap_HighResolution_535075201_535334401_4FGL_J2237.6-5126_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-28 18:31:51.322909', job_id='430435', GAL2='1.01', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632879111.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='1141' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 430435: <4FGL_J2237.6-5126_daily_bin1141> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin1141> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:15:26 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:15:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:15:27 2021
Terminated at Tue Sep 28 18:31:52 2021
Results reported at Tue Sep 28 18:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1141 339.414 -51.4347 535075201 535334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2237.6-5126 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

