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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin748
RA = 338.799, Dec = -6.3955
tmin = 433209601, tmax = 433468801
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='375630', job_status='RUN', time_executed='2021-09-28 15:34:45.223587', time_epoch_executed='1632868485.22' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375630/ft1_4FGL_J2235.1-0623_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375630/ft1_4FGL_J2235.1-0623_daily_bin748.fits outfile=/scratch/kocevski/375630/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin748.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.00
user 5.72
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.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/375630/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/375630/ltcube_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.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/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits
.....................!
real 11.83
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/375630/ltcube_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits outfile=/scratch/kocevski/375630/expmap_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.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/375630/ltcube_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits
.....................!
real 189.87
user 185.36
sys 3.99

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits outfile=/scratch/kocevski/375630/cmap_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.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.799 yref=-6.3955 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits outfile=/scratch/kocevski/375630/cmap_HighResolution_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.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.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375630/Model_4FGL_J2235.1-0623_daily_bin748.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/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits......................!
real 32.61
user 31.34
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits', '/scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits', expMap='/scratch/kocevski/375630/expmap_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits', expCube='/scratch/kocevski/375630/ltcube_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375630/Model_4FGL_J2235.1-0623_daily_bin748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/375630/ft1_filtered_4FGL_J2235.1-0623_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/375630/ft2_4FGL_J2235.1-0623_daily_bin748.fits
Exposure map: /scratch/kocevski/375630/expmap_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits
Exposure cube: /scratch/kocevski/375630/ltcube_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375630/Model_4FGL_J2235.1-0623_daily_bin748.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) = 2798.70232468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7827       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.097       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17345E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    84.812       1.0000         .10000E-03   10000.    
    12 'norm      '    .59013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.064       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.101       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .29499       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0927       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2798.695     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2346 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6290        9.8434        .31457E-06   -.25340E-04
   2  Prefactor     2.7708        33.818       -.25318E-05   -.32627E-04
   3  Prefactor     4.8827        123.38        .20000E-04   -.34698E-05
   4  Prefactor     4.8123        109.70       -.14400E-04   -.11940E-04
   5  Prefactor     17.092        17.957       -.17625E-06   -.24832E-04
   6  Prefactor     14.996        17.111       -.73588E-06   -.35866E-04
   7  Prefactor     .10000E-03    41.004        .13419E-05** at limit **
   8  Prefactor     .10000E-03    2.6031        .55681E-07** at limit **
   9  Prefactor     .10000E-03    23.461        .29915E-05** at limit **
  10  norm          .10000E-03    4.0291        .60005E-06** at limit **
  11  Prefactor     84.854        97.894        .49042E-05    .20935E-05
  12  norm          .59012        .56406       -.15352E-07    .77469E-04
  13  Prefactor     .10000E-03    4.9671       -.10208E-06** at limit **
  14  norm          .10000E-03    .40947       -.65545E-07** at limit **
  15  Prefactor     .10000E-03    20.490       -.27561E-05** at limit **
  16  Prefactor     19.544        26.001       -.13789E-05    .12786E-04
  17  Prefactor     14.062        15.510        .91121E-07    .12880E-04
  18  norm          .10000E-03    12.410        .32139E-06** at limit **
  19  Prefactor     .10000E-03    43.684       -.21013E-05** at limit **
  20  Prefactor     23.097        16.915       -.33729E-07    .15426E-04
  21  Normalizat    .29529        .29553       -.59662E-06   -.92990E-05
  22  Prefactor     1.0925        .18984       -.29372E-06   -.10837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.629
  Prefactor  = 2.77075
  Prefactor  = 4.88275
  Prefactor  = 4.81229
  Prefactor  = 17.0916
  Prefactor  = 14.9956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 84.8535
  norm       = 0.590122
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5436
  Prefactor  = 14.0624
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0971
  Normalizat = 0.295287
  Prefactor  = 1.09254
 **********
 **   18 **HESSE 
 **********

 FCN=   2798.695     FROM HESSE     STATUS=OK           350 CALLS     2696 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6290        9.7930        .16930E-03   -1.5233    
   2  Prefactor     2.7708        33.423        .24431E-03   -1.5375    
   3  Prefactor     4.8827        125.21        .18179E-03   -1.5266    
   4  Prefactor     4.8123        109.95        .18397E-03   -1.5269    
   5  Prefactor     17.092        17.802        .96863E-04   -1.4881    
   6  Prefactor     14.996        17.065        .10342E-03   -1.4933    
   7  Prefactor     .10000E-03    41.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6093        .83297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.5670        .20189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     84.854        97.623        .21810E-03   -1.3863    
  12  norm          .59012        .58431        .37818E-03   -1.5554    
  13  Prefactor     .10000E-03    4.9705        .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .41229        .33003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.544        25.680        .90571E-04   -1.4824    
  17  Prefactor     14.062        15.469        .10680E-03   -1.4958    
  18  norm          .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.097        16.861        .83339E-04   -1.4746    
  21  Normalizat    .29529        .28791        .42581E-03   -1.2312    
  22  Prefactor     1.0925        .19378        .16012E-03   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62012e-10
