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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin411
RA = 35.281, Dec = 35.9359
tmin = 345859201, tmax = 346118401
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='309660', job_status='RUN', time_executed='2021-08-15 17:50:04.461872', time_epoch_executed='1629075004.46' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309660/ft1_4FGL_J0221.1+3556_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309660/ft1_4FGL_J0221.1+3556_daily_bin411.fits outfile=/scratch/kocevski/309660/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin411.fits ra=35.281 dec=35.9359 rad=12.0 tmin=345859201.0 tmax=346118401.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 2.82
user 2.58
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.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/309660/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.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.44
user 0.26
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/309660/ltcube_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.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/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits
.....................!
real 11.60
user 11.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/309660/ltcube_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits outfile=/scratch/kocevski/309660/expmap_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.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/309660/ltcube_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits
.....................!
real 157.05
user 151.38
sys 4.06

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/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits scfile=/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits outfile=/scratch/kocevski/309660/cmap_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.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.48
user 0.34
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits scfile=/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits outfile=/scratch/kocevski/309660/cmap_HighResolution_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.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.48
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits', '/scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits', expMap='/scratch/kocevski/309660/expmap_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits', expCube='/scratch/kocevski/309660/ltcube_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309660/Model_4FGL_J0221.1+3556_daily_bin411.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/309660/ft1_filtered_4FGL_J0221.1+3556_daily_bin411.fits
Spacecraft file(s): /scratch/kocevski/309660/ft2_4FGL_J0221.1+3556_daily_bin411.fits
Exposure map: /scratch/kocevski/309660/expmap_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits
Exposure cube: /scratch/kocevski/309660/ltcube_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309660/Model_4FGL_J0221.1+3556_daily_bin411.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) = 9920.36975635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1680       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .98264       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .59947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1420       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
    17 'norm      '    21.044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.355       1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1639       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88723       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=   9920.350     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2402 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1680        .99413       -.24948E-07    .10340E-03
   2  norm          3.1074        1.1347       -.77178E-08   -.19316E-03
   3  Prefactor     20.988        17.953        .49030E-05   -.11179E-04
   4  Prefactor     4.5255        3.8493       -.94380E-06   -.51427E-03
   5  Prefactor     19.046        20.945        .54180E-05   -.62455E-05
   6  Prefactor     .10000E-03    17.692        .24613E-06** at limit **
   7  norm          13.604        5.3424       -.31130E-06   -.40776E-04
   8  Prefactor     .10000E-03    5.2047       -.11497E-06** at limit **
   9  norm          2.2311        2.4147        .43191E-07   -.82663E-04
  10  Prefactor     .10000E-03    11.239       -.26345E-07** at limit **
  11  norm          .98225        .60730        .37529E-07   -.19811E-03
  12  norm          .10000E-03    161.45       -.26966E-05** at limit **
  13  norm          .59945        .32172        .56682E-08   -.55596E-03
  14  Prefactor     3.1404        6.8767       -.16677E-06   -.47687E-03
  15  norm          .10000E-03    3.2230        .58242E-07** at limit **
  16  Prefactor     11.424        36.495       -.72972E-05   -.86985E-05
  17  norm          21.043        3.5477        .47119E-07   -.38369E-04
  18  Prefactor     69.351        76.494       -.38996E-05    .73958E-06
  19  norm          .10000E-03    20.868       -.25337E-06** at limit **
  20  Prefactor     .10000E-03    3.5052        .79490E-08** at limit **
  21  Normalizat    1.1641        .23160       -.11161E-05    .19089E-04
  22  Prefactor     .88711        .96801E-01    .38055E-06   -.76490E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16796
  norm       = 3.10738
  Prefactor  = 20.9884
  Prefactor  = 4.52547
  Prefactor  = 19.0464
  Prefactor  = 0.0001
  norm       = 13.6044
  Prefactor  = 0.0001
  norm       = 2.23113
  Prefactor  = 0.0001
  norm       = 0.982253
  norm       = 0.0001
  norm       = 0.599449
  Prefactor  = 3.14035
  norm       = 0.0001
  Prefactor  = 11.424
  norm       = 21.0429
  Prefactor  = 69.3509
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16409
  Prefactor  = 0.887107
 **********
 **   18 **HESSE 
 **********

 FCN=   9920.350     FROM HESSE     STATUS=OK           350 CALLS     2752 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1680        1.0182        .89122E-03   -1.5492    
   2  norm          3.1074        1.1348        .61897E-04   -1.5355    
   3  Prefactor     20.988        17.960        .87417E-04   -1.4791    
   4  Prefactor     4.5255        3.8912        .16308E-03   -1.5282    
   5  Prefactor     19.046        20.810        .91756E-04   -1.4835    
   6  Prefactor     .10000E-03    17.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.604        5.3516        .10858E-03   -1.4970    
   8  Prefactor     .10000E-03    5.2368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2311        2.4107        .14860E-03   -1.5409    
  10  Prefactor     .10000E-03    11.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .98225        .59327        .55320E-04   -1.5510    
  12  norm          .10000E-03    161.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .59945        .31652        .39438E-04   -1.5553    
  14  Prefactor     3.1404        6.8434        .22869E-03   -1.5354    
  15  norm          .10000E-03    3.2398        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.424        36.033        .11848E-03   -1.5032    
  17  norm          21.043        3.5494        .72909E-04   -1.4790    
  18  Prefactor     69.351        76.577        .48200E-04   -1.4040    
  19  norm          .10000E-03    20.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1641        .26549        .38440E-03   -.87720    
  22  Prefactor     .88711        .11134        .19812E-03   -.96593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90117e-10
