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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin622
RA = 338.971, Dec = -36.4605
tmin = 400550401, tmax = 400809601
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='389806', job_status='RUN', time_executed='2021-09-28 16:19:28.254404', time_epoch_executed='1632871168.25' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389806/ft1_4FGL_J2235.8-3627_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389806/ft1_4FGL_J2235.8-3627_daily_bin622.fits outfile=/scratch/kocevski/389806/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin622.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=400550401.0 tmax=400809601.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.52
user 4.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.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/389806/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/389806/ltcube_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.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/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits
.....................!
real 11.63
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/389806/ltcube_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.fits outfile=/scratch/kocevski/389806/expmap_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.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/389806/ltcube_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.fits
.....................!
real 190.74
user 184.95
sys 5.41

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/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits outfile=/scratch/kocevski/389806/cmap_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits outfile=/scratch/kocevski/389806/cmap_HighResolution_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/389806/ft2_4FGL_J2235.8-3627_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389806/Model_4FGL_J2235.8-3627_daily_bin622.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/389806/ft1_filtered_4FGL_J2235.8-3627_daily_bin622.fits.....................!
real 43.72
user 42.08
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92006       1.0000         .10000E-03   10000.    
     3 'norm      '    23.981       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2509       1.0000         .10000E-03   10000.    
     5 'norm      '    .77884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5596       1.0000         .10000E-03   10000.    
     8 'norm      '    12.723       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.328       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9430       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .80017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6851       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4412       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    11.634       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87792       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0003       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=   5496.652     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3662 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2983       -.16367E-06** at limit **
   2  Prefactor     .92272        15.696        .92188E-05   -.84354E-04
   3  norm          23.982        11.288        .82650E-07    .66875E-04
   4  norm          4.2513        4.9976        .10273E-06    .75092E-04
   5  norm          .77885        .32752        .19693E-07    .36975E-03
   6  Prefactor     .10000E-03    2.2648       -.57534E-07** at limit **
   7  Prefactor     4.5591        3.5696        .72902E-07    .21951E-04
   8  norm          12.724        16.839       -.24077E-08   -.15577E-04
   9  Prefactor     .10000E-03    86.455       -.45612E-06** at limit **
  10  Prefactor     .10000E-03    10.624       -.43773E-06** at limit **
  11  Prefactor     26.325        23.003        .73685E-07   -.10296E-04
  12  norm          3.3737        3.1868       -.88398E-06   -.53163E-03
  13  Prefactor     67.888        65.932        .43855E-05    .69033E-04
  14  Prefactor     .10000E-03    6.7504        .86883E-08** at limit **
  15  Prefactor     6.9427        7.4081        .13797E-06    .68583E-05
  16  norm          .10000E-03    1.5062        .28357E-06** at limit **
  17  Prefactor     .10000E-03    8.0322        .30182E-06** at limit **
  18  Prefactor     .10000E-03    10.036        .25998E-05** at limit **
  19  norm          .80017        .56173        .25616E-06    .24522E-03
  20  Prefactor     .10000E-03    18.190       -.49573E-07** at limit **
  21  Prefactor     .10000E-03    10.193        .41902E-06** at limit **
  22  norm          .10000E-03    7.6140       -.15701E-06** at limit **
  23  norm          4.6843        5.1662        .19808E-06    .12092E-03
  24  norm          .10000E-03    10.034       -.77391E-06** at limit **
  25  Prefactor     7.4274        43.692        .19281E-06    .16232E-04
  26  Prefactor     .10000E-03    42.742       -.50954E-06** at limit **
  27  norm          11.634        7.0304        .66149E-07    .90700E-04
  28  Normalizat    .87805        .19172       -.41234E-06    .95144E-04
  29  Prefactor     1.0001        .19012       -.45298E-06   -.18621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.92272
  norm       = 23.9824
  norm       = 4.2513
  norm       = 0.778845
  Prefactor  = 0.0001
  Prefactor  = 4.55911
  norm       = 12.7239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3251
  norm       = 3.37372
  Prefactor  = 67.8877
  Prefactor  = 0.0001
  Prefactor  = 6.94265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.800167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.68432
  norm       = 0.0001
  Prefactor  = 7.42743
  Prefactor  = 0.0001
  norm       = 11.6343
  Normalizat = 0.87805
  Prefactor  = 1.00013
 **********
 **   18 **HESSE 
 **********

 FCN=   5496.652     FROM HESSE     STATUS=OK           557 CALLS     4219 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .92272        7.1485        .63520E-01   -1.5516    
   3  norm          23.982        11.292        .81797E-04   -1.4728    
   4  norm          4.2513        4.9843        .16907E-03   -1.5296    
   5  norm          .77885        .32877        .26367E-04   -1.5531    
   6  Prefactor     .10000E-03    2.2716        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5591        3.5691        .11844E-03   -1.5281    
   8  norm          12.724        16.837        .11230E-03   -1.4994    
   9  Prefactor     .10000E-03    86.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.325        23.015        .78073E-04   -1.4681    
  12  norm          3.3737        3.2393        .10454E-03   -1.5341    
  13  Prefactor     67.888        66.623        .48696E-04   -1.4058    
  14  Prefactor     .10000E-03    6.8220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9427        7.4038        .15226E-03   -1.5181    
  16  norm          .10000E-03    1.5087        .88698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .80017        .54529        .44225E-04   -1.5529    
  20  Prefactor     .10000E-03    18.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.6282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6843        5.1809        .16288E-03   -1.5275    
  24  norm          .10000E-03    10.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.4274        43.449        .14702E-03   -1.5163    
  26  Prefactor     .10000E-03    42.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.634        7.0286        .11537E-03   -1.5026    
  28  Normalizat    .87805        .22254        .25272E-03   -.97236    
  29  Prefactor     1.0001        .21947        .23724E-03   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37067e-09
