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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1689
RA = 338.971, Dec = -36.4605
tmin = 677116801, tmax = 677376001
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='994163', job_status='RUN', time_executed='2022-06-20 01:03:33.996487', time_epoch_executed='1655712214.0' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994163/ft1_4FGL_J2235.8-3627_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994163/ft1_4FGL_J2235.8-3627_daily_bin1689.fits outfile=/scratch/kocevski/994163/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1689.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=677116801.0 tmax=677376001.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 2.81
user 2.56
sys 0.20

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

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

Number of photons that the gtmktime cut: 549

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/994163/ltcube_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.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/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits
.....................!
real 16.03
user 15.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/994163/ltcube_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.fits outfile=/scratch/kocevski/994163/expmap_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.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/994163/ltcube_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.fits
.....................!
real 193.61
user 187.76
sys 5.37

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/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits scfile=/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits outfile=/scratch/kocevski/994163/cmap_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits scfile=/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits outfile=/scratch/kocevski/994163/cmap_HighResolution_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.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.61
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994163/ft2_4FGL_J2235.8-3627_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994163/Model_4FGL_J2235.8-3627_daily_bin1689.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/994163/ft1_filtered_4FGL_J2235.8-3627_daily_bin1689.fits.....................!
real 47.52
user 45.14
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7882       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1290       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.884       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7252       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1587       1.0000         .10000E-03   10000.    
    24 'norm      '    7.4633       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    69.214       1.0000         .10000E-03   10000.    
    27 'norm      '    8.1208       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0824       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=   5928.432     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3658 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0557        8.6523       -.35540E-06   -.17137E-04
   2  Prefactor     .10000E-03    4.0213       -.50584E-07** at limit **
   3  norm          .10000E-03    3.5727       -.92611E-07** at limit **
   4  norm          1.7877        2.3213        .99226E-06   -.28682E-02
   5  norm          1.0373        .43432       -.44830E-07    .12325E-03
   6  Prefactor     .10000E-03    8.0162       -.46009E-05** at limit **
   7  Prefactor     2.1288        3.7739       -.54360E-06   -.11456E-03
   8  norm          .10000E-03    14.853        .34950E-06** at limit **
   9  Prefactor     .10000E-03    17.239       -.51838E-05** at limit **
  10  Prefactor     20.905        19.699       -.26428E-06    .25539E-04
  11  Prefactor     .10000E-03    7.0205        .33698E-05** at limit **
  12  norm          2.8481        2.4399        .70891E-07    .41452E-03
  13  Prefactor     .10000E-03    50.866       -.28662E-04** at limit **
  14  Prefactor     .10000E-03    7.6875       -.30100E-05** at limit **
  15  Prefactor     .10000E-03    6.9648        .24862E-05** at limit **
  16  norm          3.6074        3.9860       -.11417E-05   -.53713E-04
  17  Prefactor     .10000E-03    14.678        .96426E-06** at limit **
  18  Prefactor     27.871        14.966       -.91167E-07    .15111E-03
  19  norm          1.7261        1.0729        .74424E-07    .24535E-03
  20  Prefactor     .10000E-03    40.665        .25409E-04** at limit **
  21  Prefactor     .10000E-03    5.7532       -.89564E-06** at limit **
  22  norm          .10000E-03    10.661        .59597E-05** at limit **
  23  norm          3.1588        3.4563       -.83519E-06   -.32159E-04
  24  norm          7.4626        7.7878        .29320E-06   -.25961E-03
  25  Prefactor     .10000E-03    15.633       -.20618E-05** at limit **
  26  Prefactor     69.206        51.597       -.63507E-05   -.35952E-04
  27  norm          8.1194        5.0096       -.15370E-06   -.19356E-05
  28  Normalizat    1.2424        .21021        .75873E-06    .64068E-04
  29  Prefactor     1.0820        .20166       -.76962E-07    .93453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0557
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.7877
  norm       = 1.03732
  Prefactor  = 0.0001
  Prefactor  = 2.12882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9055
  Prefactor  = 0.0001
  norm       = 2.84807
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60745
  Prefactor  = 0.0001
  Prefactor  = 27.8707
  norm       = 1.72607
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.15876
  norm       = 7.46261
  Prefactor  = 0.0001
  Prefactor  = 69.2058
  norm       = 8.11942
  Normalizat = 1.24236
  Prefactor  = 1.08205
 **********
 **   18 **HESSE 
 **********

 FCN=   5928.432     FROM HESSE     STATUS=OK           553 CALLS     4211 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0557        24.623        .42982E-02   -1.5502    
   2  Prefactor     .10000E-03    4.0241        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.5815        .14213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7877        5.9934        .15641E-02   -1.5441    
   5  norm          1.0373        .44927        .31701E-04   -1.5504    
   6  Prefactor     .10000E-03    8.1342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1288        3.7622        .18969E-03   -1.5416    
   8  norm          .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.905        19.714        .87600E-04   -1.4793    
  11  Prefactor     .10000E-03    7.0255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8481        2.4404        .10798E-03   -1.5370    
  13  Prefactor     .10000E-03    51.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6074        3.9751        .15235E-03   -1.5328    
  17  Prefactor     .10000E-03    14.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.871        15.424        .75868E-04   -1.4652    
  19  norm          1.7261        1.0956        .47002E-04   -1.5445    
  20  Prefactor     .10000E-03    40.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7615        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1588        3.4580        .14511E-03   -1.5352    
  24  norm          7.4626        7.8041        .73403E-03   -1.5162    
  25  Prefactor     .10000E-03    15.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     69.206        51.699        .48249E-04   -1.4042    
  27  norm          8.1194        5.0162        .12959E-03   -1.5138    
  28  Normalizat    1.2424        .25950        .26328E-03   -.85304    
  29  Prefactor     1.0820        .24813        .27340E-03   -.90042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71044e-08
