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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1487
RA = 338.971, Dec = -36.4605
tmin = 624758401, tmax = 625017601
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='394910', job_status='RUN', time_executed='2021-09-28 16:32:23.946194', time_epoch_executed='1632871943.95' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394910/ft1_4FGL_J2235.8-3627_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394910/ft1_4FGL_J2235.8-3627_daily_bin1487.fits outfile=/scratch/kocevski/394910/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1487.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=624758401.0 tmax=625017601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394910/ft1_filtered_4FGL_J2235.8-3627_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/394910/ltcube_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.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/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits
.....................!
real 11.94
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394910/ft1_filtered_4FGL_J2235.8-3627_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/394910/ltcube_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.fits outfile=/scratch/kocevski/394910/expmap_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.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/394910/ltcube_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.fits
.....................!
real 193.04
user 186.75
sys 5.27

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/394910/ft1_filtered_4FGL_J2235.8-3627_daily_bin1487.fits scfile=/scratch/kocevski/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits outfile=/scratch/kocevski/394910/cmap_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394910/ft1_filtered_4FGL_J2235.8-3627_daily_bin1487.fits scfile=/scratch/kocevski/394910/ft2_4FGL_J2235.8-3627_daily_bin1487.fits outfile=/scratch/kocevski/394910/cmap_HighResolution_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.434       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.068       1.0000         .10000E-03   10000.    
     3 'norm      '    .66561E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86405       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.965       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5635       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.908       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65948E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.017       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6336       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3739       1.0000         .10000E-03   10000.    
    24 'norm      '    3.6057       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.1360       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .49613       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4109       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=   6062.712     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3230 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.433        10.787        .72184E-07   -.15155E-04
   2  Prefactor     10.068        9.6322        .28828E-07   -.29741E-05
   3  norm          .10000E-03    111.51       -.12773E-05** at limit **
   4  norm          .10000E-03    2.1054        .48252E-07** at limit **
   5  norm          1.1494        .38923        .86763E-08   -.58739E-04
   6  Prefactor     .10000E-03    4.1273        .15690E-06** at limit **
   7  Prefactor     .86580        2.3220        .45936E-06    .52020E-04
   8  norm          7.0205        12.392       -.73454E-06   -.41904E-05
   9  Prefactor     10.915        26.534       -.28399E-05    .21602E-04
  10  Prefactor     2.6891        49.998       -.34243E-05    .73540E-05
  11  Prefactor     2.5630        43.983        .31335E-05    .58003E-05
  12  norm          3.2044        2.2101        .82485E-07   -.24394E-05
  13  Prefactor     .10000E-03    31.830       -.11732E-05** at limit **
  14  Prefactor     14.908        11.574       -.21038E-06   -.98855E-05
  15  Prefactor     .10000E-03    4.1989        .43467E-07** at limit **
  16  norm          .10001E-03    2.5414        .14376E-06** at limit **
  17  Prefactor     .10000E-03    8.6754        .49437E-07** at limit **
  18  Prefactor     13.011        11.927        .30000E-06   -.80639E-04
  19  norm          1.6351        .92802       -.52203E-07   -.88624E-04
  20  Prefactor     .10000E-03    69.559        .23323E-05** at limit **
  21  Prefactor     .10000E-03    5.5039        .10216E-06** at limit **
  22  norm          .10000E-03    7.0172        .84523E-07** at limit **
  23  norm          2.3744        3.8072       -.19814E-06    .93574E-05
  24  norm          3.6056        3.8421       -.58453E-07    .17820E-04
  25  Prefactor     .10000E-03    66.556       -.92850E-06** at limit **
  26  Prefactor     .10000E-03    17.843        .32200E-06** at limit **
  27  norm          4.1371        3.6552       -.45384E-06    .18828E-04
  28  Normalizat    .49625        .18553       -.80875E-06   -.43215E-04
  29  Prefactor     1.4108        .18435       -.20719E-06   -.90096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4334
  Prefactor  = 10.0684
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.14939
  Prefactor  = 0.0001
  Prefactor  = 0.865799
  norm       = 7.02047
  Prefactor  = 10.9146
  Prefactor  = 2.68914
  Prefactor  = 2.56296
  norm       = 3.20443
  Prefactor  = 0.0001
  Prefactor  = 14.908
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 13.011
  norm       = 1.63513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.37443
  norm       = 3.60558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13708
  Normalizat = 0.49625
  Prefactor  = 1.41083
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.712     FROM HESSE     STATUS=OK           575 CALLS     3805 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.433        10.776        .93284E-04   -1.4849    
   2  Prefactor     10.068        9.6328        .12628E-03   -1.5073    
   3  norm          .10000E-03    6.9766        .59796E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1253        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1494        .38952        .27363E-04   -1.5494    
   6  Prefactor     .10000E-03    4.1650        .15453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .86580        2.3121        .18965E-03   -1.5522    
   8  norm          7.0205        12.422        .75710E-03   -1.5178    
   9  Prefactor     10.915        26.472        .12099E-03   -1.5047    
  10  Prefactor     2.6891        49.557        .24484E-03   -1.5380    
  11  Prefactor     2.5630        43.850        .25497E-03   -1.5388    
  12  norm          3.2044        2.2084        .93152E-04   -1.5350    
  13  Prefactor     .10000E-03    31.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.908        11.592        .51867E-03   -1.4936    
  15  Prefactor     .10000E-03    4.2900        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    6.4349        .38556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.011        12.511        .11102E-03   -1.4986    
  19  norm          1.6351        .96686        .42603E-04   -1.5452    
  20  Prefactor     .10000E-03    69.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5203        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.0219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3744        3.7894        .18219E-03   -1.5400    
  24  norm          3.6056        3.8414        .15344E-03   -1.5328    
  25  Prefactor     .10000E-03    66.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.1371        3.6314        .13033E-03   -1.5301    
  28  Normalizat    .49625        .21550        .32548E-03   -1.1259    
  29  Prefactor     1.4108        .21902        .20951E-03   -.80069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05485e-11
