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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1500
RA = 338.971, Dec = -36.4605
tmin = 628128001, tmax = 628387201
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='394931', job_status='RUN', time_executed='2021-09-28 16:31:23.125292', time_epoch_executed='1632871883.13' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394931/ft1_4FGL_J2235.8-3627_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394931/ft1_4FGL_J2235.8-3627_daily_bin1500.fits outfile=/scratch/kocevski/394931/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1500.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.24
user 4.93
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/394931/ltcube_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.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/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits
.....................!
real 11.60
user 11.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/394931/ltcube_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.fits outfile=/scratch/kocevski/394931/expmap_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.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/394931/ltcube_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.fits
.....................!
real 190.83
user 186.06
sys 4.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/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits scfile=/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits outfile=/scratch/kocevski/394931/cmap_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits scfile=/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits outfile=/scratch/kocevski/394931/cmap_HighResolution_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/394931/ft2_4FGL_J2235.8-3627_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394931/Model_4FGL_J2235.8-3627_daily_bin1500.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/394931/ft1_filtered_4FGL_J2235.8-3627_daily_bin1500.fits.....................!
real 34.08
user 32.77
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.566       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      '    .44446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.774       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2862       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.966       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2636       1.0000         .10000E-03   10000.    
    19 'norm      '    3.2768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0665       1.0000         .10000E-03   10000.    
    24 'norm      '    21.037       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.998       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9461       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6041       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .42542       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=   3479.067     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3668 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35169        246.47       -.47281E-04   -.37326E-05
   2  Prefactor     15.583        19.062        .13220E-05   -.33238E-03
   3  norm          .10000E-03    7.1474        .34318E-06** at limit **
   4  norm          .10000E-03    4.4532        .29650E-06** at limit **
   5  norm          .44444        .33150        .71327E-08   -.25974E-03
   6  Prefactor     16.776        16.885        .77966E-07    .27766E-04
   7  Prefactor     1.2860        7.5873        .22659E-06   -.35329E-04
   8  norm          .10000E-03    59.126       -.62211E-06** at limit **
   9  Prefactor     .10000E-03    26.729       -.54562E-06** at limit **
  10  Prefactor     14.911        28.511       -.20821E-06    .12804E-04
  11  Prefactor     .10000E-03    14.007        .85640E-06** at limit **
  12  norm          .10000E-03    .92820       -.52275E-07** at limit **
  13  Prefactor     .10000E-03    22.978        .14889E-05** at limit **
  14  Prefactor     .10000E-03    27.169       -.11710E-05** at limit **
  15  Prefactor     14.965        10.735       -.14395E-06    .14933E-04
  16  norm          .10000E-03    3.7418       -.59996E-06** at limit **
  17  Prefactor     .10000E-03    10.660       -.95420E-06** at limit **
  18  Prefactor     6.2528        21.138       -.43123E-05   -.94068E-04
  19  norm          3.2773        1.5948        .52958E-06    .22468E-03
  20  Prefactor     .10000E-03    74.102        .40740E-05** at limit **
  21  Prefactor     .10000E-03    6.0815       -.51733E-06** at limit **
  22  norm          .10000E-03    15.175       -.64964E-06** at limit **
  23  norm          4.0663        5.8457        .37706E-07    .13047E-04
  24  norm          21.035        16.444       -.31278E-06    .38428E-04
  25  Prefactor     .10000E-03    17.918       -.30838E-06** at limit **
  26  Prefactor     27.086        93.675        .10439E-04    .45814E-05
  27  norm          3.9460        4.8751       -.10645E-07    .22274E-04
  28  Normalizat    1.6041        .28328        .16314E-05   -.52632E-03
  29  Prefactor     .42552        .24211       -.33104E-05   -.14129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.351691
  Prefactor  = 15.5828
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.444441
  Prefactor  = 16.7758
  Prefactor  = 1.28597
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.9114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25283
  norm       = 3.27732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.06628
  norm       = 21.0346
  Prefactor  = 0.0001
  Prefactor  = 27.0863
  norm       = 3.94599
  Normalizat = 1.60411
  Prefactor  = 0.425525
 **********
 **   18 **HESSE 
 **********

 FCN=   3479.067     FROM HESSE     STATUS=OK           551 CALLS     4219 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35169        264.70        .40053E-02   -1.5589    
   2  Prefactor     15.583        18.871        .10152E-03   -1.4918    
   3  norm          .10000E-03    7.1949        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5609        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .44444        .33523        .28450E-04   -1.5575    
   6  Prefactor     16.776        17.017        .97791E-04   -1.4889    
   7  Prefactor     1.2860        7.6602        .29777E-03   -1.5481    
   8  norm          .10000E-03    59.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.911        28.498        .10372E-03   -1.4935    
  11  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .92852        .55498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.965        10.737        .10353E-03   -1.4934    
  16  norm          .10000E-03    3.7648        .11144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2528        21.291        .80197E-03   -1.5208    
  19  norm          3.2773        1.6178        .37796E-04   -1.5346    
  20  Prefactor     .10000E-03    74.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0880        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0663        5.9132        .15351E-03   -1.5305    
  24  norm          21.035        16.429        .87327E-04   -1.4790    
  25  Prefactor     .10000E-03    17.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.086        94.173        .77101E-04   -1.4667    
  27  norm          3.9460        4.9295        .12969E-03   -1.5311    
  28  Normalizat    1.6041        .31401        .22411E-03   -.74893    
  29  Prefactor     .42552        .26073        .35453E-03   -1.1552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59405e-08
