/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 3 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin58
RA = 335.497, Dec = -35.0712
tmin = 254361601, tmax = 254620801
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='270079', job_status='RUN', time_executed='2021-09-28 09:45:32.990036', time_epoch_executed='1632847532.99' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270079/ft1_4FGL_J2221.9-3504_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270079/ft1_4FGL_J2221.9-3504_daily_bin58.fits outfile=/scratch/kocevski/270079/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin58.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.44
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.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/270079/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin58.fits evtable="EVENTS" outfile="/scratch/kocevski/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/270079/ltcube_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.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/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits
.....................!
real 12.69
user 12.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/270079/ltcube_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.fits outfile=/scratch/kocevski/270079/expmap_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.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/270079/ltcube_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.fits
.....................!
real 189.37
user 185.02
sys 3.96

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/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits outfile=/scratch/kocevski/270079/cmap_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits outfile=/scratch/kocevski/270079/cmap_HighResolution_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/270079/ft2_4FGL_J2221.9-3504_daily_bin58.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270079/Model_4FGL_J2221.9-3504_daily_bin58.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/270079/ft1_filtered_4FGL_J2221.9-3504_daily_bin58.fits.....................!
real 57.72
user 55.78
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8973       1.0000         .10000E-03   10000.    
     4 'norm      '    29.582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.542       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11023E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27738E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .94733       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0556       1.0000         .10000E-03   10000.    
    24 'norm      '    .94809       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93341       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=   7611.377     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3484 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.273        5.2240       -.70461E-09    .21813E-06
   2  Prefactor     7.0736        9.7601       -.25897E-07    .84864E-05
   3  Prefactor     3.8967        6.4546        .11558E-05    .13930E-03
   4  norm          29.581        9.6179        .30732E-07   -.36394E-05
   5  Prefactor     .10000E-03    10.137        .36793E-06** at limit **
   6  Prefactor     75.549        51.612       -.75879E-06   -.16263E-04
   7  norm          .10000E-03    2.0355        .73566E-07** at limit **
   8  norm          1.6226        .39754        .69743E-08   -.50780E-04
   9  Prefactor     3.8421        6.7903        .10043E-05    .10511E-03
  10  Prefactor     22.756        15.990        .19158E-06    .64522E-05
  11  Prefactor     .10000E-03    5.3320        .31051E-07** at limit **
  12  Prefactor     .10000E-03    1.5754        .49070E-08** at limit **
  13  norm          16.146        14.589       -.33764E-07    .37043E-06
  14  Prefactor     .10000E-03    11.170       -.29897E-06** at limit **
  15  Prefactor     29.379        21.447       -.13656E-06    .46958E-05
  16  Prefactor     .10000E-03    12.871        .14641E-07** at limit **
  17  norm          1.8335        1.8022       -.24881E-06    .10239E-03
  18  Prefactor     13.553        37.175        .52871E-05    .12681E-04
  19  Prefactor     .10000E-03    5.0596       -.38954E-06** at limit **
  20  Prefactor     .10000E-03    4.1973       -.56293E-06** at limit **
  21  norm          .94248        2.5541       -.45377E-07   -.22944E-03
  22  Prefactor     .10000E-03    4.6018        .15372E-07** at limit **
  23  Prefactor     1.0489        6.2595        .74149E-06   -.31322E-03
  24  norm          .94859        .66101       -.92165E-08   -.26098E-03
  25  Prefactor     .10000E-03    10.365        .46362E-07** at limit **
  26  Prefactor     .10000E-03    5.3362       -.57960E-07** at limit **
  27  Normalizat    1.1300        .17471        .30847E-06    .34931E-04
  28  Prefactor     .93335        .15412       -.65270E-06    .33371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2729
  Prefactor  = 7.0736
  Prefactor  = 3.89673
  norm       = 29.5806
  Prefactor  = 0.0001
  Prefactor  = 75.5489
  norm       = 0.0001
  norm       = 1.6226
  Prefactor  = 3.84208
  Prefactor  = 22.7564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1462
  Prefactor  = 0.0001
  Prefactor  = 29.3795
  Prefactor  = 0.0001
  norm       = 1.83349
  Prefactor  = 13.5526
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.942482
  Prefactor  = 0.0001
  Prefactor  = 1.04889
  norm       = 0.948594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12995
  Prefactor  = 0.933346
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.377     FROM HESSE     STATUS=OK           527 CALLS     4011 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.273        5.2263        .11434E-03   -1.5007    
   2  Prefactor     7.0736        9.7284        .15081E-03   -1.5176    
   3  Prefactor     3.8967        6.4953        .10219E-02   -1.5313    
   4  norm          29.581        9.6100        .73664E-04   -1.4620    
   5  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.549        51.592        .46198E-04   -1.3967    
   7  norm          .10000E-03    2.0652        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6226        .39788        .26110E-04   -1.5453    
   9  Prefactor     3.8421        6.8089        .10294E-02   -1.5316    
  10  Prefactor     22.756        15.988        .83963E-04   -1.4754    
  11  Prefactor     .10000E-03    5.3799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5903        .10689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.146        14.584        .99675E-04   -1.4904    
  14  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.379        21.509        .73918E-04   -1.4623    
  16  Prefactor     .10000E-03    12.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8335        1.8059        .10119E-03   -1.5437    
  18  Prefactor     13.553        37.658        .10870E-03   -1.4972    
  19  Prefactor     .10000E-03    17.615        .37420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.230        .33788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .94248        2.4137        .20567E-03   -1.5514    
  22  Prefactor     .10000E-03    4.6051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0489        26.585        .29816E-02   -1.5503    
  24  norm          .94859        .78014        .45212E-04   -1.5513    
  25  Prefactor     .10000E-03    10.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1300        .20464        .26099E-03   -.88796    
  28  Prefactor     .93335        .18031        .25507E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.657e-10
