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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin585
RA = 335.497, Dec = -35.0712
tmin = 390960001, tmax = 391219201
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='271877', job_status='RUN', time_executed='2021-09-28 09:52:57.781929', time_epoch_executed='1632847977.78' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271877/ft1_4FGL_J2221.9-3504_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271877/ft1_4FGL_J2221.9-3504_daily_bin585.fits outfile=/scratch/kocevski/271877/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin585.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.61
user 4.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.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/271877/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/271877/ltcube_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.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/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits
.....................!
real 11.53
user 11.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/271877/ltcube_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits outfile=/scratch/kocevski/271877/expmap_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.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/271877/ltcube_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits
.....................!
real 190.23
user 184.88
sys 4.97

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits outfile=/scratch/kocevski/271877/cmap_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.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=335.497 yref=-35.0712 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits outfile=/scratch/kocevski/271877/cmap_HighResolution_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.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=335.497 yref=-35.0712 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271877/Model_4FGL_J2221.9-3504_daily_bin585.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/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits.....................!
real 41.17
user 39.85
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits', '/scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits', expMap='/scratch/kocevski/271877/expmap_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits', expCube='/scratch/kocevski/271877/ltcube_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271877/Model_4FGL_J2221.9-3504_daily_bin585.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/271877/ft1_filtered_4FGL_J2221.9-3504_daily_bin585.fits
Spacecraft file(s): /scratch/kocevski/271877/ft2_4FGL_J2221.9-3504_daily_bin585.fits
Exposure map: /scratch/kocevski/271877/expmap_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits
Exposure cube: /scratch/kocevski/271877/ltcube_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271877/Model_4FGL_J2221.9-3504_daily_bin585.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) = 4961.31886537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4324       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19912E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    34.551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49574E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1313       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15184E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42018       1.0000         .10000E-03   10000.    
    21 'norm      '    21.351       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3280       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.586       1.0000         .10000E-03   10000.    
    24 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .56449       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4961.283     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3557 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9100        5.4037        .51145E-07   -.61778E-06
   2  Prefactor     9.5484        9.5367        .13796E-06    .35560E-04
   3  Prefactor     .10000E-03    13.287       -.27537E-06** at limit **
   4  norm          10.914        8.7184       -.28740E-06    .13518E-04
   5  Prefactor     .10000E-03    14.646        .90931E-06** at limit **
   6  Prefactor     .10001E-03    226.14       -.10363E-04** at limit **
   7  norm          2.4313        5.0815        .46919E-05   -.29731E-03
   8  norm          1.0807        .44204       -.13091E-06    .73946E-03
   9  Prefactor     .10000E-03    7.6727       -.47980E-07** at limit **
  10  Prefactor     43.976        27.008        .65286E-07    .13689E-04
  11  Prefactor     .10000E-03    2.6089       -.28011E-07** at limit **
  12  Prefactor     .10000E-03    2.5071        .14980E-06** at limit **
  13  norm          34.553        28.198        .89759E-07   -.14041E-04
  14  Prefactor     .10001E-03    346.84        .24499E-04** at limit **
  15  Prefactor     30.753        27.737        .27719E-06   -.39735E-04
  16  Prefactor     .10000E-03    34.684       -.10959E-05** at limit **
  17  norm          .10000E-03    .96367       -.11051E-06** at limit **
  18  Prefactor     3.1167        127.44        .31897E-05    .58943E-05
  19  Prefactor     .10000E-03    31.799        .89382E-06** at limit **
  20  Prefactor     .41033        7.5152        .92129E-06   -.13033E-03
  21  norm          21.349        8.0248       -.17077E-06   -.30739E-03
  22  Prefactor     4.3366        22.058        .39720E-05    .73897E-04
  23  Prefactor     12.578        13.754       -.10731E-05   -.27729E-03
  24  norm          .10000E-03    .27983        .82705E-07** at limit **
  25  Prefactor     .10000E-03    27.752       -.58313E-06** at limit **
  26  Prefactor     .10000E-03    7.8480        .15368E-06** at limit **
  27  Normalizat    .56426        .20859       -.19535E-05   -.13572E-03
  28  Prefactor     1.2929        .18705        .15921E-06   -.99759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91
  Prefactor  = 9.54841
  Prefactor  = 0.0001
  norm       = 10.9137
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.43132
  norm       = 1.08069
  Prefactor  = 0.0001
  Prefactor  = 43.9756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.5529
  Prefactor  = 0.000100014
  Prefactor  = 30.7527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.1167
  Prefactor  = 0.0001
  Prefactor  = 0.410331
  norm       = 21.3493
  Prefactor  = 4.33658
  Prefactor  = 12.5783
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.564264
  Prefactor  = 1.29289
 **********
 **   18 **HESSE 
 **********

 FCN=   4961.283     FROM HESSE     STATUS=OK           519 CALLS     4076 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9100        5.4043        .13101E-03   -1.5145    
   2  Prefactor     9.5484        9.5350        .12970E-03   -1.5090    
   3  Prefactor     .10000E-03    13.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.914        8.7161        .12128E-03   -1.5047    
   5  Prefactor     .10000E-03    14.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    229.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4313        5.1037        .10578E-02   -1.5396    
   8  norm          1.0807        .44256        .28018E-04   -1.5500    
   9  Prefactor     .10000E-03    7.7112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.976        26.975        .60456E-04   -1.4381    
  11  Prefactor     .10000E-03    2.6162        .11110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.246        .20859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.553        28.180        .68176E-04   -1.4532    
  14  Prefactor     .10001E-03    347.06        .38428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.753        27.729        .72251E-04   -1.4598    
  16  Prefactor     .10000E-03    34.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .96465        .67388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1167        126.82        .22911E-03   -1.5355    
  19  Prefactor     .10000E-03    33.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .41033        25.891        .35903E-02   -1.5580    
  21  norm          21.349        8.0173        .86683E-04   -1.4784    
  22  Prefactor     4.3366        21.775        .19363E-03   -1.5291    
  23  Prefactor     12.578        13.636        .11291E-03   -1.4999    
  24  norm          .10000E-03    .28407        .71971E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.8557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .56426        .23172        .33103E-03   -1.0952    
  28  Prefactor     1.2929        .21692        .21312E-03   -.83519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33771e-08
