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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin897
RA = 338.799, Dec = -6.3955
tmin = 471830401, tmax = 472089601
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='376896', job_status='RUN', time_executed='2021-09-28 15:37:31.833698', time_epoch_executed='1632868651.83' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376896/ft1_4FGL_J2235.1-0623_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376896/ft1_4FGL_J2235.1-0623_daily_bin897.fits outfile=/scratch/kocevski/376896/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin897.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=471830401.0 tmax=472089601.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.05
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/376896/ltcube_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.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/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits
.....................!
real 12.10
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/376896/ltcube_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits outfile=/scratch/kocevski/376896/expmap_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.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/376896/ltcube_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits
.....................!
real 191.16
user 185.70
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 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/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits scfile=/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits outfile=/scratch/kocevski/376896/cmap_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits scfile=/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits outfile=/scratch/kocevski/376896/cmap_HighResolution_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376896/Model_4FGL_J2235.1-0623_daily_bin897.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/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits.....................!
real 59.85
user 58.47
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits', '/scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits', expMap='/scratch/kocevski/376896/expmap_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits', expCube='/scratch/kocevski/376896/ltcube_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/376896/Model_4FGL_J2235.1-0623_daily_bin897.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/376896/ft1_filtered_4FGL_J2235.1-0623_daily_bin897.fits
Spacecraft file(s): /scratch/kocevski/376896/ft2_4FGL_J2235.1-0623_daily_bin897.fits
Exposure map: /scratch/kocevski/376896/expmap_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits
Exposure cube: /scratch/kocevski/376896/ltcube_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/376896/Model_4FGL_J2235.1-0623_daily_bin897.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) = 6058.87093715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6976       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    195.74       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3599       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95939       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=   6058.838     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2405 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4161        7.2575       -.25869E-07   -.93720E-05
   2  Prefactor     14.573        16.383        .48773E-07   -.12045E-04
   3  Prefactor     45.409        27.158        .12132E-06   -.41077E-04
   4  Prefactor     48.617        34.077       -.16039E-06   -.33338E-04
   5  Prefactor     9.7489        10.125       -.25800E-06    .15564E-04
   6  Prefactor     .44581        14.132        .10937E-06   -.32500E-03
   7  Prefactor     2.6568        869.44       -.15146E-04    .11122E-05
   8  Prefactor     .14324        46.649       -.36405E-05    .10926E-03
   9  Prefactor     .10000E-03    31.803       -.35035E-06** at limit **
  10  norm          22.483        8.1831        .12333E-06   -.55922E-04
  11  Prefactor     196.36        183.49       -.74127E-05   -.14136E-04
  12  norm          3.5550        1.3765        .20017E-07    .36775E-03
  13  Prefactor     .10000E-03    6.2156       -.35233E-06** at limit **
  14  norm          .10000E-03    .33209       -.18051E-06** at limit **
  15  Prefactor     .10000E-03    23.166       -.81069E-06** at limit **
  16  Prefactor     7.3135        8.0225        .16165E-07    .32671E-04
  17  Prefactor     .10000E-03    7.4306       -.37496E-06** at limit **
  18  norm          .10000E-03    6.2596       -.46901E-06** at limit **
  19  Prefactor     .10000E-03    93.126       -.55243E-06** at limit **
  20  Prefactor     5.3586        10.904       -.25834E-06    .12570E-04
  21  Normalizat    1.0338        .28110        .73447E-05    .36390E-04
  22  Prefactor     .95954        .17291       -.32680E-05   -.22705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.41606
  Prefactor  = 14.5733
  Prefactor  = 45.4093
  Prefactor  = 48.6171
  Prefactor  = 9.74892
  Prefactor  = 0.44581
  Prefactor  = 2.65678
  Prefactor  = 0.143244
  Prefactor  = 0.0001
  norm       = 22.483
  Prefactor  = 196.355
  norm       = 3.55505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.35863
  Normalizat = 1.03376
  Prefactor  = 0.959545
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.838     FROM HESSE     STATUS=OK           352 CALLS     2757 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4161        7.2549        .69088E-03   -1.5128    
   2  Prefactor     14.573        16.376        .10490E-03   -1.4944    
   3  Prefactor     45.409        27.161        .59506E-04   -1.4359    
   4  Prefactor     48.617        34.067        .57506E-04   -1.4312    
   5  Prefactor     9.7489        10.121        .12833E-03   -1.5083    
   6  Prefactor     .44581        111.13        .39650E-02   -1.5574    
   7  Prefactor     2.6568        880.84        .24803E-03   -1.5382    
   8  Prefactor     .14324        84.621        .25692E-02   -1.5632    
   9  Prefactor     .10000E-03    31.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.483        8.1341        .84491E-04   -1.4759    
  11  Prefactor     196.36        187.28        .14437E-03   -1.2896    
  12  norm          3.5550        1.3755        .54168E-04   -1.5331    
  13  Prefactor     .10000E-03    6.2451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .33895        .43800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3135        8.0238        .14830E-03   -1.5167    
  17  Prefactor     .10000E-03    7.4650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    93.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3586        10.877        .17359E-03   -1.5245    
  21  Normalizat    1.0338        .28206        .32931E-03   -.91908    
  22  Prefactor     .95954        .17322        .21724E-03   -.94090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35578e-09
