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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin454
RA = 338.799, Dec = -6.3955
tmin = 357004801, tmax = 357264001
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='375180', job_status='RUN', time_executed='2021-09-28 15:34:06.944402', time_epoch_executed='1632868446.94' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375180/ft1_4FGL_J2235.1-0623_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375180/ft1_4FGL_J2235.1-0623_daily_bin454.fits outfile=/scratch/kocevski/375180/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin454.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=357004801.0 tmax=357264001.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.98
user 3.76
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375180/ft1_filtered_4FGL_J2235.1-0623_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/375180/ltcube_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.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/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits
.....................!
real 11.87
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375180/ft1_filtered_4FGL_J2235.1-0623_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/375180/ltcube_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.fits outfile=/scratch/kocevski/375180/expmap_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.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/375180/ltcube_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.fits
.....................!
real 192.97
user 187.95
sys 4.61

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/375180/ft1_filtered_4FGL_J2235.1-0623_daily_bin454.fits scfile=/scratch/kocevski/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits outfile=/scratch/kocevski/375180/cmap_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.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.56
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375180/ft1_filtered_4FGL_J2235.1-0623_daily_bin454.fits scfile=/scratch/kocevski/375180/ft2_4FGL_J2235.1-0623_daily_bin454.fits outfile=/scratch/kocevski/375180/cmap_HighResolution_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11211E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3123       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.621       1.0000         .10000E-03   10000.    
    10 'norm      '    .91915E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.130       1.0000         .10000E-03   10000.    
    12 'norm      '    .82849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6179       1.0000         .10000E-03   10000.    
    14 'norm      '    .12203E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27180E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82740       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=   6441.441     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     2830 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1921        .13930E-02** at limit **
   2  Prefactor     .10000E-03    3.9244        .15507E-02** at limit **
   3  Prefactor     12.681        11.144        .11245E-03   -.29035E-04
   4  Prefactor     .10000E-03    7.2042        .18142E-02** at limit **
   5  Prefactor     .81167        25.976        .43340E-02    .26479E-03
   6  Prefactor     10.765        11.187        .12207E-03   -.12107E-05
   7  Prefactor     28.069        104.61        .75879E-04    .76412E-05
   8  Prefactor     2.3109        3.9999        .19106E-03    .17851E-05
   9  Prefactor     58.644        48.895        .52400E-04    .17314E-04
  10  norm          .68590E-01    107.03        .21174E-02    .61962E-03
  11  Prefactor     31.189        101.84        .71813E-04    .20454E-04
  12  norm          .82788        .83332        .71628E-04    .27284E-03
  13  Prefactor     9.5847        12.803        .12922E-03    .33530E-03
  14  norm          .10000E-03    1.3289        .12303E-02** at limit **
  15  Prefactor     .10000E-03    28.330        .18142E-02** at limit **
  16  Prefactor     .10000E-03    7.7668        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.2687        .14168E-02** at limit **
  18  norm          .66776E-01    20.876        .76593E-01    .59875E-04
  19  Prefactor     .10000E-03    113.32        .21431E-02** at limit **
  20  Prefactor     .10000E-03    10.827        .18142E-02** at limit **
  21  Normalizat    1.2404        .25531        .26812E-03    .29002E-04
  22  Prefactor     .82761        .14969        .20659E-03    .17004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6807
  Prefactor  = 0.0001
  Prefactor  = 0.811669
  Prefactor  = 10.765
  Prefactor  = 28.0691
  Prefactor  = 2.31091
  Prefactor  = 58.6436
  norm       = 0.0685897
  Prefactor  = 31.1889
  norm       = 0.827877
  Prefactor  = 9.58473
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0667763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24035
  Prefactor  = 0.827611
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.441     FROM HESSE     STATUS=OK           334 CALLS     3164 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1928        .27861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9246        .31014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.681        11.143        .22490E-04   -1.4996    
   4  Prefactor     .10000E-03    7.2049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .81167        25.846        .17336E-03   -1.5528    
   6  Prefactor     10.765        11.182        .48829E-05   -1.5052    
   7  Prefactor     28.069        102.30        .30351E-05   -1.4648    
   8  Prefactor     2.3109        3.9906        .76426E-05   -1.5404    
   9  Prefactor     58.644        48.891        .10480E-04   -1.4175    
  10  norm          .68590E-01    96.112        .42349E-03   -1.5656    
  11  Prefactor     31.189        98.954        .14363E-04   -1.4590    
  12  norm          .82788        .83320        .28651E-05   -1.5526    
  13  Prefactor     9.5847        12.772        .51687E-05   -1.5089    
  14  norm          .10000E-03    1.3293        .24606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2687        .28335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .66776E-01    17.744        .84211E-01   -1.5656    
  19  Prefactor     .10000E-03    113.36        .42862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2404        .25338        .10725E-04   -.85365    
  22  Prefactor     .82761        .14968        .82637E-05   -.98718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36302e-09