Minuit parameter uncertainties:
  1  5.40461
  2  9.53649
  3  1.19639e-05
  4  8.7171
  5  8.66112e-05
  6  0.00242046
  7  5.10459
  8  0.442564
  9  1.59192e-06
  10  26.9825
  11  1.92641e-06
  12  1.18261e-05
  13  28.1909
  14  0.00437617
  15  27.7403
  16  0.000209388
  17  5.54511e-06
  18  39.8519
  19  7.99418e-05
  20  6.52102
  21  8.01766
  22  19.4458
  23  13.6394
  24  2.68866e-06
  25  6.58125e-05
  26  2.41294e-05
  27  0.232118
  28  0.217071
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.926e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.293e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.643e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271877/likelihoodResults_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.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) = 4961.28519599
delta logL = -0.0017767218942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4961.28341907
delta logL = 1.91466824617e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6596       1.0000          .0000       10.000    
     3 'Normalizat'    .56431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   4961.283     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.761        .11249E-01** at limit **
   2  Index         2.1109        7.1168        .50000        .56641E-06
   3  Normalizat    .56427        .13568E-01    .33103E-03    .22769E-04
   4  Prefactor     1.2929        .12844E-01    .21312E-03    .71483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11088
  Normalizat = 0.564265
  Prefactor  = 1.29289
 **********
 **   18 **HESSE 
 **********

 FCN=   4961.283     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.53        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1109        7.3620        .50000       -.61606    
   3  Normalizat    .56427        .41380E-01    .13241E-04   -1.0952    
   4  Prefactor     1.2929        .39173E-01    .42623E-04   -.83519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47778e-09
Minuit parameter uncertainties:
  1  0.000312295
  2  765.167
  3  0.0413824
  4  0.0391738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271877': 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) = 4961.28341531
delta logL = 3.95071765524e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.123e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.111e+00  7.652e+02  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.293e+00  3.917e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.643e-01  4.138e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

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/271877/cmap_HighResolution_390960001_391219201_4FGL_J2221.9-3504_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-28 10:04:02.720944', job_id='271877', GAL2='1.29', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632848642.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='585' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 271877: <4FGL_J2221.9-3504_daily_bin585> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin585> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:48 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:50:49 2021
Terminated at Tue Sep 28 10:04:03 2021
Results reported at Tue Sep 28 10:04:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin585 335.497 -35.0712 390960001 391219201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

