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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1503
RA = 335.497, Dec = -35.0712
tmin = 628905601, tmax = 629164801
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='276249', job_status='RUN', time_executed='2021-09-28 10:08:41.963531', time_epoch_executed='1632848921.96' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276249/ft1_4FGL_J2221.9-3504_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276249/ft1_4FGL_J2221.9-3504_daily_bin1503.fits outfile=/scratch/kocevski/276249/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1503.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=628905601.0 tmax=629164801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/276249/ltcube_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.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/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits
.....................!
real 15.75
user 15.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/276249/ltcube_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.fits outfile=/scratch/kocevski/276249/expmap_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.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/276249/ltcube_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.fits
.....................!
real 192.67
user 187.03
sys 5.25

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/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits scfile=/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits outfile=/scratch/kocevski/276249/cmap_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits scfile=/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits outfile=/scratch/kocevski/276249/cmap_HighResolution_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/276249/ft2_4FGL_J2221.9-3504_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276249/Model_4FGL_J2221.9-3504_daily_bin1503.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/276249/ft1_filtered_4FGL_J2221.9-3504_daily_bin1503.fits.....................!
real 43.30
user 41.96
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.1919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37817       1.0000         .10000E-03   10000.    
     8 'norm      '    .60947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1733       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.576       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4643       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2430       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68256       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7637       1.0000         .10000E-03   10000.    
    24 'norm      '    .93572       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.158       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3850       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73247       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=   5026.283     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3502 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1344        3.6131        .20728E-06   -.24146E-04
   2  Prefactor     9.5414        11.424        .77013E-06   -.12811E-03
   3  Prefactor     .10000E-03    6.8555        .40159E-06** at limit **
   4  norm          5.1934        10.869        .35288E-06   -.58410E-04
   5  Prefactor     .10000E-03    10.201        .50285E-06** at limit **
   6  Prefactor     .10000E-03    87.624        .25285E-06** at limit **
   7  norm          .39382        3.3166       -.69300E-06    .14673E-03
   8  norm          .60927        .34301       -.77512E-08   -.65673E-03
   9  Prefactor     .10000E-03    6.2066       -.46286E-07** at limit **
  10  Prefactor     1.6387        32.113        .12886E-04   -.35447E-04
  11  Prefactor     .10000E-03    9.0751        .34547E-06** at limit **
  12  Prefactor     2.1741        3.7362        .11011E-06   -.52066E-04
  13  norm          .10000E-03    6.3618        .35228E-09** at limit **
  14  Prefactor     23.557        34.705        .18805E-05   -.49936E-05
  15  Prefactor     .10000E-03    27.401       -.30401E-06** at limit **
  16  Prefactor     6.4663        13.723       -.67672E-08   -.24825E-04
  17  norm          1.2431        1.5330        .10265E-08   -.13835E-04
  18  Prefactor     .10000E-03    18.318        .33330E-06** at limit **
  19  Prefactor     .10000E-03    5.9668       -.24037E-07** at limit **
  20  Prefactor     .68921        4.1489       -.74262E-07   -.77195E-04
  21  norm          .10000E-03    2.2152        .58417E-07** at limit **
  22  Prefactor     .10000E-03    8.2285       -.31527E-06** at limit **
  23  Prefactor     4.7586        13.999        .46577E-05   -.10882E-04
  24  norm          .93607        .96126       -.45114E-06    .50083E-03
  25  Prefactor     14.112        124.20        .88058E-05   -.13559E-04
  26  Prefactor     .10000E-03    12.506       -.26366E-06** at limit **
  27  Normalizat    1.3852        .21190        .13810E-05    .56898E-04
  28  Prefactor     .73221        .17872       -.38775E-05   -.25144E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13443
  Prefactor  = 9.54137
  Prefactor  = 0.0001
  norm       = 5.19338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.393822
  norm       = 0.609269
  Prefactor  = 0.0001
  Prefactor  = 1.63868
  Prefactor  = 0.0001
  Prefactor  = 2.17413
  norm       = 0.0001
  Prefactor  = 23.5569
  Prefactor  = 0.0001
  Prefactor  = 6.46628
  norm       = 1.24309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.68921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7586
  norm       = 0.936073
  Prefactor  = 14.1123
  Prefactor  = 0.0001
  Normalizat = 1.38518
  Prefactor  = 0.732207
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.283     FROM HESSE     STATUS=OK           525 CALLS     4027 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1344        3.5940        .16994E-03   -1.5416    
   2  Prefactor     9.5414        11.451        .64871E-03   -1.5090    
   3  Prefactor     .10000E-03    6.9189        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1934        10.824        .17642E-03   -1.5252    
   5  Prefactor     .10000E-03    10.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    88.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .39382        18.995        .22813E-02   -1.5582    
   8  norm          .60927        .34399        .29219E-04   -1.5552    
   9  Prefactor     .10000E-03    6.2226        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6387        33.599        .16485E-02   -1.5452    
  11  Prefactor     .10000E-03    9.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1741        3.7276        .17029E-03   -1.5413    
  13  norm          .10000E-03    6.3631        .17465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.557        34.700        .82497E-04   -1.4737    
  15  Prefactor     .10000E-03    27.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4663        13.715        .15785E-03   -1.5199    
  17  norm          1.2431        1.5096        .94879E-04   -1.5485    
  18  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9892        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .68921        13.434        .27638E-02   -1.5542    
  21  norm          .10000E-03    2.2559        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7586        15.120        .92172E-03   -1.5272    
  24  norm          .93607        1.0045        .48497E-03   -1.5514    
  25  Prefactor     14.112        126.56        .10645E-03   -1.4956    
  26  Prefactor     .10000E-03    12.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3852        .25640        .22716E-03   -.81058    
  28  Prefactor     .73221        .21378        .26245E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43731e-08
