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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin723
RA = 35.281, Dec = 35.9359
tmin = 426729601, tmax = 426988801
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='311292', job_status='RUN', time_executed='2021-08-15 17:56:29.452939', time_epoch_executed='1629075389.45' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311292/ft1_4FGL_J0221.1+3556_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311292/ft1_4FGL_J0221.1+3556_daily_bin723.fits outfile=/scratch/kocevski/311292/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin723.fits ra=35.281 dec=35.9359 rad=12.0 tmin=426729601.0 tmax=426988801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.08
user 4.35
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.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/311292/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.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.89
user 0.28
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/311292/ltcube_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.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/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits
.....................!
real 13.57
user 12.60
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/311292/ltcube_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits outfile=/scratch/kocevski/311292/expmap_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.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/311292/ltcube_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits
.....................!
real 156.14
user 150.95
sys 4.72

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.1+3556 @ 35.281 35.9359

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits outfile=/scratch/kocevski/311292/cmap_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.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=35.281 yref=35.9359 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.96
user 0.33
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits outfile=/scratch/kocevski/311292/cmap_HighResolution_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.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=35.281 yref=35.9359 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.93
user 0.32
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311292/Model_4FGL_J0221.1+3556_daily_bin723.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/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits.....................!
real 77.69
user 75.72
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits', '/scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits', expMap='/scratch/kocevski/311292/expmap_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits', expCube='/scratch/kocevski/311292/ltcube_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311292/Model_4FGL_J0221.1+3556_daily_bin723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.1+3556'

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.936e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/311292/ft1_filtered_4FGL_J0221.1+3556_daily_bin723.fits
Spacecraft file(s): /scratch/kocevski/311292/ft2_4FGL_J0221.1+3556_daily_bin723.fits
Exposure map: /scratch/kocevski/311292/expmap_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits
Exposure cube: /scratch/kocevski/311292/ltcube_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311292/Model_4FGL_J0221.1+3556_daily_bin723.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) = 8129.30014346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1172       1.0000         .10000E-03   10000.    
     2 'norm      '    .90715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.414       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9672       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5317       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .67162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.076       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    22.893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.722       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73448       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8129.297     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2364 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1172        1.1394        .39602E-08    .13130E-03
   2  norm          .90720        .75453        .21453E-07   -.28006E-04
   3  Prefactor     .10000E-03    4.3640       -.22759E-07** at limit **
   4  Prefactor     3.4714        3.1663        .12611E-06   -.14780E-03
   5  Prefactor     .10000E-03    13.176        .26305E-07** at limit **
   6  Prefactor     .10000E-03    77.013       -.22736E-05** at limit **
   7  norm          .10000E-03    5.1529        .19933E-06** at limit **
   8  Prefactor     32.422        10.336       -.29641E-06   -.38034E-03
   9  norm          .10000E-03    1.7071       -.61456E-07** at limit **
  10  Prefactor     1.9674        5.2299        .30382E-05    .59439E-03
  11  norm          6.5315        .99289        .29387E-08   -.95706E-05
  12  norm          .10000E-03    38.920        .51667E-06** at limit **
  13  norm          .67158        .30345        .73184E-08   -.96146E-04
  14  Prefactor     .10000E-03    1.6362        .10205E-07** at limit **
  15  norm          .10000E-03    1.7873       -.47211E-07** at limit **
  16  Prefactor     23.065        30.381       -.23025E-05   -.25529E-03
  17  norm          3.8581        1.9345        .73977E-06   -.34752E-02
  18  Prefactor     .10000E-03    27.560       -.95839E-06** at limit **
  19  norm          22.890        23.774       -.22242E-06   -.64849E-04
  20  Prefactor     23.723        11.406        .10073E-06    .15190E-04
  21  Normalizat    .73433        .21908       -.35336E-06   -.44625E-04
  22  Prefactor     .98479        .10272       -.21877E-06   -.20044E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11716
  norm       = 0.907204
  Prefactor  = 0.0001
  Prefactor  = 3.47145
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 32.422
  norm       = 0.0001
  Prefactor  = 1.96739
  norm       = 6.53153
  norm       = 0.0001
  norm       = 0.671578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0653
  norm       = 3.85807
  Prefactor  = 0.0001
  norm       = 22.8899
  Prefactor  = 23.7226
  Normalizat = 0.734334
  Prefactor  = 0.984793
 **********
 **   18 **HESSE 
 **********

 FCN=   8129.297     FROM HESSE     STATUS=OK           344 CALLS     2708 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1172        1.1421        .68915E-04   -1.5417    
   2  norm          .90720        .75870        .69335E-04   -1.5517    
   3  Prefactor     .10000E-03    4.3731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4714        3.1705        .14549E-03   -1.5335    
   5  Prefactor     .10000E-03    13.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.3521        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.422        10.414        .70380E-04   -1.4569    
   9  norm          .10000E-03    1.7330        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9674        5.4620        .29568E-03   -1.5427    
  11  norm          6.5315        .99153        .33334E-04   -1.5197    
  12  norm          .10000E-03    38.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .67158        .30316        .32267E-04   -1.5544    
  14  Prefactor     .10000E-03    1.6495        .11259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8016        .11769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.065        31.108        .83384E-04   -1.4747    
  17  norm          3.8581        2.2479        .49052E-03   -1.5315    
  18  Prefactor     .10000E-03    27.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          22.890        23.864        .83716E-04   -1.4751    
  20  Prefactor     23.723        11.404        .82243E-04   -1.4733    
  21  Normalizat    .73433        .24359        .41747E-03   -1.0255    
  22  Prefactor     .98479        .11537        .17874E-03   -.93238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57719e-09
