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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1292
RA = 338.971, Dec = -36.4605
tmin = 574214401, tmax = 574473601
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='393874', job_status='RUN', time_executed='2021-09-28 16:30:02.549998', time_epoch_executed='1632871802.55' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393874/ft1_4FGL_J2235.8-3627_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393874/ft1_4FGL_J2235.8-3627_daily_bin1292.fits outfile=/scratch/kocevski/393874/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1292.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=574214401.0 tmax=574473601.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.56
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/393874/ltcube_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.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/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/393874/ltcube_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.fits outfile=/scratch/kocevski/393874/expmap_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.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/393874/ltcube_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.fits
.....................!
real 192.46
user 187.04
sys 5.08

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/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits scfile=/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits outfile=/scratch/kocevski/393874/cmap_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits scfile=/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits outfile=/scratch/kocevski/393874/cmap_HighResolution_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/393874/ft2_4FGL_J2235.8-3627_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393874/Model_4FGL_J2235.8-3627_daily_bin1292.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/393874/ft1_filtered_4FGL_J2235.8-3627_daily_bin1292.fits.....................!
real 42.92
user 41.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3404       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .75578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22133E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12754E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26999       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9750       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5082       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    25.226       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.395       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.807       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0719       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2882       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71544       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=   5332.917     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3219 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.557        11.089       -.28408E-06   -.20470E-04
   2  Prefactor     6.3402        10.003       -.68690E-06   -.10307E-03
   3  norm          .10000E-03    2.2357        .74700E-08** at limit **
   4  norm          .10000E-03    4.5859        .11836E-06** at limit **
   5  norm          .75574        .33893       -.11300E-07    .10079E-03
   6  Prefactor     .10000E-03    6.3420        .30543E-06** at limit **
   7  Prefactor     .10002E-03    1.5910       -.44382E-06** at limit **
   8  norm          .10000E-03    13.854       -.36654E-05** at limit **
   9  Prefactor     .10000E-03    15.624        .67688E-05** at limit **
  10  Prefactor     32.259        24.942       -.10482E-05   -.10714E-04
  11  Prefactor     .10000E-03    10.218        .10058E-05** at limit **
  12  norm          2.3491        2.6876        .19221E-06   -.19600E-03
  13  Prefactor     .10000E-03    207.14       -.72559E-05** at limit **
  14  Prefactor     .10000E-03    5.0380       -.13941E-06** at limit **
  15  Prefactor     .28520        4.7127       -.78840E-06   -.43493E-03
  16  norm          .10000E-03    3.1338        .48505E-06** at limit **
  17  Prefactor     .10000E-03    7.5095       -.12291E-06** at limit **
  18  Prefactor     9.9651        12.894       -.91953E-05   -.88491E-04
  19  norm          1.5089        .92712        .99436E-06   -.30020E-02
  20  Prefactor     .10000E-03    75.683        .33496E-05** at limit **
  21  Prefactor     .10000E-03    4.3403        .25480E-06** at limit **
  22  norm          25.226        18.275        .97425E-07    .19001E-04
  23  norm          .10000E-03    1.6901       -.41126E-07** at limit **
  24  norm          10.396        7.6017       -.16713E-06   -.50104E-04
  25  Prefactor     10.602        36.834        .19522E-05    .60128E-05
  26  Prefactor     18.806        31.112        .14771E-06    .18620E-05
  27  norm          4.0719        3.9779       -.28362E-06   -.93800E-04
  28  Normalizat    1.2881        .19920        .21051E-05    .10570E-04
  29  Prefactor     .71545        .18605       -.70252E-06    .16564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5574
  Prefactor  = 6.34015
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.755737
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2593
  Prefactor  = 0.0001
  norm       = 2.34906
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.2852
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.96512
  norm       = 1.50891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.2263
  norm       = 0.0001
  norm       = 10.3958
  Prefactor  = 10.6024
  Prefactor  = 18.8065
  norm       = 4.0719
  Normalizat = 1.28811
  Prefactor  = 0.715448
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.917     FROM HESSE     STATUS=OK           555 CALLS     3774 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.557        11.068        .10498E-03   -1.4945    
   2  Prefactor     6.3402        9.9982        .15941E-03   -1.5204    
   3  norm          .10000E-03    2.2378        .10664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.7762        .30491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .75574        .34085        .27573E-04   -1.5534    
   6  Prefactor     .10000E-03    6.4522        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    16.442        .17750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.259        25.025        .70554E-04   -1.4571    
  11  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3491        2.6648        .12274E-03   -1.5401    
  13  Prefactor     .10000E-03    207.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0533        .16005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28520        16.087        .30704E-02   -1.5601    
  16  norm          .10000E-03    3.2255        .25240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9651        12.992        .12687E-03   -1.5077    
  19  norm          1.5089        .93311        .40995E-04   -1.5462    
  20  Prefactor     .10000E-03    75.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3481        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.226        18.277        .79757E-04   -1.4703    
  23  norm          .10000E-03    1.6910        .92692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.396        7.6017        .12427E-03   -1.5063    
  25  Prefactor     10.602        37.033        .12307E-03   -1.5057    
  26  Prefactor     18.806        31.135        .92356E-04   -1.4840    
  27  norm          4.0719        3.9830        .11954E-03   -1.5304    
  28  Normalizat    1.2881        .24324        .22636E-03   -.83922    
  29  Prefactor     .71545        .22743        .27935E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88173e-09
