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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1043
RA = 338.971, Dec = -36.4605
tmin = 509673601, tmax = 509932801
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='393484', job_status='RUN', time_executed='2021-09-28 16:29:17.541613', time_epoch_executed='1632871757.54' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393484/ft1_4FGL_J2235.8-3627_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393484/ft1_4FGL_J2235.8-3627_daily_bin1043.fits outfile=/scratch/kocevski/393484/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1043.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=509673601.0 tmax=509932801.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.62
user 3.43
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.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/393484/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/393484/ltcube_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.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/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits
.....................!
real 12.43
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/393484/ltcube_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits outfile=/scratch/kocevski/393484/expmap_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.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/393484/ltcube_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits
.....................!
real 189.48
user 184.72
sys 4.38

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits outfile=/scratch/kocevski/393484/cmap_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.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.971 yref=-36.4605 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits outfile=/scratch/kocevski/393484/cmap_HighResolution_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.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.971 yref=-36.4605 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/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393484/Model_4FGL_J2235.8-3627_daily_bin1043.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/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits.....................!
real 41.08
user 39.82
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits', '/scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits', expMap='/scratch/kocevski/393484/expmap_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits', expCube='/scratch/kocevski/393484/ltcube_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/393484/Model_4FGL_J2235.8-3627_daily_bin1043.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/393484/ft1_filtered_4FGL_J2235.8-3627_daily_bin1043.fits
Spacecraft file(s): /scratch/kocevski/393484/ft2_4FGL_J2235.8-3627_daily_bin1043.fits
Exposure map: /scratch/kocevski/393484/expmap_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits
Exposure cube: /scratch/kocevski/393484/ltcube_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/393484/Model_4FGL_J2235.8-3627_daily_bin1043.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) = 4921.27263468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9963       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7100       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2054       1.0000         .10000E-03   10000.    
     8 'norm      '    37.178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4858       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2919       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0214       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3095       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .92845       1.0000         .10000E-03   10000.    
    23 'norm      '    3.5412       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4921.269     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     3112 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.128        .75410E-05** at limit **
   2  Prefactor     .10000E-03    8.9671       -.15329E-05** at limit **
   3  norm          2.9902        6.3708        .11308E-04   -.18098E-02
   4  norm          2.7155        3.2570        .10484E-04    .31973E-02
   5  norm          2.6824        .72907       -.43702E-06   -.81579E-04
   6  Prefactor     17.328        1.6646       -.13449E-05    .14881E-02
   7  Prefactor     2.2094        4.3203        .20621E-06    .89848E-04
   8  norm          37.138        33.915       -.23580E-04    .22986E-02
   9  Prefactor     .10000E-03    16.181       -.41069E-05** at limit **
  10  Prefactor     33.261        12.027        .81903E-05    .44225E-02
  11  Prefactor     6.5069        1.2260        .10330E-05    .11434E-02
  12  norm          4.1951        5.2419       -.66724E-05   -.72073E-04
  13  Prefactor     3.5946        863.87        .23776E-03   -.19467E-04
  14  Prefactor     2.3251        1.4148       -.31532E-05    .81106E-04
  15  Prefactor     9.0295        7.5233        .10555E-04    .98285E-03
  16  norm          4.5304        4.6562       -.69397E-05   -.50682E-04
  17  Prefactor     .10000E-03    7.2656        .16716E-05** at limit **
  18  Prefactor     .10000E-03    6.9081       -.32464E-06** at limit **
  19  norm          1.3088        .79725        .83924E-06    .14993E-03
  20  Prefactor     .10000E-03    35.311        .57891E-05** at limit **
  21  Prefactor     .10000E-03    8.9718        .19808E-05** at limit **
  22  norm          .93536        1.7311       -.18328E-05    .29261E-03
  23  norm          3.5413        3.7353       -.35739E-06   -.38279E-04
  24  norm          .10000E-03    2.7816        .35672E-06** at limit **
  25  Prefactor     .10000E-03    37.599        .19427E-04** at limit **
  26  Prefactor     .10000E-03    74.166        .71646E-05** at limit **
  27  norm          .10000E-03    2.6392       -.25561E-05** at limit **
  28  Normalizat    1.2013        .30217       -.72031E-05    .20206E-04
  29  Prefactor     1.1435        .28953        .88727E-05    .43048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99023
  norm       = 2.7155
  norm       = 2.68243
  Prefactor  = 17.3284
  Prefactor  = 2.20936
  norm       = 37.1375
  Prefactor  = 0.0001
  Prefactor  = 33.2607
  Prefactor  = 6.50694
  norm       = 4.19509
  Prefactor  = 3.5946
  Prefactor  = 2.32514
  Prefactor  = 9.02945
  norm       = 4.53044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30876
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.935361
  norm       = 3.54126
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2013
  Prefactor  = 1.14346
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.269     FROM HESSE     STATUS=OK           619 CALLS     3731 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9902        11.024        .58626E-02   -1.5362    
   4  norm          2.7155        9.0917        .61856E-02   -1.5378    
   5  norm          2.6824        .78761        .62199E-02   -1.5380    
   6  Prefactor     17.328        14.323        .24062E-02   -1.4875    
   7  Prefactor     2.2094        4.3566        .69255E-02   -1.5411    
   8  norm          37.138        38.016        .16433E-02   -1.4488    
   9  Prefactor     .10000E-03    16.165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.261        29.932        .17374E-02   -1.4554    
  11  Prefactor     6.5069        26.573        .39397E-02   -1.5198    
  12  norm          4.1951        5.7471        .48616E-02   -1.5298    
  13  Prefactor     3.5946        1024.2        .10728E-01   -1.5329    
  14  Prefactor     2.3251        21.270        .67292E-02   -1.5403    
  15  Prefactor     9.0295        9.9975        .33360E-02   -1.5107    
  16  norm          4.5304        4.6679        .47260E-02   -1.5282    
  17  Prefactor     .10000E-03    7.2504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3088        .81091        .96350E-02   -1.5479    
  20  Prefactor     .10000E-03    35.407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93536        17.040        .12910       -1.5515    
  23  norm          3.5413        3.7302        .53700E-02   -1.5332    
  24  norm          .10000E-03    2.7793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    73.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.6161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2013        .25325        .64246E-01   -.86563    
  29  Prefactor     1.1435        .23619        .62678E-01   -.88089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92613e-07
