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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1502
RA = 335.497, Dec = -35.0712
tmin = 628646401, tmax = 628905601
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='276247', job_status='RUN', time_executed='2021-09-28 10:07:15.695288', time_epoch_executed='1632848835.7' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276247/ft1_4FGL_J2221.9-3504_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276247/ft1_4FGL_J2221.9-3504_daily_bin1502.fits outfile=/scratch/kocevski/276247/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1502.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=628646401.0 tmax=628905601.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.51
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/276247/ltcube_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.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/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits
.....................!
real 11.94
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/276247/ltcube_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.fits outfile=/scratch/kocevski/276247/expmap_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.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/276247/ltcube_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.fits
.....................!
real 190.88
user 186.18
sys 4.38

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/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits scfile=/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits outfile=/scratch/kocevski/276247/cmap_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits scfile=/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits outfile=/scratch/kocevski/276247/cmap_HighResolution_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.497 yref=-35.0712 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/276247/ft2_4FGL_J2221.9-3504_daily_bin1502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276247/Model_4FGL_J2221.9-3504_daily_bin1502.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/276247/ft1_filtered_4FGL_J2221.9-3504_daily_bin1502.fits......................!
real 37.52
user 36.10
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.830       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6554       1.0000         .10000E-03   10000.    
    13 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.167       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.890       1.0000         .10000E-03   10000.    
    17 'norm      '    .61800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22497E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6386       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5065       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11083E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.736       1.0000         .10000E-03   10000.    
    24 'norm      '    .33885       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6026       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94919       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99913       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=   4364.435     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3493 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2065        .97474E-07** at limit **
   2  Prefactor     10.339        9.3325       -.10635E-05   -.30851E-04
   3  Prefactor     .10000E-03    3.4240       -.41209E-07** at limit **
   4  norm          14.117        10.667       -.32472E-06   -.29978E-04
   5  Prefactor     19.827        20.226       -.30156E-06   -.67326E-04
   6  Prefactor     .10000E-03    58.163        .58765E-05** at limit **
   7  norm          .10000E-03    1.3114       -.15182E-06** at limit **
   8  norm          .64249        .33877       -.18328E-07   -.71521E-04
   9  Prefactor     .10000E-03    32.266        .17206E-04** at limit **
  10  Prefactor     .10001E-03    9.8103       -.32324E-07** at limit **
  11  Prefactor     .10000E-03    3.3947       -.12402E-07** at limit **
  12  Prefactor     1.6556        3.3558       -.31357E-06   -.41507E-03
  13  norm          .10000E-03    21.863       -.36442E-05** at limit **
  14  Prefactor     .10000E-03    19.853        .82961E-06** at limit **
  15  Prefactor     15.162        17.834        .74955E-06    .19998E-04
  16  Prefactor     13.879        35.030       -.67972E-05    .55388E-05
  17  norm          .62240        2.5373       -.11608E-05   -.88313E-03
  18  Prefactor     .10000E-03    138.25       -.22066E-04** at limit **
  19  Prefactor     3.6318        15.564       -.86605E-06   -.72925E-04
  20  Prefactor     .10000E-03    2.5690        .72095E-07** at limit **
  21  norm          3.5115        5.7023       -.20174E-07   -.62893E-03
  22  Prefactor     .10000E-03    60.453        .22256E-04** at limit **
  23  Prefactor     21.757        19.127       -.58330E-06   -.52065E-03
  24  norm          .33643        1.3330       -.44732E-06   -.24076E-02
  25  Prefactor     .10000E-03    40.916       -.31733E-04** at limit **
  26  Prefactor     3.6170        15.157        .22089E-05   -.11874E-03
  27  Normalizat    .95008        .22158        .11616E-05   -.38181E-04
  28  Prefactor     .99840        .19094        .29912E-06   -.44701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.3394
  Prefactor  = 0.0001
  norm       = 14.1175
  Prefactor  = 19.827
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.642493
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 1.65556
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1624
  Prefactor  = 13.8789
  norm       = 0.622405
  Prefactor  = 0.000100001
  Prefactor  = 3.63177
  Prefactor  = 0.0001
  norm       = 3.51151
  Prefactor  = 0.0001
  Prefactor  = 21.7571
  norm       = 0.336429
  Prefactor  = 0.0001
  Prefactor  = 3.61697
  Normalizat = 0.950076
  Prefactor  = 0.998402
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.435     FROM HESSE     STATUS=OK           519 CALLS     4012 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2075        .70867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.339        9.3385        .12461E-03   -1.5065    
   3  Prefactor     .10000E-03    3.4294        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.117        10.681        .10662E-03   -1.4956    
   5  Prefactor     19.827        20.213        .89944E-04   -1.4817    
   6  Prefactor     .10000E-03    58.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3133        .73867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64249        .33821        .27072E-04   -1.5548    
   9  Prefactor     .10000E-03    32.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    77.719        .40208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4111        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6556        3.3254        .16579E-03   -1.5451    
  13  norm          .10000E-03    21.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.162        17.823        .10284E-03   -1.4929    
  16  Prefactor     13.879        35.143        .10747E-03   -1.4963    
  17  norm          .62240        2.5542        .20305E-03   -1.5550    
  18  Prefactor     .10000E-03    137.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6318        15.629        .21179E-03   -1.5327    
  20  Prefactor     .10000E-03    2.5716        .10341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5115        5.5601        .17184E-03   -1.5333    
  22  Prefactor     .10000E-03    61.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.757        17.342        .85913E-04   -1.4775    
  24  norm          .33643        1.1284        .92191E-04   -1.5592    
  25  Prefactor     .10000E-03    40.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6170        14.361        .21288E-03   -1.5328    
  27  Normalizat    .95008        .25916        .26353E-03   -.94722    
  28  Prefactor     .99840        .22360        .22901E-03   -.92783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55297e-09
