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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1603
RA = 338.971, Dec = -36.4605
tmin = 654825601, tmax = 655084801
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='917437', job_status='RUN', time_executed='2021-10-05 00:17:53.199278', time_epoch_executed='1633418273.2' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917437/ft1_4FGL_J2235.8-3627_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917437/ft1_4FGL_J2235.8-3627_daily_bin1603.fits outfile=/scratch/kocevski/917437/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1603.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=654825601.0 tmax=655084801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.96
user 2.77
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.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/917437/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.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/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917437/ltcube_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.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/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits
.....................!
real 12.19
user 11.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917437/ltcube_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.fits outfile=/scratch/kocevski/917437/expmap_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.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/917437/ltcube_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.fits
.....................!
real 191.08
user 185.31
sys 5.43

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/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits outfile=/scratch/kocevski/917437/cmap_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits outfile=/scratch/kocevski/917437/cmap_HighResolution_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917437/ft2_4FGL_J2235.8-3627_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917437/Model_4FGL_J2235.8-3627_daily_bin1603.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/917437/ft1_filtered_4FGL_J2235.8-3627_daily_bin1603.fits.....................!
real 61.38
user 60.09
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9637       1.0000         .10000E-03   10000.    
     4 'norm      '    12.849       1.0000         .10000E-03   10000.    
     5 'norm      '    .78562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84278E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16771E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79591E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    114.94       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6661       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0526       1.0000         .10000E-03   10000.    
    19 'norm      '    .74160E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49919E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5248       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2773       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5393       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3285       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8233.949     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     3260 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9470        1.3060        .59415E-07   -.36055E-02
   2  Prefactor     .10000E-03    2.1044       -.65408E-06** at limit **
   3  norm          4.9632        1.9983       -.11657E-06   -.50968E-03
   4  norm          12.848        4.9486       -.21201E-06   -.11492E-02
   5  norm          .78563        .31791        .46782E-08    .39178E-04
   6  Prefactor     6.5099        1.1276       -.20015E-07    .92774E-03
   7  Prefactor     .78272E-01    33.927        .15468E-05    .15140E-02
   8  norm          1.8433        1.6372        .51772E-07   -.10582E-03
   9  Prefactor     .21683E-03    278.18       -.17820E-04** at limit **
  10  Prefactor     17.273        1.3710        .65321E-07   -.45864E-04
  11  Prefactor     .45565E-01    134.50       -.13079E-04    .24715E-02
  12  norm          1.6782        1.8815       -.20580E-06   -.24484E-03
  13  Prefactor     114.94        1.0821       -.18797E-07    .81440E-03
  14  Prefactor     1.7546        4.8084        .38566E-06    .10168E-02
  15  Prefactor     .10000E-03    13.245        .21500E-05** at limit **
  16  norm          1.6656        2.7921       -.10163E-06   -.27238E-04
  17  Prefactor     .10000E-03    5.9185       -.15139E-06** at limit **
  18  Prefactor     8.0561        1.2886        .13428E-07    .20156E-03
  19  norm          .74544E-01    .63149        .11858E-06    .17032E-03
  20  Prefactor     .10454E-03    8.4555       -.32032E-05** at limit **
  21  Prefactor     .10000E-03    15.480        .21616E-06** at limit **
  22  norm          2.5248        1.1225        .23004E-07    .16276E-03
  23  norm          1.2776        4.4337        .88082E-07    .40903E-03
  24  norm          .10000E-03    1.9691        .40273E-06** at limit **
  25  Prefactor     .10000E-03    8.9356       -.11083E-06** at limit **
  26  Prefactor     .10001E-03    24.305        .27744E-06** at limit **
  27  norm          3.5394        3.6659        .56567E-08   -.48889E-03
  28  Normalizat    1.3287        .20848        .70316E-06    .30366E-03
  29  Prefactor     .94269        .19206        .23120E-06    .25234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94704
  Prefactor  = 0.0001
  norm       = 4.96323
  norm       = 12.8482
  norm       = 0.78563
  Prefactor  = 6.50988
  Prefactor  = 0.0782719
  norm       = 1.8433
  Prefactor  = 0.000216834
  Prefactor  = 17.2735
  Prefactor  = 0.0455646
  norm       = 1.67817
  Prefactor  = 114.936
  Prefactor  = 1.75461
  Prefactor  = 0.0001
  norm       = 1.66562
  Prefactor  = 0.0001
  Prefactor  = 8.05609
  norm       = 0.0745442
  Prefactor  = 0.000104537
  Prefactor  = 0.000100003
  norm       = 2.52476
  norm       = 1.2776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 3.53935
  Normalizat = 1.32871
  Prefactor  = 0.942689
 **********
 **   18 **HESSE 
 **********

 FCN=   8233.949     FROM HESSE     STATUS=OK           651 CALLS     3911 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9470        6.1085        .33498E-02   -1.5110    
   2  Prefactor     .10000E-03    2.1000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9632        5.8169        .45128E-02   -1.5262    
   4  norm          12.848        5.3400        .27937E-02   -1.4991    
   5  norm          .78563        .31838        .69499E-02   -1.5531    
   6  Prefactor     6.5099        5.7144        .39322E-02   -1.5198    
   7  Prefactor     .78272E-01    1.4716        .71524E-01   -1.5652    
   8  norm          1.8433        30.674        .76774E-02   -1.5436    
   9  Prefactor     .21683E-03    313.48        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.273        13.987        .24093E-02   -1.4876    
  11  Prefactor     .45565E-01    11.550        .11094       -1.5665    
  12  norm          1.6782        2.0167        .81317E-02   -1.5449    
  13  Prefactor     114.94        72.331        .93817E-03   -1.3560    
  14  Prefactor     1.7546        20.938        .78992E-02   -1.5443    
  15  Prefactor     .10000E-03    3.5382        .60485E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6656        2.8998        .81678E-02   -1.5450    
  17  Prefactor     .10000E-03    5.9219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0561        11.589        .35322E-02   -1.5140    
  19  norm          .74544E-01    .57775        .18350E-01   -1.5653    
  20  Prefactor     .10454E-03    44.875        .16730       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5248        10.809        .64271E-02   -1.5390    
  23  norm          1.2776        4.4517        .98262E-02   -1.5482    
  24  norm          .10000E-03    1.9669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.9317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    24.355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5394        3.6628        .53715E-02   -1.5332    
  28  Normalizat    1.3287        .17952        .55780E-01   -.82713    
  29  Prefactor     .94269        .16254        .45548E-01   -.94665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26964e-07
