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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1357
RA = 338.971, Dec = -36.4605
tmin = 591062401, tmax = 591321601
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='394706', job_status='RUN', time_executed='2021-09-28 16:32:36.417882', time_epoch_executed='1632871956.42' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394706/ft1_4FGL_J2235.8-3627_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394706/ft1_4FGL_J2235.8-3627_daily_bin1357.fits outfile=/scratch/kocevski/394706/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1357.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=591062401.0 tmax=591321601.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.09
user 2.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/394706/ltcube_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.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/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits
.....................!
real 13.15
user 12.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/394706/ltcube_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits outfile=/scratch/kocevski/394706/expmap_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.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/394706/ltcube_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits
.....................!
real 192.43
user 186.27
sys 5.60

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/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits scfile=/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits outfile=/scratch/kocevski/394706/cmap_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits scfile=/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits outfile=/scratch/kocevski/394706/cmap_HighResolution_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394706/Model_4FGL_J2235.8-3627_daily_bin1357.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/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits.....................!
real 50.63
user 49.00
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits', '/scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits', expMap='/scratch/kocevski/394706/expmap_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits', expCube='/scratch/kocevski/394706/ltcube_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394706/Model_4FGL_J2235.8-3627_daily_bin1357.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/394706/ft1_filtered_4FGL_J2235.8-3627_daily_bin1357.fits
Spacecraft file(s): /scratch/kocevski/394706/ft2_4FGL_J2235.8-3627_daily_bin1357.fits
Exposure map: /scratch/kocevski/394706/expmap_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits
Exposure cube: /scratch/kocevski/394706/ltcube_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394706/Model_4FGL_J2235.8-3627_daily_bin1357.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6535.991145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2693       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1537       1.0000         .10000E-03   10000.    
     5 'norm      '    .74522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69413       1.0000         .10000E-03   10000.    
     8 'norm      '    .12897E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16611E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.001       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.9971       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.145       1.0000         .10000E-03   10000.    
    27 'norm      '    .12723E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99666       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94926       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.

 FCN=   6535.836     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3273 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2684        5.2374        .99709E-07   -.12779E-03
   2  Prefactor     .10000E-03    2.5822        .68104E-07** at limit **
   3  norm          .10000E-03    2.8039        .12901E-06** at limit **
   4  norm          2.1538        3.7198        .67181E-06   -.72107E-03
   5  norm          .74520        .29529        .73878E-08    .77770E-04
   6  Prefactor     .10000E-03    5.6454        .14418E-06** at limit **
   7  Prefactor     .69344        2.3805       -.66794E-06   -.13377E-02
   8  norm          .10782E-03    10.312       -.98089E-06** at limit **
   9  Prefactor     .10000E-03    8.6257       -.19007E-05** at limit **
  10  Prefactor     .10000E-03    7.9424        .35350E-05** at limit **
  11  Prefactor     .10000E-03    7.5810       -.22180E-05** at limit **
  12  norm          3.1714        2.4861       -.30031E-07    .30112E-04
  13  Prefactor     .10000E-03    58.275       -.28409E-05** at limit **
  14  Prefactor     31.595        14.757        .84623E-05    .36591E-05
  15  Prefactor     .10000E-03    2.1764        .61916E-07** at limit **
  16  norm          .10000E-03    2.4670       -.82843E-07** at limit **
  17  Prefactor     .10000E-03    10.534        .24693E-06** at limit **
  18  Prefactor     16.994        18.202        .34563E-06   -.10114E-03
  19  norm          1.0074        1.2619       -.24575E-06   -.14129E-02
  20  Prefactor     31.846        37.915        .26030E-04   -.35909E-05
  21  Prefactor     .10000E-03    23.651       -.40189E-06** at limit **
  22  norm          .10000E-03    4.3382       -.12462E-06** at limit **
  23  norm          .10000E-03    3.2327       -.84860E-07** at limit **
  24  norm          .10000E-03    4.1065        .17465E-06** at limit **
  25  Prefactor     9.9310        28.397        .15878E-05    .16742E-04
  26  Prefactor     19.051        57.773       -.29210E-04   -.64135E-05
  27  norm          .10000E-03    2.8438       -.16651E-06** at limit **
  28  Normalizat    .99638        .17400       -.23336E-05    .12710E-03
  29  Prefactor     .94958        .15978       -.22090E-06   -.36329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26844
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15385
  norm       = 0.745196
  Prefactor  = 0.0001
  Prefactor  = 0.693438
  norm       = 0.000107818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17135
  Prefactor  = 0.0001
  Prefactor  = 31.5952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9936
  norm       = 1.00737
  Prefactor  = 31.8464
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.93095
  Prefactor  = 19.0515
  norm       = 0.0001
  Normalizat = 0.996385
  Prefactor  = 0.949579
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.836     FROM HESSE     STATUS=OK           563 CALLS     3836 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2684        5.2345        .17510E-03   -1.5249    
   2  Prefactor     .10000E-03    2.5930        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8172        .13219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1538        3.6943        .19235E-03   -1.5414    
   5  norm          .74520        .29692        .26273E-04   -1.5535    
   6  Prefactor     .10000E-03    5.7212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .69344        2.3507        .21951E-03   -1.5541    
   8  norm          .10782E-03    15.660        .97352E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1714        2.4819        .10929E-03   -1.5352    
  13  Prefactor     .10000E-03    58.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.595        14.740        .71274E-04   -1.4583    
  15  Prefactor     .10000E-03    2.1842        .11646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4799        .12383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.994        20.029        .97135E-04   -1.4883    
  19  norm          1.0074        1.3385        .62969E-03   -1.5507    
  20  Prefactor     31.846        37.768        .70944E-04   -1.4579    
  21  Prefactor     .10000E-03    24.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3387        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.2665        .28139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.1387        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.9310        25.399        .12673E-03   -1.5078    
  26  Prefactor     19.051        58.153        .91537E-04   -1.4835    
  27  norm          .10000E-03    5.3220        .23821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99638        .20789        .24369E-03   -.93152    
  29  Prefactor     .94958        .19151        .23693E-03   -.94430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51489e-09
