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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1153
RA = 338.971, Dec = -36.4605
tmin = 538185601, tmax = 538444801
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='393663', job_status='RUN', time_executed='2021-09-28 16:27:32.929400', time_epoch_executed='1632871652.93' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393663/ft1_4FGL_J2235.8-3627_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393663/ft1_4FGL_J2235.8-3627_daily_bin1153.fits outfile=/scratch/kocevski/393663/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1153.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.35
user 5.07
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/393663/ltcube_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.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/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits
.....................!
real 12.19
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/393663/ltcube_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.fits outfile=/scratch/kocevski/393663/expmap_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.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/393663/ltcube_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.fits
.....................!
real 191.12
user 185.26
sys 5.44

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/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits scfile=/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits outfile=/scratch/kocevski/393663/cmap_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits scfile=/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits outfile=/scratch/kocevski/393663/cmap_HighResolution_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.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.61
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/393663/ft2_4FGL_J2235.8-3627_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393663/Model_4FGL_J2235.8-3627_daily_bin1153.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/393663/ft1_filtered_4FGL_J2235.8-3627_daily_bin1153.fits.....................!
real 46.07
user 44.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8070       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
     8 'norm      '    37.797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.138       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7441       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6119       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.378       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5194       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39078E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .77157       1.0000         .10000E-03   10000.    
    24 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2959       1.0000         .10000E-03   10000.    
    26 'Prefactor '    63.545       1.0000         .10000E-03   10000.    
    27 'norm      '    .11792E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73166       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0447       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=   6008.790     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3744 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.114        8.3325        .12268E-06    .97010E-05
   2  Prefactor     .10000E-03    7.2283       -.92160E-07** at limit **
   3  norm          8.8069        8.2554        .92919E-07    .11517E-04
   4  norm          .10000E-03    4.6102       -.12877E-06** at limit **
   5  norm          1.9520        .52562        .11383E-07    .17089E-04
   6  Prefactor     6.8299        7.9349        .45445E-05    .47142E-03
   7  Prefactor     12.340        4.7197        .13547E-06   -.44505E-04
   8  norm          37.783        22.060       -.44724E-07   -.50089E-04
   9  Prefactor     9.8089        31.525        .47514E-06    .19193E-04
  10  Prefactor     .10000E-03    12.399       -.27520E-06** at limit **
  11  Prefactor     23.152        20.295        .11467E-06    .31443E-04
  12  norm          2.6160        2.2460       -.25767E-06    .91895E-04
  13  Prefactor     42.939        51.009        .29550E-05    .38354E-03
  14  Prefactor     .10000E-03    5.4554       -.80989E-07** at limit **
  15  Prefactor     5.7439        5.5422        .24471E-06    .52048E-05
  16  norm          .10000E-03    1.2824        .94557E-07** at limit **
  17  Prefactor     6.6099        11.296        .24295E-06    .21845E-03
  18  Prefactor     19.381        14.021       -.74186E-06    .10788E-02
  19  norm          2.5188        1.0070        .95566E-07    .36590E-02
  20  Prefactor     .10000E-03    53.671        .89258E-07** at limit **
  21  Prefactor     .10047E-03    11.557       -.35347E-05** at limit **
  22  norm          .10000E-03    5.1777       -.21753E-07** at limit **
  23  norm          .77658        5.2605        .31164E-05    .15694E-03
  24  norm          .10000E-03    2.8962        .66515E-07** at limit **
  25  Prefactor     3.2991        97.190       -.52662E-05   -.77523E-04
  26  Prefactor     63.564        41.770        .87821E-06    .13643E-03
  27  norm          .10000E-03    3.8627        .37778E-06** at limit **
  28  Normalizat    .73189        .19420       -.37966E-05    .14492E-03
  29  Prefactor     1.0446        .18201        .15453E-05   -.27247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1143
  Prefactor  = 0.0001
  norm       = 8.8069
  norm       = 0.0001
  norm       = 1.95204
  Prefactor  = 6.82985
  Prefactor  = 12.3402
  norm       = 37.7833
  Prefactor  = 9.80891
  Prefactor  = 0.0001
  Prefactor  = 23.1523
  norm       = 2.61601
  Prefactor  = 42.9391
  Prefactor  = 0.0001
  Prefactor  = 5.74389
  norm       = 0.0001
  Prefactor  = 6.60985
  Prefactor  = 19.381
  norm       = 2.5188
  Prefactor  = 0.0001
  Prefactor  = 0.000100467
  norm       = 0.0001
  norm       = 0.776581
  norm       = 0.0001
  Prefactor  = 3.2991
  Prefactor  = 63.5639
  norm       = 0.0001
  Normalizat = 0.731887
  Prefactor  = 1.04457
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.790     FROM HESSE     STATUS=OK           557 CALLS     4301 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.114        8.3266        .12018E-03   -1.5041    
   2  Prefactor     .10000E-03    7.3605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8069        8.2638        .13506E-03   -1.5114    
   4  norm          .10000E-03    4.7353        .32428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9520        .52527        .27974E-04   -1.5429    
   6  Prefactor     6.8299        7.9464        .76750E-03   -1.5185    
   7  Prefactor     12.340        4.7271        .98785E-04   -1.5005    
   8  norm          37.783        22.063        .65191E-04   -1.4478    
   9  Prefactor     9.8089        31.501        .12799E-03   -1.5081    
  10  Prefactor     .10000E-03    12.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.152        20.317        .83273E-04   -1.4745    
  12  norm          2.6160        2.2518        .96231E-04   -1.5384    
  13  Prefactor     42.939        51.501        .61230E-04   -1.4396    
  14  Prefactor     .10000E-03    5.5122        .17675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7439        5.5386        .16759E-03   -1.5229    
  16  norm          .10000E-03    1.2864        .85668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6099        11.272        .15606E-03   -1.5194    
  18  Prefactor     19.381        13.989        .90986E-04   -1.4827    
  19  norm          2.5188        1.0460        .36913E-04   -1.5391    
  20  Prefactor     .10000E-03    53.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10047E-03    36.682        .41807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1779        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .77658        4.9214        .31640E-03   -1.5532    
  24  norm          .10000E-03    2.9405        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2991        76.305        .22301E-03   -1.5345    
  26  Prefactor     63.564        41.835        .50341E-04   -1.4112    
  27  norm          .10000E-03    5.6352        .24877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73189        .22553        .27896E-03   -1.0265    
  29  Prefactor     1.0446        .21354        .23855E-03   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40521e-08
