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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1445
RA = 338.971, Dec = -36.4605
tmin = 613872001, tmax = 614131201
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='394843', job_status='RUN', time_executed='2021-09-28 16:34:40.198125', time_epoch_executed='1632872080.2' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394843

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394843/ft1_4FGL_J2235.8-3627_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394843/ft1_4FGL_J2235.8-3627_daily_bin1445.fits outfile=/scratch/kocevski/394843/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1445.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=613872001.0 tmax=614131201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.24
user 2.06
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.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/394843/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/394843/ltcube_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.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/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits
.....................!
real 12.80
user 12.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/394843/ltcube_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.fits outfile=/scratch/kocevski/394843/expmap_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.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/394843/ltcube_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.fits
.....................!
real 192.83
user 187.46
sys 4.59

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/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits outfile=/scratch/kocevski/394843/cmap_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits outfile=/scratch/kocevski/394843/cmap_HighResolution_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.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/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/394843/ft2_4FGL_J2235.8-3627_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394843/Model_4FGL_J2235.8-3627_daily_bin1445.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/394843/ft1_filtered_4FGL_J2235.8-3627_daily_bin1445.fits.....................!
real 36.41
user 35.10
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8547       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.625       1.0000         .10000E-03   10000.    
     3 'norm      '    12.273       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4779       1.0000         .10000E-03   10000.    
     5 'norm      '    .48530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4582       1.0000         .10000E-03   10000.    
     8 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0812       1.0000         .10000E-03   10000.    
    12 'norm      '    .13541E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7039       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2157       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11090E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4534       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67026       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=   4145.804     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3170 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8549        9.4717        .35494E-06   -.80534E-04
   2  Prefactor     14.627        13.869        .34015E-06   -.33813E-04
   3  norm          12.275        10.446        .30960E-06   -.28431E-04
   4  norm          4.4769        6.4704        .38341E-07   -.30708E-03
   5  norm          .48530        .34430        .45164E-07    .26887E-04
   6  Prefactor     .10000E-03    4.7603       -.61136E-07** at limit **
   7  Prefactor     3.4568        5.0542        .96093E-06   -.38227E-03
   8  norm          .10000E-03    11.952        .17701E-05** at limit **
   9  Prefactor     .10000E-03    21.718       -.12632E-04** at limit **
  10  Prefactor     16.966        27.617        .12215E-04   -.79024E-04
  11  Prefactor     6.0591        40.519        .50139E-04   -.28108E-04
  12  norm          .10000E-03    2.3176        .63495E-06** at limit **
  13  Prefactor     13.966        59.245       -.24116E-04   -.36473E-04
  14  Prefactor     5.6986        12.700        .21353E-06   -.12782E-03
  15  Prefactor     .10000E-03    4.0765       -.14881E-06** at limit **
  16  norm          .10000E-03    2.1838        .15555E-06** at limit **
  17  Prefactor     .10000E-03    9.4238        .25651E-05** at limit **
  18  Prefactor     .10000E-03    7.3469        .23098E-06** at limit **
  19  norm          .10000E-03    .23255        .10019E-06** at limit **
  20  Prefactor     .10000E-03    23.338        .14904E-04** at limit **
  21  Prefactor     8.2131        10.555        .80546E-06   -.19457E-03
  22  norm          .10000E-03    10.457       -.12977E-05** at limit **
  23  norm          .10000E-03    1.8458        .24112E-08** at limit **
  24  norm          .10000E-03    4.9264        .43933E-09** at limit **
  25  Prefactor     .10000E-03    9.7166       -.21221E-05** at limit **
  26  Prefactor     .10000E-03    35.839       -.74154E-05** at limit **
  27  norm          .10059E-03    2.0581        .80342E-06** at limit **
  28  Normalizat    1.4541        .22835       -.36091E-05   -.85908E-04
  29  Prefactor     .66968        .21153       -.97516E-06   -.26888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85492
  Prefactor  = 14.6268
  norm       = 12.2749
  norm       = 4.47694
  norm       = 0.485304
  Prefactor  = 0.0001
  Prefactor  = 3.45675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9661
  Prefactor  = 6.05915
  norm       = 0.000100001
  Prefactor  = 13.9665
  Prefactor  = 5.69863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21315
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100592
  Normalizat = 1.45411
  Prefactor  = 0.66968
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.804     FROM HESSE     STATUS=OK           559 CALLS     3729 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8549        9.4641        .15324E-03   -1.5184    
   2  Prefactor     14.627        13.888        .10473E-03   -1.4943    
   3  norm          12.275        10.470        .11434E-03   -1.5007    
   4  norm          4.4769        6.4459        .18065E-03   -1.5285    
   5  norm          .48530        .34729        .29563E-04   -1.5569    
   6  Prefactor     .10000E-03    4.7747        .13718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4568        5.0418        .16677E-03   -1.5336    
   8  norm          .10000E-03    11.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.966        27.512        .97213E-04   -1.4884    
  11  Prefactor     6.0591        40.227        .16281E-03   -1.5216    
  12  norm          .10000E-03    2.3657        .19068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.966        59.518        .10636E-03   -1.4960    
  14  Prefactor     5.6986        12.715        .16819E-03   -1.5230    
  15  Prefactor     .10000E-03    4.1172        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1968        .92879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4325        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .25213        .59437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2131        10.345        .13987E-03   -1.5135    
  22  norm          .10000E-03    10.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8473        .85425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.9479        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.7194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    35.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10059E-03    3.3184        .34609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4541        .27472        .22016E-03   -.79076    
  29  Prefactor     .66968        .25237        .29247E-03   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11896e-09
