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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1235
RA = 338.971, Dec = -36.4605
tmin = 559440001, tmax = 559699201
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='393795', job_status='RUN', time_executed='2021-09-28 16:27:09.466292', time_epoch_executed='1632871629.47' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393795/ft1_4FGL_J2235.8-3627_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393795/ft1_4FGL_J2235.8-3627_daily_bin1235.fits outfile=/scratch/kocevski/393795/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1235.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=559440001.0 tmax=559699201.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.66
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/393795/ltcube_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.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/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits
.....................!
real 12.09
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/393795/ltcube_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.fits outfile=/scratch/kocevski/393795/expmap_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.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/393795/ltcube_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.fits
.....................!
real 191.98
user 185.27
sys 5.64

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/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits scfile=/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits outfile=/scratch/kocevski/393795/cmap_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits scfile=/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits outfile=/scratch/kocevski/393795/cmap_HighResolution_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/393795/ft2_4FGL_J2235.8-3627_daily_bin1235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393795/Model_4FGL_J2235.8-3627_daily_bin1235.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/393795/ft1_filtered_4FGL_J2235.8-3627_daily_bin1235.fits......................!
real 27.59
user 26.04
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9302       1.0000         .10000E-03   10000.    
     4 'norm      '    15.564       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    376.72       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7527       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.21       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    84.613       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.813       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .26055       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3165       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=   2258.608     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     4877 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.076        36.817        .14482E-05    .55642E-04
   2  Prefactor     .10000E-03    31.418       -.92483E-08** at limit **
   3  norm          1.9232        46.998        .16823E-05    .50796E-04
   4  norm          15.566        11.934        .40263E-06    .21051E-03
   5  norm          1.1668        .57407        .38519E-07    .61106E-03
   6  Prefactor     .10000E-03    15.140        .12326E-06** at limit **
   7  Prefactor     .10000E-03    11.615        .53541E-06** at limit **
   8  norm          .10000E-03    10.798       -.17354E-06** at limit **
   9  Prefactor     376.77        215.41        .41456E-06    .87122E-05
  10  Prefactor     38.833        42.003        .34428E-06    .24622E-04
  11  Prefactor     .10000E-03    25.780        .20413E-06** at limit **
  12  norm          .10077E-03    5.8053       -.24052E-05** at limit **
  13  Prefactor     .10000E-03    26.163       -.24880E-06** at limit **
  14  Prefactor     38.635        29.880        .28727E-06    .11844E-03
  15  Prefactor     .10000E-03    21.493        .69669E-06** at limit **
  16  norm          5.2009        8.6145       -.10019E-06    .36440E-03
  17  Prefactor     .10000E-03    11.496       -.62260E-07** at limit **
  18  Prefactor     9.7549        20.175        .42057E-05    .71212E-03
  19  norm          4.2647        1.7080       -.25179E-06    .17668E-02
  20  Prefactor     106.39        190.71        .55405E-06    .30225E-04
  21  Prefactor     .10000E-03    6.7955       -.17898E-06** at limit **
  22  norm          .10000E-03    42.000       -.31139E-06** at limit **
  23  norm          .10000E-03    6.9706        .12704E-06** at limit **
  24  norm          84.618        36.605        .50154E-06    .12997E-03
  25  Prefactor     18.856        388.61        .71135E-05    .27560E-04
  26  Prefactor     .10000E-03    268.96        .49328E-06** at limit **
  27  norm          .10000E-03    12.830        .67405E-06** at limit **
  28  Normalizat    .26041        .47855        .33247E-06    .10301E-03
  29  Prefactor     1.3166        .40360       -.21438E-05    .72994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0764
  Prefactor  = 0.0001
  norm       = 1.92324
  norm       = 15.5657
  norm       = 1.16678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 376.765
  Prefactor  = 38.833
  Prefactor  = 0.0001
  norm       = 0.000100775
  Prefactor  = 0.0001
  Prefactor  = 38.6349
  Prefactor  = 0.0001
  norm       = 5.20085
  Prefactor  = 0.0001
  Prefactor  = 9.75489
  norm       = 4.26468
  Prefactor  = 106.387
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 84.6178
  Prefactor  = 18.8561
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.260414
  Prefactor  = 1.31656
 **********
 **   18 **HESSE 
 **********

 FCN=   2258.608     FROM HESSE     STATUS=OK           543 CALLS     5420 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.076        36.748        .94218E-04   -1.4857    
   2  Prefactor     .10000E-03    31.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9232        45.332        .29896E-03   -1.5431    
   4  norm          15.566        11.897        .10152E-03   -1.4919    
   5  norm          1.1668        .57591        .23585E-04   -1.5492    
   6  Prefactor     .10000E-03    15.212        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.634        .15819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.802        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     376.77        215.44        .10504E-03   -1.1801    
  10  Prefactor     38.833        42.029        .64339E-04   -1.4461    
  11  Prefactor     .10000E-03    25.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10077E-03    32.997        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.635        29.944        .64472E-04   -1.4464    
  15  Prefactor     .10000E-03    21.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2009        8.5286        .15048E-03   -1.5252    
  17  Prefactor     .10000E-03    11.501        .15733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7549        20.787        .64159E-03   -1.5083    
  19  norm          4.2647        1.7585        .28701E-04   -1.5295    
  20  Prefactor     106.39        190.32        .19511E-03   -1.3641    
  21  Prefactor     .10000E-03    6.8124        .12107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    41.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.9705        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          84.618        36.660        .43671E-04   -1.3866    
  25  Prefactor     18.856        387.96        .92341E-04   -1.4839    
  26  Prefactor     .10000E-03    270.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    12.798        .16578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .26041        .47975        .55366E-03   -1.2528    
  29  Prefactor     1.3166        .40712        .23808E-03   -.82816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37837e-08