Minuit parameter uncertainties:
  1  1.14216
  2  0.758704
  3  2.13971e-06
  4  3.1706
  5  1.29079e-05
  6  0.000868559
  7  2.85391e-05
  8  10.4146
  9  2.98211e-06
  10  5.46341
  11  0.991529
  12  0.00014045
  13  0.303165
  14  4.40306e-06
  15  6.91467e-07
  16  31.1298
  17  2.24799
  18  0.000217359
  19  23.8741
  20  11.4052
  21  0.24395
  22  0.115399
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  6.532e+00  9.915e-01  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.848e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  7.343e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 254.16
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.61e-07 +/- 6.99e-08
Energy Flux (Fixed Index): 1.79e-04 +/- 2.72e-05

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) = 8102.97190133
delta logL = 26.3247905721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8102.94375009
delta logL = 26.3529418118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7032       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3388       1.0000          .0000       5.0000    
     3 'Normalizat'    .96855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8102.944     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7031        1.2635        .38746E-02    .12853E-03
   2  alpha         1.3388        .10852        .88380E-01   -.75791E-04
   3  Normalizat    .96844        .20430        .83828E-01    .75204E-04
   4  Prefactor     .92287        .99085E-01    .45295E-01    .34688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.70309
  alpha      = 1.33879
  Normalizat = 0.968443
  Prefactor  = 0.922869
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.944     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7031        1.4079        .38525E-04   -1.5190    
   2  alpha         1.3388        .12192        .38810E-03   -.48305    
   3  Normalizat    .96844        .23144        .37112E-03   -.94095    
   4  Prefactor     .92287        .11226        .18433E-03   -.95346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43301e-12
Minuit parameter uncertainties:
  1  1.40788
  2  0.121983
  3  0.231679
  4  0.112286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311292': 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) = 8102.94374993
delta logL = 26.3529419721

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  6.703e+00  1.408e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  1.339e+00  1.220e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.229e-01  1.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.684e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 304.74
Ra Dec: 35.281 35.936
Photon Index (Free Index): 1.34 +/- 0.12
Photon Flux (Free Index): 2.39e-07 +/- 5.05e-08
Energy Flux (Free Index): 8.11e-04 +/- 2.38e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/311292/cmap_HighResolution_426729601_426988801_4FGL_J0221.1+3556_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.61e-07', energy_flux2='8.11e-04', photon_flux_error='6.99e-08', dlogl='2.64e+01', energy_flux='1.79e-04', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-08-15 18:06:35.733029', photon_index_error2='0.12', photon_index2='1.34', ts='254.16', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.38e-04', EG='0.73', time_epoch_completed='1629075995.73', return_code='0', job_id='311292', GAL2='0.92', EG2='0.97', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='5.05e-08', ts2='304.74', photon_index='2.25' WHERE bin_id='723' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 311292: <4FGL_J0221.1+3556_daily_bin723> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 17:50:26 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:54:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:54:17 2021
Terminated at Sun Aug 15 18:06:36 2021
Results reported at Sun Aug 15 18:06:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin723 35.281 35.9359 426729601 426988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.1+3556 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            970 sec.

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

