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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin208
RA = 338.799, Dec = -6.3955
tmin = 293241601, tmax = 293500801
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='372940', job_status='RUN', time_executed='2021-09-28 15:21:06.640385', time_epoch_executed='1632867666.64' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372940/ft1_4FGL_J2235.1-0623_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372940/ft1_4FGL_J2235.1-0623_daily_bin208.fits outfile=/scratch/kocevski/372940/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin208.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=293241601.0 tmax=293500801.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.71
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.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/372940/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin208.fits evtable="EVENTS" outfile="/scratch/kocevski/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.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/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/372940/ltcube_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.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/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits
.....................!
real 12.31
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/372940/ltcube_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.fits outfile=/scratch/kocevski/372940/expmap_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.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/372940/ltcube_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.fits
.....................!
real 193.86
user 186.86
sys 4.62

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/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits outfile=/scratch/kocevski/372940/cmap_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits outfile=/scratch/kocevski/372940/cmap_HighResolution_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/372940/ft2_4FGL_J2235.1-0623_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372940/Model_4FGL_J2235.1-0623_daily_bin208.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/372940/ft1_filtered_4FGL_J2235.1-0623_daily_bin208.fits.....................!
real 52.91
user 50.95
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12707E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.028       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.3084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    238.58       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7299       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
    18 'norm      '    32.542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94552       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86211       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=   5186.053     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2343 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1324        7.9626        .67659E-08   -.33600E-05
   2  Prefactor     .10000E-03    37.035       -.31592E-05** at limit **
   3  Prefactor     45.010        27.418       -.65269E-05   -.13089E-03
   4  Prefactor     14.341        17.544        .41558E-05    .61552E-04
   5  Prefactor     11.407        12.364       -.87243E-07    .68709E-06
   6  Prefactor     2.4850        4.2383        .11650E-05   -.12483E-02
   7  Prefactor     .10000E-03    39.307        .18776E-05** at limit **
   8  Prefactor     12.040        5.6348       -.32425E-06   -.32102E-04
   9  Prefactor     .10000E-03    65.443        .28133E-06** at limit **
  10  norm          9.3080        5.4452        .27825E-07    .13413E-04
  11  Prefactor     238.58        115.75        .16513E-05    .17098E-04
  12  norm          9.8080        2.0983        .22587E-07    .12356E-03
  13  Prefactor     2.7355        9.9082       -.22901E-05   -.70872E-04
  14  norm          .10000E-03    .64740       -.26863E-07** at limit **
  15  Prefactor     .10000E-03    9.7661        .23591E-06** at limit **
  16  Prefactor     .10000E-03    11.616       -.13999E-06** at limit **
  17  Prefactor     23.171        17.236       -.19226E-06    .59904E-05
  18  norm          32.543        16.483       -.23965E-06    .45760E-05
  19  Prefactor     .10000E-03    18.840       -.74072E-06** at limit **
  20  Prefactor     .10000E-03    4.3586       -.39249E-07** at limit **
  21  Normalizat    .94564        .24068        .13387E-05    .30435E-04
  22  Prefactor     .86199        .15008        .23637E-06    .72982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13238
  Prefactor  = 0.000100001
  Prefactor  = 45.0098
  Prefactor  = 14.3411
  Prefactor  = 11.4071
  Prefactor  = 2.48499
  Prefactor  = 0.0001
  Prefactor  = 12.0401
  Prefactor  = 0.0001
  norm       = 9.30804
  Prefactor  = 238.581
  norm       = 9.80804
  Prefactor  = 2.73554
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1713
  norm       = 32.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.945639
  Prefactor  = 0.861988
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.053     FROM HESSE     STATUS=OK           346 CALLS     2689 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1324        7.9658        .14059E-03   -1.5138    
   2  Prefactor     .10000E-03    38.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.010        27.306        .59748E-04   -1.4365    
   4  Prefactor     14.341        17.565        .10577E-03   -1.4950    
   5  Prefactor     11.407        12.365        .11861E-03   -1.5032    
   6  Prefactor     2.4850        9.5865        .12968E-02   -1.5393    
   7  Prefactor     .10000E-03    39.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.040        5.6747        .11054E-03   -1.5014    
   9  Prefactor     .10000E-03    65.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.3080        5.4462        .11987E-03   -1.5098    
  11  Prefactor     238.58        115.75        .13106E-03   -1.2606    
  12  norm          9.8080        2.1003        .45755E-04   -1.5082    
  13  Prefactor     2.7355        9.0277        .24646E-03   -1.5377    
  14  norm          .10000E-03    .93781        .10185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.171        17.243        .83214E-04   -1.4745    
  18  norm          32.543        16.502        .70242E-04   -1.4566    
  19  Prefactor     .10000E-03    18.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3624        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94564        .27989        .32306E-03   -.94874    
  22  Prefactor     .86199        .17527        .21621E-03   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.326e-09