Minuit parameter uncertainties:
  1  5.70321e-06
  2  5.13714
  3  11.2935
  4  4.98475
  5  0.328769
  6  6.48788e-07
  7  3.56924
  8  16.843
  9  8.12711e-05
  10  5.26583e-05
  11  23.0224
  12  3.23946
  13  66.6968
  14  3.81911e-06
  15  7.40482
  16  2.84782e-06
  17  4.17692e-05
  18  6.3198e-05
  19  0.545295
  20  2.90939e-06
  21  0.000133811
  22  1.89031e-05
  23  5.18137
  24  4.90577e-05
  25  35.9679
  26  7.54165e-05
  27  7.02914
  28  0.222777
  29  0.219666
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.266e-05  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.000e+00  2.197e-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:  8.780e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/389806/likelihoodResults_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.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) = 5496.65288325
delta logL = -0.000446841410849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5496.65243735
delta logL = -9.34433046496e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2168       1.0000          .0000       10.000    
     3 'Normalizat'    .87779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0004       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=   5496.652     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    131.62        .18142E-02** at limit **
   2  Index         2.1771        5.2644        .50000        .71609E-05
   3  Normalizat    .87805        .15457E-01    .25272E-03    .35538E-05
   4  Prefactor     1.0001        .15473E-01    .23724E-03    .42170E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100535
  Index      = 2.17714
  Normalizat = 0.878045
  Prefactor  = 1.00014
 **********
 **   18 **HESSE 
 **********

 FCN=   5496.652     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    563.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1771        5.9994        .50000       -.59992    
   3  Normalizat    .87805        .33812E-01    .10109E-04   -.97236    
   4  Prefactor     1.0001        .33846E-01    .94896E-05   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17762e-09
Minuit parameter uncertainties:
  1  0.0350506
  2  936.388
  3  0.033813
  4  0.0338468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389806': 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) = 5496.65243633
delta logL = 8.11278368928e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.005e-04  3.505e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.177e+00  9.364e+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.000e+00  3.385e-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:  8.780e-01  3.381e-02  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/389806/cmap_HighResolution_400550401_400809601_4FGL_J2235.8-3627_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-28 16:32:02.910848', job_id='389806', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632871922.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='622' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:32:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 389806: <4FGL_J2235.8-3627_daily_bin622> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin622> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:15:42 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:15:43 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:15:43 2021
Terminated at Tue Sep 28 16:32:03 2021
Results reported at Tue Sep 28 16:32:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin622 338.971 -36.4605 400550401 400809601 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 :                                   755.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

