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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin620
RA = 338.971, Dec = -36.4605
tmin = 400032001, tmax = 400291201
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='389803', job_status='RUN', time_executed='2021-09-28 16:17:03.582698', time_epoch_executed='1632871023.58' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389803/ft1_4FGL_J2235.8-3627_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389803/ft1_4FGL_J2235.8-3627_daily_bin620.fits outfile=/scratch/kocevski/389803/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin620.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.35
user 4.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.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/389803/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin620.fits evtable="EVENTS" outfile="/scratch/kocevski/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/389803/ltcube_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.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/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits
.....................!
real 11.67
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/389803/ltcube_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.fits outfile=/scratch/kocevski/389803/expmap_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.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/389803/ltcube_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.fits
.....................!
real 190.51
user 185.59
sys 4.61

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/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits outfile=/scratch/kocevski/389803/cmap_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits outfile=/scratch/kocevski/389803/cmap_HighResolution_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/389803/ft2_4FGL_J2235.8-3627_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389803/Model_4FGL_J2235.8-3627_daily_bin620.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/389803/ft1_filtered_4FGL_J2235.8-3627_daily_bin620.fits.....................!
real 39.46
user 38.20
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.897       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.029       1.0000         .10000E-03   10000.    
     4 'norm      '    20.986       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10589E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16568E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2824       1.0000         .10000E-03   10000.    
    19 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0302       1.0000         .10000E-03   10000.    
    22 'norm      '    .65701E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    8.8037       1.0000         .10000E-03   10000.    
    24 'norm      '    9.0119       1.0000         .10000E-03   10000.    
    25 'Prefactor '    64.924       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    18.007       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86233       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0430       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=   4637.059     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4278 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.898        15.245        .17737E-02   -.67458E-03
   2  Prefactor     .10000E-03    10.626        .90712E-02** at limit **
   3  norm          15.030        11.428        .25829E-02    .61657E-03
   4  norm          20.984        9.9761        .21858E-02    .46623E-03
   5  norm          1.2506        .55044        .69448E-02    .43191E-04
   6  Prefactor     .10000E-03    9.7219        .90712E-02** at limit **
   7  Prefactor     .10001E-03    2.3538        .56872E-01** at limit **
   8  norm          20.872        18.143        .21914E-02   -.16309E-02
   9  Prefactor     .10000E-03    24.001        .90712E-02** at limit **
  10  Prefactor     17.251        16.981        .24107E-02   -.25417E-03
  11  Prefactor     .10000E-03    7.6741        .90712E-02** at limit **
  12  norm          .10000E-03    1.3872        .90712E-02** at limit **
  13  Prefactor     62.832        59.227        .12651E-02   -.69370E-03
  14  Prefactor     .10000E-03    8.2036        .10195    ** at limit **
  15  Prefactor     .10000E-03    6.3085        .90712E-02** at limit **
  16  norm          .10000E-03    1.7512        .90712E-02** at limit **
  17  Prefactor     13.366        13.002        .27388E-02    .54182E-03
  18  Prefactor     4.2780        11.129        .48672E-02    .75925E-03
  19  norm          .10000E-03    .39045        .20383E-01** at limit **
  20  Prefactor     .10000E-03    16.736        .90712E-02** at limit **
  21  Prefactor     6.0263        12.912        .40877E-02    .44100E-03
  22  norm          .10028E-03    22.815        .11879    ** at limit **
  23  norm          8.8022        9.0439        .33773E-02    .86134E-03
  24  norm          9.0112        9.7317        .33378E-02    .35699E-03
  25  Prefactor     64.934        58.416        .12452E-02   -.35258E-03
  26  Prefactor     .10002E-03    36.744        .90712E-02** at limit **
  27  norm          18.007        9.2708        .23596E-02   -.64755E-03
  28  Normalizat    .86251        .23089        .44418E-01   -.34824E-03
  29  Prefactor     1.0429        .21418        .40337E-01   -.30386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.898
  Prefactor  = 0.000100002
  norm       = 15.0297
  norm       = 20.9844
  norm       = 1.25062
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  norm       = 20.872
  Prefactor  = 0.000100004
  Prefactor  = 17.2513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.8315
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3661
  Prefactor  = 4.27803
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.02634
  norm       = 0.000100285
  norm       = 8.80217
  norm       = 9.0112
  Prefactor  = 64.9336
  Prefactor  = 0.000100015
  norm       = 18.0074
  Normalizat = 0.862508
  Prefactor  = 1.04289
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.059     FROM HESSE     STATUS=OK           553 CALLS     4831 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.898        15.220        .70947E-04   -1.4578    
   2  Prefactor     .10000E-03    10.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.030        11.431        .10331E-03   -1.4932    
   4  norm          20.984        9.9984        .87434E-04   -1.4791    
   5  norm          1.2506        .55163        .30692E-04   -1.5484    
   6  Prefactor     .10000E-03    9.8583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    10.157        .19901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.872        18.143        .87658E-04   -1.4794    
   9  Prefactor     .10000E-03    24.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.251        16.978        .96426E-04   -1.4877    
  11  Prefactor     .10000E-03    7.6797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3971        .77757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.832        58.748        .50603E-04   -1.4121    
  14  Prefactor     .10000E-03    69.495        .36974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4066        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7581        .87917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.366        12.949        .10955E-03   -1.4977    
  18  Prefactor     4.2780        10.304        .19469E-03   -1.5294    
  19  norm          .10000E-03    .55249        .73796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0263        12.731        .16351E-03   -1.5217    
  22  norm          .10028E-03    26.765        .10472       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.8022        9.0511        .67545E-03   -1.5115    
  24  norm          9.0112        9.7273        .13351E-03   -1.5108    
  25  Prefactor     64.934        58.525        .49806E-04   -1.4095    
  26  Prefactor     .10002E-03    36.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          18.007        9.2921        .94383E-04   -1.4859    
  28  Normalizat    .86251        .26326        .27887E-03   -.97790    
  29  Prefactor     1.0429        .24988        .24795E-03   -.91313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14099e-08
