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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1338
RA = 338.971, Dec = -36.4605
tmin = 586137601, tmax = 586396801
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='393949', job_status='RUN', time_executed='2021-09-28 16:27:12.072320', time_epoch_executed='1632871632.07' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393949

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393949/ft1_4FGL_J2235.8-3627_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393949/ft1_4FGL_J2235.8-3627_daily_bin1338.fits outfile=/scratch/kocevski/393949/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1338.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=586137601.0 tmax=586396801.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 4.53
user 4.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/393949/ltcube_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.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/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits
.....................!
real 10.13
user 9.70
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/393949/ltcube_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.fits outfile=/scratch/kocevski/393949/expmap_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.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/393949/ltcube_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.fits
.....................!
real 191.41
user 186.72
sys 4.36

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/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits scfile=/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits outfile=/scratch/kocevski/393949/cmap_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits scfile=/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits outfile=/scratch/kocevski/393949/cmap_HighResolution_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/393949/ft2_4FGL_J2235.8-3627_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393949/Model_4FGL_J2235.8-3627_daily_bin1338.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/393949/ft1_filtered_4FGL_J2235.8-3627_daily_bin1338.fits.....................!
real 35.19
user 33.81
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.616       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0357       1.0000         .10000E-03   10000.    
     5 'norm      '    .87701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3582       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1937       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5327       1.0000         .10000E-03   10000.    
    19 'norm      '    .40061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.100       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    190.84       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0092       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61321       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=   3947.922     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3770 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    9.9418        .15565E-05** at limit **
   2  Prefactor     .10000E-03    9.2209        .50142E-07** at limit **
   3  norm          10.616        8.1804       -.10339E-06   -.16090E-03
   4  norm          5.0351        5.5739        .75243E-07   -.93273E-04
   5  norm          .87704        .40108       -.53316E-08   -.12888E-03
   6  Prefactor     .10000E-03    2.5747        .22939E-07** at limit **
   7  Prefactor     .10000E-03    1.0224       -.32671E-09** at limit **
   8  norm          8.5943        20.267       -.31549E-07   -.94667E-05
   9  Prefactor     .10000E-03    16.163       -.14442E-06** at limit **
  10  Prefactor     9.3401        24.217       -.17203E-05   -.13240E-03
  11  Prefactor     .10000E-03    29.145       -.25501E-06** at limit **
  12  norm          .10000E-03    1.0160       -.19648E-07** at limit **
  13  Prefactor     .10000E-03    45.224       -.22021E-05** at limit **
  14  Prefactor     27.658        15.281        .71517E-07    .11007E-04
  15  Prefactor     7.1913        8.2821        .20522E-05   -.50612E-03
  16  norm          .10000E-03    2.0225       -.22001E-07** at limit **
  17  Prefactor     .10000E-03    6.3920        .88830E-07** at limit **
  18  Prefactor     9.5268        12.348       -.15139E-07   -.29114E-04
  19  norm          .40087        .56132        .57182E-08   -.62260E-04
  20  Prefactor     49.096        48.415       -.10399E-05   -.95839E-04
  21  Prefactor     .10000E-03    7.1684       -.66657E-07** at limit **
  22  norm          .10000E-03    6.9473       -.39337E-07** at limit **
  23  norm          .10000E-03    2.1551       -.13050E-07** at limit **
  24  norm          3.9968        5.8125        .11115E-06   -.27892E-05
  25  Prefactor     .10000E-03    81.368        .48169E-07** at limit **
  26  Prefactor     190.82        89.223       -.34553E-05   -.32819E-03
  27  norm          4.0048        4.8916        .59292E-07   -.25858E-04
  28  Normalizat    1.2757        .22993        .64771E-06   -.19017E-03
  29  Prefactor     .61277        .20418       -.10715E-05   -.91642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100123
  Prefactor  = 0.000100004
  norm       = 10.6157
  norm       = 5.03508
  norm       = 0.87704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.59433
  Prefactor  = 0.0001
  Prefactor  = 9.34012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 27.6582
  Prefactor  = 7.19128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.52681
  norm       = 0.400868
  Prefactor  = 49.0956
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.99679
  Prefactor  = 0.0001
  Prefactor  = 190.818
  norm       = 4.00481
  Normalizat = 1.2757
  Prefactor  = 0.612771
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.922     FROM HESSE     STATUS=OK           553 CALLS     4323 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    50.338        .35263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.268        .35498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.616        8.1793        .12297E-03   -1.5056    
   4  norm          5.0351        5.5822        .14632E-03   -1.5259    
   5  norm          .87704        .40323        .25581E-04   -1.5521    
   6  Prefactor     .10000E-03    2.5774        .98461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0245        .62039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5943        20.261        .13672E-03   -1.5122    
   9  Prefactor     .10000E-03    16.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3401        24.593        .13101E-03   -1.5097    
  11  Prefactor     .10000E-03    29.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0191        .61843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.658        15.310        .76174E-04   -1.4656    
  15  Prefactor     7.1913        9.1577        .74777E-03   -1.5172    
  16  norm          .10000E-03    2.0292        .87207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3943        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5268        12.413        .12980E-03   -1.5091    
  19  norm          .40087        .52814        .49007E-03   -1.5581    
  20  Prefactor     49.096        48.648        .57228E-04   -1.4305    
  21  Prefactor     .10000E-03    7.1724        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.9477        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1554        .90056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9968        5.8037        .17786E-03   -1.5308    
  25  Prefactor     .10000E-03    81.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     190.82        95.966        .14618E-03   -1.2936    
  27  norm          4.0048        4.8913        .14820E-03   -1.5308    
  28  Normalizat    1.2757        .28279        .22072E-03   -.84295    
  29  Prefactor     .61277        .24655        .28265E-03   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48927e-09
