/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 132 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 = 7490
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin192
RA = 335.497, Dec = -35.0712
tmin = 289094401, tmax = 289353601
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='270270', job_status='RUN', time_executed='2021-09-28 09:47:58.896134', time_epoch_executed='1632847678.9' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270270/ft1_4FGL_J2221.9-3504_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270270/ft1_4FGL_J2221.9-3504_daily_bin192.fits outfile=/scratch/kocevski/270270/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin192.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=289094401.0 tmax=289353601.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/270270/ltcube_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.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/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits
.....................!
real 11.92
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/270270/ltcube_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.fits outfile=/scratch/kocevski/270270/expmap_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.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/270270/ltcube_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.fits
.....................!
real 191.66
user 185.80
sys 5.54

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/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits scfile=/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits outfile=/scratch/kocevski/270270/cmap_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits scfile=/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits outfile=/scratch/kocevski/270270/cmap_HighResolution_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/270270/ft2_4FGL_J2221.9-3504_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270270/Model_4FGL_J2221.9-3504_daily_bin192.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/270270/ft1_filtered_4FGL_J2221.9-3504_daily_bin192.fits.....................!
real 41.28
user 39.89
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    26.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    24.974       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    123.35       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .79749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0803       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.316       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.620       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3633       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2698       1.0000         .10000E-03   10000.    
    25 'Prefactor '    54.310       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1258       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99553       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=   4624.857     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3526 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9406        .13715E-07** at limit **
   2  Prefactor     26.505        14.271        .10478E-06   -.72188E-05
   3  Prefactor     .10000E-03    6.3689        .42749E-07** at limit **
   4  norm          24.974        11.967        .28505E-07    .55236E-06
   5  Prefactor     .10001E-03    122.21       -.48155E-05** at limit **
   6  Prefactor     123.34        85.069        .86854E-05   -.85149E-05
   7  norm          .10000E-03    4.0009       -.43068E-06** at limit **
   8  norm          .79746        .40357       -.10490E-07   -.17715E-03
   9  Prefactor     .10000E-03    8.2467       -.16649E-06** at limit **
  10  Prefactor     2.6702        36.042        .49085E-06   -.43892E-05
  11  Prefactor     .99885        6.7288        .43087E-06   -.99637E-04
  12  Prefactor     .10000E-03    3.2315        .68548E-07** at limit **
  13  norm          14.894        28.347       -.44940E-06    .14242E-04
  14  Prefactor     .10000E-03    52.445       -.54244E-07** at limit **
  15  Prefactor     5.0808        20.493        .24711E-06   -.91272E-05
  16  Prefactor     11.317        25.546        .16268E-06   -.77975E-05
  17  norm          1.7306        2.8291       -.94985E-06    .71574E-04
  18  Prefactor     .10001E-03    212.78       -.41116E-05** at limit **
  19  Prefactor     46.622        24.596       -.14932E-07   -.18628E-04
  20  Prefactor     9.3638        9.3741        .11108E-06   -.68044E-05
  21  norm          .10000E-03    3.5529        .19754E-07** at limit **
  22  Prefactor     .10000E-03    7.8810        .22409E-07** at limit **
  23  Prefactor     .10000E-03    14.282       -.62345E-07** at limit **
  24  norm          1.2699        .89284       -.32867E-07    .10813E-03
  25  Prefactor     54.315        62.197        .19935E-06    .30105E-05
  26  Prefactor     .10000E-03    8.0748       -.22906E-07** at limit **
  27  Normalizat    1.1257        .25554       -.11763E-05    .21914E-04
  28  Prefactor     .99560        .20757        .15909E-06   -.27182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 26.5047
  Prefactor  = 0.0001
  norm       = 24.9743
  Prefactor  = 0.00010001
  Prefactor  = 123.34
  norm       = 0.0001
  norm       = 0.797464
  Prefactor  = 0.0001
  Prefactor  = 2.67019
  Prefactor  = 0.998845
  Prefactor  = 0.0001
  norm       = 14.8941
  Prefactor  = 0.0001
  Prefactor  = 5.08077
  Prefactor  = 11.3174
  norm       = 1.73058
  Prefactor  = 0.000100008
  Prefactor  = 46.622
  Prefactor  = 9.36378
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26993
  Prefactor  = 54.3146
  Prefactor  = 0.0001
  Normalizat = 1.12568
  Prefactor  = 0.9956
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.857     FROM HESSE     STATUS=OK           521 CALLS     4047 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9476        .92516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.505        14.299        .77814E-04   -1.4678    
   3  Prefactor     .10000E-03    6.3837        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.974        11.974        .80157E-04   -1.4708    
   5  Prefactor     .10001E-03    128.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     123.34        85.571        .36240E-04   -1.3482    
   7  norm          .10000E-03    4.0705        .13313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .79746        .40663        .29516E-04   -1.5529    
   9  Prefactor     .10000E-03    8.2893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6702        36.084        .24942E-03   -1.5381    
  11  Prefactor     .99885        21.031        .33020E-02   -1.5508    
  12  Prefactor     .10000E-03    3.3041        .11930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.894        28.312        .10379E-03   -1.4936    
  14  Prefactor     .10000E-03    52.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0808        20.363        .17839E-03   -1.5257    
  16  Prefactor     11.317        25.581        .11909E-03   -1.5035    
  17  norm          1.7306        2.7856        .13956E-03   -1.5445    
  18  Prefactor     .10001E-03    212.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.622        24.863        .58724E-04   -1.4341    
  20  Prefactor     9.3638        9.3907        .13097E-03   -1.5096    
  21  norm          .10000E-03    3.5888        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2699        .87533        .51248E-04   -1.5483    
  25  Prefactor     54.315        62.239        .54428E-04   -1.4233    
  26  Prefactor     .10000E-03    8.0814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1257        .30310        .28506E-03   -.88932    
  28  Prefactor     .99560        .24668        .25831E-03   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96647e-10
