/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 148 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin223
RA = 339.125, Dec = -23.1552
tmin = 297129601, tmax = 297388801
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='403217', job_status='RUN', time_executed='2021-09-28 16:58:28.401897', time_epoch_executed='1632873508.4' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403217/ft1_4FGL_J2236.4-2309_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403217/ft1_4FGL_J2236.4-2309_daily_bin223.fits outfile=/scratch/kocevski/403217/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin223.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=297129601.0 tmax=297388801.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.65
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.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/403217/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/403217/ltcube_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.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/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits
.....................!
real 12.01
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/403217/ltcube_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits outfile=/scratch/kocevski/403217/expmap_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.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/403217/ltcube_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits
.....................!
real 190.05
user 185.56
sys 4.08

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/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits outfile=/scratch/kocevski/403217/cmap_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits outfile=/scratch/kocevski/403217/cmap_HighResolution_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403217/Model_4FGL_J2236.4-2309_daily_bin223.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/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits.....................!
real 46.25
user 45.01
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits', '/scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits', expMap='/scratch/kocevski/403217/expmap_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits', expCube='/scratch/kocevski/403217/ltcube_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403217/Model_4FGL_J2236.4-2309_daily_bin223.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/403217/ft1_filtered_4FGL_J2236.4-2309_daily_bin223.fits
Spacecraft file(s): /scratch/kocevski/403217/ft2_4FGL_J2236.4-2309_daily_bin223.fits
Exposure map: /scratch/kocevski/403217/expmap_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits
Exposure cube: /scratch/kocevski/403217/ltcube_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403217/Model_4FGL_J2236.4-2309_daily_bin223.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) = 5425.03039654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.743       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22320E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1610       1.0000         .10000E-03   10000.    
    10 'norm      '    .44357       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.961       1.0000         .10000E-03   10000.    
    20 'norm      '    .11174E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23231E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0464       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=   5424.927     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2831 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.167        .96859E-06** at limit **
   2  Prefactor     11.730        37.160        .55433E-06    .23156E-05
   3  norm          1.5435        .44833        .73152E-08    .10287E-03
   4  Prefactor     .10022E-03    36.956        .39936E-05** at limit **
   5  Prefactor     30.694        18.681       -.68122E-07   -.13037E-04
   6  Prefactor     18.717        20.424        .44516E-07    .39781E-04
   7  Prefactor     .10000E-03    40.829        .13660E-06** at limit **
   8  norm          .10000E-03    6.2204        .64792E-07** at limit **
   9  Prefactor     3.1601        8.4311       -.22930E-06   -.34347E-04
  10  norm          .44266        .67299        .75003E-06    .16548E-02
  11  norm          5.0287        2.9610        .64678E-06    .51026E-03
  12  Prefactor     .10000E-03    217.67        .87852E-05** at limit **
  13  Prefactor     .10000E-03    6.2220        .14528E-06** at limit **
  14  Prefactor     .10000E-03    9.4351       -.24767E-06** at limit **
  15  norm          .10000E-03    .48860       -.39973E-06** at limit **
  16  norm          2.5347        5.5964       -.85767E-06   -.82214E-03
  17  Prefactor     .10000E-03    35.551       -.67290E-06** at limit **
  18  Prefactor     11.980        14.256        .12915E-06   -.34385E-03
  19  Prefactor     32.943        17.551        .98409E-07   -.14830E-02
  20  norm          .10000E-03    .91302        .87144E-06** at limit **
  21  Prefactor     .10000E-03    5.7046        .42944E-07** at limit **
  22  Prefactor     .10091E-03    89.397        .71709E-05** at limit **
  23  Normalizat    1.0901        .22283       -.68154E-06   -.92080E-04
  24  Prefactor     1.0459        .18468       -.12567E-06   -.36805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.7301
  norm       = 1.54352
  Prefactor  = 0.000100224
  Prefactor  = 30.6937
  Prefactor  = 18.7171
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 3.16011
  norm       = 0.442664
  norm       = 5.02875
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.53471
  Prefactor  = 0.000100001
  Prefactor  = 11.9795
  Prefactor  = 32.9434
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100911
  Normalizat = 1.09014
  Prefactor  = 1.04588
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.927     FROM HESSE     STATUS=OK           413 CALLS     3244 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.730        36.973        .11690E-03   -1.5023    
   3  norm          1.5435        .44892        .25803E-04   -1.5459    
   4  Prefactor     .10022E-03    63.654        .33614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.694        18.688        .72320E-04   -1.4599    
   6  Prefactor     18.717        20.329        .92583E-04   -1.4842    
   7  Prefactor     .10000E-03    41.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2222        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1601        8.4239        .22797E-03   -1.5352    
  10  norm          .44266        .67642        .82508E-03   -1.5575    
  11  norm          5.0287        2.9603        .93821E-04   -1.5259    
  12  Prefactor     .10000E-03    216.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2446        .17944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .67165        .98103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5347        5.6771        .23357E-03   -1.5390    
  17  Prefactor     .10000E-03    36.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.980        14.239        .11575E-03   -1.5016    
  19  Prefactor     32.943        16.365        .69795E-04   -1.4559    
  20  norm          .10000E-03    1.3809        .10954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7222        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10091E-03    16.629        .69582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0901        .26495        .28095E-03   -.90069    
  24  Prefactor     1.0459        .21879        .24229E-03   -.91215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11055e-09
