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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1583
RA = 338.971, Dec = -36.4605
tmin = 649641601, tmax = 649900801
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='395064', job_status='RUN', time_executed='2021-09-28 16:31:35.436932', time_epoch_executed='1632871895.44' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395064/ft1_4FGL_J2235.8-3627_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395064/ft1_4FGL_J2235.8-3627_daily_bin1583.fits outfile=/scratch/kocevski/395064/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1583.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=649641601.0 tmax=649900801.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 2.75
user 2.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/395064/ltcube_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.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/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits
.....................!
real 12.69
user 12.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/395064/ltcube_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits outfile=/scratch/kocevski/395064/expmap_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.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/395064/ltcube_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits
.....................!
real 195.38
user 185.39
sys 5.49

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/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits scfile=/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits outfile=/scratch/kocevski/395064/cmap_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits scfile=/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits outfile=/scratch/kocevski/395064/cmap_HighResolution_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395064/Model_4FGL_J2235.8-3627_daily_bin1583.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/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits.........................!
real 18.91
user 17.63
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits', '/scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits', expMap='/scratch/kocevski/395064/expmap_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits', expCube='/scratch/kocevski/395064/ltcube_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395064/Model_4FGL_J2235.8-3627_daily_bin1583.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/395064/ft1_filtered_4FGL_J2235.8-3627_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/395064/ft2_4FGL_J2235.8-3627_daily_bin1583.fits
Exposure map: /scratch/kocevski/395064/expmap_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits
Exposure cube: /scratch/kocevski/395064/ltcube_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395064/Model_4FGL_J2235.8-3627_daily_bin1583.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) = 901.135321618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    134.15       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    194.26       1.0000         .10000E-03   10000.    
     5 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17167E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.290       1.0000         .10000E-03   10000.    
    12 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    325.15       1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.745       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14471E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27491       1.0000         .10000E-03   10000.    
    22 'norm      '    116.26       1.0000         .10000E-03   10000.    
    23 'norm      '    9.6164       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1073       1.0000         .10000E-03   10000.    
    25 'Prefactor '    69.295       1.0000         .10000E-03   10000.    
    26 'Prefactor '    385.64       1.0000         .10000E-03   10000.    
    27 'norm      '    .10213E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99300E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4885       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=   900.8213     FROM MIGRAD    STATUS=CONVERGED   1252 CALLS     5548 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    170.56        .18142E-02** at limit **
   2  Prefactor     134.12        137.53        .17385E-03   -.13986E-04
   3  norm          .10000E-03    96.324        .18142E-02** at limit **
   4  norm          194.22        178.17        .14491E-03   -.12411E-04
   5  norm          .10000E-03    3.9563        .58064E-03** at limit **
   6  Prefactor     .10000E-03    43.962        .18142E-02** at limit **
   7  Prefactor     .10000E-03    23.943        .14236E-02** at limit **
   8  norm          .10000E-03    181.74        .18142E-02** at limit **
   9  Prefactor     .10000E-03    99.943        .18142E-02** at limit **
  10  Prefactor     .10000E-03    81.231        .18142E-02** at limit **
  11  Prefactor     62.239        96.863        .50842E-04   -.37767E-04
  12  norm          .10000E-03    10.752        .95905E-03** at limit **
  13  Prefactor     325.44        294.30        .11276E-03   -.33442E-04
  14  Prefactor     69.733        56.467        .48066E-04   -.49747E-04
  15  Prefactor     .10000E-03    16.873        .12025E-02** at limit **
  16  norm          .10000E-03    11.118        .97583E-03** at limit **
  17  Prefactor     69.117        61.273        .24141E-03   -.69747E-04
  18  Prefactor     .10000E-03    51.664        .18142E-02** at limit **
  19  norm          .10000E-03    1.7280        .70829E-03** at limit **
  20  Prefactor     .10000E-03    66.948        .18142E-02** at limit **
  21  Prefactor     .26799        840.11        .38091E-02    .16548E-04
  22  norm          116.24        85.911        .18657E-03   -.40558E-04
  23  norm          9.6237        15.738        .12923E-03   -.98147E-04
  24  norm          1.1500        156.01        .44971E-02    .34333E-03
  25  Prefactor     69.182        180.08        .24110E-03   -.71567E-04
  26  Prefactor     385.50        220.60        .10387E-03   -.32538E-04
  27  norm          .10000E-03    14.135        .10956E-02** at limit **
  28  Normalizat    .10019        2.0066        .84023E-02   -.17552E-04
  29  Prefactor     1.4875        .73799        .24545E-03    .23377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 134.123
  norm       = 0.0001
  norm       = 194.217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.2392
  norm       = 0.000100001
  Prefactor  = 325.442
  Prefactor  = 69.7328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.1165
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.267986
  norm       = 116.243
  norm       = 9.6237
  norm       = 1.14996
  Prefactor  = 69.1816
  Prefactor  = 385.501
  norm       = 0.0001
  Normalizat = 0.100193
  Prefactor  = 1.48752
 **********
 **   18 **HESSE 
 **********

 FCN=   900.8213     FROM HESSE     STATUS=OK           529 CALLS     6077 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    170.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     134.12        137.47        .34770E-04   -1.3387    
   3  norm          .10000E-03    96.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          194.22        177.89        .28982E-04   -1.2912    
   5  norm          .10000E-03    3.9563        .11613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.950        .28473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    181.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    99.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.239        95.344        .10168E-04   -1.4128    
  12  norm          .10000E-03    10.752        .19181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     325.44        293.29        .22552E-04   -1.2080    
  14  Prefactor     69.733        56.208        .96132E-05   -1.4036    
  15  Prefactor     .10000E-03    16.873        .24051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.119        .19517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.117        59.695        .48282E-04   -1.4043    
  18  Prefactor     .10000E-03    51.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7279        .14166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .26799        810.12        .15236E-03   -1.5604    
  22  norm          116.24        85.836        .37315E-04   -1.3547    
  23  norm          9.6237        15.599        .51691E-05   -1.5087    
  24  norm          1.1500        151.50        .89943E-03   -1.5493    
  25  Prefactor     69.182        171.68        .96441E-05   -1.4043    
  26  Prefactor     385.50        218.46        .20774E-04   -1.1755    
  27  norm          .10000E-03    14.135        .21912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10019        1.6011        .33609E-03   -1.3805    
  29  Prefactor     1.4875        .66999        .49089E-04   -.77890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81025e-10