Minuit parameter uncertainties:
  1  1.01821
  2  1.13483
  3  17.9649
  4  3.89141
  5  20.818
  6  4.30433e-06
  7  5.35176
  8  2.76456e-05
  9  2.41082
  10  2.94944e-06
  11  0.593269
  12  1.19577e-05
  13  0.316525
  14  6.84508
  15  1.0163e-05
  16  36.1012
  17  3.54939
  18  76.6862
  19  3.27367e-05
  20  1.42628e-06
  21  0.265796
  22  0.111365
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  9.823e-01  5.933e-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:  8.871e-01  1.114e-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:  1.164e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.63e-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) = 9920.3390688
delta logL = 0.0112843644893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9920.33729438
delta logL = 0.0130587806034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98696       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89174       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=   9920.337     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98708        7.0383        .11881E-01    .33265E-03
   2  alpha         2.3865        3.6633        .41205        .20722E-04
   3  Normalizat    1.1474        .84985E-01    .87345E-01   -.31854E-04
   4  Prefactor     .89153        .29107E-01    .44900E-01   -.64815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.987083
  alpha      = 2.38652
  Normalizat = 1.1474
  Prefactor  = 0.89153
 **********
 **   18 **HESSE 
 **********

 FCN=   9920.337     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98708        .55770        .53300E-04   -1.5509    
   2  alpha         2.3865        .81334        .17450E-01   -.45406E-01
   3  Normalizat    1.1474        .26312        .38680E-03   -.88244    
   4  Prefactor     .89153        .11272        .19768E-03   -.96438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91884e-10
Minuit parameter uncertainties:
  1  0.5577
  2  0.828453
  3  0.263422
  4  0.112748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309660': 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) = 9920.33729009
delta logL = 0.0130630718213

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  9.871e-01  5.577e-01  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.387e+00  8.285e-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:  8.915e-01  1.127e-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:  1.147e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 35.281 35.936
Photon Index (Free Index): 2.39 +/- 0.83
Photon Flux (Free Index): 8.21e-08 +/- 9.21e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.51e-05

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/309660/cmap_HighResolution_345859201_346118401_4FGL_J0221.1+3556_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='2.70e-05', photon_flux_error='4.18e-08', dlogl='1.31e-02', energy_flux='2.69e-05', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-08-15 18:01:14.045464', photon_index_error2='0.83', photon_index2='2.39', ts='6.87', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.16', time_epoch_completed='1629075674.05', return_code='0', job_id='309660', GAL2='0.89', EG2='1.15', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='9.21e-08', ts2='6.93', photon_index='2.25' WHERE bin_id='411' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 309660: <4FGL_J0221.1+3556_daily_bin411> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin411> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:45:28 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:48:02 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:48:02 2021
Terminated at Sun Aug 15 18:01:14 2021
Results reported at Sun Aug 15 18:01:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin411 35.281 35.9359 345859201 346118401 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            946 sec.

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

