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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1020
RA = 338.971, Dec = -36.4605
tmin = 503712001, tmax = 503971201
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='393447', job_status='RUN', time_executed='2021-09-28 16:26:10.396048', time_epoch_executed='1632871570.4' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393447/ft1_4FGL_J2235.8-3627_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393447/ft1_4FGL_J2235.8-3627_daily_bin1020.fits outfile=/scratch/kocevski/393447/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1020.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.67
user 5.41
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.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/393447/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/393447/ltcube_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.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/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits
.....................!
real 12.38
user 12.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/393447/ltcube_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.fits outfile=/scratch/kocevski/393447/expmap_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.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/393447/ltcube_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.fits
.....................!
real 189.58
user 185.04
sys 3.92

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/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.fits scfile=/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits outfile=/scratch/kocevski/393447/cmap_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/393447/ft2_4FGL_J2235.8-3627_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393447/Model_4FGL_J2235.8-3627_daily_bin1020.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/393447/ft1_filtered_4FGL_J2235.8-3627_daily_bin1020.fits.....................!
real 51.29
user 49.86
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54049E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3280       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2735       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25520E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    34.198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7153       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.321       1.0000         .10000E-03   10000.    
    19 'norm      '    .85128E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.089       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.2091       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.1547       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80085       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=   6518.647     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3188 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87207E-01    6.3538       -.76028E-06   -.93446E-05
   2  Prefactor     .10005E-03    7.9540        .21318E-05** at limit **
   3  norm          4.3297        6.7947        .17690E-06    .12822E-03
   4  norm          4.2729        5.0655        .20091E-06    .68842E-04
   5  norm          1.2713        .39611       -.50086E-10    .13325E-03
   6  Prefactor     2.5923        8.0683        .51223E-05   -.50683E-04
   7  Prefactor     .10000E-03    3.2768        .50595E-06** at limit **
   8  norm          34.176        18.022        .29575E-06    .30427E-03
   9  Prefactor     .10000E-03    24.085        .11831E-07** at limit **
  10  Prefactor     .10000E-03    19.361        .10115E-06** at limit **
  11  Prefactor     .10000E-03    6.1344        .22020E-08** at limit **
  12  norm          .10000E-03    .47400        .86217E-09** at limit **
  13  Prefactor     .10000E-03    18.158        .16143E-06** at limit **
  14  Prefactor     17.837        10.183        .68558E-07    .57509E-04
  15  Prefactor     .10000E-03    3.8657       -.19090E-07** at limit **
  16  norm          .10000E-03    .86389       -.21066E-07** at limit **
  17  Prefactor     6.7135        12.828        .13749E-07    .15368E-03
  18  Prefactor     11.320        11.869        .60293E-06    .36107E-03
  19  norm          .84937E-01    .59153       -.77571E-07   -.14050E-03
  20  Prefactor     .10000E-03    13.254       -.35261E-08** at limit **
  21  Prefactor     13.087        11.591        .13492E-06    .21662E-03
  22  norm          .10000E-03    11.839       -.13242E-07** at limit **
  23  norm          .10000E-03    3.1671       -.70826E-06** at limit **
  24  norm          5.2045        8.7217       -.18154E-06   -.97946E-04
  25  Prefactor     10.432        78.791       -.12983E-04    .64312E-04
  26  Prefactor     .10000E-03    20.752       -.28187E-06** at limit **
  27  norm          2.1449        10.531        .55350E-05    .22319E-03
  28  Normalizat    1.1687        .19577       -.26126E-05    .16227E-04
  29  Prefactor     .80129        .17055        .16064E-05   -.47937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0872071
  Prefactor  = 0.000100046
  norm       = 4.32973
  norm       = 4.27293
  norm       = 1.27134
  Prefactor  = 2.59231
  Prefactor  = 0.000100002
  norm       = 34.1756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8372
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.71346
  Prefactor  = 11.3201
  norm       = 0.0849367
  Prefactor  = 0.0001
  Prefactor  = 13.0869
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.20451
  Prefactor  = 10.4324
  Prefactor  = 0.0001
  norm       = 2.1449
  Normalizat = 1.16869
  Prefactor  = 0.801287
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.647     FROM HESSE     STATUS=OK           567 CALLS     3755 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87207E-01    14.193        .54999E-01   -1.5649    
   2  Prefactor     .10005E-03    37.951        .38366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3297        6.7919        .19363E-03   -1.5292    
   4  norm          4.2729        5.0950        .17088E-03   -1.5295    
   5  norm          1.2713        .39890        .24975E-04   -1.5482    
   6  Prefactor     2.5923        8.1541        .12655E-02   -1.5386    
   7  Prefactor     .10000E-03    20.958        .27651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.176        18.048        .34263E-03   -1.4538    
   9  Prefactor     .10000E-03    24.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .47654        .54267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.837        10.202        .94822E-04   -1.4863    
  15  Prefactor     .10000E-03    3.8890        .15501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .86484        .73220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7135        12.656        .15484E-03   -1.5190    
  18  Prefactor     11.320        11.259        .11906E-03   -1.5035    
  19  norm          .84937E-01    .79084        .82433E-03   -1.5650    
  20  Prefactor     .10000E-03    13.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.087        11.489        .11072E-03   -1.4984    
  22  norm          .10000E-03    11.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.2059        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.2045        8.7187        .17613E-03   -1.5252    
  25  Prefactor     10.432        79.297        .12445E-03   -1.5062    
  26  Prefactor     .10000E-03    20.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1449        10.626        .28067E-03   -1.5415    
  28  Normalizat    1.1687        .23104        .24427E-03   -.87576    
  29  Prefactor     .80129        .20312        .26484E-03   -.99681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44476e-08