Minuit parameter uncertainties:
  1  11.0694
  2  10.0008
  3  6.17355e-07
  4  9.54743e-06
  5  0.340854
  6  3.12799e-06
  7  0.00110937
  8  5.8358e-05
  9  0.000130478
  10  25.0328
  11  1.42014e-05
  12  2.66495
  13  0.00138127
  14  8.56593e-06
  15  4.28443
  16  8.63379e-05
  17  9.59162e-05
  18  12.9959
  19  0.933117
  20  8.47137e-05
  21  5.69518e-05
  22  18.2811
  23  8.10027e-07
  24  7.60238
  25  37.1137
  26  31.1615
  27  3.98322
  28  0.243452
  29  0.227729
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.226e+01  2.503e+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:  7.154e-01  2.277e-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.288e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.49e-05

TS (Fixed Index): 3.06
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393874/likelihoodResults_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.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) = 5332.90814041
delta logL = 0.00873517110358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5332.90576055
delta logL = 0.0111150303719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.590       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3503       1.0000          .0000       10.000    
     3 'Normalizat'    1.2785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72124       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=   5332.906     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      251 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.590        485.37        .18111E-02    .36561E-03
   2  Index         2.3502        6.1701        .19374        .66468E-04
   3  Normalizat    1.2786        .83091E-01    .51356E-01    .18025E-05
   4  Prefactor     .72115        .62141E-01    .62922E-01    .17890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5898
  Index      = 2.35016
  Normalizat = 1.27862
  Prefactor  = 0.721149
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.906     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.590        28.270        .72443E-04   -1.4601    
   2  Index         2.3502        .84553        .68728E-02   -.55856    
   3  Normalizat    1.2786        .24375        .22706E-03   -.84207    
   4  Prefactor     .72115        .22515        .27834E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02323e-09
Minuit parameter uncertainties:
  1  28.2819
  2  0.851234
  3  0.243965
  4  0.225439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393874': 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) = 5332.90576046
delta logL = 0.0111151257661

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.059e+01  2.828e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.350e+00  8.512e-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:  7.211e-01  2.254e-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.279e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.35 +/- 0.85
Photon Flux (Free Index): 5.15e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.56e-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/393874/cmap_HighResolution_574214401_574473601_4FGL_J2235.8-3627_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='1.81e-05', photon_flux_error='3.50e-08', dlogl='1.11e-02', energy_flux='1.92e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-28 16:41:35.105352', photon_index_error2='0.85', photon_index2='2.35', ts='3.06', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.56e-05', EG='1.29', time_epoch_completed='1632872495.11', return_code='0', job_id='393874', GAL2='0.72', EG2='1.28', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.57e-08', ts2='3.07', photon_index='2.23' WHERE bin_id='1292' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 393874: <4FGL_J2235.8-3627_daily_bin1292> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1292> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:02 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:26:04 2021
Terminated at Tue Sep 28 16:41:35 2021
Results reported at Tue Sep 28 16:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1292 338.971 -36.4605 574214401 574473601 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 :                                   690.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