Minuit parameter uncertainties:
  1  19.3808
  2  18.878
  3  6.37398e-05
  4  2.67358e-05
  5  0.335228
  6  17.0218
  7  6.27814
  8  0.000690008
  9  2.0196e-05
  10  28.5244
  11  1.20314e-05
  12  1.28254e-06
  13  2.45889e-05
  14  0.000101863
  15  10.7383
  16  2.48766e-07
  17  1.11911e-05
  18  21.3165
  19  1.61785
  20  7.90433e-05
  21  2.55684e-06
  22  4.18626e-05
  23  5.91401
  24  16.4329
  25  7.93886e-06
  26  94.6964
  27  4.93005
  28  0.314394
  29  0.261461
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.491e+01  2.852e+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:  4.255e-01  2.615e-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.604e+00  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394931/likelihoodResults_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.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) = 3479.06463757
delta logL = 0.00197752641043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3479.06456996
delta logL = 0.00204514544248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.045       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1287       1.0000          .0000       10.000    
     3 'Normalizat'    1.6073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42395       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=   3479.065     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      231 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.083        1843.6        .25815E-02    .13877E-03
   2  Index         2.1307        7.5513        .25097       -.44527E-05
   3  Normalizat    1.6072        .15004        .50658E-01   -.11714E-04
   4  Prefactor     .42390        .89746E-01    .80169E-01    .19379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0827
  Index      = 2.13071
  Normalizat = 1.60719
  Prefactor  = 0.423895
 **********
 **   18 **HESSE 
 **********

 FCN=   3479.065     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.083        28.741        .51631E-03   -1.4931    
   2  Index         2.1307        1.4832        .14091E-01   -.61121    
   3  Normalizat    1.6072        .29491        .22394E-03   -.74809    
   4  Prefactor     .42390        .25384        .35516E-03   -1.1561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57474e-13
Minuit parameter uncertainties:
  1  28.7671
  2  1.5177
  3  0.295227
  4  0.254513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394931': 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) = 3479.06456799
delta logL = 0.00204711519837

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.508e+01  2.877e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.131e+00  1.518e+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:  4.239e-01  2.545e-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.607e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/394931/cmap_HighResolution_628128001_628387201_4FGL_J2235.8-3627_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-28 16:41:00.919775', job_id='394931', GAL2='0.42', fit_tolerance='1e-08', EG2='1.61', EG='1.60', time_epoch_completed='1632872460.92', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='2.05e-03', ts2='0.40', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1500' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 394931: <4FGL_J2235.8-3627_daily_bin1500> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1500> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:36 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:37 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:30:37 2021
Terminated at Tue Sep 28 16:41:01 2021
Results reported at Tue Sep 28 16:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1500 338.971 -36.4605 628128001 628387201 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            625 sec.

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

