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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1074
RA = 338.971, Dec = -36.4605
tmin = 517708801, tmax = 517968001
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='393539', job_status='RUN', time_executed='2021-09-28 16:26:14.054225', time_epoch_executed='1632871574.05' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393539/ft1_4FGL_J2235.8-3627_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393539/ft1_4FGL_J2235.8-3627_daily_bin1074.fits outfile=/scratch/kocevski/393539/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1074.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=517708801.0 tmax=517968001.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.69
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.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/393539/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.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/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/393539/ltcube_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.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/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits
.....................!
real 12.10
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/393539/ltcube_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.fits outfile=/scratch/kocevski/393539/expmap_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.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/393539/ltcube_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.fits
.....................!
real 190.79
user 185.53
sys 4.91

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/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.fits scfile=/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits outfile=/scratch/kocevski/393539/cmap_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/393539/ft2_4FGL_J2235.8-3627_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393539/Model_4FGL_J2235.8-3627_daily_bin1074.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/393539/ft1_filtered_4FGL_J2235.8-3627_daily_bin1074.fits.....................!
real 47.35
user 46.05
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19764E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16130E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3686       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2957       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.055       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.740       1.0000         .10000E-03   10000.    
    22 'norm      '    22.447       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5485       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62455       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=   5754.846     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3207 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17822E-03    6.8396        .14818E-06** at limit **
   2  Prefactor     .10000E-03    4.3036        .74600E-07** at limit **
   3  norm          .10000E-03    9.5628        .32070E-05** at limit **
   4  norm          .10000E-03    3.1280        .21789E-07** at limit **
   5  norm          3.3448        .59985        .19373E-08   -.34636E-03
   6  Prefactor     .10000E-03    22.751        .88589E-05** at limit **
   7  Prefactor     .10005E-03    2.1101       -.36210E-06** at limit **
   8  norm          .10000E-03    30.421       -.34495E-05** at limit **
   9  Prefactor     .10000E-03    31.169       -.40414E-05** at limit **
  10  Prefactor     .10000E-03    13.256        .61830E-05** at limit **
  11  Prefactor     .10000E-03    8.8666       -.11352E-05** at limit **
  12  norm          3.0594        2.5011        .11584E-07   -.88137E-04
  13  Prefactor     .10000E-03    36.461       -.39539E-05** at limit **
  14  Prefactor     .10000E-03    11.568       -.15740E-05** at limit **
  15  Prefactor     1.3643        9.5131       -.25594E-05   -.62609E-03
  16  norm          3.2942        3.4753       -.39701E-07   -.91016E-04
  17  Prefactor     15.049        11.994       -.51209E-07    .52447E-04
  18  Prefactor     .10000E-03    6.4963        .69165E-08** at limit **
  19  norm          .10000E-03    .42478       -.68849E-07** at limit **
  20  Prefactor     .10000E-03    38.740        .68041E-05** at limit **
  21  Prefactor     13.729        12.952        .79842E-06    .46492E-04
  22  norm          22.441        21.455        .50926E-05    .20429E-05
  23  norm          .10000E-03    1.7451       -.22119E-07** at limit **
  24  norm          .10000E-03    4.0871       -.94083E-07** at limit **
  25  Prefactor     .10000E-03    11.247       -.41321E-05** at limit **
  26  Prefactor     .10000E-03    19.725       -.19897E-05** at limit **
  27  norm          .10000E-03    1.3343       -.20496E-07** at limit **
  28  Normalizat    1.5485        .19472       -.59894E-07   -.14662E-03
  29  Prefactor     .62492        .18268       -.11607E-05   -.80865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000178217
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.34478
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36427
  norm       = 3.29423
  Prefactor  = 15.0494
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7292
  norm       = 22.4406
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.54849
  Prefactor  = 0.624924
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.846     FROM HESSE     STATUS=OK           553 CALLS     3760 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17822E-03    9.3770        .55378E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3800        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.6799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1598        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3448        .59994        .24055E-04   -1.5342    
   6  Prefactor     .10000E-03    23.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    17.106        .21014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0594        2.4935        .10510E-03   -1.5358    
  13  Prefactor     .10000E-03    36.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3643        10.517        .37280E-03   -1.5474    
  16  norm          3.2942        3.4598        .13875E-03   -1.5345    
  17  Prefactor     15.049        11.859        .10323E-03   -1.4932    
  18  Prefactor     .10000E-03    6.5305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7394        .86670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.729        12.081        .10806E-03   -1.4967    
  22  norm          22.441        21.292        .84543E-04   -1.4760    
  23  norm          .10000E-03    1.7460        .97871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.0961        .14977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3362        .85574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5485        .22947        .22161E-03   -.76425    
  29  Prefactor     .62492        .21526        .30780E-03   -1.0655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70437e-09
Minuit parameter uncertainties:
  1  0.0541727
  2  3.69887e-06
  3  2.98006e-06
  4  1.96324e-06
  5  0.599939
  6  0.000144561
  7  0.00191202
  8  6.25394e-05
  9  3.74077e-05
  10  1.17652e-05
  11  6.80741e-06
  12  2.49362
  13  1.08574e-05
  14  1.57367e-05
  15  7.57744
  16  3.46003
  17  11.8605
  18  7.78729e-06
  19  3.40056e-06
  20  1.53434e-05
  21  12.0833
  22  21.2995
  23  3.92928e-07
  24  2.6261e-06
  25  1.92513e-06
  26  3.84408e-06
  27  6.55912e-07
  28  0.229627
  29  0.215543
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.177e-05  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.249e-01  2.155e-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.548e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/393539/likelihoodResults_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.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) = 5754.84597209
delta logL = -0.000360469837688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5754.84561161
delta logL = 4.23915480496e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2223       1.0000          .0000       10.000    
     3 'Normalizat'    1.5485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62493       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5754.846     FROM MIGRAD    STATUS=FAILED        86 CALLS      227 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    42.293        .18142E-02** at limit **
   2  Index         2.1392        5.4356        .98597E-02    .20658E-05
   3  Normalizat    1.5485        .22862        .22161E-03   -.24265E-04
   4  Prefactor     .62492        .21263        .30780E-03   -.11044E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5754.846     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      351 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    42.293        .62261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1392        5.4356        .41472E-03   -.60915    
   3  Normalizat    1.5485        .22862        .30283E-04   -.76425    
   4  Prefactor     .62492        .21263        .50916E-04   -1.0655    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5754.846     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      378 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.537        .36285E-03** at limit **
   2  Index         2.0707        8.8512        .19719E-02    .95702E-07
   3  Normalizat    1.5485        .22887        .88646E-05    .36679E-04
   4  Prefactor     .62492        .21286        .12312E-04    .20314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.07069
  Normalizat = 1.54849
  Prefactor  = 0.624924
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.846     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.535        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0707        8.7457        .39439E-03   -.62594    
   3  Normalizat    1.5485        .22958        .17729E-05   -.76425    
   4  Prefactor     .62492        .21352        .24624E-05   -1.0655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34188e-10
Minuit parameter uncertainties:
  1  0.000209763
  2  374.704
  3  0.229735
  4  0.213798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393539': 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) = 5754.84561153
delta logL = 9.00054146769e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.098e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.071e+00  3.747e+02  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.249e-01  2.138e-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.548e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/393539/cmap_HighResolution_517708801_517968001_4FGL_J2235.8-3627_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-28 16:38:31.202416', job_id='393539', GAL2='0.62', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1632872311.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='9.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1074' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 393539: <4FGL_J2235.8-3627_daily_bin1074> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1074 338.971 -36.4605 517708801 517968001 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 :                                   734.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