Minuit parameter uncertainties:
  1  0.00497314
  2  0.000670936
  3  8.18012
  4  5.58282
  5  0.403234
  6  2.55807e-06
  7  7.495e-07
  8  20.277
  9  2.84914e-05
  10  24.62
  11  4.90303e-05
  12  9.84178e-07
  13  0.000687921
  14  15.3123
  15  9.15947
  16  1.09228e-06
  17  1.17433e-05
  18  12.4166
  19  0.528144
  20  48.6874
  21  4.87528e-06
  22  5.0911e-06
  23  8.98677e-07
  24  5.80455
  25  2.56959e-06
  26  96.0449
  27  4.89178
  28  0.283134
  29  0.246989
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  9.340e+00  2.462e+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:  6.128e-01  2.470e-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.276e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393949/likelihoodResults_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.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) = 3947.90654947
delta logL = 0.0154988038162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3947.90498124
delta logL = 0.0170670309608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2177       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4606       1.0000          .0000       10.000    
     3 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61533       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=   3947.905     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      262 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2187        24.106        .13985E-03   -.54952E-04
   2  Index         2.4603        1.3436        .10437E-01   -.26063E-04
   3  Normalizat    1.2713        .26352        .22105E-03    .17959E-03
   4  Prefactor     .61518        .24128        .28212E-03    .13554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21872
  Index      = 2.46035
  Normalizat = 1.27133
  Prefactor  = 0.615183
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.905     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2187        22.715        .55941E-05   -1.5135    
   2  Index         2.4603        1.2681        .41746E-03   -.53278    
   3  Normalizat    1.2713        .26378        .44210E-04   -.84426    
   4  Prefactor     .61518        .24142        .11285E-04   -1.0695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26491e-10
Minuit parameter uncertainties:
  1  22.7388
  2  1.28721
  3  0.264056
  4  0.24183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393949': 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) = 3947.90498103
delta logL = 0.0170672415093

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.219e+00  2.274e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.460e+00  1.287e+00  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:  6.152e-01  2.418e-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.271e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/393949/cmap_HighResolution_586137601_586396801_4FGL_J2235.8-3627_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-28 16:37:34.872625', job_id='393949', GAL2='0.62', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1632872254.87', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.71e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1338' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 393949: <4FGL_J2235.8-3627_daily_bin1338> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1338> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:09 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:11 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:26:11 2021
Terminated at Tue Sep 28 16:37:35 2021
Results reported at Tue Sep 28 16:37:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1338 338.971 -36.4605 586137601 586396801 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