Minuit parameter uncertainties:
  1  4.58048e-07
  2  1.6495e-06
  3  11.1444
  4  2.17086e-06
  5  9.16413
  6  11.1843
  7  102.953
  8  3.99102
  9  48.9249
  10  5.13963
  11  99.4812
  12  0.833207
  13  12.7759
  14  6.74844e-05
  15  7.10662e-05
  16  5.9045e-06
  17  1.42246e-06
  18  2.17604
  19  7.43304e-05
  20  1.73474e-05
  21  0.253632
  22  0.149753
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  3.119e+01  9.948e+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:  8.276e-01  1.498e-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.240e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375180/likelihoodResults_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.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) = 6439.52208564
delta logL = 1.91904486039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6439.4999788
delta logL = 1.94115170087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5625       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9835       1.0000          .0000       10.000    
     3 'Normalizat'    1.0885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88467       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=   6439.500     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5461        41.793        .47115E-02    .13637E-02
   2  Index         3.9853        2.0652        .77695E-01    .31343E-03
   3  Normalizat    1.0888        .72922E-01    .63988E-01    .69125E-03
   4  Prefactor     .88452        .45288E-01    .44809E-01    .82440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54609
  Index      = 3.98526
  Normalizat = 1.08878
  Prefactor  = 0.884521
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.500     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5461        66.185        .90301E-04   -1.5282    
   2  Index         3.9853        2.8774        .30315E-02   -.20437    
   3  Normalizat    1.0888        .22515        .28305E-03   -.90113    
   4  Prefactor     .88452        .14246        .20026E-03   -.96684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.61971e-09
Minuit parameter uncertainties:
  1  34.738
  2  3.07571
  3  0.225349
  4  0.142518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375180': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6439.49997503
delta logL = 1.94115546469

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  4.546e+00  3.474e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  3.985e+00  3.076e+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:  8.845e-01  1.425e-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.089e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 3.99 +/- 3.08
Photon Flux (Free Index): 1.40e-07 +/- 8.29e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.40e-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/375180/cmap_HighResolution_357004801_357264001_4FGL_J2235.1-0623_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='1.94e+00', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-28 15:44:55.707068', photon_index_error2='3.08', photon_index2='3.99', ts='0.14', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.40e-05', EG='1.24', time_epoch_completed='1632869095.71', return_code='0', job_id='375180', GAL2='0.88', EG2='1.09', return_code2='102', photon_flux_error2='8.29e-08', ts2='4.38', photon_index='2.15' WHERE bin_id='454' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:44:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 375180: <4FGL_J2235.1-0623_daily_bin454> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin454> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:30:13 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:30:15 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:15 2021
Terminated at Tue Sep 28 15:44:56 2021
Results reported at Tue Sep 28 15:44:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin454 338.799 -6.3955 357004801 357264001 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 :                                   648.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

