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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1662
RA = 338.971, Dec = -36.4605
tmin = 670118401, tmax = 670377601
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='124961', job_status='RUN', time_executed='2022-03-31 00:38:39.159922', time_epoch_executed='1648712319.16' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124961/ft1_4FGL_J2235.8-3627_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124961/ft1_4FGL_J2235.8-3627_daily_bin1662.fits outfile=/scratch/kocevski/124961/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1662.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=670118401.0 tmax=670377601.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.49
user 3.22
sys 0.18

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

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

Number of photons that the gtmktime cut: 484

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124961/ltcube_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.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/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits
.....................!
real 12.19
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124961/ltcube_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.fits outfile=/scratch/kocevski/124961/expmap_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.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/124961/ltcube_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.fits
.....................!
real 191.82
user 185.45
sys 4.13

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/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits scfile=/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits outfile=/scratch/kocevski/124961/cmap_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.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.61
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits scfile=/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits outfile=/scratch/kocevski/124961/cmap_HighResolution_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124961/ft2_4FGL_J2235.8-3627_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124961/Model_4FGL_J2235.8-3627_daily_bin1662.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/124961/ft1_filtered_4FGL_J2235.8-3627_daily_bin1662.fits.....................!
real 43.83
user 42.10
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2463       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    37.805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.674       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31525E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .32455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.254       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.639       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6304       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4616       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .39218       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=   5304.223     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3198 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.793        .64094E-05** at limit **
   2  Prefactor     .10000E-03    7.8208       -.26639E-05** at limit **
   3  norm          .10000E-03    3.2631        .73376E-06** at limit **
   4  norm          .10000E-03    2.5316        .12224E-06** at limit **
   5  norm          1.2463        .40537        .25727E-08    .65363E-04
   6  Prefactor     .10000E-03    5.4868       -.35458E-05** at limit **
   7  Prefactor     .10000E-03    1.3476       -.70858E-07** at limit **
   8  norm          37.804        22.865       -.22453E-06   -.28222E-04
   9  Prefactor     99.687        56.994        .10608E-04    .60830E-04
  10  Prefactor     6.8380        26.374       -.52983E-05    .43923E-04
  11  Prefactor     .10000E-03    85.932       -.10924E-04** at limit **
  12  norm          3.1299        2.3875       -.92203E-07   -.39580E-03
  13  Prefactor     .10000E-03    25.244        .25238E-04** at limit **
  14  Prefactor     35.773        16.959        .13926E-05    .86210E-04
  15  Prefactor     .10000E-03    2.2458       -.12303E-06** at limit **
  16  norm          .10000E-03    2.1546       -.47840E-07** at limit **
  17  Prefactor     11.067        12.962       -.17411E-06   -.10895E-03
  18  Prefactor     .10000E-03    4.6618        .23486E-06** at limit **
  19  norm          .32437        .37390       -.23256E-07   -.40169E-03
  20  Prefactor     3.3701        321.83       -.44315E-04    .82128E-06
  21  Prefactor     .10000E-03    3.2140       -.98609E-06** at limit **
  22  norm          .10000E-03    5.8640        .48635E-05** at limit **
  23  norm          .10000E-03    3.3221        .27994E-06** at limit **
  24  norm          15.253        8.9222        .10468E-06    .80716E-04
  25  Prefactor     20.638        24.808       -.38118E-06    .43727E-05
  26  Prefactor     .10000E-03    20.960       -.25897E-04** at limit **
  27  norm          1.6304        3.3991       -.37299E-06   -.63933E-03
  28  Normalizat    1.4617        .20575        .10719E-05    .11069E-03
  29  Prefactor     .39212        .18305       -.12583E-05    .32915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.24627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.804
  Prefactor  = 99.6873
  Prefactor  = 6.83803
  Prefactor  = 0.000100002
  norm       = 3.1299
  Prefactor  = 0.0001
  Prefactor  = 35.7726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0671
  Prefactor  = 0.000100003
  norm       = 0.324368
  Prefactor  = 3.37008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.2532
  Prefactor  = 20.6378
  Prefactor  = 0.0001
  norm       = 1.63035
  Normalizat = 1.46166
  Prefactor  = 0.392119
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.223     FROM HESSE     STATUS=OK           553 CALLS     3751 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1380        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2783        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5605        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2463        .40618        .25591E-04   -1.5485    
   6  Prefactor     .10000E-03    5.5399        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3603        .82534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          37.804        22.858        .65185E-04   -1.4477    
   9  Prefactor     99.687        57.166        .20134E-03   -1.3708    
  10  Prefactor     6.8380        26.464        .15334E-03   -1.5185    
  11  Prefactor     .10000E-03    87.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1299        2.3860        .94514E-04   -1.5354    
  13  Prefactor     .10000E-03    25.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.773        17.048        .67002E-04   -1.4511    
  15  Prefactor     .10000E-03    2.2546        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1750        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.067        12.306        .12042E-03   -1.5042    
  18  Prefactor     .10000E-03    12.910        .27671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .32437        .35843        .43818E-03   -1.5594    
  20  Prefactor     3.3701        324.07        .22009E-03   -1.5341    
  21  Prefactor     .10000E-03    3.2192        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8631        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3522        .12876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.253        8.9318        .10255E-03   -1.4927    
  25  Prefactor     20.638        24.694        .88165E-04   -1.4799    
  26  Prefactor     .10000E-03    20.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6304        3.3402        .17643E-03   -1.5453    
  28  Normalizat    1.4617        .24073        .20424E-03   -.78861    
  29  Prefactor     .39212        .21011        .34338E-03   -1.1721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37978e-10
