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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1305
RA = 335.497, Dec = -35.0712
tmin = 577584001, tmax = 577843201
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='274960', job_status='RUN', time_executed='2021-09-28 10:01:56.588001', time_epoch_executed='1632848516.59' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274960

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274960/ft1_4FGL_J2221.9-3504_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274960/ft1_4FGL_J2221.9-3504_daily_bin1305.fits outfile=/scratch/kocevski/274960/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1305.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.78
user 2.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/274960/ltcube_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.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/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits
.....................!
real 12.14
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/274960/ltcube_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits outfile=/scratch/kocevski/274960/expmap_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.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/274960/ltcube_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits
.....................!
real 190.82
user 185.43
sys 4.99

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/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits scfile=/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits outfile=/scratch/kocevski/274960/cmap_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.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.67
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits scfile=/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits outfile=/scratch/kocevski/274960/cmap_HighResolution_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.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.62
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274960/Model_4FGL_J2221.9-3504_daily_bin1305.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/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits.....................!
real 54.54
user 53.15
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits', '/scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits', expMap='/scratch/kocevski/274960/expmap_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits', expCube='/scratch/kocevski/274960/ltcube_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274960/Model_4FGL_J2221.9-3504_daily_bin1305.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/274960/ft1_filtered_4FGL_J2221.9-3504_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/274960/ft2_4FGL_J2221.9-3504_daily_bin1305.fits
Exposure map: /scratch/kocevski/274960/expmap_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits
Exposure cube: /scratch/kocevski/274960/ltcube_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274960/Model_4FGL_J2221.9-3504_daily_bin1305.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) = 6981.71063272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11613E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .46954E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42238E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11570E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8488       1.0000         .10000E-03   10000.    
    13 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.090       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.040       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6459       1.0000         .10000E-03   10000.    
    21 'norm      '    .10972       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3316       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86322       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=   6981.665     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3570 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7104        4.1477       -.57592E-08   -.14737E-04
   2  Prefactor     .10000E-03    39.469       -.81347E-05** at limit **
   3  Prefactor     .10000E-03    4.9096        .32161E-07** at limit **
   4  norm          .10000E-03    5.1303       -.86955E-06** at limit **
   5  Prefactor     .10003E-03    17.704       -.27514E-05** at limit **
   6  Prefactor     .10000E-03    46.403       -.80862E-06** at limit **
   7  norm          .10000E-03    2.0640       -.35033E-07** at limit **
   8  norm          1.2740        .37356       -.10335E-07   -.21506E-03
   9  Prefactor     .10000E-03    4.5491        .46613E-08** at limit **
  10  Prefactor     .10000E-03    9.6569        .28318E-06** at limit **
  11  Prefactor     9.5153        8.8727       -.10330E-05   -.87049E-04
  12  Prefactor     1.8495        2.8288       -.19095E-06   -.47258E-04
  13  norm          .10000E-03    29.690        .14175E-05** at limit **
  14  Prefactor     36.118        34.775        .15491E-05   -.91647E-05
  15  Prefactor     .10000E-03    6.4192       -.19321E-06** at limit **
  16  Prefactor     .10000E-03    7.5518        .33647E-06** at limit **
  17  norm          1.2949        2.1073        .19171E-06    .90498E-04
  18  Prefactor     62.031        50.929       -.12586E-05   -.23051E-04
  19  Prefactor     .10000E-03    5.8485        .67348E-07** at limit **
  20  Prefactor     4.6460        8.2201       -.26530E-06   -.20702E-04
  21  norm          .10969        2.1921        .12984E-06   -.23831E-04
  22  Prefactor     .10000E-03    9.8442        .23873E-06** at limit **
  23  Prefactor     .10000E-03    10.042        .16568E-06** at limit **
  24  norm          2.5731        .80737        .51636E-08   -.19786E-03
  25  Prefactor     .10000E-03    51.698        .43742E-05** at limit **
  26  Prefactor     .10000E-03    8.1612       -.42693E-06** at limit **
  27  Normalizat    1.3317        .18394        .38309E-07   -.24438E-03
  28  Prefactor     .86306        .15649       -.29828E-06   -.12940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.71037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 1.27397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.51532
  Prefactor  = 1.84946
  norm       = 0.0001
  Prefactor  = 36.1184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29491
  Prefactor  = 62.0307
  Prefactor  = 0.0001
  Prefactor  = 4.64604
  norm       = 0.109693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33167
  Prefactor  = 0.86306
 **********
 **   18 **HESSE 
 **********

 FCN=   6981.665     FROM HESSE     STATUS=OK           531 CALLS     4101 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7104        4.1478        .12111E-03   -1.5153    
   2  Prefactor     .10000E-03    40.470        .33729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9990        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.012        .34154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    13.487        .95815E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    18.305        .22126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2740        .36777        .26228E-04   -1.5482    
   9  Prefactor     .10000E-03    4.5574        .17405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5153        8.9074        .64954E-03   -1.5091    
  12  Prefactor     1.8495        2.8051        .16653E-03   -1.5436    
  13  norm          .10000E-03    29.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.118        34.762        .66710E-04   -1.4505    
  15  Prefactor     .10000E-03    6.4259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2949        2.0503        .13323E-03   -1.5480    
  18  Prefactor     62.031        50.396        .50944E-04   -1.4131    
  19  Prefactor     .10000E-03    5.8770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6460        8.2103        .18672E-03   -1.5277    
  21  norm          .10969        28.553        .22956E-02   -1.5642    
  22  Prefactor     .10000E-03    9.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5731        .82975        .39014E-04   -1.5387    
  25  Prefactor     .10000E-03    51.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3317        .21598        .24249E-03   -.82626    
  28  Prefactor     .86306        .18374        .25821E-03   -.97444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74968e-08
