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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1030
RA = 338.971, Dec = -36.4605
tmin = 506304001, tmax = 506563201
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='393463', job_status='RUN', time_executed='2021-09-28 16:27:17.235449', time_epoch_executed='1632871637.24' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393463

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393463/ft1_4FGL_J2235.8-3627_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393463/ft1_4FGL_J2235.8-3627_daily_bin1030.fits outfile=/scratch/kocevski/393463/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1030.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=506304001.0 tmax=506563201.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.47
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.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/393463/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1030.fits evtable="EVENTS" outfile="/scratch/kocevski/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.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/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/393463/ltcube_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.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/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/393463/ltcube_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.fits outfile=/scratch/kocevski/393463/expmap_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.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/393463/ltcube_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.fits
.....................!
real 191.44
user 185.38
sys 5.74

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/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.fits scfile=/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits outfile=/scratch/kocevski/393463/cmap_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/393463/ft2_4FGL_J2235.8-3627_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393463/Model_4FGL_J2235.8-3627_daily_bin1030.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/393463/ft1_filtered_4FGL_J2235.8-3627_daily_bin1030.fits.....................!
real 50.11
user 48.74
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31357E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6611       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1481       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2933       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7111       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88204       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8100       1.0000         .10000E-03   10000.    
    19 'norm      '    .10818       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0081       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.285       1.0000         .10000E-03   10000.    
    27 'norm      '    .11232E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .62391       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2145       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=   6602.083     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3273 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    4.6118       -.36813E-07** at limit **
   2  Prefactor     3.6633        4.2770        .79846E-07   -.19267E-04
   3  norm          5.1506        5.8682        .95194E-07   -.41320E-04
   4  norm          5.2927        4.7041        .39383E-07   -.11403E-03
   5  norm          1.8080        .43690        .16274E-08   -.24137E-04
   6  Prefactor     .10000E-03    6.7407       -.11818E-07** at limit **
   7  Prefactor     1.7100        2.7609        .16456E-06   -.93720E-04
   8  norm          .10000E-03    8.5465        .38271E-07** at limit **
   9  Prefactor     .43886        16.432       -.10116E-05    .12804E-03
  10  Prefactor     15.694        13.113        .79400E-07    .65478E-05
  11  Prefactor     .10000E-03    21.452        .74644E-07** at limit **
  12  norm          1.7943        2.3355       -.49034E-06   -.66821E-04
  13  Prefactor     17.534        43.942        .49732E-05    .48893E-05
  14  Prefactor     21.768        11.792        .16106E-08   -.10150E-03
  15  Prefactor     .88060        5.3784        .19000E-05   -.24115E-03
  16  norm          .10000E-03    1.8906        .12708E-06** at limit **
  17  Prefactor     10.537        15.014       -.35046E-06   -.30964E-03
  18  Prefactor     8.8050        10.769       -.19037E-05   -.69253E-03
  19  norm          .10813        .71091        .98330E-06   -.91457E-03
  20  Prefactor     .10000E-03    30.575       -.17370E-06** at limit **
  21  Prefactor     9.0052        9.4253       -.73662E-06   -.34847E-03
  22  norm          .10000E-03    7.0661        .12132E-06** at limit **
  23  norm          .10000E-03    1.3783       -.43559E-07** at limit **
  24  norm          10.967        8.2854        .14923E-06   -.16131E-04
  25  Prefactor     11.874        19.937       -.17149E-05   -.82724E-04
  26  Prefactor     26.273        33.020       -.45859E-06   -.21594E-04
  27  norm          .10001E-03    2.4061       -.52485E-06** at limit **
  28  Normalizat    .62404        .17593        .24305E-06   -.12095E-03
  29  Prefactor     1.2146        .17206       -.58396E-06   -.76130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Prefactor  = 3.66333
  norm       = 5.15058
  norm       = 5.29272
  norm       = 1.80804
  Prefactor  = 0.0001
  Prefactor  = 1.71003
  norm       = 0.0001
  Prefactor  = 0.438862
  Prefactor  = 15.6944
  Prefactor  = 0.0001
  norm       = 1.79432
  Prefactor  = 17.5337
  Prefactor  = 21.7679
  Prefactor  = 0.880599
  norm       = 0.0001
  Prefactor  = 10.5368
  Prefactor  = 8.80495
  norm       = 0.108133
  Prefactor  = 0.0001
  Prefactor  = 9.00519
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9673
  Prefactor  = 11.8736
  Prefactor  = 26.2732
  norm       = 0.000100005
  Normalizat = 0.624039
  Prefactor  = 1.21461
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.083     FROM HESSE     STATUS=OK           577 CALLS     3850 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    5.2905        .52321E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6633        4.2714        .17646E-03   -1.5325    
   3  norm          5.1506        5.8668        .17719E-03   -1.5254    
   4  norm          5.2927        4.7148        .15350E-03   -1.5248    
   5  norm          1.8080        .43905        .24672E-04   -1.5439    
   6  Prefactor     .10000E-03    6.8730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7100        2.7297        .16223E-03   -1.5446    
   8  norm          .10000E-03    8.5574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43886        237.53        .62651E-02   -1.5575    
  10  Prefactor     15.694        13.113        .10109E-03   -1.4915    
  11  Prefactor     .10000E-03    21.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7943        2.3476        .11103E-03   -1.5440    
  13  Prefactor     17.534        44.273        .95745E-04   -1.4870    
  14  Prefactor     21.768        11.818        .85839E-04   -1.4775    
  15  Prefactor     .88060        5.2118        .35748E-03   -1.5520    
  16  norm          .10000E-03    1.9123        .10888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.537        15.045        .12343E-03   -1.5059    
  18  Prefactor     8.8050        10.913        .13504E-03   -1.5114    
  19  norm          .10813        1.0333        .87750E-03   -1.5642    
  20  Prefactor     .10000E-03    30.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0052        9.3774        .13354E-03   -1.5108    
  22  norm          .10000E-03    7.0810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3791        .93136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.967        8.2842        .12097E-03   -1.5046    
  25  Prefactor     11.874        20.148        .11635E-03   -1.5019    
  26  Prefactor     26.273        33.028        .78138E-04   -1.4682    
  27  norm          .10001E-03    4.8862        .23816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .62404        .20511        .28626E-03   -1.0697    
  29  Prefactor     1.2146        .20272        .21553E-03   -.85883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83959e-09
