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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin560
RA = 338.971, Dec = -36.4605
tmin = 384480001, tmax = 384739201
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='389700', job_status='RUN', time_executed='2021-09-28 16:17:40.269137', time_epoch_executed='1632871060.27' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389700/ft1_4FGL_J2235.8-3627_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389700/ft1_4FGL_J2235.8-3627_daily_bin560.fits outfile=/scratch/kocevski/389700/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin560.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=384480001.0 tmax=384739201.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.16
user 2.95
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/389700/ltcube_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.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/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits
.....................!
real 9.78
user 9.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/389700/ltcube_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.fits outfile=/scratch/kocevski/389700/expmap_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.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/389700/ltcube_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.fits
.....................!
real 153.02
user 148.54
sys 4.20

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/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits scfile=/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits outfile=/scratch/kocevski/389700/cmap_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.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.47
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits scfile=/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits outfile=/scratch/kocevski/389700/cmap_HighResolution_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.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.47
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/389700/ft2_4FGL_J2235.8-3627_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389700/Model_4FGL_J2235.8-3627_daily_bin560.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/389700/ft1_filtered_4FGL_J2235.8-3627_daily_bin560.fits.....................!
real 38.93
user 37.79
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.348       1.0000         .10000E-03   10000.    
     3 'norm      '    11.654       1.0000         .10000E-03   10000.    
     4 'norm      '    26.132       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0107       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5062       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14542E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .61637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4204       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3267       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.249       1.0000         .10000E-03   10000.    
    19 'norm      '    .39837       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.912       1.0000         .10000E-03   10000.    
    23 'norm      '    .11771E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.570       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.2543       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67518       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=   5779.076     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3719 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1517        .88259E-08** at limit **
   2  Prefactor     21.351        12.748        .56052E-07   -.90062E-05
   3  norm          11.654        7.8867        .29927E-07   -.11229E-04
   4  norm          26.132        7.8949        .12983E-07   -.19496E-04
   5  norm          1.5572        .52646        .31754E-08   -.50469E-04
   6  Prefactor     .44800        5.8973        .23982E-06   -.12179E-03
   7  Prefactor     4.0103        3.3040        .49896E-07   -.40424E-04
   8  norm          .10000E-03    8.7066        .26304E-06** at limit **
   9  Prefactor     .10000E-03    14.031        .24392E-06** at limit **
  10  Prefactor     4.4918        34.355        .50686E-06   -.54179E-04
  11  Prefactor     .10000E-03    42.837        .13473E-05** at limit **
  12  norm          .61690        1.6369        .74062E-06    .22106E-03
  13  Prefactor     .10000E-03    26.703       -.40739E-06** at limit **
  14  Prefactor     9.4174        11.491       -.15235E-07   -.40142E-04
  15  Prefactor     5.3266        6.3737        .16885E-06   -.63880E-04
  16  norm          9.6561        5.6225       -.11283E-06    .26089E-04
  17  Prefactor     .10000E-03    7.7827       -.14032E-07** at limit **
  18  Prefactor     20.234        13.141       -.11100E-05   -.75764E-04
  19  norm          .39903        .69735        .64959E-06    .96627E-03
  20  Prefactor     .10000E-03    20.883       -.32190E-07** at limit **
  21  Prefactor     .10000E-03    7.0512        .68256E-07** at limit **
  22  norm          13.910        16.992        .30864E-07    .99959E-06
  23  norm          .10003E-03    4.6655       -.10788E-05** at limit **
  24  norm          10.562        11.399        .10381E-07    .86981E-05
  25  Prefactor     .10000E-03    10.247       -.83406E-07** at limit **
  26  Prefactor     .10000E-03    69.833       -.86441E-06** at limit **
  27  norm          1.2563        2.6639       -.10959E-06    .77118E-03
  28  Normalizat    1.3786        .21281        .11305E-06   -.85692E-04
  29  Prefactor     .67498        .19635       -.52221E-06    .34041E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.3508
  norm       = 11.6542
  norm       = 26.1319
  norm       = 1.55721
  Prefactor  = 0.448001
  Prefactor  = 4.01033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49176
  Prefactor  = 0.000100001
  norm       = 0.616901
  Prefactor  = 0.0001
  Prefactor  = 9.41736
  Prefactor  = 5.32661
  norm       = 9.6561
  Prefactor  = 0.0001
  Prefactor  = 20.2337
  norm       = 0.399032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9103
  norm       = 0.000100028
  norm       = 10.5623
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.25627
  Normalizat = 1.37858
  Prefactor  = 0.674976
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.076     FROM HESSE     STATUS=OK           565 CALLS     4284 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1943        .16838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.351        12.743        .86689E-04   -1.4783    
   3  norm          11.654        7.8873        .11735E-03   -1.5025    
   4  norm          26.132        7.9185        .78364E-04   -1.4685    
   5  norm          1.5572        .52749        .29423E-04   -1.5458    
   6  Prefactor     .44800        17.985        .34638E-02   -1.5574    
   7  Prefactor     4.0103        3.3107        .12049E-03   -1.5307    
   8  norm          .10000E-03    8.7190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4918        34.331        .18966E-03   -1.5284    
  11  Prefactor     .10000E-03    43.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .61690        1.4376        .15994E-02   -1.5551    
  13  Prefactor     .10000E-03    26.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4174        11.521        .13057E-03   -1.5094    
  15  Prefactor     5.3266        6.3668        .17414E-03   -1.5246    
  16  norm          9.6561        5.6304        .12580E-03   -1.5086    
  17  Prefactor     .10000E-03    7.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.234        13.144        .89009E-04   -1.4808    
  19  norm          .39903        .66486        .73817E-03   -1.5582    
  20  Prefactor     .10000E-03    20.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.910        16.990        .10738E-03   -1.4962    
  23  norm          .10003E-03    10.671        .27393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.562        11.421        .12324E-03   -1.5058    
  25  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    70.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.2563        2.3652        .15908E-03   -1.5484    
  28  Normalizat    1.3786        .26267        .23833E-03   -.81250    
  29  Prefactor     .67498        .23848        .31004E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2155e-08