Minuit parameter uncertainties:
  1  0.000106284
  2  37.0452
  3  0.448921
  4  0.00755608
  5  18.692
  6  20.337
  7  0.000518925
  8  7.45021e-06
  9  8.42706
  10  0.676432
  11  2.96043
  12  0.00146857
  13  1.18864e-05
  14  4.25842e-06
  15  8.16032e-06
  16  5.67835
  17  0.000309513
  18  14.2434
  19  16.367
  20  0.000126224
  21  1.72226e-06
  22  0.00778433
  23  0.265272
  24  0.218976
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.160e+00  8.427e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.046e+00  2.190e-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.090e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403217/likelihoodResults_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.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): 0
logL (Free Index) = 5424.91907528
delta logL = 0.00831219872543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.91862811
delta logL = 0.0087593694052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4092       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4977       1.0000          .0000       10.000    
     3 'Normalizat'    1.0922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0445       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.

 FCN=   5424.919     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      294 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4073        8.7938        .21910E-03    .11363E-04
   2  Index         2.4978        1.7234        .14337E-01   -.11901E-04
   3  Normalizat    1.0920        .25089        .28073E-03   -.20896E-04
   4  Prefactor     1.0447        .21303        .24240E-03    .19416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40733
  Index      = 2.49778
  Normalizat = 1.09205
  Prefactor  = 1.04466
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.919     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4073        8.7721        .87640E-05   -1.5339    
   2  Index         2.4978        1.7201        .28674E-02   -.52411    
   3  Normalizat    1.0920        .25115        .11229E-04   -.90008    
   4  Prefactor     1.0447        .21324        .96962E-05   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21305e-12
Minuit parameter uncertainties:
  1  8.77543
  2  1.76891
  3  0.251427
  4  0.213417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403217': 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) = 5424.91862793
delta logL = 0.00875954956791

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.407e+00  8.775e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.498e+00  1.769e+00  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.045e+00  2.134e-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.092e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/403217/cmap_HighResolution_297129601_297388801_4FGL_J2236.4-2309_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 17:08:21.677803', job_id='403217', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632874101.68', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.76e-03', ts2='0.20', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='223' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:08:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 403217: <4FGL_J2236.4-2309_daily_bin223> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin223> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:49 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:55:51 2021
Terminated at Tue Sep 28 17:08:22 2021
Results reported at Tue Sep 28 17:08:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin223 339.125 -23.1552 297129601 297388801 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 :                                   593.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             256.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

