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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1262
RA = 338.971, Dec = -36.4605
tmin = 566438401, tmax = 566697601
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='393833', job_status='RUN', time_executed='2021-09-28 16:27:21.183748', time_epoch_executed='1632871641.18' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393833

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393833/ft1_4FGL_J2235.8-3627_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393833/ft1_4FGL_J2235.8-3627_daily_bin1262.fits outfile=/scratch/kocevski/393833/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1262.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=566438401.0 tmax=566697601.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.19
user 1.98
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393833/ft1_filtered_4FGL_J2235.8-3627_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/393833/ltcube_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.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/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits
.....................!
real 15.35
user 15.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393833/ft1_filtered_4FGL_J2235.8-3627_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/393833/ltcube_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.fits outfile=/scratch/kocevski/393833/expmap_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.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/393833/ltcube_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.fits
.....................!
real 192.93
user 187.26
sys 5.34

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/393833/ft1_filtered_4FGL_J2235.8-3627_daily_bin1262.fits scfile=/scratch/kocevski/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits outfile=/scratch/kocevski/393833/cmap_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393833/ft1_filtered_4FGL_J2235.8-3627_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/393833/ft2_4FGL_J2235.8-3627_daily_bin1262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393833/Model_4FGL_J2235.8-3627_daily_bin1262.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/393833/ft1_filtered_4FGL_J2235.8-3627_daily_bin1262.fits.....................!
real 48.39
user 47.07
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6328       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1009       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6027       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26500E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8666       1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.873       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24514E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.195       1.0000         .10000E-03   10000.    
    19 'norm      '    .68951       1.0000         .10000E-03   10000.    
    20 'Prefactor '    87.119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7241       1.0000         .10000E-03   10000.    
    23 'norm      '    5.8715       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2118       1.0000         .10000E-03   10000.    
    25 'Prefactor '    71.198       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .25203E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83510       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0763       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=   6232.624     FROM MIGRAD    STATUS=CONVERGED   1323 CALLS     4438 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.004        16.034        .94415E-04    .73451E-04
   2  Prefactor     8.6280        15.572        .13643E-03    .31249E-04
   3  norm          8.1006        8.8872        .14087E-03    .42855E-04
   4  norm          1.6020        4.6574        .27576E-03    .29313E-04
   5  norm          2.9792        .62491        .26948E-04    .68512E-03
   6  Prefactor     .10017E-03    34.985        .41514E-02** at limit **
   7  Prefactor     3.8673        4.5930        .85308E-03   -.21996E-03
   8  norm          .10000E-03    7.4472        .18142E-02** at limit **
   9  Prefactor     43.923        59.470        .60526E-04    .20860E-03
  10  Prefactor     48.206        28.218        .57788E-04    .38099E-03
  11  Prefactor     .10575E-03    19.714        .97121E-01** at limit **
  12  norm          .10000E-03    .84985        .70682E-03** at limit **
  13  Prefactor     64.366        45.034        .50022E-04    .52136E-04
  14  Prefactor     .10000E-03    2.7247        .12718E-02** at limit **
  15  Prefactor     .10000E-03    2.0671        .11074E-02** at limit **
  16  norm          .10000E-03    1.1221        .81536E-03** at limit **
  17  Prefactor     .40515        80.080        .40479E-02    .58539E-04
  18  Prefactor     30.168        13.064        .72913E-04    .34926E-03
  19  norm          .68935        .67025        .51493E-04    .12827E-03
  20  Prefactor     87.153        71.809        .43044E-04    .15081E-03
  21  Prefactor     .10000E-03    3.8013        .14997E-02** at limit **
  22  norm          5.7230        11.031        .16788E-03    .15710E-04
  23  norm          5.8685        5.2196        .16014E-03    .57005E-03
  24  norm          6.2115        6.5924        .16107E-03    .24824E-03
  25  Prefactor     71.207        40.612        .47576E-04    .63787E-03
  26  Prefactor     .10000E-03    20.265        .18142E-02** at limit **
  27  norm          .10018E-03    50.318        .22382E-02** at limit **
  28  Normalizat    .83430        .23920        .28857E-03    .87410E-03
  29  Prefactor     1.0773        .22580        .25571E-03    .79566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0039
  Prefactor  = 8.62803
  norm       = 8.10062
  norm       = 1.60197
  norm       = 2.97923
  Prefactor  = 0.00010017
  Prefactor  = 3.86727
  norm       = 0.0001
  Prefactor  = 43.9231
  Prefactor  = 48.2055
  Prefactor  = 0.000105755
  norm       = 0.0001
  Prefactor  = 64.3665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.405154
  Prefactor  = 30.168
  norm       = 0.689351
  Prefactor  = 87.1533
  Prefactor  = 0.0001
  norm       = 5.72303
  norm       = 5.86855
  norm       = 6.21155
  Prefactor  = 71.2069
  Prefactor  = 0.0001
  norm       = 0.000100178
  Normalizat = 0.834304
  Prefactor  = 1.07732
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.624     FROM HESSE     STATUS=OK           537 CALLS     4975 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.004        16.034        .37766E-05   -1.4859    
   2  Prefactor     8.6280        15.572        .54572E-05   -1.5120    
   3  norm          8.1006        8.8874        .56346E-05   -1.5139    
   4  norm          1.6020        4.6563        .11030E-04   -1.5455    
   5  norm          2.9792        .62482        .10779E-05   -1.5363    
   6  Prefactor     .10017E-03    35.411        .83027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8673        4.5905        .34123E-04   -1.5315    
   8  norm          .10000E-03    7.4477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.923        59.477        .12105E-04   -1.4382    
  10  Prefactor     48.206        28.222        .11558E-04   -1.4318    
  11  Prefactor     .10575E-03    18.165        .10414       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .84987        .14136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.366        45.029        .10004E-04   -1.4102    
  14  Prefactor     .10000E-03    2.7248        .25437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0672        .22147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1221        .16307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40515        74.163        .16191E-03   -1.5581    
  18  Prefactor     30.168        12.644        .29165E-05   -1.4609    
  19  norm          .68935        .67015        .20597E-05   -1.5542    
  20  Prefactor     87.153        71.811        .86088E-05   -1.3838    
  21  Prefactor     .10000E-03    3.8017        .29994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7230        11.031        .67154E-05   -1.5229    
  23  norm          5.8685        5.2173        .32029E-04   -1.5223    
  24  norm          6.2115        6.5921        .64427E-05   -1.5209    
  25  Prefactor     71.207        40.335        .95152E-05   -1.4018    
  26  Prefactor     .10000E-03    20.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10018E-03    50.920        .89529E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83430        .23899        .57714E-04   -.98809    
  29  Prefactor     1.0773        .22575        .51141E-04   -.90195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07437e-08
