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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1640
RA = 338.971, Dec = -36.4605
tmin = 664416001, tmax = 664675201
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='284908', job_status='RUN', time_executed='2022-01-24 00:44:10.199689', time_epoch_executed='1643013850.2' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284908/ft1_4FGL_J2235.8-3627_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284908/ft1_4FGL_J2235.8-3627_daily_bin1640.fits outfile=/scratch/kocevski/284908/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1640.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=664416001.0 tmax=664675201.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.61
user 3.40
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284908/ltcube_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.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/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits
.....................!
real 12.14
user 11.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284908/ltcube_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.fits outfile=/scratch/kocevski/284908/expmap_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.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/284908/ltcube_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.fits
.....................!
real 192.61
user 186.83
sys 5.46

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/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits scfile=/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits outfile=/scratch/kocevski/284908/cmap_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits scfile=/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits outfile=/scratch/kocevski/284908/cmap_HighResolution_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284908/ft2_4FGL_J2235.8-3627_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284908/Model_4FGL_J2235.8-3627_daily_bin1640.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/284908/ft1_filtered_4FGL_J2235.8-3627_daily_bin1640.fits.....................!
real 38.79
user 37.50
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.023       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6229       1.0000         .10000E-03   10000.    
     4 'norm      '    .12352E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .84289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.234       1.0000         .10000E-03   10000.    
    16 'norm      '    .11973E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18676       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9503       1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.523       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6791       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60208       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=   4329.789     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3712 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4566        12.065        .61352E-06    .34047E-04
   2  Prefactor     11.023        9.5358        .41689E-08    .42063E-05
   3  norm          9.6215        11.215        .17990E-06    .39016E-04
   4  norm          .10000E-03    5.8916       -.57648E-06** at limit **
   5  norm          .10000E-03    .15492       -.33395E-07** at limit **
   6  Prefactor     .10000E-03    6.2963       -.53689E-06** at limit **
   7  Prefactor     .10000E-03    1.7919       -.55434E-07** at limit **
   8  norm          .62354        23.648        .34657E-05   -.25798E-03
   9  Prefactor     .10000E-03    15.304        .43061E-06** at limit **
  10  Prefactor     21.891        34.612        .18683E-05    .19045E-04
  11  Prefactor     .10000E-03    17.924       -.13441E-05** at limit **
  12  norm          .10000E-03    1.2523        .22313E-06** at limit **
  13  Prefactor     70.612        65.429       -.28958E-05   -.81322E-04
  14  Prefactor     6.0765        19.449        .11974E-05    .25926E-05
  15  Prefactor     15.231        9.5371       -.23686E-08    .13991E-05
  16  norm          .10000E-03    2.5128        .33644E-06** at limit **
  17  Prefactor     .10000E-03    8.3122        .55595E-06** at limit **
  18  Prefactor     .10000E-03    6.1064        .53151E-06** at limit **
  19  norm          .18704        .51059       -.51005E-07   -.54128E-03
  20  Prefactor     .10000E-03    31.787        .90462E-06** at limit **
  21  Prefactor     .10000E-03    4.1844        .54488E-07** at limit **
  22  norm          .10000E-03    9.1545       -.59221E-06** at limit **
  23  norm          .10000E-03    2.0588       -.10134E-06** at limit **
  24  norm          1.9343        29.371        .57465E-05    .41870E-04
  25  Prefactor     28.439        51.766        .73430E-05    .36545E-04
  26  Prefactor     .10000E-03    44.390        .35772E-06** at limit **
  27  norm          .10000E-03    2.6956       -.46095E-06** at limit **
  28  Normalizat    1.6803        .25104       -.11025E-06    .43168E-04
  29  Prefactor     .60118        .22237       -.11706E-05   -.12172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.45663
  Prefactor  = 11.0232
  norm       = 9.62147
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.623544
  Prefactor  = 0.0001
  Prefactor  = 21.8912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.6115
  Prefactor  = 6.07647
  Prefactor  = 15.2306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.187036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.93427
  Prefactor  = 28.4389
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.68033
  Prefactor  = 0.601181
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.789     FROM HESSE     STATUS=OK           557 CALLS     4269 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4566        12.063        .68924E-03   -1.5126    
   2  Prefactor     11.023        9.5286        .60334E-03   -1.5044    
   3  norm          9.6215        11.189        .12918E-03   -1.5087    
   4  norm          .10000E-03    15.153        .30049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .17247        .50006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3252        .16128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8075        .86011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .62354        164.87        .56517E-02   -1.5550    
   9  Prefactor     .10000E-03    15.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.891        34.607        .85560E-04   -1.4772    
  11  Prefactor     .10000E-03    17.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2578        .71855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.612        65.469        .23891E-03   -1.4025    
  14  Prefactor     6.0765        19.593        .81299E-03   -1.5215    
  15  Prefactor     15.231        9.5438        .10262E-03   -1.4927    
  16  norm          .10000E-03    5.1060        .19881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1488        .15854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .18704        .44627        .73339E-03   -1.5621    
  20  Prefactor     .10000E-03    31.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1874        .13144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.1584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0599        .92220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9343        29.996        .14858E-02   -1.5430    
  25  Prefactor     28.439        51.680        .75016E-04   -1.4641    
  26  Prefactor     .10000E-03    44.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.7169        .10572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.6803        .30416        .22446E-03   -.72830    
  29  Prefactor     .60118        .26470        .31942E-03   -1.0754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80319e-09