Minuit parameter uncertainties:
  1  9.46613
  2  13.891
  3  10.4712
  4  6.44688
  5  0.347287
  6  2.97186e-05
  7  5.04241
  8  6.70861e-05
  9  0.00012552
  10  27.5325
  11  31.2547
  12  9.83415e-05
  13  57.7607
  14  12.7208
  15  2.99106e-05
  16  2.24763e-05
  17  4.34514e-05
  18  9.00276e-05
  19  5.08961e-06
  20  2.85673e-05
  21  10.3468
  22  6.57206e-06
  23  5.7374e-08
  24  1.47164e-05
  25  6.59457e-07
  26  6.5367e-05
  27  0.00280383
  28  0.274997
  29  0.252801
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.697e+01  2.753e+01  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:  6.697e-01  2.528e-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.454e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394843/likelihoodResults_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.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): 0
logL (Free Index) = 4145.80343309
delta logL = 0.00076857123895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4145.80321256
delta logL = 0.000989095817204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2810       1.0000          .0000       10.000    
     3 'Normalizat'    1.4527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67073       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=   4145.803     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.386        31.117        .98954E-04   -.16992E-03
   2  Index         2.2793        1.1732        .94584E-02   -.77669E-04
   3  Normalizat    1.4525        .26369        .22026E-03    .43695E-03
   4  Prefactor     .67080        .24720        .29224E-03    .38151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3858
  Index      = 2.27926
  Normalizat = 1.45255
  Prefactor  = 0.670799
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.803     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.386        29.815        .39582E-05   -1.4898    
   2  Index         2.2793        1.1247        .37834E-03   -.57537    
   3  Normalizat    1.4525        .26368        .44052E-04   -.79121    
   4  Prefactor     .67080        .24715        .58449E-04   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93021e-10
Minuit parameter uncertainties:
  1  29.8416
  2  1.13862
  3  0.263928
  4  0.247551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394843': 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) = 4145.80321079
delta logL = 0.000990868104054

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.639e+01  2.984e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.279e+00  1.139e+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:  6.708e-01  2.476e-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.453e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/394843/cmap_HighResolution_613872001_614131201_4FGL_J2235.8-3627_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 16:44:39.231734', job_id='394843', GAL2='0.67', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632872679.23', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='9.91e-04', ts2='0.50', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1445' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 394843: <4FGL_J2235.8-3627_daily_bin1445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1445 338.971 -36.4605 613872001 614131201 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 :                                   596.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

