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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1277
RA = 339.125, Dec = -23.1552
tmin = 570326401, tmax = 570585601
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='408077', job_status='RUN', time_executed='2021-09-28 17:13:45.160777', time_epoch_executed='1632874425.16' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408077/ft1_4FGL_J2236.4-2309_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408077/ft1_4FGL_J2236.4-2309_daily_bin1277.fits outfile=/scratch/kocevski/408077/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1277.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=570326401.0 tmax=570585601.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.45
user 3.25
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.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/408077/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/408077/ltcube_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.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/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/408077/ltcube_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits outfile=/scratch/kocevski/408077/expmap_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.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/408077/ltcube_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits
.....................!
real 190.30
user 184.82
sys 5.13

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

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits outfile=/scratch/kocevski/408077/cmap_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.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.125 yref=-23.1552 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits outfile=/scratch/kocevski/408077/cmap_HighResolution_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.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.125 yref=-23.1552 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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408077/Model_4FGL_J2236.4-2309_daily_bin1277.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/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits.........!
real 14.35
user 13.03
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits', '/scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits', expMap='/scratch/kocevski/408077/expmap_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits', expCube='/scratch/kocevski/408077/ltcube_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408077/Model_4FGL_J2236.4-2309_daily_bin1277.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408077/ft1_filtered_4FGL_J2236.4-2309_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/408077/ft2_4FGL_J2236.4-2309_daily_bin1277.fits
Exposure map: /scratch/kocevski/408077/expmap_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits
Exposure cube: /scratch/kocevski/408077/ltcube_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408077/Model_4FGL_J2236.4-2309_daily_bin1277.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) = 121.639222202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.304       1.0000         .10000E-03   10000.    
     3 'norm      '    9999.6       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8279.2       1.0000         .10000E-03   10000.    
     5 'Prefactor '    132.23       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8545       1.0000         .10000E-03   10000.    
     7 'Prefactor '    611.64       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10902E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73199E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    135.36       1.0000         .10000E-03   10000.    
    15 'norm      '    .35574E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13612E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   121.4285     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3576 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    9983.2       -.21027E-03** at limit **
   2  Prefactor     .10004E-03    9908.7       -.10848E-03** at limit **
   3  norm         10000.0        9172.3       -.38323E-05** at limit **
   4  Prefactor    10000.0        5929.6       -.33483E-03** at limit **
   5  Prefactor     132.33        145.14       -.42082E-05    .12455E-04
   6  Prefactor    10000.0        5201.0       -.16369E-04** at limit **
   7  Prefactor     611.35        1285.1        .39994E-05    .16183E-05
   8  norm          .10000E-03    9965.3       -.95802E-05** at limit **
   9  Prefactor     .10001E-03    1605.9        .26171E-04** at limit **
  10  norm          .10000E-03    6.9607        .89845E-07** at limit **
  11  norm          .10000E-03    151.42       -.20738E-06** at limit **
  12  Prefactor     .10000E-03    1807.7        .17906E-05** at limit **
  13  Prefactor     .10001E-03    1547.4       -.32562E-04** at limit **
  14  Prefactor     135.48        131.64       -.78765E-05    .13737E-04
  15  norm          .10000E-03    180.43        .10354E-05** at limit **
  16  norm          .10000E-03    117.64       -.30179E-05** at limit **
  17  Prefactor     .10000E-03    188.24       -.48732E-05** at limit **
  18  Prefactor     .10000E-03    262.68        .10236E-04** at limit **
  19  Prefactor     .10000E-03    125.60       -.46514E-06** at limit **
  20  norm          .10000E-03    9.8456        .26422E-06** at limit **
  21  Prefactor     .10000E-03    74.216        .51829E-06** at limit **
  22  Prefactor     .10000E-03    132.81        .48941E-06** at limit **
  23  Normalizat    .10000E-01    .40607       -.16529E-04** at limit **
  24  Prefactor     1.3604        .74175        .97148E-05   -.99339E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010037
  Prefactor  = 0.000100042
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 132.332
  Prefactor  = 10000
  Prefactor  = 611.355
  norm       = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 135.479
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.36039
 **********
 **   18 **HESSE 
 **********

 FCN=   121.4285     FROM HESSE     STATUS=OK           383 CALLS     3959 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10037E-03    9988.7        .61406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    9740.8        .54908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        9168.7        .21956E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6088.3        .52987E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     132.33        146.12        .17509E-03   -1.3402    
   6  Prefactor    10000.0        5352.6        .76623E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     611.35        1276.6        .83462E-04   -1.0711    
   8  norm          .10000E-03    9964.8        .90816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    1617.8        .20705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.9828        .28483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    158.08        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1800.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    1563.1        .20954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     135.48        134.14        .17308E-03   -1.3375    
  15  norm          .10000E-03    186.92        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    118.17        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    191.17        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    282.39        .18207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    132.10        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.8845        .33908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.355        .94365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    140.18        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .41214        .22016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3604        .74328        .21597E-03   -.81528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8692e-11
