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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1565
RA = 338.971, Dec = -36.4605
tmin = 644976001, tmax = 645235201
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='395035', job_status='RUN', time_executed='2021-09-28 16:31:28.781110', time_epoch_executed='1632871888.78' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395035

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395035/ft1_4FGL_J2235.8-3627_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395035/ft1_4FGL_J2235.8-3627_daily_bin1565.fits outfile=/scratch/kocevski/395035/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1565.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=644976001.0 tmax=645235201.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.05
user 2.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/395035/ltcube_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.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/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits
.....................!
real 12.62
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/395035/ltcube_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.fits outfile=/scratch/kocevski/395035/expmap_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.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/395035/ltcube_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.fits
.....................!
real 192.79
user 187.60
sys 4.77

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/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits scfile=/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits outfile=/scratch/kocevski/395035/cmap_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.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/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits scfile=/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits outfile=/scratch/kocevski/395035/cmap_HighResolution_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/395035/ft2_4FGL_J2235.8-3627_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395035/Model_4FGL_J2235.8-3627_daily_bin1565.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/395035/ft1_filtered_4FGL_J2235.8-3627_daily_bin1565.fits.....................!
real 52.59
user 51.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20715E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.948       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7009       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1901       1.0000         .10000E-03   10000.    
     5 'norm      '    .56675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3991       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
    12 'norm      '    5.5142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35132E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6441       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7723       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3995       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6789       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88607       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=   7320.415     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3168 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.013        .15544E-06** at limit **
   2  Prefactor     11.953        8.4800       -.13214E-07   -.11753E-03
   3  norm          3.7009        4.4461        .57047E-07   -.22023E-04
   4  norm          4.1909        4.6573        .18339E-06   -.37086E-04
   5  norm          .56669        .34867        .78594E-08   -.12585E-03
   6  Prefactor     .10000E-03    10.515       -.44632E-06** at limit **
   7  Prefactor     4.3991        3.5298       -.69533E-07    .58175E-04
   8  norm          .10000E-03    14.466        .35180E-06** at limit **
   9  Prefactor     .10000E-03    17.367       -.36751E-06** at limit **
  10  Prefactor     6.7665        14.979        .42525E-06    .28414E-05
  11  Prefactor     11.918        19.981        .12338E-05   -.14015E-04
  12  norm          5.5097        2.4729       -.10291E-05   -.43211E-02
  13  Prefactor     .10002E-03    179.62        .14325E-04** at limit **
  14  Prefactor     16.264        9.1973       -.16083E-07   -.11809E-03
  15  Prefactor     7.6440        5.6139        .59296E-07    .53727E-05
  16  norm          1.7705        3.9214        .55209E-05   -.10854E-02
  17  Prefactor     19.841        22.450       -.50919E-06   -.43389E-03
  18  Prefactor     5.4126        12.102       -.22821E-05   -.68517E-03
  19  norm          .10000E-03    .36870       -.39809E-07** at limit **
  20  Prefactor     .10000E-03    14.918        .29996E-06** at limit **
  21  Prefactor     .10000E-03    3.7120       -.24278E-07** at limit **
  22  norm          .10000E-03    5.9335        .37120E-07** at limit **
  23  norm          .10000E-03    2.1620        .11550E-07** at limit **
  24  norm          4.6798        4.9993        .11666E-06    .23608E-05
  25  Prefactor     .10000E-03    11.475       -.59177E-08** at limit **
  26  Prefactor     .10000E-03    21.603       -.54034E-06** at limit **
  27  norm          .10000E-03    1.5979        .12379E-07** at limit **
  28  Normalizat    1.1994        .17350       -.32546E-06   -.45460E-03
  29  Prefactor     .88620        .16647       -.75522E-06   -.35065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.9528
  norm       = 3.70086
  norm       = 4.19088
  norm       = 0.566692
  Prefactor  = 0.0001
  Prefactor  = 4.39908
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76655
  Prefactor  = 11.9175
  norm       = 5.50968
  Prefactor  = 0.000100022
  Prefactor  = 16.2645
  Prefactor  = 7.64405
  norm       = 1.77052
  Prefactor  = 19.8409
  Prefactor  = 5.41258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.67982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19936
  Prefactor  = 0.8862
 **********
 **   18 **HESSE 
 **********

 FCN=   7320.415     FROM HESSE     STATUS=OK           551 CALLS     3719 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.480        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.953        8.4687        .11589E-03   -1.5016    
   3  norm          3.7009        4.4443        .19213E-03   -1.5323    
   4  norm          4.1909        4.6271        .17675E-03   -1.5299    
   5  norm          .56669        .34068        .36184E-04   -1.5557    
   6  Prefactor     .10000E-03    10.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3991        3.5314        .13712E-03   -1.5288    
   8  norm          .10000E-03    14.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7665        14.959        .15420E-03   -1.5188    
  11  Prefactor     11.918        19.993        .11600E-03   -1.5017    
  12  norm          5.5097        2.5526        .89860E-04   -1.5238    
  13  Prefactor     .10002E-03    180.77        .21322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.264        9.2321        .99310E-04   -1.4901    
  15  Prefactor     7.6440        5.6157        .14504E-03   -1.5155    
  16  norm          1.7705        3.9587        .11356E-02   -1.5442    
  17  Prefactor     19.841        22.305        .89930E-04   -1.4817    
  18  Prefactor     5.4126        11.494        .17294E-03   -1.5243    
  19  norm          .10000E-03    .57260        .88428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7397        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.9363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1867        .12284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6798        4.9980        .18604E-03   -1.5275    
  25  Prefactor     .10000E-03    11.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6454        .21116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1994        .21008        .23663E-03   -.86623    
  29  Prefactor     .88620        .20028        .26469E-03   -.96625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96577e-09
