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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1286
RA = 338.971, Dec = -36.4605
tmin = 572659201, tmax = 572918401
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='393865', job_status='RUN', time_executed='2021-09-28 16:26:35.460774', time_epoch_executed='1632871595.46' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393865/ft1_4FGL_J2235.8-3627_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393865/ft1_4FGL_J2235.8-3627_daily_bin1286.fits outfile=/scratch/kocevski/393865/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1286.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=572659201.0 tmax=572918401.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.62
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/393865/ltcube_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.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/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits
.....................!
real 13.99
user 13.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/393865/ltcube_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.fits outfile=/scratch/kocevski/393865/expmap_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.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/393865/ltcube_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.fits
.....................!
real 190.51
user 185.02
sys 5.17

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/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits scfile=/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits outfile=/scratch/kocevski/393865/cmap_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits scfile=/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits outfile=/scratch/kocevski/393865/cmap_HighResolution_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.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/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/393865/ft2_4FGL_J2235.8-3627_daily_bin1286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393865/Model_4FGL_J2235.8-3627_daily_bin1286.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/393865/ft1_filtered_4FGL_J2235.8-3627_daily_bin1286.fits.....................!
real 41.44
user 40.13
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.415       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3625       1.0000         .10000E-03   10000.    
     8 'norm      '    95.469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.019       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13909E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.661       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2692       1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .89747       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.280       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3611       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4826.210     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     3136 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9980       -.14796E-05** at limit **
   2  Prefactor     .10000E-03    2.6116        .10996E-06** at limit **
   3  norm          .10000E-03    2.2530        .39617E-06** at limit **
   4  norm          12.413        8.5321       -.92377E-05   -.98495E-03
   5  norm          1.9886        .60525        .42741E-06   -.91658E-03
   6  Prefactor     .10000E-03    5.7964       -.54281E-07** at limit **
   7  Prefactor     1.3626        3.4453       -.91932E-06   -.16794E-03
   8  norm          95.400        11.860       -.65940E-07   -.13859E-01
   9  Prefactor     .10001E-03    107.40        .12872E-04** at limit **
  10  Prefactor     .10000E-03    7.6358        .25925E-05** at limit **
  11  Prefactor     .10004E-03    57.367       -.28616E-04** at limit **
  12  norm          2.1839        2.2407       -.17308E-06   -.11439E-03
  13  Prefactor     .10000E-03    27.407        .16035E-05** at limit **
  14  Prefactor     6.4405        1.2792        .31659E-06   -.12042E-05
  15  Prefactor     .10000E-03    4.1404       -.21735E-07** at limit **
  16  norm          .10000E-03    6.9407       -.78198E-06** at limit **
  17  Prefactor     .10000E-03    10.187        .42453E-06** at limit **
  18  Prefactor     12.030        1.7955        .89009E-06    .74119E-04
  19  norm          2.2065        .97754       -.31057E-06   -.12238E-02
  20  Prefactor     .10001E-03    33.774       -.65776E-05** at limit **
  21  Prefactor     .10005E-03    49.047        .27119E-04** at limit **
  22  norm          10.676        2.9675        .11260E-05    .30062E-03
  23  norm          5.2701        5.3325        .54371E-05   -.19727E-04
  24  norm          .10000E-03    3.3101       -.30156E-06** at limit **
  25  Prefactor     .40366        6368.4       -.19142E-03    .22563E-03
  26  Prefactor     16.443        29.232        .11130E-04    .15874E-02
  27  norm          1.3892        12.400       -.95771E-05   -.20370E-03
  28  Normalizat    1.1372        .27948        .10789E-04   -.27698E-04
  29  Prefactor     1.0091        .25955       -.47965E-05   -.37877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.413
  norm       = 1.98862
  Prefactor  = 0.0001
  Prefactor  = 1.36264
  norm       = 95.3999
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  norm       = 2.18392
  Prefactor  = 0.0001
  Prefactor  = 6.44048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0302
  norm       = 2.20655
  Prefactor  = 0.000100006
  Prefactor  = 0.000100046
  norm       = 10.6762
  norm       = 5.27015
  norm       = 0.0001
  Prefactor  = 0.403658
  Prefactor  = 16.4433
  norm       = 1.38922
  Normalizat = 1.13718
  Prefactor  = 1.0091
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.210     FROM HESSE     STATUS=OK           617 CALLS     3753 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.413        8.5959        .28421E-02   -1.5003    
   5  norm          1.9886        .60341        .62544E-02   -1.5426    
   6  Prefactor     .10000E-03    5.7554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3626        3.4776        .93508E-02   -1.5475    
   8  norm          95.400        45.197        .10284E-02   -1.3751    
   9  Prefactor     .10001E-03    106.33        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    57.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1839        2.2464        .69636E-02   -1.5412    
  13  Prefactor     .10000E-03    27.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4405        14.028        .39524E-02   -1.5200    
  15  Prefactor     .10000E-03    4.0807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.030        16.168        .28887E-02   -1.5014    
  19  norm          2.2065        1.1534        .69247E-02   -1.5411    
  20  Prefactor     .10001E-03    33.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    47.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.676        31.793        .30678E-02   -1.5054    
  23  norm          5.2701        5.3592        .43775E-02   -1.5249    
  24  norm          .10000E-03    3.3079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .40366        163.72        .15385       -1.5581    
  26  Prefactor     16.443        85.540        .24816E-02   -1.4897    
  27  norm          1.3892        17.228        .93578E-02   -1.5472    
  28  Normalizat    1.1372        .24591        .60559E-01   -.88567    
  29  Prefactor     1.0091        .21772        .43425E-01   -.92427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15284e-06
