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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1363
RA = 338.971, Dec = -36.4605
tmin = 592617601, tmax = 592876801
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='394716', job_status='RUN', time_executed='2021-09-28 16:30:27.370059', time_epoch_executed='1632871827.37' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394716/ft1_4FGL_J2235.8-3627_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394716/ft1_4FGL_J2235.8-3627_daily_bin1363.fits outfile=/scratch/kocevski/394716/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1363.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=592617601.0 tmax=592876801.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.56
user 3.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.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/394716/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/394716/ltcube_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.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/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits
.....................!
real 12.17
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/394716/ltcube_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits outfile=/scratch/kocevski/394716/expmap_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.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/394716/ltcube_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits
.....................!
real 193.12
user 187.61
sys 5.09

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits outfile=/scratch/kocevski/394716/cmap_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.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.971 yref=-36.4605 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/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits outfile=/scratch/kocevski/394716/cmap_HighResolution_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.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.971 yref=-36.4605 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/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394716/Model_4FGL_J2235.8-3627_daily_bin1363.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/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits.....................!
real 44.01
user 42.66
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits', '/scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits', expMap='/scratch/kocevski/394716/expmap_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits', expCube='/scratch/kocevski/394716/ltcube_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394716/Model_4FGL_J2235.8-3627_daily_bin1363.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/394716/ft1_filtered_4FGL_J2235.8-3627_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/394716/ft2_4FGL_J2235.8-3627_daily_bin1363.fits
Exposure map: /scratch/kocevski/394716/expmap_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits
Exposure cube: /scratch/kocevski/394716/ltcube_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394716/Model_4FGL_J2235.8-3627_daily_bin1363.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) = 5583.47632355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    59.039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44179E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79924       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.434       1.0000         .10000E-03   10000.    
    19 'norm      '    .76216       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1115       1.0000         .10000E-03   10000.    
    22 'norm      '    .11543E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.4004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1108       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.5717       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5583.428     FROM MIGRAD    STATUS=CONVERGED   1285 CALLS     4272 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5235        8.3416        .12861E-02    .19759E-03
   2  Prefactor     .10000E-03    4.6375        .15677E-02** at limit **
   3  norm          .10000E-03    3.2494        .13126E-02** at limit **
   4  norm          .10000E-03    3.0907        .12679E-02** at limit **
   5  norm          1.0601        .37509        .26355E-04   -.30153E-03
   6  Prefactor     4.4283        9.0467        .19133E-03    .46941E-04
   7  Prefactor     .10000E-03    2.5319        .11477E-02** at limit **
   8  norm          59.051        29.607        .26107E-03    .83608E-05
   9  Prefactor     .10000E-03    11.948        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.7251        .18142E-02** at limit **
  11  Prefactor     .10000E-03    13.483        .18142E-02** at limit **
  12  norm          .10000E-03    .94129        .70582E-03** at limit **
  13  Prefactor     .10006E-03    59.865        .15298    ** at limit **
  14  Prefactor     12.785        10.521        .56014E-03    .50619E-04
  15  Prefactor     .79936        4.6891        .31602E-03    .14246E-03
  16  norm          .10000E-03    1.6530        .93556E-03** at limit **
  17  Prefactor     .10000E-03    7.1065        .18142E-02** at limit **
  18  Prefactor     10.428        11.555        .12404E-03   -.15306E-03
  19  norm          .76194        .71840        .47367E-04   -.11823E-02
  20  Prefactor     .10000E-03    31.522        .18142E-02** at limit **
  21  Prefactor     5.1184        14.131        .17783E-03    .25892E-04
  22  norm          .10002E-03    42.371        .43531E-02** at limit **
  23  norm          .10000E-03    3.3062        .13142E-02** at limit **
  24  norm          4.4008        6.8407        .95994E-03    .13770E-03
  25  Prefactor     5.1002        82.706        .17784E-03   -.16684E-04
  26  Prefactor     .10000E-03    37.736        .18142E-02** at limit **
  27  norm          5.5724        5.4424        .13552E-03    .13632E-03
  28  Normalizat    1.0071        .23726        .24079E-03   -.50995E-03
  29  Prefactor     .94671        .22176        .24211E-03    .87153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52353
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.06007
  Prefactor  = 4.42826
  Prefactor  = 0.0001
  norm       = 59.0509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 12.7849
  Prefactor  = 0.79936
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4284
  norm       = 0.761938
  Prefactor  = 0.0001
  Prefactor  = 5.11844
  norm       = 0.000100015
  norm       = 0.0001
  norm       = 4.40078
  Prefactor  = 5.10023
  Prefactor  = 0.0001
  norm       = 5.57244
  Normalizat = 1.00712
  Prefactor  = 0.946714
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.428     FROM HESSE     STATUS=OK           537 CALLS     4809 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5235        8.3361        .51444E-04   -1.5390    
   2  Prefactor     .10000E-03    4.6381        .31353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2497        .26251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0920        .25358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0601        .37508        .10542E-05   -1.5502    
   6  Prefactor     4.4283        9.0455        .76532E-05   -1.5287    
   7  Prefactor     .10000E-03    2.5327        .22954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          59.051        29.607        .10443E-04   -1.4170    
   9  Prefactor     .10000E-03    11.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .94130        .14116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    61.677        .15001       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.785        10.520        .22405E-04   -1.4993    
  15  Prefactor     .79936        4.6881        .12641E-04   -1.5529    
  16  norm          .10000E-03    1.6531        .18711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.428        11.553        .49616E-05   -1.5062    
  19  norm          .76194        .71841        .18947E-05   -1.5533    
  20  Prefactor     .10000E-03    31.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1184        14.122        .71132E-05   -1.5255    
  22  norm          .10002E-03    43.166        .87062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3069        .26284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.4008        6.8394        .38398E-04   -1.5288    
  25  Prefactor     5.1002        82.650        .71138E-05   -1.5256    
  26  Prefactor     .10000E-03    37.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.5724        5.4386        .54208E-05   -1.5236    
  28  Normalizat    1.0071        .23751        .48159E-04   -.92792    
  29  Prefactor     .94671        .22200        .96842E-05   -.94527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85937e-09