Minuit parameter uncertainties:
  1  3.59431
  2  11.4539
  3  1.66065e-05
  4  10.8281
  5  1.31056e-05
  6  0.000230887
  7  5.47133
  8  0.343988
  9  1.65232e-05
  10  14.8493
  11  4.43339e-05
  12  3.72804
  13  4.99709e-06
  14  34.7293
  15  5.42231e-05
  16  13.7217
  17  1.5096
  18  8.38063e-06
  19  2.04526e-05
  20  6.08675
  21  3.22873e-06
  22  1.89854e-06
  23  15.1318
  24  1.0045
  25  84.764
  26  9.47764e-06
  27  0.256633
  28  0.21402
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.433e-05  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:  7.322e-01  2.140e-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.385e+00  2.566e-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: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276249/likelihoodResults_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.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) = 5026.28395081
delta logL = -0.000516711699674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5026.28343407
delta logL = 2.94758137898e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6966       1.0000          .0000       10.000    
     3 'Normalizat'    1.3852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73223       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=   5026.248     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      354 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12332        2.4965        .18142E-01    .21173E-02
   2  Index         5.1494        2.0274        .50000        .29084E-04
   3  Normalizat    1.3663        .15563E-01    .22715E-03   -.10220E-03
   4  Prefactor     .74271        .13604E-01    .26245E-03   -.29616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12332
  Index      = 5.1494
  Normalizat = 1.36631
  Prefactor  = 0.74271
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.248     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      385 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12332        84.516        .71630E-03   -1.5638    
   2  Index         5.1494        6.2635        .94679E-02    .29885E-01
   3  Normalizat    1.3663        .15420        .45431E-04   -.81608    
   4  Prefactor     .74271        .12586        .10498E-04   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.46618e-10
Minuit parameter uncertainties:
  1  6.46334
  2  34.0278
  3  0.154252
  4  0.125907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276249': 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) = 5026.24750329
delta logL = 0.0359308086945

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.233e-01  6.463e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  5.149e+00  3.403e+01  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:  7.427e-01  1.259e-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.366e+00  1.543e-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/276249/cmap_HighResolution_628905601_629164801_4FGL_J2221.9-3504_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-09-28 10:20:11.950810', job_id='276249', GAL2='0.74', fit_tolerance='1e-08', EG2='1.37', EG='1.39', time_epoch_completed='1632849611.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.59e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1503' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 276249: <4FGL_J2221.9-3504_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:05:38 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:05:40 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:05:40 2021
Terminated at Tue Sep 28 10:20:12 2021
Results reported at Tue Sep 28 10:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1503 335.497 -35.0712 628905601 629164801 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 :                                   687.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