Minuit parameter uncertainties:
  1  0.579231
  2  0.313145
  3  0.0104422
  4  1.39702
  5  146.517
  6  2.17631
  7  1346.4
  8  0.0105364
  9  0.00589659
  10  3.52671e-06
  11  0.000165162
  12  0.00052013
  13  0.00652537
  14  134.443
  15  0.00170301
  16  0.000193662
  17  0.000578781
  18  0.00212221
  19  1.15307e-06
  20  5.70062e-07
  21  0.00012707
  22  3.16849e-05
  23  9.88083e-07
  24  0.749233
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.897e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.360e+00  7.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  9.881e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 2.27e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408077/likelihoodResults_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.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) = 121.428517451
delta logL = -2.78220737471e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 121.428517451
delta logL = -2.78234200835e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96293E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7426       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3604       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   121.4285     FROM MIGRAD    STATUS=FAILED        88 CALLS      231 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    1284.0        .18144E-01** at limit **
   2  Index         3.5226        6.2286        .50000        .38742E-06
   3  Normalizat    .10000E-01    .16644E-02    .22012E-02** at limit **
   4  Prefactor     1.3604        .43367E-01    .21614E-03    .38805E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   121.4285     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      385 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    1284.0        .27545E-02** at limit **
   2  Index         3.5226        6.2286        .84926E-05    .38742E-06
   3  Normalizat    .10000E-01    .16644E-02    .24328E-02** at limit **
   4  Prefactor     1.3604        .43367E-01    .19915E-07    .38805E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   121.4285     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      469 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10538E-03    6810.8        .56078E-01** at limit **
   2  Index         2.2317        8.1595        .50000        .98042E-07
   3  Normalizat    .10000E-01    .93505E-03    .88047E-04** at limit **
   4  Prefactor     1.3604        .32505E-01    .86455E-05    .39860E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105382
  Index      = 2.23168
  Normalizat = 0.01
  Prefactor  = 1.3604
 **********
 **   18 **HESSE 
 **********

 FCN=   121.4285     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      498 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10538E-03    9597.5        .65863E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2317        5.2958        .50000       -.58676    
   3  Normalizat    .10000E-01    .78458E-02    .17609E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3604        .94159E-01    .17291E-05   -.81528    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49462e-09
Minuit parameter uncertainties:
  1  0.862322
  2  7726.34
  3  1.88735e-08
  4  0.0941707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408077': 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) = 121.428514653
delta logL = 1.51032395479e-08

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.054e-04  8.623e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.232e+00  7.726e+03  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.360e+00  9.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  1.887e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.125 -23.155

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/408077/cmap_HighResolution_570326401_570585601_4FGL_J2236.4-2309_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e+00', job_status='DONE', photon_flux_upper_limit='2.27e-05', time_completed='2021-09-28 17:19:09.835067', job_id='408077', GAL2='1.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632874749.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1277' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 408077: <4FGL_J2236.4-2309_daily_bin1277> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1277> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:56 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:10:57 2021
Terminated at Tue Sep 28 17:19:13 2021
Results reported at Tue Sep 28 17:19:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1277 339.125 -23.1552 570326401 570585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   323.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            497 sec.

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

