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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1087
RA = 338.971, Dec = -36.4605
tmin = 521078401, tmax = 521337601
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='393560', job_status='RUN', time_executed='2021-09-28 16:26:57.175549', time_epoch_executed='1632871617.18' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393560/ft1_4FGL_J2235.8-3627_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393560/ft1_4FGL_J2235.8-3627_daily_bin1087.fits outfile=/scratch/kocevski/393560/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1087.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=521078401.0 tmax=521337601.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 3.68
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.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/393560/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/393560/ltcube_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.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/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits
.....................!
real 9.38
user 9.06
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/393560/ltcube_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.fits outfile=/scratch/kocevski/393560/expmap_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.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/393560/ltcube_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.fits
.....................!
real 152.89
user 148.68
sys 3.94

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/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits outfile=/scratch/kocevski/393560/cmap_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.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.49
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits outfile=/scratch/kocevski/393560/cmap_HighResolution_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.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.46
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/393560/ft2_4FGL_J2235.8-3627_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393560/Model_4FGL_J2235.8-3627_daily_bin1087.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/393560/ft1_filtered_4FGL_J2235.8-3627_daily_bin1087.fits.....................!
real 44.90
user 43.87
sys 0.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.843       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .91348       1.0000         .10000E-03   10000.    
     8 'norm      '    42.946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .84736       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60730E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5692       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0432       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3745       1.0000         .10000E-03   10000.    
    19 'norm      '    .91084       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.0115       1.0000         .10000E-03   10000.    
    25 'Prefactor '    77.982       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.9797       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94225       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88351       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=   7777.926     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3695 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.942        7.7242        .11442E-06   -.23695E-04
   2  Prefactor     .10000E-03    4.3736        .81132E-07** at limit **
   3  norm          .10000E-03    4.0526        .26977E-08** at limit **
   4  norm          14.842        5.0361        .68439E-07   -.72925E-04
   5  norm          1.0795        .32157        .92521E-09   -.23837E-03
   6  Prefactor     .10000E-03    3.5197        .91682E-06** at limit **
   7  Prefactor     .91253        1.9093        .58467E-06    .67473E-03
   8  norm          42.946        17.306       -.52287E-08   -.60169E-04
   9  Prefactor     .10000E-03    37.046       -.13680E-05** at limit **
  10  Prefactor     9.9193        11.071        .80804E-07   -.93008E-04
  11  Prefactor     .10000E-03    4.6004       -.30829E-07** at limit **
  12  norm          .84765        1.6389        .59070E-06    .90248E-03
  13  Prefactor     10.618        28.773       -.15559E-05   -.23231E-04
  14  Prefactor     .10029E-03    6.8263        .23709E-05** at limit **
  15  Prefactor     1.5687        5.0542        .22272E-05    .23502E-03
  16  norm          4.0427        3.0107       -.48965E-07   -.25375E-03
  17  Prefactor     .10000E-03    7.7011       -.24754E-06** at limit **
  18  Prefactor     3.3791        9.2209        .71180E-06   -.13308E-03
  19  norm          .91078        .56434       -.56610E-07   -.92956E-03
  20  Prefactor     .10000E-03    29.330        .77749E-06** at limit **
  21  Prefactor     11.301        9.6334        .45008E-06    .41086E-04
  22  norm          .10000E-03    17.885       -.56986E-06** at limit **
  23  norm          .10000E-03    1.6188        .21911E-06** at limit **
  24  norm          9.0110        6.5975        .10062E-06   -.85467E-05
  25  Prefactor     77.962        45.632       -.48485E-06   -.14785E-03
  26  Prefactor     .10000E-03    19.968        .10176E-06** at limit **
  27  norm          2.9816        5.5709        .55485E-06    .14706E-03
  28  Normalizat    .94232        .16014        .58777E-07   -.61381E-03
  29  Prefactor     .88356        .15084       -.86731E-06   -.46841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9415
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.842
  norm       = 1.07948
  Prefactor  = 0.000100004
  Prefactor  = 0.912532
  norm       = 42.9456
  Prefactor  = 0.000100003
  Prefactor  = 9.91925
  Prefactor  = 0.0001
  norm       = 0.847645
  Prefactor  = 10.6183
  Prefactor  = 0.000100294
  Prefactor  = 1.56871
  norm       = 4.04274
  Prefactor  = 0.0001
  Prefactor  = 3.37911
  norm       = 0.910781
  Prefactor  = 0.000100001
  Prefactor  = 11.3006
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.01095
  Prefactor  = 77.9617
  Prefactor  = 0.0001
  norm       = 2.98162
  Normalizat = 0.942317
  Prefactor  = 0.883559
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.926     FROM HESSE     STATUS=OK           559 CALLS     4254 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.942        7.7202        .94555E-04   -1.4861    
   2  Prefactor     .10000E-03    4.4355        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.1393        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.842        5.0383        .10396E-03   -1.4937    
   5  norm          1.0795        .32272        .25578E-04   -1.5500    
   6  Prefactor     .10000E-03    9.7416        .30795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .91253        1.6984        .17521E-02   -1.5517    
   8  norm          42.946        17.300        .61174E-04   -1.4396    
   9  Prefactor     .10000E-03    37.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9193        11.064        .12723E-03   -1.5078    
  11  Prefactor     .10000E-03    4.6049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .84765        1.4599        .14126E-02   -1.5524    
  13  Prefactor     10.618        28.614        .12293E-03   -1.5056    
  14  Prefactor     .10029E-03    33.459        .37189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5687        5.0025        .33726E-03   -1.5457    
  16  norm          4.0427        2.9898        .12263E-03   -1.5306    
  17  Prefactor     .10000E-03    7.7271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3791        8.9736        .22027E-03   -1.5340    
  19  norm          .91078        .55584        .43408E-04   -1.5517    
  20  Prefactor     .10000E-03    29.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.301        9.4782        .59579E-03   -1.5036    
  22  norm          .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6187        .10936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.0110        6.5990        .13352E-03   -1.5108    
  25  Prefactor     77.962        45.153        .45475E-04   -1.3940    
  26  Prefactor     .10000E-03    19.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.9816        5.4732        .20896E-03   -1.5363    
  28  Normalizat    .94232        .18731        .24369E-03   -.94989    
  29  Prefactor     .88356        .17834        .24576E-03   -.96718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02123e-08