Minuit parameter uncertainties:
  1  2.12843e-07
  2  12.7442
  3  7.88804
  4  7.91886
  5  0.527492
  6  5.67834
  7  3.31081
  8  7.19877e-05
  9  8.68292e-05
  10  24.8554
  11  0.000501621
  12  1.43769
  13  0.000225468
  14  11.5232
  15  6.36763
  16  5.63071
  17  4.67305e-05
  18  13.1462
  19  0.664872
  20  1.15201e-05
  21  3.31201e-06
  22  16.996
  23  0.00108398
  24  11.4229
  25  2.68887e-05
  26  0.000646031
  27  2.36538
  28  0.262932
  29  0.238845
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.492e+00  2.486e+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:  6.750e-01  2.388e-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.379e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/389700/likelihoodResults_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.86532561
delta logL = 0.210567216446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.85672725
delta logL = 0.21916558109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5795       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0053       1.0000          .0000       10.000    
     3 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5778.857     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      261 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5836        17.381        .17008E-03    .28789E-03
   2  Index         3.0049        1.4360        .86635E-02    .10263E-03
   3  Normalizat    1.3480        .25146        .24064E-03    .15364E-02
   4  Prefactor     .69037        .23440        .30682E-03    .93066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58357
  Index      = 3.00488
  Normalizat = 1.34798
  Prefactor  = 0.690375
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.857     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5836        13.648        .68032E-05   -1.5235    
   2  Index         3.0049        1.1340        .34654E-03   -.41045    
   3  Normalizat    1.3480        .25183        .48128E-04   -.82145    
   4  Prefactor     .69037        .23465        .61364E-04   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74436e-09
Minuit parameter uncertainties:
  1  13.6558
  2  1.14588
  3  0.252059
  4  0.234985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389700': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.85672717
delta logL = 0.219165655401

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.584e+00  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.005e+00  1.146e+00  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:  6.904e-01  2.350e-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.348e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 338.971 -36.461

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/389700/cmap_HighResolution_384480001_384739201_4FGL_J2235.8-3627_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-28 16:28:13.645773', job_id='389700', GAL2='0.69', fit_tolerance='1e-08', EG2='1.35', EG='1.38', time_epoch_completed='1632871693.65', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.19e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='560' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:28:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 389700: <4FGL_J2235.8-3627_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin560 338.971 -36.4605 384480001 384739201 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 :                                   632.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

