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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1386
RA = 338.971, Dec = -36.4605
tmin = 598579201, tmax = 598838401
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='394752', job_status='RUN', time_executed='2021-09-28 16:31:37.600077', time_epoch_executed='1632871897.6' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394752/ft1_4FGL_J2235.8-3627_daily_bin1386.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394752/ft1_4FGL_J2235.8-3627_daily_bin1386.fits outfile=/scratch/kocevski/394752/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1386.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=598579201.0 tmax=598838401.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.86
user 2.64
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.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/394752/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1386.fits evtable="EVENTS" outfile="/scratch/kocevski/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.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/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits" evtable="EVENTS" scfile=/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits sctable="SC_DATA" outfile=/scratch/kocevski/394752/ltcube_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.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/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits
.....................!
real 12.47
user 12.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits evtable="EVENTS" scfile=/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits sctable="SC_DATA" expcube=/scratch/kocevski/394752/ltcube_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits outfile=/scratch/kocevski/394752/expmap_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.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/394752/ltcube_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits
.....................!
real 193.37
user 187.35
sys 5.51

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/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits scfile=/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits outfile=/scratch/kocevski/394752/cmap_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits scfile=/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits outfile=/scratch/kocevski/394752/cmap_HighResolution_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits', '/scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits', expMap='/scratch/kocevski/394752/expmap_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits', expCube='/scratch/kocevski/394752/ltcube_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394752/Model_4FGL_J2235.8-3627_daily_bin1386.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/394752/ft1_filtered_4FGL_J2235.8-3627_daily_bin1386.fits
Spacecraft file(s): /scratch/kocevski/394752/ft2_4FGL_J2235.8-3627_daily_bin1386.fits
Exposure map: /scratch/kocevski/394752/expmap_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits
Exposure cube: /scratch/kocevski/394752/ltcube_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394752/Model_4FGL_J2235.8-3627_daily_bin1386.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7672.49603787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5394       1.0000         .10000E-03   10000.    
     3 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .32887       1.0000         .10000E-03   10000.    
     5 'norm      '    .92098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23675       1.0000         .10000E-03   10000.    
     8 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23771E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19916E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0582       1.0000         .10000E-03   10000.    
    22 'norm      '    8.5974       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4071       1.0000         .10000E-03   10000.    
    24 'norm      '    .18843E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.467       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20078E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74007       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=   7672.284     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3257 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4266        .80548E-08** at limit **
   2  Prefactor     2.5387        4.2591        .10973E-06   -.11361E-03
   3  norm          .10000E-03    10.129        .11892E-05** at limit **
   4  norm          .31525        1.9535        .65359E-08   -.41856E-04
   5  norm          .92136        .32466       -.11251E-08   -.95014E-04
   6  Prefactor     .10000E-03    2.6007        .23040E-07** at limit **
   7  Prefactor     .23655        1.7177        .14855E-05   -.64583E-03
   8  norm          .10000E-03    9.0427       -.11697E-05** at limit **
   9  Prefactor     .10000E-03    7.9291        .92319E-06** at limit **
  10  Prefactor     .10000E-03    8.9022       -.12584E-05** at limit **
  11  Prefactor     .10000E-03    12.825       -.14243E-05** at limit **
  12  norm          .10000E-03    .80440        .90914E-08** at limit **
  13  Prefactor     .10000E-03    49.853       -.31648E-05** at limit **
  14  Prefactor     14.206        8.8814       -.30582E-07   -.16640E-03
  15  Prefactor     .10000E-03    1.2348        .12843E-08** at limit **
  16  norm          .10000E-03    1.1719       -.14321E-07** at limit **
  17  Prefactor     .10000E-03    3.3814        .22793E-07** at limit **
  18  Prefactor     .10000E-03    2.9457        .32085E-06** at limit **
  19  norm          1.2727        .48163        .57187E-08   -.10896E-02
  20  Prefactor     .10000E-03    10.900        .16863E-05** at limit **
  21  Prefactor     6.0581        6.0609        .25531E-07   -.14757E-03
  22  norm          8.5945        8.5815       -.89012E-07   -.23817E-04
  23  norm          2.4109        2.5022       -.13921E-06   -.12315E-04
  24  norm          .10026E-03    3.9183        .11028E-05** at limit **
  25  Prefactor     17.480        20.955        .13695E-05    .24459E-03
  26  Prefactor     .10000E-03    33.902       -.15149E-05** at limit **
  27  norm          .10000E-03    1.8206        .15033E-06** at limit **
  28  Normalizat    1.1410        .14816       -.48898E-06   -.27299E-03
  29  Prefactor     .74006        .14229       -.50747E-07   -.25405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.53865
  norm       = 0.000100001
  norm       = 0.315254
  norm       = 0.921355
  Prefactor  = 0.0001
  Prefactor  = 0.236547
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.2058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.27265
  Prefactor  = 0.000100001
  Prefactor  = 6.05807
  norm       = 8.59452
  norm       = 2.41089
  norm       = 0.00010026
  Prefactor  = 17.4798
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Normalizat = 1.141
  Prefactor  = 0.740061
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.284     FROM HESSE     STATUS=OK           559 CALLS     3816 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4359        .13324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5387        4.2534        .22846E-03   -1.5389    
   3  norm          .10000E-03    10.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .31525        12.476        .22527E-02   -1.5596    
   5  norm          .92136        .32652        .27577E-04   -1.5516    
   6  Prefactor     .10000E-03    2.6162        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23655        2.2795        .25315E-03   -1.5611    
   8  norm          .10000E-03    9.1836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .83636        .15336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.206        8.9327        .10625E-03   -1.4954    
  15  Prefactor     .10000E-03    1.2382        .95048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5132        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3900        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.614        .25958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2727        .45287        .33339E-04   -1.5482    
  20  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0581        5.9517        .16312E-03   -1.5216    
  22  norm          8.5945        8.5845        .13671E-03   -1.5122    
  23  norm          2.4109        2.4998        .13562E-03   -1.5397    
  24  norm          .10026E-03    3.6546        .51727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.480        20.677        .95832E-04   -1.4872    
  26  Prefactor     .10000E-03    34.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.1204        .21844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1410        .17229        .21097E-03   -.88446    
  29  Prefactor     .74006        .16596        .25163E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08512e-08
