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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1101
RA = 339.125, Dec = -23.1552
tmin = 524707201, tmax = 524966401
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='407818', job_status='RUN', time_executed='2021-09-28 17:12:36.089190', time_epoch_executed='1632874356.09' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407818/ft1_4FGL_J2236.4-2309_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407818/ft1_4FGL_J2236.4-2309_daily_bin1101.fits outfile=/scratch/kocevski/407818/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1101.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=524707201.0 tmax=524966401.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/407818/ltcube_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.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/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits
.....................!
real 11.73
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/407818/ltcube_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.fits outfile=/scratch/kocevski/407818/expmap_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.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/407818/ltcube_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.fits
.....................!
real 190.81
user 185.43
sys 4.88

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/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits scfile=/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits outfile=/scratch/kocevski/407818/cmap_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits scfile=/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits outfile=/scratch/kocevski/407818/cmap_HighResolution_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/407818/ft2_4FGL_J2236.4-2309_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407818/Model_4FGL_J2236.4-2309_daily_bin1101.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/407818/ft1_filtered_4FGL_J2236.4-2309_daily_bin1101.fits.....................!
real 53.45
user 52.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.043       1.0000         .10000E-03   10000.    
     3 'norm      '    .91503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11939E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1603       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14698E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5670       1.0000         .10000E-03   10000.    
    16 'norm      '    .17434E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3858       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8827       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0535       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84226       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91054       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.

 FCN=   6962.788     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2757 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6843        .90712E-02** at limit **
   2  Prefactor     54.043        53.780        .13640E-02   -.53579E-03
   3  norm          .91500        .30391        .58287E-02   -.25422E-03
   4  Prefactor     .10000E-03    6.9605        .90712E-02** at limit **
   5  Prefactor     4.4057        9.7094        .47968E-02    .41647E-03
   6  Prefactor     .10000E-03    6.5405        .90712E-02** at limit **
   7  Prefactor     .10000E-03    100.57        .90712E-02** at limit **
   8  norm          10.201        20.152        .31368E-02    .17058E-03
   9  Prefactor     .10000E-03    1.9256        .90712E-02** at limit **
  10  norm          2.1604        .83918        .70063E-02    .42215E-04
  11  norm          .10000E-03    1.6489        .31897E-01** at limit **
  12  Prefactor     59.310        36.156        .13024E-02   -.85393E-03
  13  Prefactor     15.023        11.948        .25832E-02    .10365E-02
  14  Prefactor     .10000E-03    13.370        .90712E-01** at limit **
  15  norm          3.5654        1.3817        .53497E-02    .96846E-05
  16  norm          .10000E-03    1.7882        .59850E-01** at limit **
  17  Prefactor     .10000E-03    13.018        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.0657        .90712E-02** at limit **
  19  Prefactor     .10000E-03    2.3723        .90712E-02** at limit **
  20  norm          2.3857        .64803        .66294E-02   -.34842E-04
  21  Prefactor     7.8817        8.6562        .35704E-02    .26886E-03
  22  Prefactor     4.0533        5.0665        .50068E-02    .85151E-03
  23  Normalizat    .84239        .16715        .44159E-01    .44889E-03
  24  Prefactor     .91043        .14395        .45139E-01   -.86266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 54.0434
  norm       = 0.915004
  Prefactor  = 0.0001
  Prefactor  = 4.4057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2007
  Prefactor  = 0.0001
  norm       = 2.16036
  norm       = 0.0001
  Prefactor  = 59.3101
  Prefactor  = 15.0232
  Prefactor  = 0.0001
  norm       = 3.56545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38571
  Prefactor  = 7.88174
  Prefactor  = 4.05329
  Normalizat = 0.842393
  Prefactor  = 0.910433
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.788     FROM HESSE     STATUS=OK           399 CALLS     3156 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.043        53.790        .54562E-04   -1.4236    
   3  norm          .91500        .30523        .25634E-04   -1.5517    
   4  Prefactor     .10000E-03    7.1172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4057        9.7010        .19187E-03   -1.5288    
   6  Prefactor     .10000E-03    6.5552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    101.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.201        20.103        .12547E-03   -1.5069    
   9  Prefactor     .10000E-03    1.9276        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1604        .83587        .45750E-04   -1.5414    
  11  norm          .10000E-03    3.1860        .18639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.310        32.668        .52096E-04   -1.4166    
  13  Prefactor     15.023        12.016        .10333E-03   -1.4933    
  14  Prefactor     .10000E-03    47.880        .46410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5654        1.1001        .46721E-04   -1.5330    
  16  norm          .10000E-03    11.705        .21071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0718        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3832        .12533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3857        .63875        .32486E-04   -1.5399    
  21  Prefactor     7.8817        8.6498        .14282E-03   -1.5146    
  22  Prefactor     4.0533        5.0659        .20027E-03   -1.5305    
  23  Normalizat    .84239        .19692        .12864E-02   -.98515    
  24  Prefactor     .91043        .16989        .22282E-03   -.95778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30166e-09