Minuit parameter uncertainties:
  1  5.27225e-05
  2  8.4695
  3  4.44471
  4  4.62748
  5  0.340679
  6  3.34944e-05
  7  3.53152
  8  2.08399e-05
  9  1.75818e-05
  10  14.9669
  11  20.0039
  12  2.55266
  13  0.00401291
  14  9.23292
  15  5.61609
  16  3.95925
  17  22.3148
  18  11.4983
  19  3.67596e-06
  20  1.80847e-05
  21  2.7267e-06
  22  4.6652e-08
  23  1.33997e-06
  24  4.99841
  25  4.72592e-06
  26  4.51292e-05
  27  1.6704e-06
  28  0.21023
  29  0.200443
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.767e+00  1.497e+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:  8.862e-01  2.004e-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.199e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395035/likelihoodResults_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.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) = 7320.41115629
delta logL = 0.00385314768209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7320.41049275
delta logL = 0.00451669210179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2611       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3426       1.0000          .0000       10.000    
     3 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88714       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=   7320.410     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2622        15.833        .16042E-03   -.27071E-04
   2  Index         2.3425        1.2595        .10574E-01   -.64145E-05
   3  Normalizat    1.1980        .19985        .23675E-03    .32816E-03
   4  Prefactor     .88710        .19576        .26457E-03    .30032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.26216
  Index      = 2.34251
  Normalizat = 1.19797
  Prefactor  = 0.887096
 **********
 **   18 **HESSE 
 **********

 FCN=   7320.410     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2622        15.178        .64170E-05   -1.5207    
   2  Index         2.3425        1.2087        .42295E-03   -.56037    
   3  Normalizat    1.1980        .20000        .47350E-04   -.86666    
   4  Prefactor     .88710        .19589        .10583E-04   -.96593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09662e-10
Minuit parameter uncertainties:
  1  15.1872
  2  1.22574
  3  0.200131
  4  0.196044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395035': 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) = 7320.41049272
delta logL = 0.00451672455983

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.262e+00  1.519e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.343e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.871e-01  1.960e-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.198e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 338.971 -36.461

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/395035/cmap_HighResolution_644976001_645235201_4FGL_J2235.8-3627_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-28 16:45:16.279592', job_id='395035', GAL2='0.89', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632872716.28', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.52e-03', ts2='0.27', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1565' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 395035: <4FGL_J2235.8-3627_daily_bin1565> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1565> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:45 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:46 2021
Terminated at Tue Sep 28 16:45:19 2021
Results reported at Tue Sep 28 16:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1565 338.971 -36.4605 644976001 645235201 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 :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            874 sec.

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