Minuit parameter uncertainties:
  1  0.000104583
  2  1.83582e-05
  3  2.01378e-06
  4  2.21244e-06
  5  0.406182
  6  1.80169e-05
  7  1.21396e-05
  8  22.863
  9  57.1971
  10  26.5097
  11  0.00076481
  12  2.38608
  13  1.13742e-05
  14  17.0506
  15  7.87232e-06
  16  2.83064e-06
  17  12.3089
  18  0.000369075
  19  0.35843
  20  66.4678
  21  1.72006e-06
  22  3.77347e-07
  23  1.33557e-05
  24  8.93257
  25  24.7066
  26  1.00183e-05
  27  3.34058
  28  0.240921
  29  0.210522
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.838e+00  2.651e+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:  3.921e-01  2.105e-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.462e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124961/likelihoodResults_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.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) = 5302.83434706
delta logL = 1.38818206415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5302.79565693
delta logL = 1.42687219232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6628       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0352       1.0000          .0000       10.000    
     3 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46512       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=   5302.796     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6610        31.162        .62445E-02    .36444E-03
   2  Index         4.0355        2.8074        .10627        .13226E-03
   3  Normalizat    1.3403        .59487E-01    .47799E-01   -.35297E-04
   4  Prefactor     .46519        .54005E-01    .71524E-01    .13125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66102
  Index      = 4.03553
  Normalizat = 1.34033
  Prefactor  = 0.465186
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.796     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6610        55.408        .74102E-04   -1.5382    
   2  Index         4.0355        4.0024        .40357E-02   -.19411    
   3  Normalizat    1.3403        .22818        .21130E-03   -.82370    
   4  Prefactor     .46519        .20739        .31668E-03   -1.1360    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78196e-07
Minuit parameter uncertainties:
  1  24.3103
  2  4.68099
  3  0.228356
  4  0.207726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124961': 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) = 5302.7956566
delta logL = 1.42687252329

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.661e+00  2.431e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  4.036e+00  4.681e+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:  4.652e-01  2.077e-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.340e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 4.04 +/- 4.68
Photon Flux (Free Index): 9.79e-08 +/- 6.75e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/124961/cmap_HighResolution_670118401_670377601_4FGL_J2235.8-3627_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.43e+00', photon_flux2='9.79e-08', job_status='DONE', time_completed='2022-03-31 00:50:14.421418', photon_index_error2='4.68', photon_index2='4.04', ts='0.07', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='1.32e-05', EG='1.46', time_epoch_completed='1648713014.42', return_code='0', job_id='124961', GAL2='0.47', EG2='1.34', return_code2='102', photon_flux_error2='6.75e-08', ts2='3.12', photon_index='2.23' WHERE bin_id='1662' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:50:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 124961: <4FGL_J2235.8-3627_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:28 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:30 2022
Terminated at Thu Mar 31 00:50:15 2022
Results reported at Thu Mar 31 00:50:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1662 338.971 -36.4605 670118401 670377601 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 :                                   691.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