Minuit parameter uncertainties:
  1  7.25566
  2  16.3811
  3  27.1687
  4  34.0809
  5  10.1225
  6  14.102
  7  98.243
  8  6.97066
  9  1.53611e-05
  10  8.13449
  11  187.854
  12  1.37548
  13  9.26369e-07
  14  5.50012e-08
  15  6.52427e-07
  16  8.02499
  17  5.77853e-06
  18  8.21509e-06
  19  8.38153e-05
  20  10.8813
  21  0.282472
  22  0.173318
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.964e+02  1.879e+02  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:  9.595e-01  1.733e-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:  1.034e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.11e-08 +/- 7.75e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 3.84e-05

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

Saving results to:
/scratch/kocevski/376896/likelihoodResults_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.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) = 6054.58954639
delta logL = 4.24809223731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6054.58887882
delta logL = 4.24875980548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.572       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5278       1.0000          .0000       10.000    
     3 'Normalizat'    .83688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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.

 FCN=   6054.589     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.572        155.36        .18419E-02    .47847E-03
   2  Index         3.5278        1.7498        .52265E-01    .23131E-03
   3  Normalizat    .83682        .11439        .81135E-01    .24831E-04
   4  Prefactor     1.0322        .71388E-01    .41082E-01    .55775E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5719
  Index      = 3.52777
  Normalizat = 0.836822
  Prefactor  = 1.03222
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.589     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.572        87.746        .73676E-04   -1.4620    
   2  Index         3.5278        1.2026        .22147E-02   -.29888    
   3  Normalizat    .83682        .27726        .35921E-03   -.98717    
   4  Prefactor     1.0322        .17553        .20954E-03   -.91663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84738e-09
Minuit parameter uncertainties:
  1  88.1321
  2  1.21572
  3  0.277733
  4  0.17563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376896': 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) = 6054.58887814
delta logL = 4.24876048448

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.957e+01  8.813e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  3.528e+00  1.216e+00  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.032e+00  1.756e-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:  8.368e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.99
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 3.53 +/- 1.22
Photon Flux (Free Index): 2.90e-07 +/- 1.11e-07
Energy Flux (Free Index): 4.79e-05 +/- 2.23e-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/376896/cmap_HighResolution_471830401_472089601_4FGL_J2235.1-0623_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='8.11e-08', energy_flux2='4.79e-05', photon_flux_error='7.75e-08', dlogl='4.25e+00', energy_flux='4.02e-05', photon_flux2='2.90e-07', job_status='DONE', time_completed='2021-09-28 15:48:09.899513', photon_index_error2='1.22', photon_index2='3.53', ts='1.73', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.10e-07', energy_flux_error2='2.23e-05', EG='1.03', time_epoch_completed='1632869289.9', return_code='0', job_id='376896', GAL2='1.03', EG2='0.84', return_code2='0', energy_flux_error='3.84e-05', photon_flux_error2='1.11e-07', ts2='10.99', photon_index='2.15' WHERE bin_id='897' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 376896: <4FGL_J2235.1-0623_daily_bin897> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin897> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:35:26 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:35: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 15:35:28 2021
Terminated at Tue Sep 28 15:48:10 2021
Results reported at Tue Sep 28 15:48:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin897 338.799 -6.3955 471830401 472089601 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

