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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin210
RA = 335.497, Dec = -35.0712
tmin = 293760001, tmax = 294019201
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='270294', job_status='RUN', time_executed='2021-09-28 09:46:42.932238', time_epoch_executed='1632847602.93' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270294/ft1_4FGL_J2221.9-3504_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270294/ft1_4FGL_J2221.9-3504_daily_bin210.fits outfile=/scratch/kocevski/270294/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin210.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=293760001.0 tmax=294019201.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.52
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/270294/ltcube_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.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/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits
.....................!
real 11.70
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/270294/ltcube_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.fits outfile=/scratch/kocevski/270294/expmap_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.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/270294/ltcube_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.fits
.....................!
real 189.63
user 184.79
sys 4.52

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/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits scfile=/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits outfile=/scratch/kocevski/270294/cmap_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits scfile=/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits outfile=/scratch/kocevski/270294/cmap_HighResolution_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/270294/ft2_4FGL_J2221.9-3504_daily_bin210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270294/Model_4FGL_J2221.9-3504_daily_bin210.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/270294/ft1_filtered_4FGL_J2221.9-3504_daily_bin210.fits.....................!
real 41.57
user 40.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9487       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.799       1.0000         .10000E-03   10000.    
     8 'norm      '    .50663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80668       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.282       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.109       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6279       1.0000         .10000E-03   10000.    
    21 'norm      '    .13009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9123       1.0000         .10000E-03   10000.    
    24 'norm      '    .66108       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.823       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0916       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=   4709.954     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3517 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1495        .55454E-07** at limit **
   2  Prefactor     .10000E-03    9.3392       -.84182E-06** at limit **
   3  Prefactor     13.085        13.386        .32411E-07    .20826E-05
   4  norm          7.9500        8.9183       -.58066E-08   -.21474E-04
   5  Prefactor     .10000E-03    12.188       -.13102E-06** at limit **
   6  Prefactor     .10000E-03    58.477       -.45697E-05** at limit **
   7  norm          12.799        7.2277        .34929E-06   -.76773E-03
   8  norm          .50665        .33910       -.18280E-07    .27552E-04
   9  Prefactor     .10000E-03    7.9595       -.55238E-07** at limit **
  10  Prefactor     22.964        28.216        .42859E-06    .28659E-04
  11  Prefactor     .10000E-03    3.6180        .73796E-09** at limit **
  12  Prefactor     .80715        5.3597        .76793E-06   -.32482E-03
  13  norm          8.2399        17.002        .64880E-06   -.18141E-03
  14  Prefactor     .10000E-03    34.267       -.43294E-05** at limit **
  15  Prefactor     .10000E-03    18.949       -.13209E-05** at limit **
  16  Prefactor     21.279        23.887       -.42359E-06   -.32120E-04
  17  norm          2.3739        3.2152        .33555E-06   -.16764E-03
  18  Prefactor     32.106        66.581       -.29675E-05   -.45149E-04
  19  Prefactor     .91207        15.600       -.18660E-06   -.50240E-04
  20  Prefactor     6.6274        7.7432        .21380E-06   -.26767E-03
  21  norm          .10000E-03    2.9864        .21423E-06** at limit **
  22  Prefactor     .10000E-03    18.257        .12130E-05** at limit **
  23  Prefactor     7.9085        13.699        .20531E-05   -.73690E-03
  24  norm          .66163        1.3706       -.15603E-06   -.48324E-03
  25  Prefactor     .10001E-03    41.043        .79942E-05** at limit **
  26  Prefactor     13.817        23.814       -.15022E-05   -.13693E-03
  27  Normalizat    1.1107        .24403       -.21077E-06   -.64847E-06
  28  Prefactor     1.0913        .20418       -.26008E-06    .17601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0849
  norm       = 7.95001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 12.7992
  norm       = 0.506651
  Prefactor  = 0.0001
  Prefactor  = 22.9635
  Prefactor  = 0.0001
  Prefactor  = 0.807149
  norm       = 8.23994
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 21.2794
  norm       = 2.37388
  Prefactor  = 32.1056
  Prefactor  = 0.912069
  Prefactor  = 6.62742
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.90851
  norm       = 0.661628
  Prefactor  = 0.000100011
  Prefactor  = 13.8174
  Normalizat = 1.11068
  Prefactor  = 1.09132
 **********
 **   18 **HESSE 
 **********

 FCN=   4709.954     FROM HESSE     STATUS=OK           529 CALLS     4046 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3207        .30402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.085        13.388        .11074E-03   -1.4984    
   4  norm          7.9500        8.9271        .14222E-03   -1.5144    
   5  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.799        7.5132        .55982E-03   -1.4992    
   8  norm          .50665        .34098        .31108E-04   -1.5566    
   9  Prefactor     .10000E-03    7.9680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.964        28.226        .83590E-04   -1.4749    
  11  Prefactor     .10000E-03    3.6293        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80715        5.7121        .30808E-03   -1.5528    
  13  norm          8.2399        17.240        .69835E-03   -1.5134    
  14  Prefactor     .10000E-03    35.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.279        23.981        .86824E-04   -1.4785    
  17  norm          2.3739        3.3111        .11039E-03   -1.5400    
  18  Prefactor     32.106        68.811        .70712E-04   -1.4574    
  19  Prefactor     .91207        70.443        .49344E-02   -1.5517    
  20  Prefactor     6.6274        7.8020        .77935E-03   -1.5193    
  21  norm          .10000E-03    9.1679        .22251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.9085        15.653        .71273E-03   -1.5145    
  24  norm          .66163        1.3389        .71144E-03   -1.5545    
  25  Prefactor     .10001E-03    43.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.817        23.203        .10773E-03   -1.4964    
  27  Normalizat    1.1107        .30051        .28063E-03   -.89410    
  28  Prefactor     1.0913        .24944        .24718E-03   -.89745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83456e-08
