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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1133
RA = 338.799, Dec = -6.3955
tmin = 533001601, tmax = 533260801
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='377272', job_status='RUN', time_executed='2021-09-28 15:36:17.768674', time_epoch_executed='1632868577.77' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377272/ft1_4FGL_J2235.1-0623_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377272/ft1_4FGL_J2235.1-0623_daily_bin1133.fits outfile=/scratch/kocevski/377272/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1133.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=533001601.0 tmax=533260801.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.53
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.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/377272/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/377272/ltcube_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.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/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits
.....................!
real 11.84
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/377272/ltcube_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits outfile=/scratch/kocevski/377272/expmap_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.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/377272/ltcube_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits
.....................!
real 191.47
user 185.61
sys 5.49

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/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits outfile=/scratch/kocevski/377272/cmap_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits outfile=/scratch/kocevski/377272/cmap_HighResolution_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377272/Model_4FGL_J2235.1-0623_daily_bin1133.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/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits.....................!
real 68.89
user 67.47
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits', '/scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits', expMap='/scratch/kocevski/377272/expmap_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits', expCube='/scratch/kocevski/377272/ltcube_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377272/Model_4FGL_J2235.1-0623_daily_bin1133.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/377272/ft1_filtered_4FGL_J2235.1-0623_daily_bin1133.fits
Spacecraft file(s): /scratch/kocevski/377272/ft2_4FGL_J2235.1-0623_daily_bin1133.fits
Exposure map: /scratch/kocevski/377272/expmap_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits
Exposure cube: /scratch/kocevski/377272/ltcube_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377272/Model_4FGL_J2235.1-0623_daily_bin1133.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) = 7142.19932013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.834       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .93059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    84.129       1.0000         .10000E-03   10000.    
    14 'norm      '    21.863       1.0000         .10000E-03   10000.    
    15 'Prefactor '    78.884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.894       1.0000         .10000E-03   10000.    
    18 'norm      '    .91528E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.861       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.139       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89722       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0816       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=   7142.060     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2486 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.829        11.209        .10062E-07   -.13575E-06
   2  Prefactor     .10000E-03    6.1602       -.49789E-08** at limit **
   3  Prefactor     .10000E-03    5.3503        .36110E-08** at limit **
   4  Prefactor     .10000E-03    7.6651       -.62693E-08** at limit **
   5  Prefactor     16.148        16.239       -.15578E-06    .33468E-04
   6  Prefactor     22.934        14.096       -.30297E-06    .22129E-04
   7  Prefactor     99.883        89.066       -.63708E-06    .19613E-04
   8  Prefactor     .10000E-03    3.8294        .18775E-06** at limit **
   9  Prefactor     .10000E-03    66.953       -.12580E-06** at limit **
  10  norm          3.6729        4.2375        .26110E-06    .13400E-04
  11  Prefactor     .10000E-03    30.094       -.58799E-07** at limit **
  12  norm          .93077        .96895       -.43265E-06   -.86269E-03
  13  Prefactor     84.047        93.868       -.25408E-05    .24642E-04
  14  norm          21.864        7.8092        .69564E-06    .38422E-04
  15  Prefactor     78.909        77.667       -.22793E-05    .36599E-04
  16  Prefactor     7.4839        9.7814        .98905E-07   -.53155E-05
  17  Prefactor     20.893        21.197       -.13151E-07    .10609E-04
  18  norm          .10000E-03    9.9148       -.30085E-06** at limit **
  19  Prefactor     24.911        139.94       -.56673E-05    .13365E-04
  20  Prefactor     34.132        28.395        .81321E-06    .68840E-05
  21  Normalizat    .89740        .27521        .26608E-05    .59508E-05
  22  Prefactor     1.0816        .16042       -.10495E-05    .13700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1476
  Prefactor  = 22.934
  Prefactor  = 99.8833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67291
  Prefactor  = 0.0001
  norm       = 0.930766
  Prefactor  = 84.0467
  norm       = 21.8639
  Prefactor  = 78.9095
  Prefactor  = 7.4839
  Prefactor  = 20.8932
  norm       = 0.000100003
  Prefactor  = 24.9114
  Prefactor  = 34.1316
  Normalizat = 0.897399
  Prefactor  = 1.08157
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.060     FROM HESSE     STATUS=OK           356 CALLS     2842 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.829        11.213        .11645E-03   -1.5020    
   2  Prefactor     .10000E-03    6.1749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.148        16.244        .99664E-04   -1.4904    
   6  Prefactor     22.934        14.096        .83639E-04   -1.4750    
   7  Prefactor     99.883        88.841        .40229E-04   -1.3706    
   8  Prefactor     .10000E-03    3.8708        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6729        4.2227        .17610E-03   -1.5325    
  11  Prefactor     .10000E-03    30.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .93077        .94197        .87084E-03   -1.5515    
  13  Prefactor     84.047        93.252        .43795E-04   -1.3872    
  14  norm          21.864        7.7271        .54578E-04   -1.4772    
  15  Prefactor     78.909        77.190        .45216E-04   -1.3929    
  16  Prefactor     7.4839        9.7741        .14656E-03   -1.5161    
  17  Prefactor     20.893        21.185        .87625E-04   -1.4793    
  18  norm          .10000E-03    12.918        .78544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.911        137.66        .80339E-04   -1.4709    
  20  Prefactor     34.132        28.240        .68584E-04   -1.4539    
  21  Normalizat    .89740        .31067        .39435E-03   -.96552    
  22  Prefactor     1.0816        .18258        .22942E-03   -.90058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52301e-10
