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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1569
RA = 338.971, Dec = -36.4605
tmin = 646012801, tmax = 646272001
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='395042', job_status='RUN', time_executed='2021-09-28 16:34:40.534810', time_epoch_executed='1632872080.53' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395042/ft1_4FGL_J2235.8-3627_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395042/ft1_4FGL_J2235.8-3627_daily_bin1569.fits outfile=/scratch/kocevski/395042/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1569.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=646012801.0 tmax=646272001.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 4.68
user 4.40
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.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/395042/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1569.fits evtable="EVENTS" outfile="/scratch/kocevski/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.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.53
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/395042/ltcube_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.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/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/395042/ltcube_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.fits outfile=/scratch/kocevski/395042/expmap_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.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/395042/ltcube_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.fits
.....................!
real 191.70
user 186.01
sys 5.32

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/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits outfile=/scratch/kocevski/395042/cmap_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits outfile=/scratch/kocevski/395042/cmap_HighResolution_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/395042/ft2_4FGL_J2235.8-3627_daily_bin1569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395042/Model_4FGL_J2235.8-3627_daily_bin1569.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/395042/ft1_filtered_4FGL_J2235.8-3627_daily_bin1569.fits.....................!
real 38.21
user 36.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7095       1.0000         .10000E-03   10000.    
     3 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54172E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8490       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.213       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .23552E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10429E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.710       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16144E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1414       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=   4467.383     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3792 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1930        .15963E-06** at limit **
   2  Prefactor     1.7104        5.6832       -.26041E-08   -.13741E-03
   3  norm          .10000E-03    10.220        .96239E-06** at limit **
   4  norm          .10000E-03    2.6662        .19362E-06** at limit **
   5  norm          .61537        .41998        .12897E-07   -.11747E-03
   6  Prefactor     2.7672        4.5361        .84719E-07   -.43210E-04
   7  Prefactor     .10013E-03    3.3392        .58461E-06** at limit **
   8  norm          16.271        21.187        .17849E-06   -.25466E-04
   9  Prefactor     .10000E-03    21.723        .12477E-06** at limit **
  10  Prefactor     .10000E-03    12.591        .46713E-06** at limit **
  11  Prefactor     .10012E-03    480.28       -.12256E-04** at limit **
  12  norm          2.5548        2.8109        .19980E-07   -.21536E-03
  13  Prefactor     .10000E-03    228.53        .63970E-06** at limit **
  14  Prefactor     29.596        19.296       -.40094E-06   -.25136E-04
  15  Prefactor     .10000E-03    5.1836        .33724E-06** at limit **
  16  norm          .10000E-03    2.1496        .59202E-06** at limit **
  17  Prefactor     .10000E-03    6.9517        .43934E-06** at limit **
  18  Prefactor     8.8378        16.236        .69586E-05    .19947E-03
  19  norm          1.4611        1.1629       -.88251E-06    .27106E-03
  20  Prefactor     45.331        77.600        .43361E-05   -.30529E-04
  21  Prefactor     .10000E-03    11.746        .92357E-06** at limit **
  22  norm          .10000E-03    173.43        .97626E-06** at limit **
  23  norm          .10000E-03    1.7964        .16487E-07** at limit **
  24  norm          .10000E-03    6.8560        .55379E-06** at limit **
  25  Prefactor     18.698        27.756        .30872E-06   -.31558E-04
  26  Prefactor     .10008E-03    561.30        .10183E-04** at limit **
  27  norm          .10000E-03    1.5100        .51336E-07** at limit **
  28  Normalizat    1.0114        .25487       -.90241E-05   -.91552E-04
  29  Prefactor     1.1408        .23515        .50632E-05   -.43320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.71035
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.615374
  Prefactor  = 2.76718
  Prefactor  = 0.000100129
  norm       = 16.2705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100124
  norm       = 2.55484
  Prefactor  = 0.0001
  Prefactor  = 29.5961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83777
  norm       = 1.46109
  Prefactor  = 45.331
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.6975
  Prefactor  = 0.000100081
  norm       = 0.0001
  Normalizat = 1.01141
  Prefactor  = 1.14077
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.383     FROM HESSE     STATUS=OK           557 CALLS     4349 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2039        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7104        5.6904        .28368E-03   -1.5446    
   3  norm          .10000E-03    10.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6831        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61537        .41108        .34515E-04   -1.5551    
   6  Prefactor     2.7672        4.5189        .17737E-03   -1.5375    
   7  Prefactor     .10013E-03    29.885        .20301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.271        21.184        .99308E-04   -1.4901    
   9  Prefactor     .10000E-03    21.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    29.843        .94166E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5548        2.8032        .11356E-03   -1.5388    
  13  Prefactor     .10000E-03    230.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.596        19.385        .73606E-04   -1.4619    
  15  Prefactor     .10000E-03    5.2339        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1539        .95536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9497        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8378        16.370        .13474E-03   -1.5113    
  19  norm          1.4611        1.1737        .44943E-04   -1.5466    
  20  Prefactor     45.331        77.792        .29813E-03   -1.4360    
  21  Prefactor     .10000E-03    11.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    181.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7966        .87485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.9022        .17107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.698        27.743        .92595E-04   -1.4843    
  26  Prefactor     .10008E-03    579.60        .40824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.5111        .80173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0114        .27985        .26655E-03   -.92649    
  29  Prefactor     1.1408        .26210        .24307E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22473e-09
Minuit parameter uncertainties:
  1  1.19376e-05
  2  5.69216
  3  5.38818e-05
  4  1.14441e-05
  5  0.411079
  6  4.51949
  7  0.00392488
  8  21.1935
  9  2.71222e-05
  10  2.42997e-05
  11  0.00385615
  12  2.80339
  13  0.000154974
  14  19.3891
  15  1.60539e-05
  16  1.46343e-05
  17  1.92884e-05
  18  16.3781
  19  1.17372
  20  77.967
  21  7.58583e-05
  22  0.00135959
  23  3.55279e-07
  24  2.58704e-05
  25  27.7617
  26  0.0138715
  27  8.09284e-08
  28  0.280262
  29  0.262399
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.430e-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:  1.141e+00  2.624e-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.011e+00  2.803e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395042/likelihoodResults_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.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) = 4467.38304087
delta logL = -0.000377111741727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4467.38266375
delta logL = 2.42744135903e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2350       1.0000          .0000       10.000    
     3 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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=   4467.383     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.022        .90712E-02** at limit **
   2  Index         2.2406        6.0948        .50000       -.38103E-05
   3  Normalizat    1.0114        .21907        .45225E-01    .11303E-04
   4  Prefactor     1.1408        .21174        .54974E-01    .59006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24058
  Normalizat = 1.0114
  Prefactor  = 1.14077
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.383     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2406        6.1160        .50000       -.58462    
   3  Normalizat    1.0114        .26247        .26654E-03   -.92649    
   4  Prefactor     1.1408        .25368        .24307E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61909e-11
Minuit parameter uncertainties:
  1  3.37575e-06
  2  4.35717
  3  0.262802
  4  0.253955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395042': 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) = 4467.38266374
delta logL = 1.06274455902e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.376e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.241e+00  4.357e+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:  1.141e+00  2.540e-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.011e+00  2.628e-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/395042/cmap_HighResolution_646012801_646272001_4FGL_J2235.8-3627_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-28 16:45:46.356478', job_id='395042', GAL2='1.14', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632872746.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1569' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 395042: <4FGL_J2235.8-3627_daily_bin1569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1569 338.971 -36.4605 646012801 646272001 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 :                                   662.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