Minuit parameter uncertainties:
  1  2.2243
  2  0.00264115
  3  6.79311
  4  5.09547
  5  0.398899
  6  8.15755
  7  0.00036516
  8  18.0505
  9  2.30217e-05
  10  3.96396e-05
  11  1.46802e-06
  12  1.47483e-07
  13  0.000121093
  14  10.2026
  15  7.80891e-07
  16  1.4716e-06
  17  12.6612
  18  11.2609
  19  0.518053
  20  5.24243e-06
  21  11.4912
  22  1.22871e-05
  23  6.01157e-05
  24  8.72082
  25  57.6305
  26  0.000165638
  27  9.55045
  28  0.231243
  29  0.203306
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.964e-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:  8.013e-01  2.033e-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.169e+00  2.312e-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: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393447/likelihoodResults_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.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) = 6518.64739086
delta logL = -0.000244893436502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6518.64714621
delta logL = -2.42376700044e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1369       1.0000          .0000       10.000    
     3 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80130       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.

 FCN=   6518.647     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2154.8        .90712E-02** at limit **
   2  Index         2.1577        7.8315        .50000       -.97163E-05
   3  Normalizat    1.1687        .61172E-01    .55242E-01    .28137E-04
   4  Prefactor     .80129        .56202E-01    .43734E-01    .34560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15766
  Normalizat = 1.16869
  Prefactor  = 0.801288
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.647     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1577        5.4819        .50000       -.60464    
   3  Normalizat    1.1687        .20897        .24427E-03   -.87576    
   4  Prefactor     .80129        .19227        .26484E-03   -.99681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79126e-10
Minuit parameter uncertainties:
  1  0.000140243
  2  6.87669
  3  0.209115
  4  0.192432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393447': 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) = 6518.64714614
delta logL = -1.70393832377e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.402e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.158e+00  6.877e+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:  8.013e-01  1.924e-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.169e+00  2.091e-01  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/393447/cmap_HighResolution_503712001_503971201_4FGL_J2235.8-3627_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-28 16:39:04.016735', job_id='393447', GAL2='0.80', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632872344.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1020' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 393447: <4FGL_J2235.8-3627_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1020> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:23 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:24 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:24 2021
Terminated at Tue Sep 28 16:39:04 2021
Results reported at Tue Sep 28 16:39:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1020 338.971 -36.4605 503712001 503971201 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 :                                   769.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