Minuit parameter uncertainties:
  1  5.63707e-07
  2  14.3012
  3  1.15803e-06
  4  11.9754
  5  0.0023071
  6  85.6569
  7  4.10399e-05
  8  0.406629
  9  2.00527e-05
  10  19.6459
  11  9.16974
  12  4.16791e-06
  13  28.337
  14  5.94645e-05
  15  20.3549
  16  25.6055
  17  2.78578
  18  0.0025374
  19  24.869
  20  9.39217
  21  1.10029e-05
  22  1.61148e-05
  23  5.83759e-05
  24  0.875336
  25  62.3134
  26  6.93272e-06
  27  0.303574
  28  0.246957
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  9.988e-01  9.170e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.956e-01  2.470e-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.126e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270270/likelihoodResults_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4624.78046034
delta logL = 0.0767587539185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4624.74777632
delta logL = 0.109442772467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0417       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9754       1.0000          .0000       10.000    
     3 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98730       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=   4624.748     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      252 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0417        9.5488        .50143E-02    .73090E-03
   2  Index         1.9749        1.0310        .25933E-01   -.20241E-04
   3  Normalizat    1.1290        .23629        .64352E-01    .75784E-05
   4  Prefactor     .98725        .20397        .46108E-01    .77433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.04167
  Index      = 1.97495
  Normalizat = 1.12897
  Prefactor  = 0.987246
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.748     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0417        9.6563        .20057E-03   -1.5306    
   2  Index         1.9749        1.0464        .10373E-02   -.64978    
   3  Normalizat    1.1290        .27776        .28467E-03   -.88827    
   4  Prefactor     .98725        .23992        .25923E-03   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13465e-10
Minuit parameter uncertainties:
  1  9.65999
  2  1.05885
  3  0.278116
  4  0.240181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270270': 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) = 4624.74777619
delta logL = 0.109442905091

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  4.042e+00  9.660e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.975e+00  1.059e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.872e-01  2.402e-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.129e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/270270/cmap_HighResolution_289094401_289353601_4FGL_J2221.9-3504_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.99e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-28 09:58:40.468498', job_id='270270', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632848320.47', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.09e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='192' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:58:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 270270: <4FGL_J2221.9-3504_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin192 335.497 -35.0712 289094401 289353601 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 :                                   640.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