Minuit parameter uncertainties:
  1  1.10793e-06
  2  4.25392
  3  0.000152711
  4  3.96662
  5  0.32652
  6  3.51017e-06
  7  1.46837
  8  0.00014467
  9  0.000110614
  10  0.000153711
  11  0.000204248
  12  1.4553e-06
  13  0.000909726
  14  8.93356
  15  1.91762e-07
  16  9.39939e-06
  17  8.06729e-07
  18  0.000172216
  19  0.452868
  20  0.000237352
  21  5.95232
  22  8.58577
  23  2.49994
  24  0.00194889
  25  20.6854
  26  0.000371893
  27  9.00813e-05
  28  0.172376
  29  0.166076
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.537e-04  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:  7.401e-01  1.661e-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.141e+00  1.724e-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: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394752/likelihoodResults_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.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) = 7672.28471694
delta logL = -0.000526488475771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7672.28419047
delta logL = -2.65117705567e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74008       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.

 FCN=   7672.284     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      190 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.937        .90712E-02** at limit **
   2  Index         2.2346        6.4533        .50000       -.24360E-05
   3  Normalizat    1.1410        .14253        .36533E-01    .14972E-04
   4  Prefactor     .74006        .14053        .42932E-01    .27730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23456
  Normalizat = 1.141
  Prefactor  = 0.740062
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.284     FROM HESSE     STATUS=OK            31 CALLS      221 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2346        7.8785        .20000       -.58607    
   3  Normalizat    1.1410        .16597        .21097E-03   -.88446    
   4  Prefactor     .74006        .16361        .25163E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88308e-07
Minuit parameter uncertainties:
  1  9.03305e-06
  2  937.126
  3  0.166045
  4  0.163719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394752': 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) = 7672.28419045
delta logL = 3.10774339596e-09

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  9.033e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.235e+00  9.371e+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:  7.401e-01  1.637e-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.141e+00  1.660e-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/394752/cmap_HighResolution_598579201_598838401_4FGL_J2235.8-3627_daily_bin1386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-28 16:46:05.464385', job_id='394752', GAL2='0.74', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632872765.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1386' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 394752: <4FGL_J2235.8-3627_daily_bin1386> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1386 338.971 -36.4605 598579201 598838401 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 :                                   865.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