Minuit parameter uncertainties:
  1  36.7945
  2  8.0719e-05
  3  18.6899
  4  11.8985
  5  0.575909
  6  1.23109e-05
  7  7.46535e-05
  8  1.41411e-05
  9  215.899
  10  42.0608
  11  8.37981e-05
  12  0.0101175
  13  3.13909e-05
  14  29.9554
  15  0.00017233
  16  8.53055
  17  4.09823e-05
  18  20.8024
  19  1.75849
  20  191.428
  21  3.64865e-05
  22  8.76549e-07
  23  1.57131e-05
  24  36.6702
  25  172.352
  26  4.67178e-05
  27  0.000148142
  28  0.487639
  29  0.408115
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.883e+01  4.206e+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:  1.317e+00  4.081e-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:  2.604e-01  4.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 5.88e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.51e-05

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

Saving results to:
/scratch/kocevski/393795/likelihoodResults_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.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) = 2258.42835226
delta logL = 0.180073310513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2258.42203321
delta logL = 0.186392367319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.057       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6823       1.0000          .0000       10.000    
     3 'Normalizat'    .29436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2953       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=   2258.422     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.079        49.227        .11924E-04   -.12277E-03
   2  Index         1.6829        .81361        .55545E-04   -.41028E-04
   3  Normalizat    .29565        .40490       -.16328E-04   -.32003E-03
   4  Prefactor     1.2948        .38050        .37828E-05   -.38996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0789
  Index      = 1.68285
  Normalizat = 0.295651
  Prefactor  = 1.29478
 **********
 **   18 **HESSE 
 **********

 FCN=   2258.422     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.079        48.602        .31280E-03   -1.4425    
   2  Index         1.6829        .80541        .79801E-02   -.72539    
   3  Normalizat    .29565        .39884        .52049E-03   -1.2310    
   4  Prefactor     1.2948        .37223        .23966E-03   -.83462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98441e-09
Minuit parameter uncertainties:
  1  48.6486
  2  0.811761
  3  0.402759
  4  0.372998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393795': 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) = 2258.42202202
delta logL = 0.186403558213

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.108e+01  4.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.683e+00  8.118e-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:  1.295e+00  3.730e-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:  2.957e-01  4.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.68 +/- 0.81
Photon Flux (Free Index): 2.90e-08 +/- 4.63e-08
Energy Flux (Free Index): 5.01e-05 +/- 9.24e-05

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/393795/cmap_HighResolution_559440001_559699201_4FGL_J2235.8-3627_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='5.01e-05', photon_flux_error='5.88e-08', dlogl='1.86e-01', energy_flux='2.31e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-09-28 16:35:41.848973', photon_index_error2='0.81', photon_index2='1.68', ts='1.65', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='9.24e-05', EG='0.26', time_epoch_completed='1632872141.85', return_code='0', job_id='393795', GAL2='1.29', EG2='0.30', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='4.63e-08', ts2='2.02', photon_index='2.23' WHERE bin_id='1235' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 393795: <4FGL_J2235.8-3627_daily_bin1235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1235 338.971 -36.4605 559440001 559699201 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 :                                   509.05 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             339.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            587 sec.

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

