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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1651
RA = 338.971, Dec = -36.4605
tmin = 667267201, tmax = 667526401
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='536006', job_status='RUN', time_executed='2022-02-26 01:14:46.615748', time_epoch_executed='1645866886.62' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536006/ft1_4FGL_J2235.8-3627_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536006/ft1_4FGL_J2235.8-3627_daily_bin1651.fits outfile=/scratch/kocevski/536006/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1651.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=667267201.0 tmax=667526401.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.94
user 2.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.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/536006/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.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.50
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/536006/ltcube_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.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/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits
.....................!
real 18.73
user 18.29
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/536006/ltcube_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.fits outfile=/scratch/kocevski/536006/expmap_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.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/536006/ltcube_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.fits
.....................!
real 192.35
user 187.35
sys 4.55

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/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits outfile=/scratch/kocevski/536006/cmap_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits outfile=/scratch/kocevski/536006/cmap_HighResolution_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/536006/ft2_4FGL_J2235.8-3627_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536006/Model_4FGL_J2235.8-3627_daily_bin1651.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/536006/ft1_filtered_4FGL_J2235.8-3627_daily_bin1651.fits.......................!
real 17.15
user 15.59
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12350E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13269E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5293       1.0000         .10000E-03   10000.    
     8 'norm      '    .74416E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96253E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1867       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5772       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15733E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    136.37       1.0000         .10000E-03   10000.    
    27 'norm      '    11.097       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4248       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=   497.7877     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3756 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    269.85       -.11210E-05** at limit **
   2  Prefactor     .10027E-03    1329.9        .13881E-04** at limit **
   3  norm          .10000E-03    223.34       -.85168E-06** at limit **
   4  norm          .10000E-03    323.42       -.70594E-06** at limit **
   5  norm         10000.0        9067.8       -.26707E-04** at limit **
   6  Prefactor     .10000E-03    203.38       -.50879E-06** at limit **
   7  Prefactor     5.5243        16.867        .17358E-06    .51587E-04
   8  norm          .10001E-03    1433.9        .31235E-05** at limit **
   9  Prefactor     .10000E-03    164.11        .57037E-06** at limit **
  10  Prefactor     .10000E-03    91.157        .60205E-06** at limit **
  11  Prefactor     .10000E-03    87.945        .33713E-06** at limit **
  12  norm          .10000E-03    38.550       -.37666E-07** at limit **
  13  Prefactor     .10003E-03    2005.4        .48218E-05** at limit **
  14  Prefactor     .10000E-03    54.478        .42851E-06** at limit **
  15  Prefactor     .10000E-03    8.5732       -.15590E-07** at limit **
  16  norm          .10000E-03    19.879        .16597E-07** at limit **
  17  Prefactor     .10000E-03    72.474       -.57514E-06** at limit **
  18  Prefactor     8.2178        188.34        .43610E-06    .18037E-04
  19  norm          .10000E-03    2.6334        .61498E-07** at limit **
  20  Prefactor     65.497        190.64        .18535E-05   -.91471E-05
  21  Prefactor     .10000E-03    63.473       -.44383E-06** at limit **
  22  norm          .10000E-03    34.800       -.48873E-07** at limit **
  23  norm          .10000E-03    8.4399        .66849E-07** at limit **
  24  norm          1.5925        81.715        .54906E-05   -.45181E-04
  25  Prefactor     .10000E-03    415.26        .19719E-05** at limit **
  26  Prefactor     136.40        207.52        .38866E-06    .22447E-04
  27  norm          11.096        10.391       -.10367E-06    .21447E-03
  28  Normalizat    .10000E-01    1.0271       -.17092E-04** at limit **
  29  Prefactor     1.4245        .46362        .24037E-05    .13034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100271
  norm       = 0.000100001
  norm       = 0.000100001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 5.52428
  norm       = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21785
  norm       = 0.0001
  Prefactor  = 65.4974
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.59246
  Prefactor  = 0.000100003
  Prefactor  = 136.405
  norm       = 11.096
  Normalizat = 0.01
  Prefactor  = 1.42454
 **********
 **   18 **HESSE 
 **********

 FCN=   497.7877     FROM HESSE     STATUS=OK           535 CALLS     4291 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    269.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10027E-03    1291.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    223.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    323.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        9039.7        .18153E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    203.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5243        16.957        .14877E-03   -1.5238    
   8  norm          .10001E-03    1431.9        .20945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    164.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    91.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    38.549        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    2000.7        .20787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.451        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5735        .63836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.878        .97223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2178        186.48        .14012E-03   -1.5135    
  19  norm          .10000E-03    2.6320        .35262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     65.497        190.74        .24776E-03   -1.4088    
  21  Prefactor     .10000E-03    63.420        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    34.816        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.4451        .63286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5925        79.457        .16915E-02   -1.5456    
  25  Prefactor     .10000E-03    416.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     136.40        210.37        .17245E-03   -1.3367    
  27  norm          11.096        10.382        .65750E-04   -1.5042    
  28  Normalizat    .10000E-01    6.1993        .12532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.4245        .46282        .23674E-03   -.79675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0017e-10