Minuit parameter uncertainties:
  1  8.61812e-06
  2  53.8383
  3  0.305229
  4  6.71912e-06
  5  9.7045
  6  6.21201e-06
  7  9.22602e-05
  8  20.116
  9  1.11226e-06
  10  0.835875
  11  1.01125e-06
  12  32.6783
  13  12.0182
  14  2.14256e-06
  15  1.10014
  16  7.59139e-06
  17  1.15959e-05
  18  2.66099e-06
  19  1.00883e-06
  20  0.638757
  21  8.65122
  22  5.0664
  23  0.197083
  24  0.16999
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.112e-06  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:  9.104e-01  1.700e-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:  8.424e-01  1.971e-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: 3.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407818/likelihoodResults_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.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) = 6962.79005963
delta logL = -0.00244070713961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6962.78761864
delta logL = 2.89141098619e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7263       1.0000          .0000       10.000    
     3 'Normalizat'    .84239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91043       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=   6962.788     FROM MIGRAD    STATUS=FAILED        99 CALLS      248 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.410        .11434E-01** at limit **
   2  Index         2.1277        7.7272        .50000       -.24272E-05
   3  Normalizat    .84239        .12419E-01    .25728E-03   -.13305E-03
   4  Prefactor     .91043        .11209E-01    .22282E-03   -.15408E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6962.788     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      426 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.410        .23551E-03** at limit **
   2  Index         2.1277        7.7272        .55748E-05   -.24272E-05
   3  Normalizat    .84239        .12419E-01    .74766E-07   -.13305E-03
   4  Prefactor     .91043        .11209E-01    .49185E-07   -.15408E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6962.788     FROM MIGRAD    STATUS=FAILED        76 CALLS      502 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    576.72        .25505E-03** at limit **
   2  Index         2.1277        5.4083        .50000       -.24272E-05
   3  Normalizat    .84239        .14263        .20582E-05   -.13367E-03
   4  Prefactor     .91043        .12872        .17826E-05   -.15434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12767
  Normalizat = 0.842393
  Prefactor  = 0.910432
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.788     FROM HESSE     STATUS=OK            27 CALLS      529 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5744        .51010E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1277        7.9846        .50000       -.61195    
   3  Normalizat    .84239        .19355        .41164E-06   -.98515    
   4  Prefactor     .91043        .17470        .35652E-06   -.95778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95742e-09
Minuit parameter uncertainties:
  1  1.40628e-05
  2  90.2309
  3  0.193708
  4  0.174803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407818': 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): 1
logL (Free Index) = 6962.78761338
delta logL = 5.54816597287e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.406e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.128e+00  9.023e+01  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:  9.104e-01  1.748e-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:  8.424e-01  1.937e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/407818/cmap_HighResolution_524707201_524966401_4FGL_J2236.4-2309_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-28 17:24:11.765575', job_id='407818', GAL2='0.91', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632875051.77', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1101' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 407818: <4FGL_J2236.4-2309_daily_bin1101> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1101> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:37 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:39 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:39 2021
Terminated at Tue Sep 28 17:24:12 2021
Results reported at Tue Sep 28 17:24:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1101 339.125 -23.1552 524707201 524966401 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 :                                   689.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