Minuit parameter uncertainties:
  1  0.00130023
  2  4.27171
  3  5.86741
  4  4.71509
  5  0.439054
  6  1.2542e-06
  7  2.7299
  8  6.30969e-06
  9  20.4997
  10  13.1154
  11  1.6845e-06
  12  2.34771
  13  44.3556
  14  11.8188
  15  4.28496
  16  4.58652e-06
  17  15.0508
  18  10.9151
  19  0.668227
  20  8.25133e-06
  21  9.37896
  22  5.72465e-06
  23  4.0147e-06
  24  8.28504
  25  20.1591
  26  33.0514
  27  0.000326607
  28  0.205361
  29  0.202849
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.569e+01  1.312e+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.215e+00  2.028e-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:  6.240e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 9.35e-06 +/- 7.81e-06

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

Saving results to:
/scratch/kocevski/393463/likelihoodResults_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.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) = 6601.271938
delta logL = 0.810845414681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.22102546
delta logL = 0.861757959174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.566       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5664       1.0000          .0000       10.000    
     3 'Normalizat'    .63566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2070       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=   6601.221     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.622        18.491        .22080E-02   -.11652E-04
   2  Index         1.5672        .43482        .21839       -.30723E-04
   3  Normalizat    .63602        .16482        .64103E-01    .65367E-05
   4  Prefactor     1.2067        .16884        .34468E-01   -.57971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6218
  Index      = 1.56718
  Normalizat = 0.636022
  Prefactor  = 1.20667
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.221     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.622        17.028        .88320E-04   -1.4799    
   2  Index         1.5672        .46005        .84003E-02   -.75675    
   3  Normalizat    .63602        .19231        .28363E-03   -1.0648    
   4  Prefactor     1.2067        .19750        .21604E-03   -.86126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05371e-12
Minuit parameter uncertainties:
  1  17.0324
  2  0.461289
  3  0.192511
  4  0.197624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393463': 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) = 6601.22101765
delta logL = 0.861765764409

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.062e+01  1.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.567e+00  4.613e-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.207e+00  1.976e-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:  6.360e-01  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.57 +/- 0.46
Photon Flux (Free Index): 1.33e-08 +/- 1.28e-08
Energy Flux (Free Index): 3.35e-05 +/- 4.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/393463/cmap_HighResolution_506304001_506563201_4FGL_J2235.8-3627_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='3.35e-05', photon_flux_error='1.83e-08', dlogl='8.62e-01', energy_flux='9.35e-06', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-09-28 16:40:38.278463', photon_index_error2='0.46', photon_index2='1.57', ts='3.31', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.06e-08', energy_flux_error2='4.28e-05', EG='0.62', time_epoch_completed='1632872438.28', return_code='0', job_id='393463', GAL2='1.21', EG2='0.64', return_code2='0', energy_flux_error='7.81e-06', photon_flux_error2='1.28e-08', ts2='5.04', photon_index='2.23' WHERE bin_id='1030' 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@bullet0047>
Subject: Job 393463: <4FGL_J2235.8-3627_daily_bin1030> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1030 338.971 -36.4605 506304001 506563201 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 :                                   799.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