Minuit parameter uncertainties:
  1  6.10894
  2  2.60205e-05
  3  5.81754
  4  5.34024
  5  0.318378
  6  5.71484
  7  0.678365
  8  15.0475
  9  0.384782
  10  13.9899
  11  1.44955
  12  2.0168
  13  72.3871
  14  12.1274
  15  4.77268e-06
  16  2.90008
  17  1.14997e-05
  18  11.5925
  19  0.414782
  20  0.0285599
  21  0.000452942
  22  10.4512
  23  4.45286
  24  1.5495e-05
  25  4.92075e-06
  26  0.00101964
  27  3.66306
  28  0.179606
  29  0.162626
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.727e+01  1.399e+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:  9.427e-01  1.626e-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.329e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.34e-06

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) = 8231.50693633
delta logL = 2.442043786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8231.29412648
delta logL = 2.6548536374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8769       1.0000         .10000E-03   10000.    
     2 'Index     '    .96781       1.0000          .0000       10.000    
     3 'Normalizat'    1.3453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93836       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=   8231.294     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8568        6.5749        .38248E-02   -.10364E-03
   2  Index         .96636        .31607        .20742       -.73232E-04
   3  Normalizat    1.3456        .16748        .55469E-01   -.51542E-06
   4  Prefactor     .93821        .15959        .45492E-01    .16053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85678
  Index      = 0.966359
  Normalizat = 1.34557
  Prefactor  = 0.93821
 **********
 **   18 **HESSE 
 **********

 FCN=   8231.294     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8568        11.304        .15299E-03   -1.5184    
   2  Index         .96636        .56520        .87962E-02   -.93859    
   3  Normalizat    1.3456        .19930        .24527E-03   -.82216    
   4  Prefactor     .93821        .18998        .27251E-03   -.94818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3975e-09
Minuit parameter uncertainties:
  1  11.3077
  2  0.568709
  3  0.199413
  4  0.190119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917437': 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) = 8231.29412174
delta logL = 2.65485837047

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.857e+00  1.131e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  9.664e-01  5.687e-01  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.382e-01  1.901e-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.346e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.59
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 0.97 +/- 0.57
Photon Flux (Free Index): 4.96e-09 +/- 5.50e-09
Energy Flux (Free Index): 7.79e-05 +/- 8.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/917437/cmap_HighResolution_654825601_655084801_4FGL_J2235.8-3627_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='7.79e-05', photon_flux_error='1.96e-08', dlogl='2.65e+00', energy_flux='1.03e-05', photon_flux2='4.96e-09', job_status='DONE', time_completed='2021-10-05 00:31:00.716999', photon_index_error2='0.57', photon_index2='0.97', ts='5.29', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='8.71e-05', EG='1.33', time_epoch_completed='1633419060.72', return_code='0', job_id='917437', GAL2='0.94', EG2='1.35', return_code2='0', energy_flux_error='8.34e-06', photon_flux_error2='5.50e-09', ts2='10.59', photon_index='2.23' WHERE bin_id='1603' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 917437: <4FGL_J2235.8-3627_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:32 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:34 2021
Terminated at Tue Oct  5 00:31:01 2021
Results reported at Tue Oct  5 00:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1603 338.971 -36.4605 654825601 655084801 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

