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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1037
RA = 338.971, Dec = -36.4605
tmin = 508118401, tmax = 508377601
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='393474', job_status='RUN', time_executed='2021-09-28 16:25:39.371910', time_epoch_executed='1632871539.37' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393474

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393474/ft1_4FGL_J2235.8-3627_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393474/ft1_4FGL_J2235.8-3627_daily_bin1037.fits outfile=/scratch/kocevski/393474/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1037.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=508118401.0 tmax=508377601.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/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/393474/ltcube_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.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/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits
.....................!
real 12.45
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/393474/ltcube_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.fits outfile=/scratch/kocevski/393474/expmap_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.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/393474/ltcube_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.fits
.....................!
real 191.24
user 185.74
sys 5.07

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/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits scfile=/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits outfile=/scratch/kocevski/393474/cmap_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits scfile=/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits outfile=/scratch/kocevski/393474/cmap_HighResolution_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/393474/ft2_4FGL_J2235.8-3627_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393474/Model_4FGL_J2235.8-3627_daily_bin1037.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/393474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1037.fits.....................!
real 45.30
user 44.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.757       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5218       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.171       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.814       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.319       1.0000         .10000E-03   10000.    
    12 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    19 'norm      '    .13983E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2082       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.5969       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.587       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.632       1.0000         .10000E-03   10000.    
    27 'norm      '    .46881       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .55845       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2900       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=   5768.309     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3729 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4909        2.5509        .52690E-06   -.13923E-02
   2  Prefactor     .10000E-03    5.9988        .77082E-06** at limit **
   3  norm          14.757        8.5595        .40768E-07   -.69862E-04
   4  norm          5.5218        5.0370        .94439E-07   -.73523E-03
   5  norm          2.9309        .58713        .54901E-08    .34329E-04
   6  Prefactor     .10000E-03    2.1928       -.13013E-06** at limit **
   7  Prefactor     .10000E-03    1.6403        .85997E-07** at limit **
   8  norm          26.171        19.521       -.33091E-08    .36925E-04
   9  Prefactor     .10000E-03    15.620       -.63710E-05** at limit **
  10  Prefactor     34.815        23.012        .36935E-06    .28172E-04
  11  Prefactor     10.322        21.375        .50151E-05    .28497E-04
  12  norm          .10000E-03    1.1340       -.72882E-06** at limit **
  13  Prefactor     27.628        52.335        .13702E-04    .14364E-03
  14  Prefactor     .10000E-03    7.6862       -.41581E-05** at limit **
  15  Prefactor     .10000E-03    2.9020        .21991E-06** at limit **
  16  norm          3.5622        3.1302       -.87334E-06    .15808E-03
  17  Prefactor     .10000E-03    6.1838        .34560E-06** at limit **
  18  Prefactor     14.005        11.356        .76282E-06    .43967E-03
  19  norm          .10001E-03    .39564       -.16688E-06** at limit **
  20  Prefactor     7.4036        67.612       -.34495E-05    .90357E-05
  21  Prefactor     9.2054        13.076       -.13028E-05    .15480E-03
  22  norm          .10000E-03    13.124        .83334E-05** at limit **
  23  norm          .10000E-03    4.9314        .19388E-05** at limit **
  24  norm          8.5972        9.8560        .12793E-05    .15702E-03
  25  Prefactor     22.594        40.666        .10159E-04    .25600E-03
  26  Prefactor     26.624        50.932       -.12991E-04    .10549E-04
  27  norm          .47194        3.9429       -.26117E-05    .76063E-03
  28  Normalizat    .55825        .19214       -.16688E-05    .30077E-03
  29  Prefactor     1.2902        .18356        .10451E-07    .32247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49087
  Prefactor  = 0.0001
  norm       = 14.7569
  norm       = 5.52185
  norm       = 2.93093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.171
  Prefactor  = 0.0001
  Prefactor  = 34.815
  Prefactor  = 10.3219
  norm       = 0.000100002
  Prefactor  = 27.6279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56218
  Prefactor  = 0.0001
  Prefactor  = 14.0048
  norm       = 0.000100013
  Prefactor  = 7.40358
  Prefactor  = 9.2054
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.59721
  Prefactor  = 22.5939
  Prefactor  = 26.6238
  norm       = 0.471941
  Normalizat = 0.558249
  Prefactor  = 1.2902
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.309     FROM HESSE     STATUS=OK           559 CALLS     4288 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4909        9.7305        .17536E-02   -1.5464    
   2  Prefactor     .10000E-03    6.0560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.757        8.5919        .52131E-03   -1.4939    
   4  norm          5.5218        5.1375        .76228E-03   -1.5238    
   5  norm          2.9309        .59024        .24200E-04   -1.5366    
   6  Prefactor     .10000E-03    2.1965        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6689        .94912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.171        19.523        .78307E-04   -1.4684    
   9  Prefactor     .10000E-03    15.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.815        23.014        .67918E-04   -1.4527    
  11  Prefactor     10.322        21.411        .12473E-03   -1.5065    
  12  norm          .10000E-03    1.7632        .15314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.628        51.279        .76229E-04   -1.4656    
  14  Prefactor     .10000E-03    7.7115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9187        .12632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5622        3.1215        .11897E-03   -1.5330    
  17  Prefactor     .10000E-03    6.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.005        10.629        .10702E-03   -1.4959    
  19  norm          .10001E-03    4.4691        .81815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4036        67.695        .14739E-03   -1.5164    
  21  Prefactor     9.2054        12.944        .13207E-03   -1.5101    
  22  norm          .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.9857        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.5972        9.8486        .13672E-03   -1.5121    
  25  Prefactor     22.594        45.377        .84280E-04   -1.4757    
  26  Prefactor     26.624        50.829        .77627E-04   -1.4676    
  27  norm          .47194        18.184        .23744E-02   -1.5571    
  28  Normalizat    .55825        .22638        .31681E-03   -1.0979    
  29  Prefactor     1.2902        .21784        .21772E-03   -.83599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51414e-08