Minuit parameter uncertainties:
  1  5.69555e-05
  2  1.05327e-05
  3  11.0315
  4  9.09631
  5  0.787618
  6  14.3261
  7  4.35725
  8  38.0411
  9  7.54742e-06
  10  29.9458
  11  26.3192
  12  5.74789
  13  123.548
  14  14.0714
  15  9.99935
  16  4.66828
  17  8.31353e-06
  18  3.96932e-06
  19  0.810918
  20  0.000532148
  21  1.39518e-05
  22  7.98675
  23  3.73048
  24  1.57625e-06
  25  0.000209434
  26  0.000261793
  27  6.76248e-06
  28  0.253511
  29  0.236405
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.326e+01  2.995e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.143e+00  2.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.201e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.78e-05

TS (Fixed Index): 3.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393484/likelihoodResults_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.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) = 4921.2326144
delta logL = 0.036486498474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4921.22933268
delta logL = 0.0397682192624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.577       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0399       1.0000          .0000       10.000    
     3 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   4921.229     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      276 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.579        32.523        .67188E-04   -.56593E-03
   2  Index         2.0400        .65880        .92753E-02   -.23141E-03
   3  Normalizat    1.2116        .29651        .28318E-03    .10595E-03
   4  Prefactor     1.1375        .28267        .27787E-03    .12123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5786
  Index      = 2.03996
  Normalizat = 1.21158
  Prefactor  = 1.13749
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.229     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.579        32.384        .13438E-04   -1.4514    
   2  Index         2.0400        .65580        .37101E-03   -.63355    
   3  Normalizat    1.2116        .29677        .11327E-04   -.86246    
   4  Prefactor     1.1375        .28296        .11115E-04   -.88277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27209e-09
Minuit parameter uncertainties:
  1  32.4002
  2  0.658727
  3  0.297186
  4  0.283333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393484': 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) = 4921.22933241
delta logL = 0.0397684865875

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.558e+01  3.240e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.040e+00  6.587e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.137e+00  2.833e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.212e+00  2.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.04 +/- 0.66
Photon Flux (Free Index): 3.80e-08 +/- 4.59e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.79e-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/393484/cmap_HighResolution_509673601_509932801_4FGL_J2235.8-3627_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='2.38e-05', photon_flux_error='4.19e-08', dlogl='3.98e-02', energy_flux='1.98e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-28 16:40:08.033455', photon_index_error2='0.66', photon_index2='2.04', ts='3.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='2.79e-05', EG='1.20', time_epoch_completed='1632872408.03', return_code='0', job_id='393484', GAL2='1.14', EG2='1.21', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.59e-08', ts2='3.07', photon_index='2.23' WHERE bin_id='1043' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 393484: <4FGL_J2235.8-3627_daily_bin1043> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1043> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:28 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:25:29 2021
Terminated at Tue Sep 28 16:40:08 2021
Results reported at Tue Sep 28 16:40:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1043 338.971 -36.4605 509673601 509932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

