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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1005
RA = 335.497, Dec = -35.0712
tmin = 499824001, tmax = 500083201
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='273513', job_status='RUN', time_executed='2021-09-28 09:58:09.382188', time_epoch_executed='1632848289.38' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273513/ft1_4FGL_J2221.9-3504_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273513/ft1_4FGL_J2221.9-3504_daily_bin1005.fits outfile=/scratch/kocevski/273513/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1005.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.17
user 4.91
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/273513/ltcube_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.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/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/273513/ltcube_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.fits outfile=/scratch/kocevski/273513/expmap_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.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/273513/ltcube_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.fits
.....................!
real 190.27
user 184.21
sys 5.76

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/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits scfile=/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits outfile=/scratch/kocevski/273513/cmap_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits scfile=/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits outfile=/scratch/kocevski/273513/cmap_HighResolution_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.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/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/273513/ft2_4FGL_J2221.9-3504_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273513/Model_4FGL_J2221.9-3504_daily_bin1005.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/273513/ft1_filtered_4FGL_J2221.9-3504_daily_bin1005.fits.....................!
real 43.91
user 42.56
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.571       1.0000         .10000E-03   10000.    
     4 'norm      '    12.576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.702       1.0000         .10000E-03   10000.    
     8 'norm      '    .12317E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.131       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1970       1.0000         .10000E-03   10000.    
    13 'norm      '    32.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    17 'norm      '    .11212E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    105.47       1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12178E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92460       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1908       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=   4678.225     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3489 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8623        3.6616        .21822E-08   -.54677E-06
   2  Prefactor     2.4259        5.5854        .30654E-05   -.46960E-04
   3  Prefactor     28.570        14.306       -.30889E-06    .71810E-05
   4  norm          12.575        8.3635        .26682E-08    .63683E-05
   5  Prefactor     .10000E-03    11.477       -.81569E-06** at limit **
   6  Prefactor     .10000E-03    24.638       -.63921E-07** at limit **
   7  norm          12.706        7.2328        .99611E-07    .47090E-04
   8  norm          .10000E-03    .30055        .15614E-07** at limit **
   9  Prefactor     .10000E-03    14.191        .95592E-06** at limit **
  10  Prefactor     61.138        30.798       -.63008E-06   -.23916E-05
  11  Prefactor     .10000E-03    28.286       -.14732E-05** at limit **
  12  Prefactor     4.1971        4.1517        .12230E-06    .57467E-06
  13  norm          32.446        27.559       -.31349E-06    .72459E-06
  14  Prefactor     .10000E-03    23.522        .62023E-06** at limit **
  15  Prefactor     .10000E-03    25.362       -.37873E-06** at limit **
  16  Prefactor     16.496        33.602       -.30764E-06    .11625E-04
  17  norm          .10000E-03    2.2551       -.77300E-06** at limit **
  18  Prefactor     105.43        101.80        .49475E-05   -.16107E-05
  19  Prefactor     60.489        34.179       -.91457E-06    .27552E-04
  20  Prefactor     .10000E-03    8.0380       -.52257E-06** at limit **
  21  norm          .10000E-03    8.8199        .55027E-06** at limit **
  22  Prefactor     .10000E-03    10.997       -.91186E-06** at limit **
  23  Prefactor     .10000E-03    12.221       -.11126E-05** at limit **
  24  norm          .10000E-03    .36675       -.94072E-07** at limit **
  25  Prefactor     .10000E-03    42.802        .19916E-05** at limit **
  26  Prefactor     .10000E-03    14.676        .95603E-06** at limit **
  27  Normalizat    .92431        .27235        .11347E-06    .34266E-04
  28  Prefactor     1.1910        .20218       -.29655E-06    .57876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.8623
  Prefactor  = 2.42594
  Prefactor  = 28.5696
  norm       = 12.5748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.1382
  Prefactor  = 0.0001
  Prefactor  = 4.19712
  norm       = 32.4462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4958
  norm       = 0.0001
  Prefactor  = 105.429
  Prefactor  = 60.4895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.924308
  Prefactor  = 1.19103
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.225     FROM HESSE     STATUS=OK           523 CALLS     4012 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8623        3.6655        .12391E-03   -1.5315    
   2  Prefactor     2.4259        5.5916        .11773E-02   -1.5396    
   3  Prefactor     28.570        14.322        .74952E-04   -1.4638    
   4  norm          12.575        8.3649        .11296E-03   -1.4999    
   5  Prefactor     .10000E-03    11.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.706        7.2606        .11239E-03   -1.4995    
   8  norm          .10000E-03    .33739        .11125E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.138        30.879        .51319E-04   -1.4143    
  11  Prefactor     .10000E-03    29.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1971        4.1595        .13471E-03   -1.5298    
  13  norm          32.446        27.563        .70347E-04   -1.4568    
  14  Prefactor     .10000E-03    23.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.496        33.687        .98622E-04   -1.4895    
  17  norm          .10000E-03    2.3087        .10094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     105.43        102.06        .19578E-03   -1.3651    
  19  Prefactor     60.489        34.442        .51592E-04   -1.4151    
  20  Prefactor     .10000E-03    8.0638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.9394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .37369        .40439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    42.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .92431        .32028        .33702E-03   -.95611    
  28  Prefactor     1.1910        .23797        .23979E-03   -.86608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42099e-10