Minuit parameter uncertainties:
  1  0.000356149
  2  137.801
  3  0.000377641
  4  178.39
  5  4.45763e-06
  6  0.000101142
  7  0.000282248
  8  0.000492038
  9  0.000345562
  10  0.000141712
  11  95.5787
  12  0.000249424
  13  294.64
  14  56.251
  15  6.06016e-05
  16  2.86281e-06
  17  59.7468
  18  5.4317e-05
  19  1.32526e-05
  20  0.000338283
  21  29.8766
  22  85.9281
  23  15.606
  24  26.466
  25  172.936
  26  218.929
  27  1.64315e-05
  28  0.785978
  29  0.674017
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.417e-04  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.488e+00  6.740e-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.002e-01  7.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395064/likelihoodResults_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.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) = 900.821393517
delta logL = -5.79307665021e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 900.821336061
delta logL = -4.75326032756e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13647E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7732       1.0000          .0000       10.000    
     3 'Normalizat'    .10020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4875       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=   900.8213     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    603.63        .18142E-02** at limit **
   2  Index         2.6965        8.0736        .50000        .27265E-05
   3  Normalizat    .10020        .39887E-01    .83921E-02    .15288E-04
   4  Prefactor     1.4875        .40773E-01    .24546E-03    .44567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102213
  Index      = 2.6965
  Normalizat = 0.100203
  Prefactor  = 1.48751
 **********
 **   18 **HESSE 
 **********

 FCN=   900.8213     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      315 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10221E-03    6181.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6965        5.6768        .50000       -.47878    
   3  Normalizat    .10020        .84269E-01    .33569E-03   -1.3805    
   4  Prefactor     1.4875        .86209E-01    .49092E-04   -.77890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19755e-09
Minuit parameter uncertainties:
  1  0.151076
  2  1869.7
  3  0.0843808
  4  0.0862175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395064': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 900.821335736
delta logL = -1.49882907863e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.022e-04  1.511e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.697e+00  1.870e+03  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.488e+00  8.622e-02  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.002e-01  8.438e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/395064/cmap_HighResolution_649641601_649900801_4FGL_J2235.8-3627_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-02', job_status='DONE', photon_flux_upper_limit='3.94e-07', time_completed='2021-09-28 16:38:28.759422', job_id='395064', GAL2='1.49', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1632872308.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='-1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1583' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 395064: <4FGL_J2235.8-3627_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1583> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:47 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:49 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:30:49 2021
Terminated at Tue Sep 28 16:38:29 2021
Results reported at Tue Sep 28 16:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1583 338.971 -36.4605 649641601 649900801 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 :                                   407.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   460 sec.
    Turnaround time :                            462 sec.

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