Minuit parameter uncertainties:
  1  2.70417e-06
  2  6.37631e-05
  3  13.391
  4  8.92859
  5  1.131e-05
  6  0.000923493
  7  7.51379
  8  0.340981
  9  6.06711e-06
  10  28.2425
  11  1.90328e-07
  12  4.29473
  13  17.2507
  14  0.00066658
  15  0.000146477
  16  23.9922
  17  3.31137
  18  68.982
  19  16.0498
  20  7.80321
  21  0.000342596
  22  0.000109508
  23  15.6612
  24  1.33891
  25  0.0013816
  26  23.2182
  27  0.300974
  28  0.249706
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.903e-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:  1.091e+00  2.497e-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.111e+00  3.010e-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: 8.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270294/likelihoodResults_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.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) = 4709.9555551
delta logL = -0.00129919144092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4709.95425738
delta logL = -1.47482478496e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6624       1.0000          .0000       10.000    
     3 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0911       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=   4709.954     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      261 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.335        .12853E-01** at limit **
   2  Index         2.1163        5.2697        .50000       -.12117E-06
   3  Normalizat    1.1107        .21461E-01    .28063E-03    .34434E-05
   4  Prefactor     1.0913        .18850E-01    .24718E-03    .86468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11632
  Normalizat = 1.11068
  Prefactor  = 1.09132
 **********
 **   18 **HESSE 
 **********

 FCN=   4709.954     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    462.31        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1163        8.8942        .50000       -.61473    
   3  Normalizat    1.1107        .69917E-01    .11225E-04   -.89410    
   4  Prefactor     1.0913        .61415E-01    .98872E-05   -.89745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36466e-09
Minuit parameter uncertainties:
  1  0.000276867
  2  1170.85
  3  0.0699232
  4  0.0614194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270294': 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) = 4709.95425346
delta logL = 2.44940019911e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.769e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.116e+00  1.171e+03  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.091e+00  6.142e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.111e+00  6.992e-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/270294/cmap_HighResolution_293760001_294019201_4FGL_J2221.9-3504_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-28 09:57:22.671758', job_id='270294', GAL2='1.09', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632848242.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='210' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:57:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 270294: <4FGL_J2221.9-3504_daily_bin210> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin210> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:37 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:39 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:39 2021
Terminated at Tue Sep 28 09:57:23 2021
Results reported at Tue Sep 28 09:57:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin210 335.497 -35.0712 293760001 294019201 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

