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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1046
RA = 338.971, Dec = -36.4605
tmin = 510451201, tmax = 510710401
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='393489', job_status='RUN', time_executed='2021-09-28 16:26:35.218273', time_epoch_executed='1632871595.22' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393489/ft1_4FGL_J2235.8-3627_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393489/ft1_4FGL_J2235.8-3627_daily_bin1046.fits outfile=/scratch/kocevski/393489/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1046.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=510451201.0 tmax=510710401.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.95
user 3.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/393489/ltcube_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.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/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits
.....................!
real 12.43
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/393489/ltcube_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.fits outfile=/scratch/kocevski/393489/expmap_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.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/393489/ltcube_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.fits
.....................!
real 191.52
user 186.34
sys 4.46

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/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits scfile=/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits outfile=/scratch/kocevski/393489/cmap_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits scfile=/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits outfile=/scratch/kocevski/393489/cmap_HighResolution_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/393489/ft2_4FGL_J2235.8-3627_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393489/Model_4FGL_J2235.8-3627_daily_bin1046.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/393489/ft1_filtered_4FGL_J2235.8-3627_daily_bin1046.fits.....................!
real 45.86
user 44.34
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6616       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7908       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5470       1.0000         .10000E-03   10000.    
     8 'norm      '    22.590       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.987       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3552       1.0000         .10000E-03   10000.    
    19 'norm      '    .34597       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.836       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4711       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7021       1.0000         .10000E-03   10000.    
    24 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9765       1.0000         .10000E-03   10000.    
    27 'norm      '    4.9045       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87183       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=   5778.053     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3692 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.170        10.362        .73191E-07    .26784E-04
   2  Prefactor     1.6639        10.681        .28097E-06   -.19248E-04
   3  norm          .10000E-03    2.7447        .19128E-07** at limit **
   4  norm          6.7894        6.3293        .10081E-05   -.37254E-03
   5  norm          2.0556        .55482       -.43599E-07   -.22818E-05
   6  Prefactor     .10000E-03    2.2287        .14500E-07** at limit **
   7  Prefactor     3.5452        4.0346        .11804E-05   -.70077E-03
   8  norm          22.585        26.304        .66452E-06    .20293E-05
   9  Prefactor     .10000E-03    25.808        .18502E-05** at limit **
  10  Prefactor     15.716        15.695        .13283E-06   -.36492E-04
  11  Prefactor     .10000E-03    18.408        .70673E-06** at limit **
  12  norm          2.3628        2.0042        .20942E-07    .32092E-04
  13  Prefactor     .10000E-03    28.279       -.11452E-05** at limit **
  14  Prefactor     .10000E-03    5.6691       -.17362E-08** at limit **
  15  Prefactor     16.984        9.5952       -.43370E-07   -.64592E-04
  16  norm          5.4799        4.5240        .71418E-07   -.66318E-04
  17  Prefactor     .10000E-03    9.9828        .23705E-06** at limit **
  18  Prefactor     2.3677        12.770       -.16473E-05   -.17856E-03
  19  norm          .34473        .63626        .43580E-06    .20878E-02
  20  Prefactor     23.821        58.097        .22981E-05   -.74101E-05
  21  Prefactor     8.4670        10.625       -.22778E-06   -.24925E-04
  22  norm          .10000E-03    7.1317       -.10189E-07** at limit **
  23  norm          3.7021        3.7655       -.41108E-08    .43898E-04
  24  norm          .10000E-03    2.9346       -.32173E-07** at limit **
  25  Prefactor     .10000E-03    20.091       -.15282E-05** at limit **
  26  Prefactor     1.7386        439.17        .40103E-05   -.17042E-05
  27  norm          4.9039        4.0635        .15766E-06    .10322E-03
  28  Normalizat    1.1083        .19789       -.54527E-06   -.20450E-04
  29  Prefactor     .87146        .18530       -.49434E-06   -.41945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.17
  Prefactor  = 1.66391
  norm       = 0.0001
  norm       = 6.78941
  norm       = 2.05565
  Prefactor  = 0.0001
  Prefactor  = 3.54523
  norm       = 22.5853
  Prefactor  = 0.0001
  Prefactor  = 15.7156
  Prefactor  = 0.0001
  norm       = 2.36283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.984
  norm       = 5.47986
  Prefactor  = 0.0001
  Prefactor  = 2.36768
  norm       = 0.34473
  Prefactor  = 23.8214
  Prefactor  = 8.46702
  norm       = 0.0001
  norm       = 3.7021
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7386
  norm       = 4.9039
  Normalizat = 1.10825
  Prefactor  = 0.871465
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.053     FROM HESSE     STATUS=OK           563 CALLS     4255 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.170        10.309        .11482E-03   -1.5010    
   2  Prefactor     1.6639        10.648        .32726E-03   -1.5450    
   3  norm          .10000E-03    2.7497        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7894        6.3133        .76985E-03   -1.5187    
   5  norm          2.0556        .55722        .27053E-04   -1.5421    
   6  Prefactor     .10000E-03    2.2344        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5452        4.0396        .76486E-03   -1.5331    
   8  norm          22.585        26.239        .84275E-04   -1.4757    
   9  Prefactor     .10000E-03    25.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.716        15.704        .50511E-03   -1.4915    
  11  Prefactor     .10000E-03    18.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3628        2.0056        .95529E-04   -1.5401    
  13  Prefactor     .10000E-03    28.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7706        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.984        9.6045        .97177E-04   -1.4883    
  16  norm          5.4799        4.4392        .12533E-03   -1.5240    
  17  Prefactor     .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3677        11.310        .26707E-03   -1.5400    
  19  norm          .34473        .58350        .65879E-03   -1.5591    
  20  Prefactor     23.821        57.691        .82046E-04   -1.4731    
  21  Prefactor     8.4670        10.412        .13773E-03   -1.5126    
  22  norm          .10000E-03    7.1342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7021        3.7718        .14250E-03   -1.5323    
  24  norm          .10000E-03    2.9405        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7386        446.00        .29487E-03   -1.5444    
  27  norm          4.9039        4.0610        .13235E-03   -1.5265    
  28  Normalizat    1.1083        .23818        .24282E-03   -.89487    
  29  Prefactor     .87146        .22210        .26375E-03   -.97145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2261e-09