Minuit parameter uncertainties:
  1  10.7771
  2  9.63429
  3  3.37785e-06
  4  1.58692e-06
  5  0.389521
  6  1.12687e-05
  7  2.31238
  8  12.4264
  9  26.5009
  10  23.1101
  11  21.2202
  12  2.20842
  13  6.77573e-05
  14  11.5938
  15  5.37381e-06
  16  0.000596884
  17  1.67745e-06
  18  12.5139
  19  0.966871
  20  0.000154388
  21  1.14271e-06
  22  5.10674e-07
  23  3.78975
  24  3.84166
  25  9.82611e-05
  26  4.74441e-06
  27  3.63158
  28  0.215859
  29  0.219168
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.689e+00  2.311e+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.411e+00  2.192e-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:  4.963e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394910/likelihoodResults_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6062.6319369
delta logL = 0.0798578154181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6062.61504791
delta logL = 0.0967468133313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5981       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5210       1.0000          .0000       10.000    
     3 'Normalizat'    .46958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4267       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=   6062.615     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5687        78.112        .83859E-02    .95242E-03
   2  Index         3.5287        3.3319        .21140        .59704E-04
   3  Normalizat    .46956        .29190E-01    .75521E-01    .34986E-04
   4  Prefactor     1.4269        .30350E-01    .47175E-01   -.72880E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56874
  Index      = 3.52873
  Normalizat = 0.469561
  Prefactor  = 1.42691
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.615     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5687        335.86        .20053E-03   -1.5457    
   2  Index         3.5287        6.5367        .87393E-02   -.29868    
   3  Normalizat    .46956        .17391        .33442E-03   -1.1385    
   4  Prefactor     1.4269        .18095        .20853E-03   -.79608    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49038e-07
Minuit parameter uncertainties:
  1  46.171
  2  15.144
  3  0.174114
  4  0.181027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394910': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6062.61504205
delta logL = 0.0967526698932

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.569e+00  4.617e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.529e+00  1.514e+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.427e+00  1.810e-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:  4.696e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/394910/cmap_HighResolution_624758401_625017601_4FGL_J2235.8-3627_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-28 16:45:02.871899', job_id='394910', GAL2='1.43', fit_tolerance='1e-08', EG2='0.47', EG='0.50', time_epoch_completed='1632872702.87', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='9.68e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1487' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 394910: <4FGL_J2235.8-3627_daily_bin1487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1487 338.971 -36.4605 624758401 625017601 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

