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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1409
RA = 338.799, Dec = -6.3955
tmin = 604540801, tmax = 604800001
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='378654', job_status='RUN', time_executed='2021-09-28 15:43:07.097669', time_epoch_executed='1632868987.1' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378654/ft1_4FGL_J2235.1-0623_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378654/ft1_4FGL_J2235.1-0623_daily_bin1409.fits outfile=/scratch/kocevski/378654/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1409.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=604540801.0 tmax=604800001.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.63
user 3.39
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/378654/ltcube_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.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/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits
.....................!
real 11.75
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/378654/ltcube_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.fits outfile=/scratch/kocevski/378654/expmap_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.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/378654/ltcube_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.fits
.....................!
real 191.12
user 185.82
sys 4.92

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/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits scfile=/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits outfile=/scratch/kocevski/378654/cmap_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits scfile=/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits outfile=/scratch/kocevski/378654/cmap_HighResolution_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/378654/ft2_4FGL_J2235.1-0623_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378654/Model_4FGL_J2235.1-0623_daily_bin1409.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/378654/ft1_filtered_4FGL_J2235.1-0623_daily_bin1409.fits.....................!
real 60.75
user 59.50
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    322.66       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10929       1.0000         .10000E-03   10000.    
    10 'norm      '    14.524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    191.86       1.0000         .10000E-03   10000.    
    12 'norm      '    .11680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.341       1.0000         .10000E-03   10000.    
    14 'norm      '    10.810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    114.23       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.844       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.403       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89406       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0954       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=   6277.154     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2460 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2201        .40935E-08** at limit **
   2  Prefactor     .10000E-03    3.1300       -.22041E-07** at limit **
   3  Prefactor     7.1907        9.2029        .15706E-06    .72626E-04
   4  Prefactor     .10000E-03    6.3113       -.50565E-07** at limit **
   5  Prefactor     13.909        16.132       -.12497E-06    .17026E-03
   6  Prefactor     20.739        15.616        .19627E-05    .51815E-03
   7  Prefactor     322.53        153.74        .78697E-06    .13716E-03
   8  Prefactor     .10000E-03    6.1657        .22143E-05** at limit **
   9  Prefactor     .31423E-03    163.91       -.15389E-04** at limit **
  10  norm          14.521        7.9013        .25518E-06    .50708E-03
  11  Prefactor     192.21        201.60       -.57880E-06   -.56216E-05
  12  norm          .11591        .65179       -.12641E-06    .20272E-03
  13  Prefactor     82.440        79.357       -.25899E-05    .68538E-04
  14  norm          10.803        6.2334        .55824E-06    .13984E-02
  15  Prefactor     114.21        91.075        .24414E-07    .10803E-03
  16  Prefactor     12.601        20.794        .64308E-06    .11532E-03
  17  Prefactor     .10000E-03    15.011       -.23143E-06** at limit **
  18  norm          17.843        15.631       -.10017E-06    .64614E-04
  19  Prefactor     .10000E-03    31.621       -.48971E-07** at limit **
  20  Prefactor     17.402        13.782       -.82238E-07    .26079E-04
  21  Normalizat    .89410        .30645        .61406E-05    .44008E-03
  22  Prefactor     1.0953        .18118       -.29868E-05    .32345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1907
  Prefactor  = 0.0001
  Prefactor  = 13.9095
  Prefactor  = 20.7392
  Prefactor  = 322.534
  Prefactor  = 0.0001
  Prefactor  = 0.000314234
  norm       = 14.5214
  Prefactor  = 192.208
  norm       = 0.115907
  Prefactor  = 82.4398
  norm       = 10.8025
  Prefactor  = 114.21
  Prefactor  = 12.6012
  Prefactor  = 0.0001
  norm       = 17.8429
  Prefactor  = 0.0001
  Prefactor  = 17.4016
  Normalizat = 0.894103
  Prefactor  = 1.09533
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.154     FROM HESSE     STATUS=OK           354 CALLS     2814 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2418        .13883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1319        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1907        9.2025        .14959E-03   -1.5172    
   4  Prefactor     .10000E-03    6.3205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.909        16.162        .10739E-03   -1.4962    
   6  Prefactor     20.739        15.658        .87984E-04   -1.4797    
   7  Prefactor     322.53        153.75        .11318E-03   -1.2097    
   8  Prefactor     .10000E-03    8.5974        .29249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31423E-03    61.351        .19452       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.521        7.9017        .10510E-03   -1.4946    
  11  Prefactor     192.21        203.83        .14580E-03   -1.2926    
  12  norm          .11591        1.0363        .12030E-02   -1.5640    
  13  Prefactor     82.440        81.926        .44265E-04   -1.3890    
  14  norm          10.803        6.4721        .66566E-04   -1.5051    
  15  Prefactor     114.21        91.063        .18821E-03   -1.3566    
  16  Prefactor     12.601        20.803        .11285E-03   -1.4998    
  17  Prefactor     .10000E-03    15.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.843        15.658        .94815E-04   -1.4863    
  19  Prefactor     .10000E-03    31.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.402        13.788        .96008E-04   -1.4873    
  21  Normalizat    .89410        .33809        .39671E-03   -.96668    
  22  Prefactor     1.0953        .20030        .22892E-03   -.89616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15957e-09
