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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1098
RA = 338.971, Dec = -36.4605
tmin = 523929601, tmax = 524188801
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='393577', job_status='RUN', time_executed='2021-09-28 16:26:02.478971', time_epoch_executed='1632871562.48' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393577/ft1_4FGL_J2235.8-3627_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393577/ft1_4FGL_J2235.8-3627_daily_bin1098.fits outfile=/scratch/kocevski/393577/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1098.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=523929601.0 tmax=524188801.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.51
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/393577/ltcube_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.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/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits
.....................!
real 11.99
user 11.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/393577/ltcube_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.fits outfile=/scratch/kocevski/393577/expmap_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.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/393577/ltcube_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.fits
.....................!
real 190.53
user 185.09
sys 5.06

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/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits scfile=/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits outfile=/scratch/kocevski/393577/cmap_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits scfile=/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits outfile=/scratch/kocevski/393577/cmap_HighResolution_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/393577/ft2_4FGL_J2235.8-3627_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393577/Model_4FGL_J2235.8-3627_daily_bin1098.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/393577/ft1_filtered_4FGL_J2235.8-3627_daily_bin1098.fits.....................!
real 41.17
user 39.80
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18924       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2464       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3878       1.0000         .10000E-03   10000.    
     5 'norm      '    .29876       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3104       1.0000         .10000E-03   10000.    
     8 'norm      '    67.431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7317       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5795       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6694       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6668       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.87       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3643       1.0000         .10000E-03   10000.    
    22 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .24952E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .20875E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7481       1.0000         .10000E-03   10000.    
    27 'norm      '    4.8754       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3346       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .44579       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=   4958.218     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3888 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9570        10.039        .69978E-06    .36198E-03
   2  Prefactor     .25017        12.039       -.29729E-05    .99961E-04
   3  norm          9.2471        7.9441       -.97417E-07   -.70055E-04
   4  norm          3.3884        4.5994       -.10607E-07    .64647E-04
   5  norm          .29864        .34290       -.20120E-07   -.18664E-03
   6  Prefactor     9.0624        8.0606       -.12591E-08    .95072E-04
   7  Prefactor     4.3129        4.4352       -.40044E-06    .11879E-03
   8  norm          67.430        31.304        .10568E-07    .58441E-05
   9  Prefactor     53.088        70.395        .68446E-05    .49164E-03
  10  Prefactor     .10000E-03    6.1336        .15029E-06** at limit **
  11  Prefactor     3.7485        44.359       -.31628E-05    .19261E-03
  12  norm          1.5796        1.5895       -.19440E-07   -.15870E-03
  13  Prefactor     .10000E-03    21.973        .37626E-06** at limit **
  14  Prefactor     .10000E-03    4.4096       -.21418E-08** at limit **
  15  Prefactor     1.6716        6.5624       -.83273E-06    .24918E-05
  16  norm          7.8566        5.3411        .68285E-07    .67600E-04
  17  Prefactor     .10000E-03    10.453       -.90541E-07** at limit **
  18  Prefactor     7.6566        18.916       -.59740E-06   -.67437E-04
  19  norm          3.3814        1.4284        .52997E-07    .47977E-03
  20  Prefactor     113.87        69.652       -.23352E-06    .22570E-04
  21  Prefactor     6.3643        18.613       -.12620E-06   -.38854E-04
  22  norm          .10000E-03    22.991       -.70740E-06** at limit **
  23  norm          .10000E-03    2.1891        .88622E-07** at limit **
  24  norm          .10005E-03    47.523       -.16063E-04** at limit **
  25  Prefactor     .10004E-03    254.35        .43202E-05** at limit **
  26  Prefactor     2.7076        226.18       -.88061E-06    .42901E-04
  27  norm          4.8872        4.0872       -.60998E-07    .54528E-03
  28  Normalizat    1.3347        .21048        .12237E-05    .73666E-03
  29  Prefactor     .44572        .18948       -.14549E-05    .27379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95699
  Prefactor  = 0.250171
  norm       = 9.24707
  norm       = 3.3884
  norm       = 0.298645
  Prefactor  = 9.06238
  Prefactor  = 4.31295
  norm       = 67.43
  Prefactor  = 53.0878
  Prefactor  = 0.0001
  Prefactor  = 3.74846
  norm       = 1.5796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67164
  norm       = 7.85662
  Prefactor  = 0.0001
  Prefactor  = 7.65657
  norm       = 3.38138
  Prefactor  = 113.869
  Prefactor  = 6.36432
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100047
  Prefactor  = 0.000100035
  Prefactor  = 2.70765
  norm       = 4.88716
  Normalizat = 1.33467
  Prefactor  = 0.44572
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.218     FROM HESSE     STATUS=OK           563 CALLS     4451 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9570        10.431        .13372E-03   -1.5109    
   2  Prefactor     .25017        123.36        .39995E-02   -1.5608    
   3  norm          9.2471        7.9497        .13180E-03   -1.5100    
   4  norm          3.3884        4.5431        .15952E-03   -1.5340    
   5  norm          .29864        .32039        .40093E-03   -1.5599    
   6  Prefactor     9.0624        8.0773        .13313E-03   -1.5106    
   7  Prefactor     4.3129        4.4490        .13777E-03   -1.5293    
   8  norm          67.430        31.291        .24439E-03   -1.4064    
   9  Prefactor     53.088        73.953        .54987E-04   -1.4249    
  10  Prefactor     .10000E-03    6.1429        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7485        44.827        .10451E-02   -1.5321    
  12  norm          1.5796        1.6047        .86575E-04   -1.5457    
  13  Prefactor     .10000E-03    21.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4208        .14439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6716        6.5302        .32630E-03   -1.5449    
  16  norm          7.8566        5.3182        .12219E-03   -1.5147    
  17  Prefactor     .10000E-03    10.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6566        19.413        .14483E-03   -1.5154    
  19  norm          3.3814        1.5232        .36809E-04   -1.5340    
  20  Prefactor     113.87        69.847        .37701E-04   -1.3570    
  21  Prefactor     6.3643        18.376        .15910E-03   -1.5203    
  22  norm          .10000E-03    23.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1990        .10172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10005E-03    50.129        .39253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    263.70        .36508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.7076        224.58        .24558E-03   -1.5379    
  27  norm          4.8872        4.0821        .62697E-03   -1.5266    
  28  Normalizat    1.3347        .24997        .21559E-03   -.82537    
  29  Prefactor     .44572        .21953        .33022E-03   -1.1454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20281e-09