Minuit parameter uncertainties:
  1  3.6657
  2  5.59276
  3  14.3237
  4  8.3657
  5  8.87875e-06
  6  1.30337e-06
  7  7.26109
  8  1.12876e-05
  9  2.80702e-06
  10  30.8873
  11  0.000148828
  12  4.15974
  13  27.5736
  14  5.55694e-06
  15  3.06375e-05
  16  33.7256
  17  4.33146e-05
  18  102.233
  19  34.4531
  20  6.48328e-06
  21  8.52098e-05
  22  2.06527e-05
  23  4.8775e-05
  24  1.81586e-06
  25  1.89264e-05
  26  3.84278e-05
  27  0.320944
  28  0.23818
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.488e-04  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.191e+00  2.382e-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:  9.243e-01  3.209e-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: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273513/likelihoodResults_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.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) = 4678.22470481
delta logL = -0.000164109055731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4678.22454177
delta logL = -1.06589413917e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5956       1.0000          .0000       10.000    
     3 'Normalizat'    .92432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1911       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=   4678.225     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      293 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    6751.0        .36285E-02** at limit **
   2  Index         2.7026        8.6089        .50000       -.56252E-04
   3  Normalizat    .92431        .82343E-01    .33702E-03    .93507E-04
   4  Prefactor     1.1910        .65478E-01    .23979E-03   -.37454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100124
  Index      = 2.70261
  Normalizat = 0.92431
  Prefactor  = 1.19103
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.225     FROM HESSE     STATUS=OK            29 CALLS      322 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    69.844        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7026        6.2285        .50000       -.47741    
   3  Normalizat    .92431        .28843        .13481E-04   -.95611    
   4  Prefactor     1.1910        .23142        .95918E-05   -.86608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95278e-09
Minuit parameter uncertainties:
  1  0.00589091
  2  6.25329
  3  0.28891
  4  0.231621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273513': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4678.22454038
delta logL = 3.20900653605e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.001e-04  5.891e-03  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.703e+00  6.253e+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:  1.191e+00  2.316e-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:  9.243e-01  2.889e-01  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/273513/cmap_HighResolution_499824001_500083201_4FGL_J2221.9-3504_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-28 10:08:51.214144', job_id='273513', GAL2='1.19', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632848931.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1005' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:08:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 273513: <4FGL_J2221.9-3504_daily_bin1005> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1005> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:56:00 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:56:01 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:56:01 2021
Terminated at Tue Sep 28 10:08:52 2021
Results reported at Tue Sep 28 10:08:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1005 335.497 -35.0712 499824001 500083201 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 :                                   641.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

