/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 6 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2235.1-0623_daily_bin321
RA = 338.799, Dec = -6.3955
tmin = 322531201, tmax = 322790401
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='374203', job_status='RUN', time_executed='2021-09-28 15:25:36.458690', time_epoch_executed='1632867936.46' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374203/ft1_4FGL_J2235.1-0623_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374203/ft1_4FGL_J2235.1-0623_daily_bin321.fits outfile=/scratch/kocevski/374203/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin321.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=322531201.0 tmax=322790401.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 8.26
user 7.93
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/374203/ltcube_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.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/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits
.....................!
real 11.35
user 10.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/374203/ltcube_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.fits outfile=/scratch/kocevski/374203/expmap_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.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/374203/ltcube_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.fits
.....................!
real 190.18
user 185.07
sys 4.75

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/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits scfile=/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits outfile=/scratch/kocevski/374203/cmap_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits scfile=/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits outfile=/scratch/kocevski/374203/cmap_HighResolution_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.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/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/374203/ft2_4FGL_J2235.1-0623_daily_bin321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374203/Model_4FGL_J2235.1-0623_daily_bin321.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/374203/ft1_filtered_4FGL_J2235.1-0623_daily_bin321.fits.....................!
real 84.92
user 83.45
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51805E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .96057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13931E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.897       1.0000         .10000E-03   10000.    
    14 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17324E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31705E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58130E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80186       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0563       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=   9583.391     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     3243 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6839        .15553E-02** at limit **
   2  Prefactor     .10142E-03    5.6686        .64710E-01** at limit **
   3  Prefactor     .10000E-03    3.5668        .18039E-02** at limit **
   4  Prefactor     .10000E-03    7.3018        .18142E-02** at limit **
   5  Prefactor     .95735        4.0513        .10436        .30867E-03
   6  Prefactor     .10009E-03    35.683        .42073E-02** at limit **
   7  Prefactor     63.524        80.885        .50335E-04    .32704E-04
   8  Prefactor     7.0601        3.8126        .13169E-03    .53524E-04
   9  Prefactor     .10000E-03    39.526        .18142E-02** at limit **
  10  norm          17.143        4.6815        .96733E-04    .44237E-03
  11  Prefactor     .10000E-03    59.740        .18142E-02** at limit **
  12  norm          .20018        .56461        .11920E-03   -.56062E-03
  13  Prefactor     10.886        11.042        .12137E-03    .28233E-03
  14  norm          .10000E-03    2.7130        .11037E-02** at limit **
  15  Prefactor     9.0268        23.065        .66654E-03    .13485E-03
  16  Prefactor     .10088E-03    4.7676        .69380E-01** at limit **
  17  Prefactor     .10000E-03    8.3654        .18142E-02** at limit **
  18  norm          3.0677        6.8664        .23157E-03   -.14110E-03
  19  Prefactor     .10128E-03    38.347        .17815    ** at limit **
  20  Prefactor     .10000E-03    40.156        .47753E-02** at limit **
  21  Normalizat    .80192        .19503        .31723E-03    .57061E-03
  22  Prefactor     1.0564        .12218        .18469E-03    .41652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.957346
  Prefactor  = 0.000100089
  Prefactor  = 63.5238
  Prefactor  = 7.06014
  Prefactor  = 0.0001
  norm       = 17.1426
  Prefactor  = 0.0001
  norm       = 0.20018
  Prefactor  = 10.8857
  norm       = 0.000100001
  Prefactor  = 9.02676
  Prefactor  = 0.00010088
  Prefactor  = 0.0001
  norm       = 3.06775
  Prefactor  = 0.000101279
  Prefactor  = 0.0001
  Normalizat = 0.801923
  Prefactor  = 1.05639
 **********
 **   18 **HESSE 
 **********

 FCN=   9583.391     FROM HESSE     STATUS=OK           354 CALLS     3597 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6849        .31107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10142E-03    5.1793        .69526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5671        .36077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .95735        15.806        .36718E-02   -1.5512    
   6  Prefactor     .10009E-03    36.095        .84146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     63.524        80.638        .10067E-04   -1.4112    
   8  Prefactor     7.0601        3.8074        .52676E-05   -1.5176    
   9  Prefactor     .10000E-03    39.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.143        4.6821        .38693E-05   -1.4880    
  11  Prefactor     .10000E-03    59.749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20018        .56453        .47679E-05   -1.5619    
  13  Prefactor     10.886        10.991        .48546E-05   -1.5048    
  14  norm          .10000E-03    2.7148        .22074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0268        23.026        .26662E-04   -1.5107    
  16  Prefactor     .10088E-03    4.6952        .70348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0677        6.8652        .92627E-05   -1.5358    
  19  Prefactor     .10128E-03    39.737        .17286       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.537        .95507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80192        .19393        .12689E-04   -.99997    
  22  Prefactor     1.0564        .12204        .36937E-04   -.90873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09555e-09
Minuit parameter uncertainties:
  1  1.34504e-05
  2  0.00543315
  3  5.47606e-06
  4  1.9665e-05
  5  7.78204
  6  0.00358291
  7  80.777
  8  3.8075
  9  6.1652e-05
  10  4.68221
  11  0.000238067
  12  0.564544
  13  10.993
  14  9.60872e-05
  15  23.0488
  16  0.004065
  17  2.4372e-05
  18  6.86695
  19  0.014266
  20  0.000119774
  21  0.194098
  22  0.122075
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.381e-04  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.056e+00  1.221e-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.019e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374203/likelihoodResults_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.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): 102
logL (Free Index) = 9583.39058278
delta logL = -7.96600725153e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9583.39050352
delta logL = -3.97842086386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7456       1.0000          .0000       10.000    
     3 'Normalizat'    .80192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0564       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=   9583.391     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    388.29        .90712E-02** at limit **
   2  Index         2.7120        6.9336        .50000        .64735E-05
   3  Normalizat    .80192        .12060E-01    .71683E-01   -.95098E-04
   4  Prefactor     1.0564        .79990E-02    .39550E-01   -.13164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71202
  Normalizat = 0.801917
  Prefactor  = 1.05639
 **********
 **   18 **HESSE 
 **********

 FCN=   9583.391     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7120        6.3520        .50000       -.47529    
   3  Normalizat    .80192        .18089        .31722E-03   -.99998    
   4  Prefactor     1.0564        .12026        .18469E-03   -.90873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98859e-11
Minuit parameter uncertainties:
  1  0.000174694
  2  5.12105
  3  0.181027
  4  0.120286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374203': 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) = 9583.39050338
delta logL = -2.63346009888e-07

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.747e-04  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.712e+00  5.121e+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.056e+00  1.203e-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.019e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/374203/cmap_HighResolution_322531201_322790401_4FGL_J2235.1-0623_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-28 15:40:23.999469', job_id='374203', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632868824.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='321' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:40:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 374203: <4FGL_J2235.1-0623_daily_bin321> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin321> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:25:19 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:25:21 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:25:21 2021
Terminated at Tue Sep 28 15:40:24 2021
Results reported at Tue Sep 28 15:40:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin321 338.799 -6.3955 322531201 322790401 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 :                                   883.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