Minuit parameter uncertainties:
  1  11.2152
  2  2.13852e-06
  3  1.01484e-06
  4  3.03503e-06
  5  16.2483
  6  14.0983
  7  88.9596
  8  2.10874e-06
  9  3.60394e-05
  10  4.22301
  11  2.53605e-06
  12  0.941983
  13  93.4144
  14  7.72745
  15  77.2885
  16  9.77617
  17  21.1926
  18  0.000370415
  19  117.54
  20  28.2511
  21  0.311296
  22  0.182686
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.536e-06  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.082e+00  1.827e-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:  8.974e-01  3.113e-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: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377272/likelihoodResults_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.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) = 7142.06051567
delta logL = -0.000158148336595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7142.0603583
delta logL = -7.81073140388e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4009       1.0000          .0000       10.000    
     3 'Normalizat'    .89740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       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=   7142.060     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10228E-03    137.11        .18142E-02** at limit **
   2  Index         2.3307        7.4877        .50000        .12442E-04
   3  Normalizat    .89740        .14544E-01    .39435E-03    .72072E-06
   4  Prefactor     1.0816        .92697E-02    .22942E-03   -.92170E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010228
  Index      = 2.3307
  Normalizat = 0.897401
  Prefactor  = 1.08157
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.060     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10228E-03    576.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3307        5.0419        .50000       -.56316    
   3  Normalizat    .89740        .30670E-01    .15774E-04   -.96552    
   4  Prefactor     1.0816        .19548E-01    .91768E-05   -.90058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00131e-08
Minuit parameter uncertainties:
  1  0.073251
  2  539.893
  3  0.0306705
  4  0.0195479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377272': 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) = 7142.06035798
delta logL = -4.60659066448e-07

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.023e-04  7.325e-02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.331e+00  5.399e+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.082e+00  1.955e-02  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:  8.974e-01  3.067e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/377272/cmap_HighResolution_533001601_533260801_4FGL_J2235.1-0623_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-28 15:47:31.900040', job_id='377272', GAL2='1.08', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632869251.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-4.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1133' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:47:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 377272: <4FGL_J2235.1-0623_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1133 338.799 -6.3955 533001601 533260801 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 :                                   671.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