Minuit parameter uncertainties:
  1  10.4331
  2  11.1315
  3  7.95064
  4  4.54352
  5  0.320391
  6  8.07822
  7  4.44934
  8  31.299
  9  74.0808
  10  2.906e-05
  11  25.9493
  12  1.60471
  13  0.000107918
  14  2.21336e-06
  15  6.53299
  16  5.3185
  17  4.09989e-05
  18  19.429
  19  1.52319
  20  69.8972
  21  18.3927
  22  0.000183641
  23  1.07395e-05
  24  0.00306378
  25  0.0061403
  26  49.5116
  27  4.08228
  28  0.250199
  29  0.219945
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.906e-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:  4.457e-01  2.199e-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.335e+00  2.502e-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: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393577/likelihoodResults_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.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) = 4958.21844811
delta logL = -0.000766577124523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4958.2176815
delta logL = 2.78305378743e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2168       1.0000          .0000       10.000    
     3 'Normalizat'    1.3347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44569       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=   4958.218     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    128.45        .17143E-02** at limit **
   2  Index         2.1331        6.8075        .50000        .13362E-04
   3  Normalizat    1.3347        .21710E-01    .21559E-03   -.42366E-04
   4  Prefactor     .44572        .20207E-01    .33022E-03   -.75947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101564
  Index      = 2.13314
  Normalizat = 1.33467
  Prefactor  = 0.445723
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.218     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    502.21        .34286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1331        7.8364        .50000       -.61062    
   3  Normalizat    1.3347        .46770E-01    .43118E-04   -.82537    
   4  Prefactor     .44572        .43531E-01    .13209E-04   -1.1454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.0856e-08
Minuit parameter uncertainties:
  1  0.0565367
  2  1325.49
  3  0.0467715
  4  0.0435343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393577': 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) = 4958.2176813
delta logL = 2.35504558077e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.016e-04  5.654e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.133e+00  1.325e+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:  4.457e-01  4.353e-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.335e+00  4.677e-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/393577/cmap_HighResolution_523929601_524188801_4FGL_J2235.8-3627_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-09-28 16:37:52.942926', job_id='393577', GAL2='0.45', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632872272.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='2.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1098' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 393577: <4FGL_J2235.8-3627_daily_bin1098> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1098 338.971 -36.4605 523929601 524188801 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

