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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1385
RA = 338.799, Dec = -6.3955
tmin = 598320001, tmax = 598579201
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='378615', job_status='RUN', time_executed='2021-09-28 15:40:37.220659', time_epoch_executed='1632868837.22' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378615/ft1_4FGL_J2235.1-0623_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378615/ft1_4FGL_J2235.1-0623_daily_bin1385.fits outfile=/scratch/kocevski/378615/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1385.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=598320001.0 tmax=598579201.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.33
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/378615/ltcube_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.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/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits
.....................!
real 12.20
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/378615/ltcube_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.fits outfile=/scratch/kocevski/378615/expmap_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.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/378615/ltcube_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.fits
.....................!
real 190.87
user 185.04
sys 5.51

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/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits scfile=/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits outfile=/scratch/kocevski/378615/cmap_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.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/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits scfile=/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits outfile=/scratch/kocevski/378615/cmap_HighResolution_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/378615/ft2_4FGL_J2235.1-0623_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378615/Model_4FGL_J2235.1-0623_daily_bin1385.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/378615/ft1_filtered_4FGL_J2235.1-0623_daily_bin1385.fits.....................!
real 85.24
user 84.01
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9826       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52827E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.413       1.0000         .10000E-03   10000.    
    10 'norm      '    .25529E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.372       1.0000         .10000E-03   10000.    
    12 'norm      '    .99744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28834E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9446       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9711       1.0000         .10000E-03   10000.    
    18 'norm      '    36.460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .91448E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3062       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86220       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92221       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=   9741.518     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     2811 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9861        3.9683        .26934E-03    .39846E-04
   2  Prefactor     4.0653        9.7855        .19998E-03   -.38658E-05
   3  Prefactor     18.363        17.937        .93461E-04   -.36492E-05
   4  Prefactor     3.2736        16.567        .11198E-02    .56712E-04
   5  Prefactor     .10004E-03    47.703        .37785E-02** at limit **
   6  Prefactor     7.3918        7.4247        .14756E-03    .23113E-05
   7  Prefactor     .10000E-03    14.461        .18142E-02** at limit **
   8  Prefactor     .10006E-03    15.229        .19574E-02** at limit **
   9  Prefactor     38.405        36.375        .64668E-04   -.29816E-04
  10  norm          .19111E-01    2.7039        .31429E-01    .91214E-03
  11  Prefactor     29.368        45.120        .73926E-04    .64590E-05
  12  norm          .99783        .56312        .54238E-04    .10396E-03
  13  Prefactor     .10001E-03    31.370        .43721E-02** at limit **
  14  norm          4.9450        1.0867        .45480E-04   -.92639E-03
  15  Prefactor     .10000E-03    42.513        .18142E-02** at limit **
  16  Prefactor     14.765        8.4856        .10424E-03   -.10906E-05
  17  Prefactor     8.9737        10.154        .13382E-03   -.74762E-05
  18  norm          36.463        11.992        .66372E-04    .93523E-04
  19  Prefactor     .10000E-03    152.60        .41640E-03** at limit **
  20  Prefactor     5.2975        5.2450        .87239E-03    .56432E-03
  21  Normalizat    .86198        .18597        .29635E-03    .27406E-03
  22  Prefactor     .92229        .12097        .19377E-03    .41483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98614
  Prefactor  = 4.06531
  Prefactor  = 18.3628
  Prefactor  = 3.2736
  Prefactor  = 0.000100039
  Prefactor  = 7.39181
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 38.4055
  norm       = 0.0191112
  Prefactor  = 29.368
  norm       = 0.997829
  Prefactor  = 0.00010001
  norm       = 4.94504
  Prefactor  = 0.0001
  Prefactor  = 14.7654
  Prefactor  = 8.97373
  norm       = 36.4626
  Prefactor  = 0.000100002
  Prefactor  = 5.29748
  Normalizat = 0.861983
  Prefactor  = 0.922292
 **********
 **   18 **HESSE 
 **********

 FCN=   9741.518     FROM HESSE     STATUS=OK           332 CALLS     3143 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9861        3.9676        .10773E-04   -1.5426    
   2  Prefactor     4.0653        9.7835        .79991E-05   -1.5305    
   3  Prefactor     18.363        17.873        .37384E-05   -1.4851    
   4  Prefactor     3.2736        16.430        .44792E-04   -1.5346    
   5  Prefactor     .10004E-03    48.620        .75570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3918        7.4195        .59024E-05   -1.5164    
   7  Prefactor     .10000E-03    14.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    15.817        .78295E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.405        36.373        .12934E-04   -1.4468    
  10  norm          .19111E-01    1.9281        .38881E-01   -1.5680    
  11  Prefactor     29.368        45.091        .29570E-05   -1.4624    
  12  norm          .99783        .56309        .21695E-05   -1.5508    
  13  Prefactor     .10001E-03    31.434        .87442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9450        1.0828        .18192E-05   -1.5263    
  15  Prefactor     .10000E-03    42.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.765        8.4850        .41696E-05   -1.4939    
  17  Prefactor     8.9737        10.152        .53527E-05   -1.5109    
  18  norm          36.463        11.988        .26549E-05   -1.4500    
  19  Prefactor     .10000E-03    152.61        .83280E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2975        5.2446        .34896E-04   -1.5248    
  21  Normalizat    .86198        .18587        .11854E-04   -.97809    
  22  Prefactor     .92229        .12104        .38754E-04   -.95366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28824e-09