Minuit parameter uncertainties:
  1  12.0667
  2  9.52989
  3  11.1918
  4  0.000385858
  5  8.05609e-07
  6  1.18886e-05
  7  5.96133e-07
  8  20.3333
  9  5.81651e-06
  10  34.6383
  11  4.25435e-05
  12  7.74346e-06
  13  65.5356
  14  19.6138
  15  9.54477
  16  3.26952e-05
  17  1.15446e-05
  18  1.63849e-05
  19  0.446276
  20  1.10323e-05
  21  3.53734e-06
  22  1.27752e-05
  23  5.72615e-06
  24  15.2429
  25  51.7615
  26  3.80196e-06
  27  3.01414e-05
  28  0.304495
  29  0.265255
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.189e+01  3.464e+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.012e-01  2.653e-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.680e+00  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284908/likelihoodResults_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.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) = 4329.78338496
delta logL = 0.00518118719083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4329.78238743
delta logL = 0.00617871999384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.439       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3277       1.0000          .0000       10.000    
     3 'Normalizat'    1.6766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60368       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=   4329.782     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.439        1461.0        .22149E-02    .13595E-03
   2  Index         2.3277        5.5713        .18267        .42915E-04
   3  Normalizat    1.6767        .88027E-01    .50819E-01   -.24108E-05
   4  Prefactor     .60363        .83157E-01    .72027E-01    .20979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.439
  Index      = 2.32774
  Normalizat = 1.67665
  Prefactor  = 0.603632
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.782     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.439        37.179        .88594E-04   -1.4803    
   2  Index         2.3277        .93698        .95079E-02   -.56386    
   3  Normalizat    1.6767        .28621        .22465E-03   -.72928    
   4  Prefactor     .60363        .25735        .31883E-03   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.987e-11
Minuit parameter uncertainties:
  1  37.2212
  2  0.944829
  3  0.286488
  4  0.257855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284908': 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) = 4329.78238741
delta logL = 0.00617873696319

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.044e+01  3.722e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.328e+00  9.448e-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:  6.036e-01  2.579e-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.677e+00  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/284908/cmap_HighResolution_664416001_664675201_4FGL_J2235.8-3627_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2022-01-24 00:54:45.995285', job_id='284908', GAL2='0.60', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1643014486.0', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='6.18e-03', ts2='0.51', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1640' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:54:46 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 284908: <4FGL_J2235.8-3627_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:22 2022
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:24 2022
Terminated at Mon Jan 24 00:54:46 2022
Results reported at Mon Jan 24 00:54:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1640 338.971 -36.4605 664416001 664675201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