Minuit parameter uncertainties:
  1  5.23492
  2  4.40742e-06
  3  3.68639e-06
  4  3.6947
  5  0.296919
  6  1.1994e-05
  7  2.35104
  8  0.022135
  9  5.15932e-06
  10  2.3338e-05
  11  1.25461e-06
  12  2.48198
  13  3.60066e-06
  14  14.7413
  15  1.62577e-06
  16  6.07191e-06
  17  5.71009e-07
  18  20.0365
  19  1.33857
  20  37.7967
  21  4.76078e-05
  22  9.36066e-07
  23  9.29928e-06
  24  4.02984e-05
  25  25.4268
  26  58.3266
  27  7.57987e-06
  28  0.208059
  29  0.19165
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.334e-05  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:  9.496e-01  1.916e-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:  9.964e-01  2.081e-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: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394706/likelihoodResults_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.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) = 6535.8364272
delta logL = -0.000598403075855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6535.83582878
delta logL = 1.84782038559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2104       1.0000          .0000       10.000    
     3 'Normalizat'    .99636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94961       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=   6535.836     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    114.13        .18142E-02** at limit **
   2  Index         2.1400        6.3191        .50000        .14528E-04
   3  Normalizat    .99638        .15327E-01    .24369E-03    .21274E-04
   4  Prefactor     .94958        .14660E-01    .23693E-03    .27254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010163
  Index      = 2.14003
  Normalizat = 0.996383
  Prefactor  = 0.94958
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.836     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10163E-03    465.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1400        5.4293        .50000       -.60893    
   3  Normalizat    .99638        .32774E-01    .97475E-05   -.93152    
   4  Prefactor     .94958        .31349E-01    .94772E-05   -.94430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69104e-08
Minuit parameter uncertainties:
  1  0.0555276
  2  910.619
  3  0.0327751
  4  0.0313491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394706': 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) = 6535.83582852
delta logL = 2.72577381111e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.016e-04  5.553e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.140e+00  9.106e+02  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:  9.496e-01  3.135e-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:  9.964e-01  3.278e-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/394706/cmap_HighResolution_591062401_591321601_4FGL_J2235.8-3627_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-28 16:45:29.749436', job_id='394706', GAL2='0.95', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632872729.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1357' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 394706: <4FGL_J2235.8-3627_daily_bin1357> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1357> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:17 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:18 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:18 2021
Terminated at Tue Sep 28 16:45:31 2021
Results reported at Tue Sep 28 16:45:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1357 338.971 -36.4605 591062401 591321601 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

