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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1321
RA = 338.971, Dec = -36.4605
tmin = 581731201, tmax = 581990401
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='393921', job_status='RUN', time_executed='2021-09-28 16:28:28.593747', time_epoch_executed='1632871708.59' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393921

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393921/ft1_4FGL_J2235.8-3627_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393921/ft1_4FGL_J2235.8-3627_daily_bin1321.fits outfile=/scratch/kocevski/393921/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1321.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=581731201.0 tmax=581990401.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.54
user 2.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.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/393921/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/393921/ft1_filtered_4FGL_J2235.8-3627_daily_bin1321.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393921/ft1_filtered_4FGL_J2235.8-3627_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/393921/ltcube_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.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/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits
.....................!
real 12.67
user 12.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393921/ft1_filtered_4FGL_J2235.8-3627_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/393921/ltcube_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.fits outfile=/scratch/kocevski/393921/expmap_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.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/393921/ltcube_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.fits
.....................!
real 191.55
user 187.34
sys 3.86

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/393921/ft1_filtered_4FGL_J2235.8-3627_daily_bin1321.fits scfile=/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits outfile=/scratch/kocevski/393921/cmap_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393921/ft1_filtered_4FGL_J2235.8-3627_daily_bin1321.fits scfile=/scratch/kocevski/393921/ft2_4FGL_J2235.8-3627_daily_bin1321.fits outfile=/scratch/kocevski/393921/cmap_HighResolution_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    3.2847       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4934       1.0000         .10000E-03   10000.    
     5 'norm      '    .76957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2488       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.346       1.0000         .10000E-03   10000.    
    12 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .84269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5146       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.580       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2154       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10814E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5913       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.004       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0580       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1002       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0984       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=   5416.580     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3725 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.372       -.20317E-06** at limit **
   2  Prefactor     3.2848        12.515        .95052E-06    .31350E-04
   3  norm          .10000E-03    11.096       -.21762E-06** at limit **
   4  norm          1.4935        4.7396        .96850E-07    .16761E-04
   5  norm          .76957        .36592       -.68847E-08    .30532E-03
   6  Prefactor     .10000E-03    2.9173       -.57737E-07** at limit **
   7  Prefactor     4.2489        3.2082        .93192E-07    .58028E-04
   8  norm          .10000E-03    6.0212       -.73312E-07** at limit **
   9  Prefactor     .10000E-03    36.274       -.11667E-05** at limit **
  10  Prefactor     24.551        23.711       -.15353E-06    .56237E-04
  11  Prefactor     13.339        28.010        .14011E-05    .15143E-04
  12  norm          .10000E-03    1.2853        .36255E-06** at limit **
  13  Prefactor     65.526        55.278       -.96024E-06    .82012E-04
  14  Prefactor     .10000E-03    12.790       -.21984E-06** at limit **
  15  Prefactor     .10000E-03    2.0382       -.39152E-07** at limit **
  16  norm          .84391        2.7638       -.15562E-05   -.60921E-03
  17  Prefactor     .10000E-03    14.081        .18910E-06** at limit **
  18  Prefactor     1.5189        25.929        .10822E-04   -.90735E-04
  19  norm          2.9787        1.1943       -.26533E-06    .92520E-04
  20  Prefactor     38.579        49.996        .33908E-06    .17417E-05
  21  Prefactor     6.2066        16.563       -.24138E-05   -.51498E-04
  22  norm          .10000E-03    6.3251        .13131E-06** at limit **
  23  norm          .10000E-03    3.4384        .23306E-06** at limit **
  24  norm          .10009E-03    15.131       -.91860E-05** at limit **
  25  Prefactor     6.6348        81.304       -.12231E-04   -.97429E-04
  26  Prefactor     19.016        46.418       -.12603E-06    .48613E-04
  27  norm          1.0586        6.0242        .40249E-05   -.25812E-03
  28  Normalizat    1.0999        .22721       -.58460E-05   -.21428E-03
  29  Prefactor     1.0987        .20982        .51698E-05    .33463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.28484
  norm       = 0.0001
  norm       = 1.49347
  norm       = 0.769566
  Prefactor  = 0.0001
  Prefactor  = 4.24895
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5511
  Prefactor  = 13.3392
  norm       = 0.0001
  Prefactor  = 65.5265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.843913
  Prefactor  = 0.0001
  Prefactor  = 1.51887
  norm       = 2.97866
  Prefactor  = 38.5788
  Prefactor  = 6.20659
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100088
  Prefactor  = 6.63478
  Prefactor  = 19.0158
  norm       = 1.05862
  Normalizat = 1.09989
  Prefactor  = 1.09874
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.580     FROM HESSE     STATUS=OK           553 CALLS     4278 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2848        12.494        .11171E-02   -1.5345    
   3  norm          .10000E-03    11.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4935        4.7133        .26454E-03   -1.5464    
   5  norm          .76957        .36528        .28799E-04   -1.5533    
   6  Prefactor     .10000E-03    2.9232        .12276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2489        3.2089        .11088E-03   -1.5296    
   8  norm          .10000E-03    6.0213        .17637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.551        23.696        .80856E-04   -1.4717    
  11  Prefactor     13.339        28.045        .10964E-03   -1.4977    
  12  norm          .10000E-03    1.3030        .81451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.526        54.920        .49583E-04   -1.4087    
  14  Prefactor     .10000E-03    12.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0401        .10261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .84391        2.7498        .21159E-03   -1.5524    
  17  Prefactor     .10000E-03    14.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5189        30.260        .17370E-02   -1.5461    
  19  norm          2.9787        1.2129        .37853E-04   -1.5363    
  20  Prefactor     38.579        50.020        .64529E-04   -1.4465    
  21  Prefactor     6.2066        16.707        .16102E-03   -1.5210    
  22  norm          .10000E-03    6.3254        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.7164        .26020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10009E-03    40.423        .35407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6348        90.966        .15631E-03   -1.5193    
  26  Prefactor     19.016        46.454        .91876E-04   -1.4836    
  27  norm          1.0586        8.0703        .15636E-02   -1.5502    
  28  Normalizat    1.0999        .27137        .26222E-03   -.89755    
  29  Prefactor     1.0987        .25647        .25746E-03   -.89507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95614e-09