Minuit parameter uncertainties:
  1  8.32751
  2  2.49226e-06
  3  8.26491
  4  1.78479e-06
  5  0.525276
  6  7.94766
  7  4.72724
  8  22.0676
  9  31.5543
  10  3.72197e-05
  11  20.3231
  12  2.25186
  13  51.554
  14  1.33347e-05
  15  5.5391
  16  5.17495e-06
  17  11.2757
  18  13.9915
  19  1.046
  20  0.000220426
  21  0.00827923
  22  3.99615e-06
  23  3.91014
  24  3.09928e-06
  25  31.7777
  26  41.8548
  27  7.1093e-05
  28  0.225815
  29  0.213718
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.722e-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:  1.045e+00  2.137e-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.319e-01  2.258e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393663/likelihoodResults_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.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) = 6008.79057115
delta logL = -0.000382534510209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6008.790189
delta logL = -3.918830771e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2429       1.0000          .0000       10.000    
     3 'Normalizat'    .73174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0447       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=   6008.790     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      272 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .39826E-01    .69751E-01** at limit **
   2  Index         3.3273        5.1942        .50000        .16234E-06
   3  Normalizat    .73188        .61172E-03    .27896E-03   -.11171E-03
   4  Prefactor     1.0446        .61936E-03    .23855E-03   -.19059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.32727
  Normalizat = 0.731884
  Prefactor  = 1.04457
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.790     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.573        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3273        6.5998        .50000       -.34112    
   3  Normalizat    .73188        .64162E-02    .11159E-04   -1.0265    
   4  Prefactor     1.0446        .64964E-02    .47709E-04   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12798e-11
Minuit parameter uncertainties:
  1  3.97064e-05
  2  125.284
  3  0.00641617
  4  0.00649637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393663': 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) = 6008.7901871
delta logL = 1.50909727381e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.971e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.327e+00  1.253e+02  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:  1.045e+00  6.496e-03  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.319e-01  6.416e-03  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/393663/cmap_HighResolution_538185601_538444801_4FGL_J2235.8-3627_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-28 16:40:57.409575', job_id='393663', GAL2='1.04', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632872457.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1153' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 393663: <4FGL_J2235.8-3627_daily_bin1153> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1153> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:42 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:43 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:25:43 2021
Terminated at Tue Sep 28 16:40:58 2021
Results reported at Tue Sep 28 16:40:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1153 338.971 -36.4605 538185601 538444801 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 :                                   797.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