Minuit parameter uncertainties:
  1  0.00138675
  2  0.0383032
  3  0.000958005
  4  0.000957171
  5  0.225692
  6  0.000536606
  7  16.9717
  8  0.00909339
  9  0.000575247
  10  0.000445465
  11  0.000269974
  12  1.83788e-05
  13  0.0166682
  14  0.000260142
  15  1.72062e-06
  16  4.15515e-06
  17  0.00037648
  18  78.57
  19  4.49816e-06
  20  192.561
  21  0.00029405
  22  1.39942e-05
  23  7.85051e-06
  24  22.5283
  25  0.00215722
  26  211.544
  27  10.3836
  28  6.06475e-05
  29  0.464185
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.455e-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:  1.425e+00  4.642e-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.000e-02  6.065e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 7.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536006/likelihoodResults_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.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) = 497.787779568
delta logL = -5.27671389818e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 497.787728142
delta logL = -1.34038651822e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14330E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6358       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4245       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=   497.7877     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      290 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10618E-03    71.654        .16811E-01** at limit **
   2  Index         2.5146        7.3983        .50000        .43093E-05
   3  Normalizat    .10000E-01    .56292E-02    .12531E-01** at limit **
   4  Prefactor     1.4245        .17612E-01    .23674E-03    .30255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106181
  Index      = 2.51459
  Normalizat = 0.01
  Prefactor  = 1.42454
 **********
 **   18 **HESSE 
 **********

 FCN=   497.7877     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10618E-03    624.37        .17806E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5146        5.9313        .50000       -.52023    
   3  Normalizat    .10000E-01    .51176E-01    .25062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4245        .52929E-01    .47348E-04   -.79676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96671e-09
Minuit parameter uncertainties:
  1  0.125576
  2  933.628
  3  6.72929e-06
  4  0.0529308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536006': 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) = 497.787727049
delta logL = -2.48256299074e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.062e-04  1.256e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.515e+00  9.336e+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.425e+00  5.293e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.000e-02  6.729e-06  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/536006/cmap_HighResolution_667267201_667526401_4FGL_J2235.8-3627_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-02', job_status='DONE', photon_flux_upper_limit='7.21e-07', time_completed='2022-02-26 01:20:52.934826', job_id='536006', GAL2='1.42', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1645867252.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='-2.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1651' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 01:20:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 536006: <4FGL_J2235.8-3627_daily_bin1651> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Feb 26 01:10:26 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 01:14:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 01:14:16 2022
Terminated at Sat Feb 26 01:20:53 2022
Results reported at Sat Feb 26 01:20:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1651 338.971 -36.4605 667267201 667526401 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 :                                   369.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   397 sec.
    Turnaround time :                            627 sec.

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