Minuit parameter uncertainties:
  1  8.79012e-05
  2  12.5044
  3  0.000126968
  4  4.71444
  5  0.36528
  6  7.87057e-06
  7  3.20905
  8  1.9153e-05
  9  8.61916e-05
  10  23.7056
  11  28.073
  12  3.47341e-05
  13  54.9625
  14  0.000154993
  15  5.09357e-06
  16  2.75024
  17  0.000117971
  18  13.5663
  19  1.21294
  20  50.0749
  21  16.7193
  22  6.22536e-06
  23  0.000111095
  24  0.00377066
  25  49.2248
  26  46.5425
  27  5.84661
  28  0.271715
  29  0.256761
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.455e+01  2.371e+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:  1.099e+00  2.568e-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.100e+00  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/393921/likelihoodResults_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.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) = 5416.57794749
delta logL = 0.00177352073388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5416.57730245
delta logL = 0.00241855861987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.615       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2771       1.0000          .0000       10.000    
     3 'Normalizat'    1.0982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1000       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=   5416.577     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      277 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.626        27.528        .82428E-04    .43721E-04
   2  Index         2.2768        .71257        .82663E-02    .23913E-03
   3  Normalizat    1.0982        .25269        .26241E-03   -.41808E-04
   4  Prefactor     1.0999        .24803        .25733E-03   -.25624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6259
  Index      = 2.27681
  Normalizat = 1.09817
  Prefactor  = 1.09994
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.577     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.626        26.692        .32971E-05   -1.4735    
   2  Index         2.2768        .69089        .16533E-02   -.57596    
   3  Normalizat    1.0982        .25291        .10496E-04   -.89811    
   4  Prefactor     1.0999        .24825        .10293E-04   -.89468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87507e-11
Minuit parameter uncertainties:
  1  26.7054
  2  0.694051
  3  0.253184
  4  0.248506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393921': 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) = 5416.57730212
delta logL = 0.00241888914934

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.363e+01  2.671e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.277e+00  6.941e-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:  1.100e+00  2.485e-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.098e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.28 +/- 0.69
Photon Flux (Free Index): 3.55e-08 +/- 3.73e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.63e-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/393921/cmap_HighResolution_581731201_581990401_4FGL_J2235.8-3627_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.40e-05', photon_flux_error='3.31e-08', dlogl='2.42e-03', energy_flux='1.46e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-28 16:40:38.125518', photon_index_error2='0.69', photon_index2='2.28', ts='2.24', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.63e-05', EG='1.10', time_epoch_completed='1632872438.13', return_code='0', job_id='393921', GAL2='1.10', EG2='1.10', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.73e-08', ts2='2.24', photon_index='2.23' WHERE bin_id='1321' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 393921: <4FGL_J2235.8-3627_daily_bin1321> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1321> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:06 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:26:08 2021
Terminated at Tue Sep 28 16:40:38 2021
Results reported at Tue Sep 28 16:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1321 338.971 -36.4605 581731201 581990401 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 :                                   722.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

