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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1280
RA = 338.799, Dec = -6.3955
tmin = 571104001, tmax = 571363201
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='377492', job_status='RUN', time_executed='2021-09-28 15:39:07.266529', time_epoch_executed='1632868747.27' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377492/ft1_4FGL_J2235.1-0623_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377492/ft1_4FGL_J2235.1-0623_daily_bin1280.fits outfile=/scratch/kocevski/377492/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1280.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=571104001.0 tmax=571363201.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 2.97
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.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/377492/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/377492/ltcube_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.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/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits
.....................!
real 12.17
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/377492/ltcube_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits outfile=/scratch/kocevski/377492/expmap_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.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/377492/ltcube_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits
.....................!
real 190.47
user 185.32
sys 4.67

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 J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits outfile=/scratch/kocevski/377492/cmap_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.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=338.799 yref=-6.3955 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits outfile=/scratch/kocevski/377492/cmap_HighResolution_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.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=338.799 yref=-6.3955 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377492/Model_4FGL_J2235.1-0623_daily_bin1280.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/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits.....................!
real 35.54
user 34.25
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits', '/scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits', expMap='/scratch/kocevski/377492/expmap_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits', expCube='/scratch/kocevski/377492/ltcube_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377492/Model_4FGL_J2235.1-0623_daily_bin1280.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377492/ft1_filtered_4FGL_J2235.1-0623_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/377492/ft2_4FGL_J2235.1-0623_daily_bin1280.fits
Exposure map: /scratch/kocevski/377492/expmap_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits
Exposure cube: /scratch/kocevski/377492/ltcube_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377492/Model_4FGL_J2235.1-0623_daily_bin1280.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) = 2704.94678022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    375.30       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20182E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73929E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    153.98       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    76.054       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11510E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    254.81       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12332E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .50564       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2704.634     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2756 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     375.16        299.20        .65665E-07   -.40101E-04
   2  Prefactor     .10000E-03    20.189        .64647E-06** at limit **
   3  Prefactor     .10000E-03    34.397        .18159E-05** at limit **
   4  Prefactor     48.074        62.667       -.12402E-05   -.67686E-04
   5  Prefactor     .10000E-03    63.827        .10185E-05** at limit **
   6  Prefactor     .10029E-03    25.058       -.34331E-05** at limit **
   7  Prefactor     154.11        290.35       -.31692E-05   -.97217E-05
   8  Prefactor     .10000E-03    5.0182        .64760E-07** at limit **
   9  Prefactor     76.129        204.77       -.23970E-05   -.10532E-06
  10  norm          7.3562        10.232       -.88625E-07   -.33519E-04
  11  Prefactor     .10000E-03    88.342       -.70769E-07** at limit **
  12  norm          4.3298        3.0857       -.10819E-06    .20872E-03
  13  Prefactor     .10000E-03    98.355       -.16688E-05** at limit **
  14  norm          .10000E-03    6.3231       -.61326E-05** at limit **
  15  Prefactor     254.72        85.210       -.29482E-05    .13260E-03
  16  Prefactor     .10000E-03    12.678       -.19981E-06** at limit **
  17  Prefactor     .10000E-03    40.982        .68116E-06** at limit **
  18  norm          .10000E-03    7.4176        .45382E-07** at limit **
  19  Prefactor     78.258        89.163       -.87942E-06    .35063E-05
  20  Prefactor     .10000E-03    15.811       -.17187E-06** at limit **
  21  Normalizat    .50604        .41959        .89421E-05    .22547E-04
  22  Prefactor     1.1724        .24341       -.41130E-05   -.32176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 375.161
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 48.0742
  Prefactor  = 0.0001
  Prefactor  = 0.00010029
  Prefactor  = 154.108
  Prefactor  = 0.0001
  Prefactor  = 76.1292
  norm       = 7.35621
  Prefactor  = 0.0001
  norm       = 4.32981
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 254.723
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 78.2581
  Prefactor  = 0.0001
  Normalizat = 0.506039
  Prefactor  = 1.17239
 **********
 **   18 **HESSE 
 **********

 FCN=   2704.634     FROM HESSE     STATUS=OK           334 CALLS     3090 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     375.16        298.56        .10523E-03   -1.1810    
   2  Prefactor     .10000E-03    20.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.074        62.750        .57866E-04   -1.4320    
   5  Prefactor     .10000E-03    63.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10029E-03    236.10        .47588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     154.11        290.22        .16243E-03   -1.3219    
   8  Prefactor     .10000E-03    5.0642        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     76.129        204.68        .23022E-03   -1.3961    
  10  norm          7.3562        10.186        .14794E-03   -1.5165    
  11  Prefactor     .10000E-03    88.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3298        3.0804        .71343E-04   -1.5292    
  13  Prefactor     .10000E-03    99.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.4608        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     254.72        85.183        .12692E-03   -1.2502    
  16  Prefactor     .10000E-03    12.709        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4291        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.258        89.113        .45394E-04   -1.3936    
  20  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .50604        .44700        .45862E-03   -1.1214    
  22  Prefactor     1.1724        .26674        .19544E-03   -.87185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48076e-09
Minuit parameter uncertainties:
  1  299.804
  2  0.000211449
  3  0.000636973
  4  62.8361
  5  1.61755e-05
  6  0.0166016
  7  292.97
  8  1.43296e-05
  9  206.622
  10  10.1889
  11  5.94061e-05
  12  3.08052
  13  0.000616534
  14  0.000111878
  15  85.2249
  16  2.4641e-05
  17  0.000679269
  18  8.54175e-06
  19  89.2658
  20  4.35572e-05
  21  0.450225
  22  0.267047
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.941e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.172e+00  2.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  5.060e-01  4.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377492/likelihoodResults_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.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) = 2704.63385061
delta logL = -5.17264106747e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2704.63379985
delta logL = -9.63445017987e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3738       1.0000          .0000       10.000    
     3 'Normalizat'    .50604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   2704.634     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10331E-03    40.466        .18142E-01** at limit **
   2  Index         2.2909        7.6254        .50000        .48865E-05
   3  Normalizat    .50603        .65718E-02    .45860E-03    .40408E-05
   4  Prefactor     1.1724        .41662E-02    .19544E-03    .84829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103315
  Index      = 2.29089
  Normalizat = 0.506026
  Prefactor  = 1.1724
 **********
 **   18 **HESSE 
 **********

 FCN=   2704.634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10331E-03    215.08        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2909        8.7881        .50000       -.57260    
   3  Normalizat    .50603        .15224E-01    .18344E-04   -1.1214    
   4  Prefactor     1.1724        .96516E-02    .39088E-04   -.87185    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.31229e-10
Minuit parameter uncertainties:
  1  0.0535938
  2  335.227
  3  0.0152245
  4  0.00965162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377492': 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) = 2704.63379904
delta logL = -1.57106114784e-07

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.033e-04  5.359e-02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.291e+00  3.352e+02  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.172e+00  9.652e-03  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  5.060e-01  1.522e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

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/377492/cmap_HighResolution_571104001_571363201_4FGL_J2235.1-0623_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-28 15:46:31.425610', job_id='377492', GAL2='1.17', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632869191.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-1.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1280' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 377492: <4FGL_J2235.1-0623_daily_bin1280> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1280> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:36:17 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:36: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 15:36:19 2021
Terminated at Tue Sep 28 15:46:32 2021
Results reported at Tue Sep 28 15:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1280 338.799 -6.3955 571104001 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   442.21 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             264.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            615 sec.

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