Minuit parameter uncertainties:
  1  9.79582
  2  19.2596
  3  49.5668
  4  46.0997
  5  17.8073
  6  17.0709
  7  1.94895e-05
  8  3.02982e-06
  9  4.1318e-05
  10  0.000276794
  11  97.8083
  12  0.584314
  13  7.16468e-06
  14  1.80526e-06
  15  3.73558e-05
  16  25.6942
  17  15.4732
  18  1.18789e-06
  19  1.58753e-05
  20  16.8646
  21  0.289363
  22  0.1939
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  8.485e+01  9.781e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.093e+00  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  2.953e-01  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 2.00e-05

TS (Fixed Index): 1.59
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375630/likelihoodResults_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.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) = 2798.21062914
delta logL = 0.484797823567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2798.10677366
delta logL = 0.588653303579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    184.45       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5282       1.0000          .0000       10.000    
     3 'Normalizat'    .31221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   2798.107     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      286 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     184.39        179.13        .14864E-03    .14417E-04
   2  Index         1.5282        .48770        .63950E-02    .21796E-04
   3  Normalizat    .31230        .27056        .41408E-03    .19291E-03
   4  Prefactor     1.0810        .19221        .16070E-03    .37324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 184.39
  Index      = 1.52822
  Normalizat = 0.312296
  Prefactor  = 1.08099
 **********
 **   18 **HESSE 
 **********

 FCN=   2798.107     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     184.39        178.73        .29728E-04   -1.2984    
   2  Index         1.5282        .48664        .25580E-03   -.76752    
   3  Normalizat    .31230        .27054        .16563E-04   -1.2211    
   4  Prefactor     1.0810        .19220        .32140E-04   -.90076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53892e-10
Minuit parameter uncertainties:
  1  179.258
  2  0.488135
  3  0.271679
  4  0.192321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375630': 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) = 2798.10677341
delta logL = 0.588653551347

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.844e+02  1.793e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  1.528e+00  4.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.081e+00  1.923e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  3.123e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 1.53 +/- 0.49
Photon Flux (Free Index): 2.72e-08 +/- 2.95e-08
Energy Flux (Free Index): 7.82e-05 +/- 1.18e-04

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/375630/cmap_HighResolution_433209601_433468801_4FGL_J2235.1-0623_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='7.82e-05', photon_flux_error='4.04e-08', dlogl='5.89e-01', energy_flux='1.74e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-28 15:42:14.949250', photon_index_error2='0.49', photon_index2='1.53', ts='1.59', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.18e-04', EG='0.30', time_epoch_completed='1632868934.95', return_code='0', job_id='375630', GAL2='1.08', EG2='0.31', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='2.95e-08', ts2='2.78', photon_index='2.15' WHERE bin_id='748' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 375630: <4FGL_J2235.1-0623_daily_bin748> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:30:47 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:30:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:30:49 2021
Terminated at Tue Sep 28 15:42:15 2021
Results reported at Tue Sep 28 15:42:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin748 338.799 -6.3955 433209601 433468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   448.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