Minuit parameter uncertainties:
  1  3.96814
  2  9.78739
  3  17.8778
  4  14.6739
  5  0.00274986
  6  7.4204
  7  5.85066e-05
  8  0.00188142
  9  36.3938
  10  0.382931
  11  45.1434
  12  0.563098
  13  0.00112925
  14  1.08277
  15  1.5103e-05
  16  8.48574
  17  10.154
  18  11.9889
  19  0.000984381
  20  5.24506
  21  0.186009
  22  0.12108
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.937e+01  4.514e+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:  9.223e-01  1.211e-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.620e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378615/likelihoodResults_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.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) = 9741.44380301
delta logL = 0.0737426748019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9741.44126904
delta logL = 0.0762766471926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4904       1.0000          .0000       10.000    
     3 'Normalizat'    .85571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92407       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=   9741.441     FROM MIGRAD    STATUS=FAILED        86 CALLS      300 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.875        46.858        .87630E-04    .32693E-04
   2  Index         2.4910        1.0439        .99581E-02    .56059E-03
   3  Normalizat    .85583        .17763        .29734E-03   -.17792E-02
   4  Prefactor     .92418        .11983        .19359E-03   -.28477E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9741.441     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      376 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.875        46.858        .46285E-03   -1.4794    
   2  Index         2.4910        1.0439        .97977E-03   -.52568    
   3  Normalizat    .85583        .17763        .21253E-03   -.98030    
   4  Prefactor     .92418        .11983        .16557E-03   -.95301    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9741.441     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      404 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.874        41.070        .35052E-05   -.19460E-04
   2  Index         2.4910        .91624        .19916E-02    .11839E-04
   3  Normalizat    .85583        .17758        .59468E-04   -.33647E-05
   4  Prefactor     .92418        .11983        .38717E-04   -.36411E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8742
  Index      = 2.491
  Normalizat = 0.855832
  Prefactor  = 0.924178
 **********
 **   18 **HESSE 
 **********

 FCN=   9741.441     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.874        41.265        .70104E-06   -1.4794    
   2  Index         2.4910        .90764        .79665E-04   -.52568    
   3  Normalizat    .85583        .17758        .11894E-04   -.98030    
   4  Prefactor     .92418        .11985        .77434E-05   -.95301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50013e-11
Minuit parameter uncertainties:
  1  41.3211
  2  0.91444
  3  0.177704
  4  0.119882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378615': 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) = 9741.44126383
delta logL = 0.0762818523472

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.087e+01  4.132e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.491e+00  9.144e-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:  9.242e-01  1.199e-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.558e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/378615/cmap_HighResolution_598320001_598579201_4FGL_J2235.1-0623_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-28 15:54:42.894578', job_id='378615', GAL2='0.92', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632869682.89', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.63e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1385' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:54:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 378615: <4FGL_J2235.1-0623_daily_bin1385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1385 338.799 -6.3955 598320001 598579201 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 :                                   834.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

