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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1249
RA = 338.971, Dec = -36.4605
tmin = 563068801, tmax = 563328001
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='393818', job_status='RUN', time_executed='2021-09-28 16:26:17.185537', time_epoch_executed='1632871577.19' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393818/ft1_4FGL_J2235.8-3627_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393818/ft2_4FGL_J2235.8-3627_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393818/ft1_4FGL_J2235.8-3627_daily_bin1249.fits outfile=/scratch/kocevski/393818/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1249.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=563068801.0 tmax=563328001.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.47
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393818/ft1_filtered_4FGL_J2235.8-3627_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/393818/ft2_4FGL_J2235.8-3627_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/393818/ltcube_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.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/393818/ft2_4FGL_J2235.8-3627_daily_bin1249.fits
.....................!
real 12.46
user 12.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393818/ft1_filtered_4FGL_J2235.8-3627_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/393818/ft2_4FGL_J2235.8-3627_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/393818/ltcube_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.fits outfile=/scratch/kocevski/393818/expmap_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.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/393818/ltcube_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.fits
.....................!
real 191.38
user 185.41
sys 5.63

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/393818/ft1_filtered_4FGL_J2235.8-3627_daily_bin1249.fits scfile=/scratch/kocevski/393818/ft2_4FGL_J2235.8-3627_daily_bin1249.fits outfile=/scratch/kocevski/393818/cmap_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.4674       1.0000         .10000E-03   10000.    
     4 'norm      '    .12345E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .25230E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10562E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.726       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.714       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79894E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .84705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22338E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11892E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6397       1.0000         .10000E-03   10000.    
    24 'norm      '    2.1059       1.0000         .10000E-03   10000.    
    25 'Prefactor '    71.527       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.995       1.0000         .10000E-03   10000.    
    27 'norm      '    4.2570       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89317       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2815       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=   9871.571     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     3325 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.831        7.2169        .11267E-06   -.24360E-05
   2  Prefactor     .10000E-03    2.2726       -.45401E-07** at limit **
   3  norm          8.5146        6.6114        .32768E-07   -.70540E-05
   4  norm          .10000E-03    1.7432        .93413E-08** at limit **
   5  norm          1.5996        .38323        .65624E-08   -.16188E-04
   6  Prefactor     .10000E-03    1.7898       -.42663E-07** at limit **
   7  Prefactor     .10000E-03    .94348        .28499E-08** at limit **
   8  norm          .10000E-03    26.266        .12141E-06** at limit **
   9  Prefactor     .10000E-03    56.625       -.26343E-07** at limit **
  10  Prefactor     32.777        16.352        .38293E-06   -.43485E-04
  11  Prefactor     10.352        18.280       -.12688E-07   -.28926E-04
  12  norm          1.4447        2.0343        .99316E-07    .22357E-04
  13  Prefactor     31.005        45.174       -.36455E-06   -.15715E-04
  14  Prefactor     16.493        11.116       -.10956E-06   -.11017E-03
  15  Prefactor     .10000E-03    2.3514        .13217E-07** at limit **
  16  norm          5.5240        4.0572        .31499E-07   -.10362E-03
  17  Prefactor     15.461        12.688       -.34866E-07   -.79468E-04
  18  Prefactor     .10000E-03    6.1595        .14551E-06** at limit **
  19  norm          .84438        .54485        .42307E-08   -.36333E-03
  20  Prefactor     .10000E-03    114.13        .31930E-05** at limit **
  21  Prefactor     .10000E-03    2.2791        .79119E-09** at limit **
  22  norm          .10000E-03    6.9851        .21769E-07** at limit **
  23  norm          3.6329        4.2652        .27025E-06   -.10885E-04
  24  norm          2.0306        7.1082        .77862E-07   -.44483E-04
  25  Prefactor     71.962        45.697       -.31929E-05   -.20800E-04
  26  Prefactor     16.344        34.929        .85747E-06   -.71531E-05
  27  norm          4.2395        5.4401        .24254E-05   -.37445E-04
  28  Normalizat    .89334        .16190       -.47387E-06   -.24123E-03
  29  Prefactor     1.2815        .15477       -.73224E-07   -.21261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8305
  Prefactor  = 0.0001
  norm       = 8.51457
  norm       = 0.0001
  norm       = 1.59955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7766
  Prefactor  = 10.3525
  norm       = 1.44473
  Prefactor  = 31.0049
  Prefactor  = 16.4935
  Prefactor  = 0.0001
  norm       = 5.52401
  Prefactor  = 15.4614
  Prefactor  = 0.0001
  norm       = 0.844381
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.63285
  norm       = 2.03064
  Prefactor  = 71.962
  Prefactor  = 16.3437
  norm       = 4.23953
  Normalizat = 0.893337
  Prefactor  = 1.28148
 **********
 **   18 **HESSE 
 **********

 FCN=   9871.571     FROM HESSE     STATUS=OK           559 CALLS     3884 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.831        7.2181        .10073E-03   -1.4912    
   2  Prefactor     .10000E-03    2.2807        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5146        6.6083        .13776E-03   -1.5124    
   4  norm          .10000E-03    8.7455        .24263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5996        .36990        .28014E-04   -1.5455    
   6  Prefactor     .10000E-03    1.7961        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .95784        .94200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    27.270        .40017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.299        .36303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.777        16.364        .70045E-04   -1.4562    
  11  Prefactor     10.352        18.292        .12240E-03   -1.5064    
  12  norm          1.4447        1.9914        .13961E-03   -1.5468    
  13  Prefactor     31.005        44.665        .71743E-04   -1.4594    
  14  Prefactor     16.493        11.156        .98584E-04   -1.4895    
  15  Prefactor     .10000E-03    2.3730        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5240        4.0048        .15478E-03   -1.5238    
  17  Prefactor     15.461        12.299        .10249E-03   -1.4921    
  18  Prefactor     .10000E-03    21.406        .39506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .84438        .50739        .49749E-04   -1.5524    
  20  Prefactor     .10000E-03    115.00        .20127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2813        .14643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.9939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6329        4.2572        .10196E-02   -1.5327    
  24  norm          2.0306        7.0799        .28433E-03   -1.5423    
  25  Prefactor     71.962        45.927        .47467E-04   -1.4009    
  26  Prefactor     16.344        34.953        .10014E-03   -1.4899    
  27  norm          4.2395        5.4463        .97642E-03   -1.5296    
  28  Normalizat    .89334        .19759        .28984E-03   -.96695    
  29  Prefactor     1.2815        .19018        .24593E-03   -.83859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62899e-10