Minuit parameter uncertainties:
  1  1.06868e-07
  2  9.33983
  3  2.72584e-06
  4  10.6825
  5  20.2196
  6  2.84947e-05
  7  5.58972e-07
  8  0.338208
  9  0.000238705
  10  0.00202436
  11  9.11819e-07
  12  3.32575
  13  4.40148e-05
  14  2.1851e-05
  15  17.829
  16  35.1951
  17  2.52171
  18  0.000723139
  19  15.0746
  20  2.59732e-06
  21  5.56093
  22  7.28257e-05
  23  17.346
  24  1.12851
  25  2.50643e-05
  26  14.3749
  27  0.259506
  28  0.223806
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  9.118e-07  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.984e-01  2.238e-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.501e-01  2.595e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276247/likelihoodResults_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.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) = 4364.43657175
delta logL = -0.00139084354942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4364.43518322
delta logL = -2.31398644246e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6609       1.0000          .0000       10.000    
     3 'Normalizat'    .94994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99853       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=   4364.435     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      247 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.172        .12014E-01** at limit **
   2  Index         2.2155        8.4965        .50000        .10418E-06
   3  Normalizat    .95008        .13398E-01    .26353E-03    .13909E-03
   4  Prefactor     .99840        .11968E-01    .22901E-03    .16124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21551
  Normalizat = 0.950077
  Prefactor  = 0.998403
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.435     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.67        .12940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2155        6.3904        .50000       -.59065    
   3  Normalizat    .95008        .41434E-01    .10541E-04   -.94722    
   4  Prefactor     .99840        .37013E-01    .45802E-04   -.92783    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44674e-10
Minuit parameter uncertainties:
  1  6.91193e-05
  2  806.448
  3  0.0414358
  4  0.0370139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276247': 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) = 4364.43517858
delta logL = 2.32083766605e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.912e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.216e+00  8.064e+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.984e-01  3.701e-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:  9.501e-01  4.144e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/276247/cmap_HighResolution_628646401_628905601_4FGL_J2221.9-3504_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-28 10:17:27.538157', job_id='276247', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632849447.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1502' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 276247: <4FGL_J2221.9-3504_daily_bin1502> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1502> 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) <bullet0075>, 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:17:28 2021
Results reported at Tue Sep 28 10:17:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1502 335.497 -35.0712 628646401 628905601 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 :                                   610.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             347.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