Minuit parameter uncertainties:
  1  4.14794
  2  0.000259103
  3  4.71818e-06
  4  0.000465956
  5  0.00117669
  6  3.8693e-05
  7  0.000410891
  8  0.367767
  9  1.75146e-06
  10  5.15358e-06
  11  8.90861
  12  2.80528
  13  1.0148e-05
  14  34.7817
  15  2.99033e-06
  16  6.90398e-06
  17  2.05039
  18  50.4305
  19  3.92013e-06
  20  8.21224
  21  3.53964
  22  4.68787e-06
  23  2.28688e-05
  24  0.829754
  25  5.83665e-05
  26  9.99558e-06
  27  0.216124
  28  0.183876
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  9.515e+00  8.909e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.631e-01  1.839e-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:  1.332e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.05e-05

TS (Fixed Index): 1.60
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274960/likelihoodResults_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.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) = 6980.94949518
delta logL = 0.715161308313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6980.90946834
delta logL = 0.755188152916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4705       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2882       1.0000          .0000       10.000    
     3 'Normalizat'    1.2708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90277       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.

 FCN=   6980.909     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4667        25.984        .65038E-02    .77987E-03
   2  Index         4.2896        3.5146        .17164        .11509E-03
   3  Normalizat    1.2710        .54724E-01    .55906E-01   -.27498E-03
   4  Prefactor     .90262        .48217E-01    .45040E-01    .50168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46668
  Index      = 4.28964
  Normalizat = 1.271
  Prefactor  = 0.902621
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.909     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4667        50.356        .80424E-04   -1.5394    
   2  Index         4.2896        7.1365        .62239E-02   -.14255    
   3  Normalizat    1.2710        .19589        .24722E-03   -.84436    
   4  Prefactor     .90262        .17247        .25322E-03   -.96050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8287e-07
Minuit parameter uncertainties:
  1  22.3112
  2  6.66477
  3  0.196007
  4  0.172574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274960': 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) = 6980.90946722
delta logL = 0.755189268605

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  2.467e+00  2.231e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  4.290e+00  6.665e+00  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:  9.026e-01  1.726e-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:  1.271e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 4.29 +/- 6.66
Photon Flux (Free Index): 8.58e-08 +/- 5.62e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.46e-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/274960/cmap_HighResolution_577584001_577843201_4FGL_J2221.9-3504_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='1.23e-05', photon_flux_error='4.29e-08', dlogl='7.55e-01', energy_flux='1.13e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-28 10:15:46.823902', photon_index_error2='6.66', photon_index2='4.29', ts='1.60', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.46e-05', EG='1.33', time_epoch_completed='1632849346.82', return_code='0', job_id='274960', GAL2='0.90', EG2='1.27', return_code2='102', energy_flux_error='1.05e-05', photon_flux_error2='5.62e-08', ts2='3.27', photon_index='2.68' WHERE bin_id='1305' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 274960: <4FGL_J2221.9-3504_daily_bin1305> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1305> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:48 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:00:50 2021
Terminated at Tue Sep 28 10:15:47 2021
Results reported at Tue Sep 28 10:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1305 335.497 -35.0712 577584001 577843201 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 :                                   828.27 sec.
    Max Memory :                                 1191 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