Minuit parameter uncertainties:
  1  7.72063
  2  1.1365e-05
  3  6.13464e-07
  4  5.03846
  5  0.322716
  6  0.000376455
  7  1.69846
  8  17.3017
  9  0.000632594
  10  11.0659
  11  5.5668e-06
  12  1.45994
  13  28.651
  14  0.00627585
  15  5.0038
  16  2.98994
  17  3.90194e-05
  18  8.97715
  19  0.555846
  20  0.000386186
  21  9.47943
  22  0.000148735
  23  4.24059e-06
  24  6.59955
  25  45.1731
  26  3.48919e-05
  27  5.47408
  28  0.187443
  29  0.178456
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  9.919e+00  1.107e+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:  8.836e-01  1.785e-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:  9.423e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.55e-08
Energy Flux (Fixed Index): 5.91e-06 +/- 6.59e-06

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

Saving results to:
/scratch/kocevski/393560/likelihoodResults_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.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) = 7777.77179302
delta logL = 0.154053538595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7777.76677808
delta logL = 0.159068473245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.623       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8067       1.0000          .0000       10.000    
     3 'Normalizat'    .94928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87934       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=   7777.767     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.619        12.857        .11750E-03   -.95785E-05
   2  Index         1.8057        .70476        .12104E-01   -.41272E-04
   3  Normalizat    .94926        .17758        .24284E-03   -.12500E-04
   4  Prefactor     .87935        .17467        .24624E-03    .10342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6193
  Index      = 1.80567
  Normalizat = 0.949263
  Prefactor  = 0.879355
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.767     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.619        12.897        .47001E-05   -1.5026    
   2  Index         1.8057        .70714        .24209E-02   -.69302    
   3  Normalizat    .94926        .17778        .97138E-05   -.94750    
   4  Prefactor     .87935        .17488        .98496E-05   -.96866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04143e-12
Minuit parameter uncertainties:
  1  12.8997
  2  0.711186
  3  0.177891
  4  0.174988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393560': 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) = 7777.76677697
delta logL = 0.15906958841

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.162e+01  1.290e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.806e+00  7.112e-01  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:  8.794e-01  1.750e-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:  9.493e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.81 +/- 0.71
Photon Flux (Free Index): 9.29e-09 +/- 1.32e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.81e-05

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/393560/cmap_HighResolution_521078401_521337601_4FGL_J2235.8-3627_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='1.09e-05', photon_flux_error='1.55e-08', dlogl='1.59e-01', energy_flux='5.91e-06', photon_flux2='9.29e-09', job_status='DONE', time_completed='2021-09-28 16:39:04.572616', photon_index_error2='0.71', photon_index2='1.81', ts='1.54', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='1.81e-05', EG='0.94', time_epoch_completed='1632872344.57', return_code='0', job_id='393560', GAL2='0.88', EG2='0.95', return_code2='0', energy_flux_error='6.59e-06', photon_flux_error2='1.32e-08', ts2='1.85', photon_index='2.23' WHERE bin_id='1087' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 393560: <4FGL_J2235.8-3627_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1087 338.971 -36.4605 521078401 521337601 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 :                                   724.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