Minuit parameter uncertainties:
  1  7.21852
  2  3.63231e-06
  3  6.60885
  4  2.8952e-05
  5  0.369898
  6  3.14234e-06
  7  6.32304e-07
  8  2.74614e-05
  9  8.52096e-05
  10  16.3665
  11  18.3017
  12  1.99152
  13  44.7135
  14  11.1578
  15  2.1278e-06
  16  4.00503
  17  12.3013
  18  3.40055e-05
  19  0.507394
  20  0.00142771
  21  9.37704e-08
  22  3.64824e-06
  23  4.25757
  24  7.08281
  25  45.9496
  26  34.9971
  27  5.44696
  28  0.197755
  29  0.190283
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.278e+01  1.637e+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.281e+00  1.903e-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:  8.933e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.65
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 9.75e-06

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) = 9870.82414335
delta logL = 0.74672036023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9870.82392334
delta logL = 0.746940368666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.343       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8142       1.0000          .0000       10.000    
     3 'Normalizat'    .91074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2693       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=   9870.824     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      243 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.361        48.004        .15401E-02   -.32627E-05
   2  Index         1.8142        .64165        .17781        .80383E-05
   3  Normalizat    .91068        .15503        .64950E-01    .58060E-04
   4  Prefactor     1.2694        .15400        .55830E-01    .22488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3612
  Index      = 1.81422
  Normalizat = 0.910675
  Prefactor  = 1.26937
 **********
 **   18 **HESSE 
 **********

 FCN=   9870.824     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.361        21.029        .61605E-04   -1.4405    
   2  Index         1.8142        .31555        .69935E-02   -.69080    
   3  Normalizat    .91068        .18582        .28729E-03   -.96086    
   4  Prefactor     1.2694        .18578        .24686E-03   -.84223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66362e-12
Minuit parameter uncertainties:
  1  21.0332
  2  0.315906
  3  0.185952
  4  0.185877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393818': 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) = 9870.82392293
delta logL = 0.746940781632

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.236e+01  2.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.814e+00  3.159e-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.269e+00  1.859e-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:  9.107e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.14
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.81 +/- 0.32
Photon Flux (Free Index): 3.42e-08 +/- 1.97e-08
Energy Flux (Free Index): 3.92e-05 +/- 3.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/393818/cmap_HighResolution_563068801_563328001_4FGL_J2235.8-3627_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='3.92e-05', photon_flux_error='2.29e-08', dlogl='7.47e-01', energy_flux='1.95e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-09-28 16:41:12.242513', photon_index_error2='0.32', photon_index2='1.81', ts='10.65', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='0.89', time_epoch_completed='1632872472.24', return_code='0', job_id='393818', GAL2='1.27', EG2='0.91', return_code2='0', energy_flux_error='9.75e-06', photon_flux_error2='1.97e-08', ts2='12.14', photon_index='2.23' WHERE bin_id='1249' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 393818: <4FGL_J2235.8-3627_daily_bin1249> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:57 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:58 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:58 2021
Terminated at Tue Sep 28 16:41:13 2021
Results reported at Tue Sep 28 16:41:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1249 338.971 -36.4605 563068801 563328001 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 :                                   889.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

