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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin561
RA = 339.125, Dec = -23.1552
tmin = 384739201, tmax = 384998401
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='406017', job_status='RUN', time_executed='2021-09-28 17:07:36.148049', time_epoch_executed='1632874056.15' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406017/ft1_4FGL_J2236.4-2309_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406017/ft1_4FGL_J2236.4-2309_daily_bin561.fits outfile=/scratch/kocevski/406017/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin561.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=384739201.0 tmax=384998401.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.60
user 4.34
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/406017/ltcube_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.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/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits
.....................!
real 11.68
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/406017/ltcube_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.fits outfile=/scratch/kocevski/406017/expmap_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.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/406017/ltcube_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.fits
.....................!
real 192.64
user 187.57
sys 4.69

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/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits scfile=/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits outfile=/scratch/kocevski/406017/cmap_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits scfile=/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits outfile=/scratch/kocevski/406017/cmap_HighResolution_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/406017/ft2_4FGL_J2236.4-2309_daily_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406017/Model_4FGL_J2236.4-2309_daily_bin561.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/406017/ft1_filtered_4FGL_J2236.4-2309_daily_bin561.fits.....................!
real 46.15
user 44.69
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7880       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18376E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84585E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3657       1.0000         .10000E-03   10000.    
    15 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.377       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
    20 'norm      '    .37952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2682       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0370       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93554       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1530       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=   5052.051     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2839 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.711       -.16263E-05** at limit **
   2  Prefactor     2.0394        643.80        .69202E-06   -.36029E-05
   3  norm          2.0201        .61110       -.63258E-08    .19223E-02
   4  Prefactor     .35840        24.779        .52902E-05   -.24592E-03
   5  Prefactor     .10003E-03    17.904        .26809E-05** at limit **
   6  Prefactor     30.404        25.264       -.86597E-07   -.20430E-03
   7  Prefactor     .10000E-03    30.993       -.19410E-06** at limit **
   8  norm          .10000E-03    9.3368       -.10804E-07** at limit **
   9  Prefactor     .10004E-03    228.56        .89463E-05** at limit **
  10  norm          .10000E-03    .30179        .92764E-08** at limit **
  11  norm          3.6797        2.9495        .36688E-07   -.52702E-03
  12  Prefactor     .10000E-03    26.858        .12835E-06** at limit **
  13  Prefactor     27.983        17.463       -.14167E-06   -.51386E-04
  14  Prefactor     5.3563        12.202       -.32141E-05   -.37543E-03
  15  norm          .10000E-03    1.0827        .80628E-06** at limit **
  16  norm          15.374        7.3428       -.83534E-07   -.37629E-04
  17  Prefactor     .10000E-03    49.642        .78903E-06** at limit **
  18  Prefactor     .10000E-03    10.908        .56035E-08** at limit **
  19  Prefactor     1.4255        47.476        .82739E-06   -.35559E-04
  20  norm          .37998        .86380        .22718E-07   -.19701E-03
  21  Prefactor     2.2747        20.581        .47594E-06    .13627E-04
  22  Prefactor     5.0343        10.859       -.29470E-06   -.80242E-04
  23  Normalizat    .93529        .25236        .23433E-05   -.53739E-03
  24  Prefactor     1.1529        .20476       -.17637E-05   -.10795E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.03942
  norm       = 2.02014
  Prefactor  = 0.358397
  Prefactor  = 0.000100028
  Prefactor  = 30.4042
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.0001
  norm       = 3.67975
  Prefactor  = 0.000100001
  Prefactor  = 27.9834
  Prefactor  = 5.3563
  norm       = 0.0001
  norm       = 15.3745
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.42547
  norm       = 0.379976
  Prefactor  = 2.27467
  Prefactor  = 5.03435
  Normalizat = 0.935285
  Prefactor  = 1.15291
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.051     FROM HESSE     STATUS=OK           413 CALLS     3252 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0394        641.54        .31285E-02   -1.5422    
   3  norm          2.0201        .60959        .28993E-04   -1.5424    
   4  Prefactor     .35840        29.469        .35957E-02   -1.5588    
   5  Prefactor     .10003E-03    61.974        .46536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.404        25.170        .72649E-04   -1.4605    
   7  Prefactor     .10000E-03    31.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.3424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    20.298        .73077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .30825        .38126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6797        2.9434        .10467E-03   -1.5324    
  12  Prefactor     .10000E-03    26.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.983        17.505        .75741E-04   -1.4649    
  14  Prefactor     5.3563        12.900        .17349E-03   -1.5245    
  15  norm          .10000E-03    2.6907        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.374        7.4048        .10214E-03   -1.4924    
  17  Prefactor     .10000E-03    50.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4255        52.417        .17949E-02   -1.5469    
  20  norm          .37998        .89647        .72762E-03   -1.5585    
  21  Prefactor     2.2747        20.456        .13635E-02   -1.5406    
  22  Prefactor     5.0343        10.931        .17917E-03   -1.5259    
  23  Normalizat    .93529        .29287        .29620E-03   -.95231    
  24  Prefactor     1.1529        .24073        .23012E-03   -.87793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17185e-09