Minuit parameter uncertainties:
  1  10.3108
  2  8.42039
  3  9.33165e-07
  4  6.3139
  5  0.55722
  6  7.49694e-07
  7  4.03993
  8  26.2528
  9  2.66731e-05
  10  15.7078
  11  3.36919e-05
  12  2.00568
  13  2.23915e-05
  14  5.29765e-07
  15  9.60541
  16  4.4395
  17  4.20526e-05
  18  10.3523
  19  0.583511
  20  57.827
  21  10.4141
  22  5.0107e-07
  23  3.77202
  24  3.10137e-06
  25  1.46708e-05
  26  56.1186
  27  4.06122
  28  0.238411
  29  0.222329
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.572e+01  1.571e+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:  8.715e-01  2.223e-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.108e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 9.36e-06 +/- 9.36e-06

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

Saving results to:
/scratch/kocevski/393489/likelihoodResults_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.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) = 5778.03690609
delta logL = 0.0165494142275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.03264885
delta logL = 0.0208066526575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.335       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0864       1.0000          .0000       10.000    
     3 'Normalizat'    1.1113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86954       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=   5778.033     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.336        18.800        .96195E-04   -.88046E-04
   2  Index         2.0864        .69698        .96707E-02   -.55379E-04
   3  Normalizat    1.1113        .21853        .24252E-03    .33049E-04
   4  Prefactor     .86955        .21370        .26399E-03    .36002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3355
  Index      = 2.08638
  Normalizat = 1.11132
  Prefactor  = 0.869554
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.033     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.336        18.469        .38478E-05   -1.4875    
   2  Index         2.0864        .68492        .38683E-03   -.62208    
   3  Normalizat    1.1113        .21872        .97007E-05   -.89389    
   4  Prefactor     .86955        .21390        .10560E-04   -.97213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04126e-10
Minuit parameter uncertainties:
  1  18.4747
  2  0.688205
  3  0.218902
  4  0.214105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393489': 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) = 5778.03264884
delta logL = 0.0208066593614

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.734e+01  1.847e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.086e+00  6.882e-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:  8.696e-01  2.141e-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.111e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.09 +/- 0.69
Photon Flux (Free Index): 1.97e-08 +/- 2.31e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.51e-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/393489/cmap_HighResolution_510451201_510710401_4FGL_J2235.8-3627_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='1.11e-05', photon_flux_error='2.20e-08', dlogl='2.08e-02', energy_flux='9.36e-06', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-28 16:39:25.290655', photon_index_error2='0.69', photon_index2='2.09', ts='1.81', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.81e-08', energy_flux_error2='1.51e-05', EG='1.11', time_epoch_completed='1632872365.29', return_code='0', job_id='393489', GAL2='0.87', EG2='1.11', return_code2='0', energy_flux_error='9.36e-06', photon_flux_error2='2.31e-08', ts2='1.84', photon_index='2.23' WHERE bin_id='1046' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 393489: <4FGL_J2235.8-3627_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1046 338.971 -36.4605 510451201 510710401 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

