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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1216
RA = 338.971, Dec = -36.4605
tmin = 554515201, tmax = 554774401
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='393765', job_status='RUN', time_executed='2021-09-28 16:26:55.391456', time_epoch_executed='1632871615.39' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393765/ft1_4FGL_J2235.8-3627_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393765/ft1_4FGL_J2235.8-3627_daily_bin1216.fits outfile=/scratch/kocevski/393765/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1216.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.09
user 3.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/393765/ltcube_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.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/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits
.....................!
real 12.07
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/393765/ltcube_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.fits outfile=/scratch/kocevski/393765/expmap_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.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/393765/ltcube_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.fits
.....................!
real 189.41
user 185.31
sys 3.75

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/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits scfile=/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits outfile=/scratch/kocevski/393765/cmap_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits scfile=/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits outfile=/scratch/kocevski/393765/cmap_HighResolution_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.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/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/393765/ft2_4FGL_J2235.8-3627_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393765/Model_4FGL_J2235.8-3627_daily_bin1216.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/393765/ft1_filtered_4FGL_J2235.8-3627_daily_bin1216.fits.....................!
real 55.31
user 54.00
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.9499       1.0000         .10000E-03   10000.    
     5 'norm      '    .74561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.466       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.434       1.0000         .10000E-03   10000.    
    12 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24919E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.767       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.0329       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9181       1.0000         .10000E-03   10000.    
    27 'norm      '    9.1823       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97448       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=   7445.678     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3702 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4587        .15363E-07** at limit **
   2  Prefactor     .10000E-03    2.2388       -.11444E-07** at limit **
   3  norm          .10000E-03    5.9391        .88937E-09** at limit **
   4  norm          9.9499        5.4667        .78540E-06   -.10235E-02
   5  norm          .74559        .33413       -.55150E-07    .28193E-04
   6  Prefactor     .10000E-03    7.2186       -.44461E-06** at limit **
   7  Prefactor     .10000E-03    .83986        .10326E-08** at limit **
   8  norm          16.464        23.650        .46065E-06    .54417E-04
   9  Prefactor     .10000E-03    40.474        .19039E-05** at limit **
  10  Prefactor     10.540        13.460       -.15296E-06    .22150E-04
  11  Prefactor     23.441        21.996        .55794E-06    .77910E-04
  12  norm          .10000E-03    2.1078       -.13893E-05** at limit **
  13  Prefactor     76.009        72.122       -.37225E-05    .43606E-04
  14  Prefactor     .10000E-03    17.358       -.98862E-06** at limit **
  15  Prefactor     .10000E-03    3.3562        .53310E-07** at limit **
  16  norm          .10000E-03    2.2729       -.30765E-06** at limit **
  17  Prefactor     13.998        22.390       -.14710E-05    .33320E-03
  18  Prefactor     .10024E-03    10.178       -.49927E-05** at limit **
  19  norm          4.1786        1.1879        .84346E-06    .49123E-02
  20  Prefactor     44.757        66.490       -.26391E-05   -.10620E-04
  21  Prefactor     .10000E-03    5.7871        .20628E-06** at limit **
  22  norm          .10000E-03    5.0047       -.18148E-06** at limit **
  23  norm          5.0327        4.5614       -.37938E-06    .33998E-03
  24  norm          .10000E-03    3.0724       -.26258E-07** at limit **
  25  Prefactor     .10000E-03    11.468        .59596E-06** at limit **
  26  Prefactor     8.9125        34.701       -.23454E-05   -.15880E-04
  27  norm          9.1839        5.1110        .56947E-07   -.10893E-04
  28  Normalizat    1.1062        .17481        .18830E-05    .34197E-03
  29  Prefactor     .97476        .16084       -.88111E-06    .42855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.94992
  norm       = 0.745592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4643
  Prefactor  = 0.0001
  Prefactor  = 10.54
  Prefactor  = 23.441
  norm       = 0.000100001
  Prefactor  = 76.0091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9979
  Prefactor  = 0.000100237
  norm       = 4.17855
  Prefactor  = 44.7573
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.03272
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9125
  norm       = 9.18394
  Normalizat = 1.10622
  Prefactor  = 0.974764
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.678     FROM HESSE     STATUS=OK           543 CALLS     4245 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4624        .10177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2691        .12608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.0657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.9499        5.4509        .63517E-03   -1.5077    
   5  norm          .74559        .33493        .31256E-04   -1.5535    
   6  Prefactor     .10000E-03    7.3494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .84531        .77202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.464        23.646        .98700E-04   -1.4896    
   9  Prefactor     .10000E-03    40.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.540        13.456        .12343E-03   -1.5059    
  11  Prefactor     23.441        22.052        .82745E-04   -1.4739    
  12  norm          .10000E-03    2.1033        .24052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.009        72.174        .23023E-03   -1.3962    
  14  Prefactor     .10000E-03    17.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4009        .15432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2811        .12697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.998        22.320        .10693E-03   -1.4960    
  18  Prefactor     .10024E-03    62.816        .45194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1786        1.2143        .43607E-04   -1.5299    
  20  Prefactor     44.757        66.747        .59922E-04   -1.4369    
  21  Prefactor     .10000E-03    5.7935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.0083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0327        4.5684        .81872E-03   -1.5259    
  24  norm          .10000E-03    3.0798        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.9125        34.764        .13422E-03   -1.5111    
  27  norm          9.1839        5.1208        .13226E-03   -1.5102    
  28  Normalizat    1.1062        .20845        .25593E-03   -.89553    
  29  Prefactor     .97476        .19159        .25588E-03   -.93576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18169e-09