Minuit parameter uncertainties:
  1  15.222
  2  0.000290021
  3  11.4326
  4  9.99916
  5  0.551636
  6  0.000153902
  7  0.000662067
  8  18.1474
  9  0.000608495
  10  16.9828
  11  2.42668e-05
  12  3.57684e-06
  13  58.802
  14  0.00115233
  15  4.27905e-05
  16  2.16249e-05
  17  12.9513
  18  10.3084
  19  4.53542e-06
  20  0.000360903
  21  12.7362
  22  0.00552608
  23  9.05254
  24  9.72904
  25  58.5774
  26  0.00150047
  27  9.2928
  28  0.26365
  29  0.25016
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.725e+01  1.698e+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.043e+00  2.502e-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:  8.625e-01  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/389803/likelihoodResults_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.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) = 4637.04355963
delta logL = 0.015033111581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4637.03787648
delta logL = 0.0207162606021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.386       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0725       1.0000          .0000       10.000    
     3 'Normalizat'    .86629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0402       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=   4637.038     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      222 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.388        21.233        .90967E-04   -.75096E-03
   2  Index         2.0722        .75234        .86314E-02   -.25613E-03
   3  Normalizat    .86628        .25226        .27829E-03    .21014E-03
   4  Prefactor     1.0402        .24533        .24821E-03    .27153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3883
  Index      = 2.0722
  Normalizat = 0.866283
  Prefactor  = 1.04022
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.038     FROM HESSE     STATUS=OK            23 CALLS      245 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.388        20.866        .18193E-04   -1.4827    
   2  Index         2.0722        .73945        .34526E-03   -.62557    
   3  Normalizat    .86628        .25247        .11132E-04   -.97655    
   4  Prefactor     1.0402        .24555        .49641E-04   -.91401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30135e-09
Minuit parameter uncertainties:
  1  20.8735
  2  0.743617
  3  0.252811
  4  0.245814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389803': 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) = 4637.03787638
delta logL = 0.0207163630957

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.939e+01  2.087e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.072e+00  7.436e-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.040e+00  2.458e-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:  8.663e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.07 +/- 0.74
Photon Flux (Free Index): 2.16e-08 +/- 2.45e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.85e-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/389803/cmap_HighResolution_400032001_400291201_4FGL_J2235.8-3627_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.26e-05', photon_flux_error='2.37e-08', dlogl='2.07e-02', energy_flux='1.03e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-09-28 16:28:44.110045', photon_index_error2='0.74', photon_index2='2.07', ts='1.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='1.85e-05', EG='0.86', time_epoch_completed='1632871724.11', return_code='0', job_id='389803', GAL2='1.04', EG2='0.87', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.45e-08', ts2='1.92', photon_index='2.23' WHERE bin_id='620' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:28:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 389803: <4FGL_J2235.8-3627_daily_bin620> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin620> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:15:41 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:15:43 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:15:43 2021
Terminated at Tue Sep 28 16:28:44 2021
Results reported at Tue Sep 28 16:28:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin620 338.971 -36.4605 400032001 400291201 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

