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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1367
RA = 338.971, Dec = -36.4605
tmin = 593654401, tmax = 593913601
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='394722', job_status='RUN', time_executed='2021-09-28 16:31:48.249994', time_epoch_executed='1632871908.25' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394722/ft1_4FGL_J2235.8-3627_daily_bin1367.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394722/ft1_4FGL_J2235.8-3627_daily_bin1367.fits outfile=/scratch/kocevski/394722/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1367.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=593654401.0 tmax=593913601.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.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.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/394722/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1367.fits evtable="EVENTS" outfile="/scratch/kocevski/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.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/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits" evtable="EVENTS" scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits sctable="SC_DATA" outfile=/scratch/kocevski/394722/ltcube_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.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/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits
.....................!
real 12.42
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits sctable="SC_DATA" expcube=/scratch/kocevski/394722/ltcube_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits outfile=/scratch/kocevski/394722/expmap_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.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/394722/ltcube_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits
.....................!
real 190.19
user 185.34
sys 4.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 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/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits outfile=/scratch/kocevski/394722/cmap_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits outfile=/scratch/kocevski/394722/cmap_HighResolution_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394722/Model_4FGL_J2235.8-3627_daily_bin1367.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/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits.....................!
real 53.81
user 52.53
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits', '/scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits', expMap='/scratch/kocevski/394722/expmap_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits', expCube='/scratch/kocevski/394722/ltcube_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394722/Model_4FGL_J2235.8-3627_daily_bin1367.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/394722/ft1_filtered_4FGL_J2235.8-3627_daily_bin1367.fits
Spacecraft file(s): /scratch/kocevski/394722/ft2_4FGL_J2235.8-3627_daily_bin1367.fits
Exposure map: /scratch/kocevski/394722/expmap_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits
Exposure cube: /scratch/kocevski/394722/ltcube_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394722/Model_4FGL_J2235.8-3627_daily_bin1367.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) = 7241.52403873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37624E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1202       1.0000         .10000E-03   10000.    
     4 'norm      '    .86583       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4709       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5237       1.0000         .10000E-03   10000.    
    12 'norm      '    .83425       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14195E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.679       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23474       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5913       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .59578       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1980       1.0000         .10000E-03   10000.    
    27 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76310       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86680       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.

 FCN=   7241.405     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3292 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3543        .54491E-07** at limit **
   2  Prefactor     .10000E-03    2.3830        .21803E-07** at limit **
   3  norm          3.1202        3.8164        .93886E-07   -.89141E-03
   4  norm          .86454        2.3516        .84111E-07   -.76590E-04
   5  norm          1.4710        .35994        .61307E-08   -.16673E-03
   6  Prefactor     13.681        6.9101        .38703E-07    .29937E-04
   7  Prefactor     .10000E-03    1.1776        .37366E-07** at limit **
   8  norm          17.914        14.168        .32861E-06   -.11164E-04
   9  Prefactor     .10000E-03    35.046       -.18780E-06** at limit **
  10  Prefactor     .10000E-03    9.7327       -.31504E-05** at limit **
  11  Prefactor     1.4912        16.981       -.28004E-07   -.25009E-03
  12  norm          .83446        .99334       -.36302E-07   -.13151E-03
  13  Prefactor     .10002E-03    17.125        .50110E-06** at limit **
  14  Prefactor     11.680        8.0442       -.91662E-06   -.17578E-05
  15  Prefactor     .23954        2.3515       -.10582E-06    .20480E-04
  16  norm          .10000E-03    1.0960        .16933E-07** at limit **
  17  Prefactor     .10000E-03    2.7975        .82273E-07** at limit **
  18  Prefactor     .10000E-03    2.8045       -.88250E-07** at limit **
  19  norm          1.5913        .51529        .89410E-08   -.45835E-04
  20  Prefactor     24.162        31.061        .90770E-05    .15234E-04
  21  Prefactor     .10000E-03    4.7166       -.11264E-07** at limit **
  22  norm          .10000E-03    9.2804        .10429E-05** at limit **
  23  norm          .10000E-03    3.0351       -.23486E-07** at limit **
  24  norm          .59433        2.8712       -.70158E-06    .39401E-03
  25  Prefactor     .10000E-03    10.057        .20116E-05** at limit **
  26  Prefactor     2.1859        66.892        .45810E-06   -.64001E-04
  27  norm          .10000E-03    1.6166        .36455E-07** at limit **
  28  Normalizat    .76304        .14074       -.82307E-07    .31935E-04
  29  Prefactor     .86693        .13430       -.24162E-06    .43658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12025
  norm       = 0.864535
  norm       = 1.471
  Prefactor  = 13.6808
  Prefactor  = 0.0001
  norm       = 17.9136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49119
  norm       = 0.834457
  Prefactor  = 0.000100016
  Prefactor  = 11.6804
  Prefactor  = 0.239538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59132
  Prefactor  = 24.1616
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.594328
  Prefactor  = 0.0001
  Prefactor  = 2.18587
  norm       = 0.0001
  Normalizat = 0.763042
  Prefactor  = 0.866928
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.405     FROM HESSE     STATUS=OK           567 CALLS     3859 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.783        .37233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3894        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1202        4.4291        .10320E-02   -1.5355    
   4  norm          .86454        2.3057        .19532E-03   -1.5522    
   5  norm          1.4710        .34955        .23141E-04   -1.5465    
   6  Prefactor     13.681        6.9258        .10830E-03   -1.4968    
   7  Prefactor     .10000E-03    2.2236        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.914        14.150        .94643E-04   -1.4861    
   9  Prefactor     .10000E-03    35.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4912        44.716        .17301E-02   -1.5464    
  12  norm          .83446        .95321        .88332E-04   -1.5525    
  13  Prefactor     .10002E-03    127.64        .66836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.680        8.0551        .11722E-03   -1.5024    
  15  Prefactor     .23954        12.411        .24872E-02   -1.5610    
  16  norm          .10000E-03    1.1168        .86927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8005        .13897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8277        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5913        .51074        .33276E-04   -1.5456    
  20  Prefactor     24.162        31.145        .81541E-04   -1.4724    
  21  Prefactor     .10000E-03    4.7508        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.2983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1563        .28886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .59433        9.8080        .27307E-02   -1.5554    
  25  Prefactor     .10000E-03    10.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.1859        74.752        .13877E-02   -1.5412    
  27  norm          .10000E-03    2.9951        .20918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76304        .16659        .22941E-03   -1.0145    
  29  Prefactor     .86693        .16119        .21574E-03   -.97306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87254e-09