Minuit parameter uncertainties:
  1  1.20048e-06
  2  2.35219e-06
  3  1.77995e-05
  4  5.45117
  5  0.334935
  6  4.01667e-05
  7  2.82937e-06
  8  23.6593
  9  6.65025e-05
  10  13.4602
  11  22.0599
  12  9.43925e-05
  13  72.2573
  14  6.93063e-05
  15  9.48854e-06
  16  1.30761e-05
  17  22.3337
  18  0.0077316
  19  1.21432
  20  66.8587
  21  9.42952e-06
  22  7.18985e-06
  23  4.56868
  24  1.15665e-06
  25  2.39999e-05
  26  34.8433
  27  5.12104
  28  0.208604
  29  0.191726
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.054e+01  1.346e+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:  9.748e-01  1.917e-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.106e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 6.28e-06 +/- 8.02e-06

TS (Fixed Index): 1.12
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393765/likelihoodResults_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.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) = 7445.67025003
delta logL = 0.0078356559161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.6686363
delta logL = 0.00944938404973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7952       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3941       1.0000          .0000       10.000    
     3 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97714       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=   7445.669     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7932        14.820        .12804E-03    .46820E-03
   2  Index         2.3945        1.2989        .13680E-01    .93801E-04
   3  Normalizat    1.1021        .20436        .25635E-03   -.43716E-03
   4  Prefactor     .97721        .19182        .25561E-03   -.57927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79316
  Index      = 2.39449
  Normalizat = 1.10209
  Prefactor  = 0.977205
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.669     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7932        14.129        .25607E-04   -1.5082    
   2  Index         2.3945        1.2382        .54721E-03   -.54814    
   3  Normalizat    1.1021        .20404        .51271E-04   -.89685    
   4  Prefactor     .97721        .19175        .51121E-04   -.93493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87691e-10
Minuit parameter uncertainties:
  1  14.1337
  2  1.25631
  3  0.204189
  4  0.191881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393765': 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) = 7445.6686362
delta logL = 0.00944948782308

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  9.793e+00  1.413e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.394e+00  1.256e+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:  9.772e-01  1.919e-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.102e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.39 +/- 1.26
Photon Flux (Free Index): 1.77e-08 +/- 3.16e-08
Energy Flux (Free Index): 5.84e-06 +/- 7.66e-06

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/393765/cmap_HighResolution_554515201_554774401_4FGL_J2235.8-3627_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='5.84e-06', photon_flux_error='1.88e-08', dlogl='9.45e-03', energy_flux='6.28e-06', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-28 16:41:27.329195', photon_index_error2='1.26', photon_index2='2.39', ts='1.12', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.85e-08', energy_flux_error2='7.66e-06', EG='1.11', time_epoch_completed='1632872487.33', return_code='0', job_id='393765', GAL2='0.98', EG2='1.10', return_code2='0', energy_flux_error='8.02e-06', photon_flux_error2='3.16e-08', ts2='1.14', photon_index='2.23' WHERE bin_id='1216' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 393765: <4FGL_J2235.8-3627_daily_bin1216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1216 338.971 -36.4605 554515201 554774401 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 :                                   870.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