Minuit parameter uncertainties:
  1  7.96685
  2  0.000424716
  3  27.3138
  4  17.5708
  5  12.3681
  6  9.59242
  7  4.21307e-05
  8  5.67494
  9  1.93096e-05
  10  5.44652
  11  115.858
  12  2.10036
  13  9.03223
  14  4.24385e-05
  15  1.02626e-05
  16  1.11145e-05
  17  17.2469
  18  16.5044
  19  1.88108e-05
  20  2.28644e-06
  21  0.280324
  22  0.175381
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.386e+02  1.159e+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:  8.620e-01  1.754e-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:  9.456e-01  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.93
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 4.88e-05 +/- 2.37e-05

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) = 5185.93304228
delta logL = 0.119948128287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5185.93274122
delta logL = 0.12024919414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    287.43       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9534       1.0000          .0000       10.000    
     3 'Normalizat'    .96219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85561       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=   5185.933     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     287.31        165.76        .11970E-03    .75601E-05
   2  Index         1.9529        .39538        .49922E-02    .27269E-03
   3  Normalizat    .96197        .27154        .32078E-03    .40757E-05
   4  Prefactor     .85577        .17448        .21695E-03    .28821E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 287.31
  Index      = 1.95292
  Normalizat = 0.961971
  Prefactor  = 0.855766
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.933     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     287.31        163.26        .23940E-04   -1.2301    
   2  Index         1.9529        .38931        .99845E-03   -.65532    
   3  Normalizat    .96197        .27169        .12831E-04   -.94316    
   4  Prefactor     .85577        .17462        .86780E-05   -.97704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06359e-12
Minuit parameter uncertainties:
  1  163.521
  2  0.389935
  3  0.272077
  4  0.174736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372940': 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) = 5185.9327387
delta logL = 0.120251715486

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.873e+02  1.635e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  1.953e+00  3.899e-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:  8.558e-01  1.747e-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:  9.620e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.19
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 1.95 +/- 0.39
Photon Flux (Free Index): 8.14e-08 +/- 5.21e-08
Energy Flux (Free Index): 6.34e-05 +/- 4.88e-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/372940/cmap_HighResolution_293241601_293500801_4FGL_J2235.1-0623_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='6.34e-05', photon_flux_error='4.78e-08', dlogl='1.20e-01', energy_flux='4.88e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-28 15:29:57.148129', photon_index_error2='0.39', photon_index2='1.95', ts='12.93', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='4.88e-05', EG='0.95', time_epoch_completed='1632868197.15', return_code='0', job_id='372940', GAL2='0.86', EG2='0.96', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='5.21e-08', ts2='13.19', photon_index='2.15' WHERE bin_id='208' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:29:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 372940: <4FGL_J2235.1-0623_daily_bin208> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin208> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:20:52 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:20:55 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:20:55 2021
Terminated at Tue Sep 28 15:29:57 2021
Results reported at Tue Sep 28 15:29:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin208 338.799 -6.3955 293241601 293500801 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 :                                   522.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            545 sec.

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