Minuit parameter uncertainties:
  1  0.000171026
  2  5.25163e-07
  3  4.4296
  4  2.30591
  5  0.349553
  6  6.92616
  7  1.49597e-06
  8  14.1526
  9  8.6056e-06
  10  1.21771e-06
  11  16.3444
  12  0.953226
  13  0.00289497
  14  8.05583
  15  3.44845
  16  6.69005e-07
  17  5.13749e-07
  18  2.12605e-06
  19  0.510739
  20  31.1659
  21  1.41948e-06
  22  1.52356e-06
  23  2.01227e-07
  24  4.82927
  25  7.76445e-07
  26  25.5996
  27  4.48114e-06
  28  0.166703
  29  0.161278
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.218e-06  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:  8.669e-01  1.613e-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:  7.630e-01  1.667e-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: 3.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394722/likelihoodResults_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.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) = 7241.40535217
delta logL = -0.000486245368847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7241.40486606
delta logL = -1.28774445329e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2463       1.0000          .0000       10.000    
     3 'Normalizat'    .76295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86702       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=   7241.405     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      228 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.932        .18142E-02** at limit **
   2  Index         2.2632        6.0401        .50000       -.14326E-04
   3  Normalizat    .76304        .15809        .22941E-03    .27008E-04
   4  Prefactor     .86693        .15865        .21574E-03    .24768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.26319
  Normalizat = 0.763042
  Prefactor  = 0.866928
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.405     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2632        6.1312        .50000       -.57921    
   3  Normalizat    .76304        .15826        .91765E-05   -1.0145    
   4  Prefactor     .86693        .15882        .86294E-05   -.97306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74937e-10
Minuit parameter uncertainties:
  1  0.000291477
  2  4.22064
  3  0.158354
  4  0.158907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394722': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.40486581
delta logL = 1.16927367344e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.915e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.263e+00  4.221e+00  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:  8.669e-01  1.589e-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:  7.630e-01  1.584e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394722/cmap_HighResolution_593654401_593913601_4FGL_J2235.8-3627_daily_bin1367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-09-28 16:45:46.767229', job_id='394722', GAL2='0.87', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632872746.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1367' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 394722: <4FGL_J2235.8-3627_daily_bin1367> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1367> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:18 2021
Job was executed on host(s) <bullet0043>, 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:45:47 2021
Results reported at Tue Sep 28 16:45:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1367 338.971 -36.4605 593654401 593913601 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 :                                   836.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