Minuit parameter uncertainties:
  1  16.0378
  2  15.5797
  3  8.88883
  4  4.65734
  5  0.624821
  6  0.00490564
  7  4.59094
  8  4.47366e-06
  9  59.5577
  10  28.2301
  11  0.0204544
  12  1.86082e-06
  13  45.053
  14  2.3748e-06
  15  4.15914e-06
  16  1.02822e-06
  17  10.9755
  18  12.6448
  19  0.670157
  20  71.8827
  21  3.2108e-06
  22  11.0352
  23  5.21774
  24  6.59282
  25  40.3509
  26  2.90623e-05
  27  0.00602741
  28  0.23929
  29  0.225953
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.821e+01  2.823e+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.077e+00  2.260e-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.343e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.68e-05

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) = 6232.19841416
delta logL = 0.425509551157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6232.18735409
delta logL = 0.436569619054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.672       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6944       1.0000          .0000       10.000    
     3 'Normalizat'    .79372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1026       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=   6232.187     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      280 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.668        29.478        .70103E-04    .43193E-03
   2  Index         2.6946        .57384        .46763E-02    .18680E-03
   3  Normalizat    .79379        .22771        .29510E-03   -.31709E-03
   4  Prefactor     1.1025        .22325        .25310E-03   -.45466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6682
  Index      = 2.69461
  Normalizat = 0.793793
  Prefactor  = 1.10254
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.187     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.668        27.133        .14021E-04   -1.4564    
   2  Index         2.6946        .52781        .18705E-03   -.47921    
   3  Normalizat    .79379        .22756        .11804E-04   -1.0030    
   4  Prefactor     1.1025        .22315        .50620E-04   -.89385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85599e-10
Minuit parameter uncertainties:
  1  27.1435
  2  0.529058
  3  0.227833
  4  0.22334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393833': 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) = 6232.18735385
delta logL = 0.436569864253

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.267e+01  2.714e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.695e+00  5.291e-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.103e+00  2.233e-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:  7.938e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.76
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.69 +/- 0.53
Photon Flux (Free Index): 9.71e-08 +/- 5.58e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.27e-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/393833/cmap_HighResolution_566438401_566697601_4FGL_J2235.8-3627_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='2.35e-05', photon_flux_error='3.95e-08', dlogl='4.37e-01', energy_flux='2.87e-05', photon_flux2='9.71e-08', job_status='DONE', time_completed='2021-09-28 16:39:57.153651', photon_index_error2='0.53', photon_index2='2.69', ts='5.89', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.83', time_epoch_completed='1632872397.15', return_code='0', job_id='393833', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.58e-08', ts2='6.76', photon_index='2.23' WHERE bin_id='1262' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 393833: <4FGL_J2235.8-3627_daily_bin1262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1262 338.971 -36.4605 566438401 566697601 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 :                                   755.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