Minuit parameter uncertainties:
  1  1.95357e-05
  2  6.75639e-06
  3  2.82238e-05
  4  8.59673
  5  0.603407
  6  1.70968e-05
  7  3.47816
  8  45.213
  9  0.00218444
  10  6.66388e-06
  11  0.00303526
  12  2.24645
  13  9.43576e-05
  14  14.0356
  15  5.1916e-06
  16  1.16638e-06
  17  3.52811e-05
  18  16.1735
  19  1.15338
  20  0.000862358
  21  0.0029766
  22  31.8436
  23  5.3597
  24  2.93141e-05
  25  16.302
  26  75.1779
  27  9.7875
  28  0.246164
  29  0.217912
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.664e-06  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.009e+00  2.179e-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.137e+00  2.462e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393865/likelihoodResults_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.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): 102
logL (Free Index) = 4826.21098024
delta logL = -0.00061765821556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4826.2103626
delta logL = -1.02600097307e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2120       1.0000          .0000       10.000    
     3 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       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=   4826.210     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.291        .18142E-01** at limit **
   2  Index         1.7513        8.1125        .50000        .98908E-07
   3  Normalizat    1.1372        .10282E-01    .26784E-03   -.31919E-04
   4  Prefactor     1.0091        .97378E-02    .26603E-03   -.33161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75132
  Normalizat = 1.13718
  Prefactor  = 1.0091
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.09        .20638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7513        7.3722        .50000       -.70724    
   3  Normalizat    1.1372        .33438E-01    .10714E-04   -.88567    
   4  Prefactor     1.0091        .31670E-01    .10641E-04   -.92427    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57171e-10
Minuit parameter uncertainties:
  1  0.000138742
  2  1013.42
  3  0.033439
  4  0.0316701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393865': 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): 102
logL (Free Index) = 4826.21036144
delta logL = 1.14622798719e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.387e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.751e+00  1.013e+03  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.009e+00  3.167e-02  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.137e+00  3.344e-02  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/393865/cmap_HighResolution_572659201_572918401_4FGL_J2235.8-3627_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-28 16:37:25.421172', job_id='393865', GAL2='1.01', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632872245.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1286' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 393865: <4FGL_J2235.8-3627_daily_bin1286> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1286> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:02 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:04 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:26:04 2021
Terminated at Tue Sep 28 16:37:27 2021
Results reported at Tue Sep 28 16:37:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1286 338.971 -36.4605 572659201 572918401 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 :                                   647.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            685 sec.

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