Minuit parameter uncertainties:
  1  1.99395e-06
  2  2.7504e-06
  3  9.20434
  4  1.03613e-05
  5  16.1666
  6  15.6615
  7  153.941
  8  0.000115427
  9  0.229525
  10  7.9023
  11  204.583
  12  0.692855
  13  82.0386
  14  6.4725
  15  91.1752
  16  20.8145
  17  9.15077e-05
  18  15.6613
  19  3.28095e-05
  20  13.7902
  21  0.338897
  22  0.200439
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.922e+02  2.046e+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:  1.095e+00  2.004e-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.941e-01  3.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.93e-08 +/- 8.44e-08
Energy Flux (Fixed Index): 3.93e-05 +/- 4.19e-05

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

Saving results to:
/scratch/kocevski/378654/likelihoodResults_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.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) = 6276.28758399
delta logL = 0.866818226657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6276.27161694
delta logL = 0.882785276639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.587       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9213       1.0000          .0000       10.000    
     3 'Normalizat'    .79114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1343       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6276.272     FROM MIGRAD    STATUS=FAILED        83 CALLS      306 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.591        175.73        .45301E-04   -.10591E-04
   2  Index         2.9214        .97824        .36178E-02    .70467E-03
   3  Normalizat    .79046        .32298        .41847E-03   -.28009E-04
   4  Prefactor     1.1348        .20156        .22508E-03    .64875E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6276.272     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      382 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.591        175.73        .66138E-03   -1.3933    
   2  Index         2.9214        .97824        .88883E-03   -.42874    
   3  Normalizat    .79046        .32298        .36726E-03   -1.0042    
   4  Prefactor     1.1348        .20156        .19036E-03   -.88363    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6276.272     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      410 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.591        125.17        .90602E-05    .37644E-05
   2  Index         2.9214        .69607        .72356E-03   -.22783E-05
   3  Normalizat    .79046        .32009        .16739E-04    .40751E-06
   4  Prefactor     1.1348        .19884        .45015E-04    .65663E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.5908
  Index      = 2.92137
  Normalizat = 0.790459
  Prefactor  = 1.13477
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.272     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.591        118.28        .18120E-05   -1.3933    
   2  Index         2.9214        .65782        .28942E-04   -.42874    
   3  Normalizat    .79046        .31973        .33478E-05   -1.0042    
   4  Prefactor     1.1348        .19851        .90031E-05   -.88363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56952e-13
Minuit parameter uncertainties:
  1  118.638
  2  0.660135
  3  0.320492
  4  0.198643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378654': 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) = 6276.2716143
delta logL = 0.882787921882

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  7.859e+01  1.186e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.921e+00  6.601e-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.135e+00  1.986e-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:  7.905e-01  3.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 2.92 +/- 0.66
Photon Flux (Free Index): 1.78e-07 +/- 1.18e-07
Energy Flux (Free Index): 3.70e-05 +/- 2.46e-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/378654/cmap_HighResolution_604540801_604800001_4FGL_J2235.1-0623_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', comment='SUCCESS', photon_flux='7.93e-08', energy_flux2='3.70e-05', photon_flux_error='8.44e-08', dlogl='8.83e-01', energy_flux='3.93e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-28 15:53:39.659429', photon_index_error2='0.66', photon_index2='2.92', ts='1.22', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='2.46e-05', EG='0.89', time_epoch_completed='1632869619.66', return_code='0', job_id='378654', GAL2='1.13', EG2='0.79', return_code2='0', energy_flux_error='4.19e-05', photon_flux_error2='1.18e-07', ts2='3.14', photon_index='2.15' WHERE bin_id='1409' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:53:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 378654: <4FGL_J2235.1-0623_daily_bin1409> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1409 338.799 -6.3955 604540801 604800001 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 :                                   628.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