Minuit parameter uncertainties:
  1  5.2265
  2  9.73053
  3  6.49651
  4  9.61046
  5  2.68389e-05
  6  51.6223
  7  4.12619e-06
  8  0.397876
  9  6.81028
  10  15.9905
  11  3.00095e-06
  12  7.75631e-07
  13  14.5868
  14  3.02258e-06
  15  21.5148
  16  5.77015e-06
  17  1.80594
  18  37.7241
  19  0.000202786
  20  0.000178477
  21  2.41392
  22  6.16697e-06
  23  10.566
  24  0.780151
  25  1.09745e-06
  26  1.11116e-05
  27  0.20478
  28  0.180429
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.001e-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:  9.333e-01  1.804e-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.130e+00  2.048e-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: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270079/likelihoodResults_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.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) = 7611.37768814
delta logL = -0.000885824562829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7611.37680235
delta logL = -4.08435880672e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6759       1.0000          .0000       10.000    
     3 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93337       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=   7611.377     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.945        .90712E-02** at limit **
   2  Index         2.6751        8.1536        .50000        .13531E-05
   3  Normalizat    1.1300        .10468E-01    .59015E-01   -.34677E-04
   4  Prefactor     .93335        .94422E-02    .45429E-01   -.15167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6751
  Normalizat = 1.12995
  Prefactor  = 0.933346
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.377     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6751        8.2056        .50000       -.48361    
   3  Normalizat    1.1300        .28489E-01    .26099E-03   -.88796    
   4  Prefactor     .93335        .25708E-01    .25507E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.76846e-08
Minuit parameter uncertainties:
  1  6.81613e-05
  2  989.462
  3  0.0284894
  4  0.0257081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270079': 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) = 7611.37680231
delta logL = 5.29325916432e-10

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.816e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.675e+00  9.895e+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:  9.333e-01  2.571e-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:  1.130e+00  2.849e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/270079/cmap_HighResolution_254361601_254620801_4FGL_J2221.9-3504_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-28 09:59:35.041178', job_id='270079', GAL2='0.93', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632848375.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.29e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='58' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 270079: <4FGL_J2221.9-3504_daily_bin58> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin58> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:20 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:22 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:45:22 2021
Terminated at Tue Sep 28 09:59:35 2021
Results reported at Tue Sep 28 09:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin58 335.497 -35.0712 254361601 254620801 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 :                                   839.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