Minuit parameter uncertainties:
  1  0.000500536
  2  73.1454
  3  0.609593
  4  6.50213
  5  0.00265876
  6  25.1784
  7  0.000249314
  8  9.32589e-06
  9  0.00170018
  10  3.1624e-06
  11  2.94356
  12  0.000255119
  13  17.5084
  14  12.9071
  15  4.27191e-05
  16  7.40523
  17  0.000547995
  18  2.71426e-05
  19  17.3037
  20  0.896501
  21  13.6487
  22  10.935
  23  0.293374
  24  0.240957
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.700e-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.153e+00  2.410e-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:  9.353e-01  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406017/likelihoodResults_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.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) = 5052.05102714
delta logL = -2.05229644052e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5052.05102713
delta logL = -2.05168298635e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7427       1.0000          .0000       10.000    
     3 'Normalizat'    .93526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1529       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=   5052.051     FROM MIGRAD    STATUS=FAILED       109 CALLS      285 TOTAL
                     EDM=   .12E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31414E-03    5711.9        .48172E-02** at limit **
   2  Index         3.2024        5.7510        .50000       -.28415E-04
   3  Normalizat    .93528        .20485        .29621E-03   -.81405E-04
   4  Prefactor     1.1529        .10503        .23012E-03   -.10298E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5052.049     FROM SIMPLEX   STATUS=PROGRESS     141 CALLS      426 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77041        5711.9        .87186E-03   -.94704E-02
   2  Index         3.2017        5.7510        .15071E-04   -.28415E-04
   3  Normalizat    .93523        .20485        .91509E-06   -.81405E-04
   4  Prefactor     1.1529        .10503        .20416E-06   -.10298E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5052.045     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      497 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86851        441.08        .19269E-02   -.45277E-04
   2  Index         3.6511        6.5822        .50000        .15385E-04
   3  Normalizat    .92526        .30661E-01    .11848E-04    .65247E-05
   4  Prefactor     1.1577        .26314E-01    .46024E-04   -.67188E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.868511
  Index      = 3.65108
  Normalizat = 0.925265
  Prefactor  = 1.15775
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.045     FROM HESSE     STATUS=OK            29 CALLS      526 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86851        30.971        .77075E-04   -1.5894    
   2  Index         3.6511        6.8161        .22460E-01   -.27317    
   3  Normalizat    .92526        .28444        .23697E-05   -.95578    
   4  Prefactor     1.1577        .23578        .92049E-05   -.87642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66477e-12
Minuit parameter uncertainties:
  1  10.3781
  2  5.82904
  3  0.284903
  4  0.235992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406017': 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) = 5052.04483043
delta logL = 0.00617618287561

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.685e-01  1.038e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.651e+00  5.829e+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.158e+00  2.360e-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:  9.253e-01  2.849e-01  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/406017/cmap_HighResolution_384739201_384998401_4FGL_J2236.4-2309_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-28 17:17:32.740552', job_id='406017', GAL2='1.16', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1632874652.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.18e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='561' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:17:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 406017: <4FGL_J2236.4-2309_daily_bin561> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin561> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:18 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:19 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:05:19 2021
Terminated at Tue Sep 28 17:17:33 2021
Results reported at Tue Sep 28 17:17:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin561 339.125 -23.1552 384739201 384998401 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            735 sec.

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