Minuit parameter uncertainties:
  1  8.33989
  2  2.64513e-05
  3  6.59991e-06
  4  1.28847e-05
  5  0.375085
  6  9.04831
  7  1.83084e-06
  8  29.6143
  9  1.95564e-05
  10  2.34562e-05
  11  6.00685e-05
  12  5.93354e-06
  13  0.00392725
  14  10.5214
  15  3.87188
  16  1.10857e-05
  17  6.15633e-05
  18  11.5556
  19  0.718415
  20  8.07297e-05
  21  14.1315
  22  0.00163548
  23  5.48004e-06
  24  6.84065
  25  41.1295
  26  1.55556e-05
  27  5.43905
  28  0.237762
  29  0.222214
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.346e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.467e-01  2.222e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.007e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394716/likelihoodResults_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.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) = 5583.42818496
delta logL = -0.000489799077513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5583.42769608
delta logL = -9.28309418669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2267       1.0000          .0000       10.000    
     3 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94674       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5583.428     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    176.85        .18142E-02** at limit **
   2  Index         2.2116        5.1894        .50000        .18947E-05
   3  Normalizat    1.0071        .19215E-01    .24079E-03    .32577E-05
   4  Prefactor     .94670        .18889E-01    .24211E-03    .12679E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Index      = 2.21162
  Normalizat = 1.00713
  Prefactor  = 0.946705
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.428     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    751.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2116        7.4077        .50000       -.59158    
   3  Normalizat    1.0071        .43395E-01    .96317E-05   -.92792    
   4  Prefactor     .94670        .42655E-01    .96842E-05   -.94528    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10477e-09
Minuit parameter uncertainties:
  1  0.0130898
  2  1482.2
  3  0.0433963
  4  0.042656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394716': 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) = 5583.42769515
delta logL = 7.09223968443e-09

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.001e-04  1.309e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.212e+00  1.482e+03  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.467e-01  4.266e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.007e+00  4.340e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/394716/cmap_HighResolution_592617601_592876801_4FGL_J2235.8-3627_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.27e-08', time_completed='2021-09-28 16:43:20.017001', job_id='394716', GAL2='0.95', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632872600.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.09e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1363' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 394716: <4FGL_J2235.8-3627_daily_bin1363> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1363> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:17 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30: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 16:30:19 2021
Terminated at Tue Sep 28 16:43:20 2021
Results reported at Tue Sep 28 16:43:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1363 338.971 -36.4605 592617601 592876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