Minuit parameter uncertainties:
  1  7.61914
  2  5.40686e-06
  3  8.5926
  4  5.13795
  5  0.590238
  6  3.60897e-07
  7  6.52499e-07
  8  19.5281
  9  2.92979e-05
  10  23.0196
  11  21.4274
  12  0.000122415
  13  51.3606
  14  1.20165e-05
  15  2.78555e-06
  16  3.12162
  17  5.54828e-06
  18  10.6301
  19  0.000485426
  20  44.8413
  21  12.9476
  22  1.48726e-05
  23  2.58863e-05
  24  9.85043
  25  45.4461
  26  50.9114
  27  5.86029
  28  0.226757
  29  0.217998
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.481e+01  2.302e+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.290e+00  2.180e-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:  5.582e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.37e-05

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) = 5768.2950016
delta logL = 0.0143162573522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5768.29026014
delta logL = 0.0190577173134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1329       1.0000          .0000       10.000    
     3 'Normalizat'    .56302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2871       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=   5768.290     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.194        27.019        .65705E-04    .36508E-04
   2  Index         2.1335        .49018        .65518E-02    .19146E-03
   3  Normalizat    .56312        .21272        .31549E-03   -.12252E-04
   4  Prefactor     1.2871        .21446        .21794E-03    .46688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1941
  Index      = 2.13347
  Normalizat = 0.563121
  Prefactor  = 1.28712
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.290     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.194        26.684        .26282E-05   -1.4487    
   2  Index         2.1335        .48387        .13104E-02   -.61053    
   3  Normalizat    .56312        .21282        .12620E-04   -1.0957    
   4  Prefactor     1.2871        .21459        .43587E-04   -.83691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98434e-11
Minuit parameter uncertainties:
  1  26.6927
  2  0.485
  3  0.21313
  4  0.214733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393474': 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) = 5768.29025865
delta logL = 0.0190592119106

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.719e+01  2.669e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.133e+00  4.850e-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.287e+00  2.147e-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:  5.631e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.13 +/- 0.49
Photon Flux (Free Index): 4.52e-08 +/- 3.49e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.04e-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/393474/cmap_HighResolution_508118401_508377601_4FGL_J2235.8-3627_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='2.31e-05', photon_flux_error='3.22e-08', dlogl='1.91e-02', energy_flux='2.07e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-28 16:36:57.352787', photon_index_error2='0.49', photon_index2='2.13', ts='4.31', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.56', time_epoch_completed='1632872217.35', return_code='0', job_id='393474', GAL2='1.29', EG2='0.56', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.49e-08', ts2='4.32', photon_index='2.23' WHERE bin_id='1037' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 393474: <4FGL_J2235.8-3627_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1037 338.971 -36.4605 508118401 508377601 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 :                                   675.00 sec.
    Max Memory :                                 1033 MB
    Average Memory :                             283.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