Minuit parameter uncertainties:
  1  10.2012
  2  1.51381e-07
  3  1.00174e-06
  4  5.99544
  5  0.449268
  6  1.60314e-05
  7  3.76261
  8  4.51439e-06
  9  4.88e-05
  10  19.7204
  11  1.90501e-05
  12  2.44047
  13  0.000418179
  14  1.42433e-05
  15  4.31631e-06
  16  3.97542
  17  4.79484e-05
  18  15.426
  19  1.09557
  20  0.000352909
  21  1.59822e-06
  22  3.82265e-05
  23  3.45817
  24  7.80515
  25  1.13148e-05
  26  51.7328
  27  5.01646
  28  0.259773
  29  0.248393
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.091e+01  1.972e+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:  1.082e+00  2.484e-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.242e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/994163/likelihoodResults_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.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) = 5928.39506678
delta logL = 0.037214650346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5928.38879307
delta logL = 0.0434883565304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.216       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0146       1.0000          .0000       10.000    
     3 'Normalizat'    1.2507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       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=   5928.389     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.213        22.797        .83133E-04    .10263E-02
   2  Index         2.0148        .69980        .90887E-02    .37853E-03
   3  Normalizat    1.2507        .25036        .26250E-03   -.29141E-03
   4  Prefactor     1.0767        .24477        .27397E-03   -.33848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2133
  Index      = 2.0148
  Normalizat = 1.25071
  Prefactor  = 1.07666
 **********
 **   18 **HESSE 
 **********

 FCN=   5928.389     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.213        22.630        .16627E-04   -1.4744    
   2  Index         2.0148        .69459        .36355E-03   -.63981    
   3  Normalizat    1.2507        .25052        .52501E-04   -.85050    
   4  Prefactor     1.0767        .24496        .54794E-04   -.90216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8392e-09
Minuit parameter uncertainties:
  1  22.6387
  2  0.69811
  3  0.250765
  4  0.245215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994163': 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) = 5928.388793
delta logL = 0.0434884258293

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.321e+01  2.264e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.015e+00  6.981e-01  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.077e+00  2.452e-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.251e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.01 +/- 0.70
Photon Flux (Free Index): 2.39e-08 +/- 2.92e-08
Energy Flux (Free Index): 1.60e-05 +/- 2.14e-05

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/994163/cmap_HighResolution_677116801_677376001_4FGL_J2235.8-3627_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.60e-05', photon_flux_error='2.76e-08', dlogl='4.35e-02', energy_flux='1.25e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2022-06-20 01:16:38.852290', photon_index_error2='0.70', photon_index2='2.01', ts='2.41', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.86e-08', energy_flux_error2='2.14e-05', EG='1.24', time_epoch_completed='1655712998.85', return_code='0', job_id='994163', GAL2='1.08', EG2='1.25', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.92e-08', ts2='2.49', photon_index='2.23' WHERE bin_id='1689' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:16:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 994163: <4FGL_J2235.8-3627_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:35 2022
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:02:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:02:45 2022
Terminated at Mon Jun 20 01:16:39 2022
Results reported at Mon Jun 20 01:16:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1689 338.971 -36.4605 677116801 677376001 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 :                                   786.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            964 sec.

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

