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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin653
RA = 35.281, Dec = 35.9359
tmin = 408585601, tmax = 408844801
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='310027', job_status='RUN', time_executed='2021-08-15 17:54:46.798558', time_epoch_executed='1629075286.8' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310027/ft1_4FGL_J0221.1+3556_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310027/ft1_4FGL_J0221.1+3556_daily_bin653.fits outfile=/scratch/kocevski/310027/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin653.fits ra=35.281 dec=35.9359 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.85
user 3.31
sys 1.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.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/310027/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/310027/ft1_filtered_4FGL_J0221.1+3556_daily_bin653.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 1.77
user 0.29
sys 1.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310027/ft1_filtered_4FGL_J0221.1+3556_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/310027/ltcube_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.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/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits
.....................!
real 13.27
user 11.48
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310027/ft1_filtered_4FGL_J0221.1+3556_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/310027/ltcube_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.fits outfile=/scratch/kocevski/310027/expmap_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.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/310027/ltcube_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.fits
.....................!
real 159.26
user 152.68
sys 6.23

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/310027/ft1_filtered_4FGL_J0221.1+3556_daily_bin653.fits scfile=/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits outfile=/scratch/kocevski/310027/cmap_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.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 1.74
user 0.32
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310027/ft1_filtered_4FGL_J0221.1+3556_daily_bin653.fits scfile=/scratch/kocevski/310027/ft2_4FGL_J0221.1+3556_daily_bin653.fits outfile=/scratch/kocevski/310027/cmap_HighResolution_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.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 1.78
user 0.34
sys 1.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.0938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11391E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28624E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.582       1.0000         .10000E-03   10000.    
     7 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4364       1.0000         .10000E-03   10000.    
    15 'norm      '    .12557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.290       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.127       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89089       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1170       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=   2873.548     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2462 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .87095        .19757E-08** at limit **
   2  norm          3.0937        1.9620        .87149E-08    .67481E-05
   3  Prefactor     .10000E-03    22.254       -.59722E-07** at limit **
   4  Prefactor     6.4973        5.7173       -.59743E-06   -.12878E-02
   5  Prefactor     .10000E-03    246.78        .44098E-04** at limit **
   6  Prefactor     48.571        58.837       -.43756E-05    .38121E-05
   7  norm          .10000E-03    7.8040        .12533E-06** at limit **
   8  Prefactor     10.386        16.563       -.22964E-05   -.24194E-03
   9  norm          .10000E-03    4.2172        .16759E-07** at limit **
  10  Prefactor     .10000E-03    12.929        .42287E-07** at limit **
  11  norm          .10000E-03    .44718        .63135E-08** at limit **
  12  norm          .10000E-03    87.005       -.17875E-04** at limit **
  13  norm          .10000E-03    .36868       -.32206E-08** at limit **
  14  Prefactor     7.4605        13.156        .72966E-06    .14821E-03
  15  norm          .10015E-03    16.407       -.87441E-06** at limit **
  16  Prefactor     .10000E-03    45.961       -.23611E-04** at limit **
  17  norm          18.291        5.7020       -.23959E-07   -.47788E-04
  18  Prefactor     .10000E-03    110.72        .18178E-04** at limit **
  19  norm          .10000E-03    47.801        .26777E-04** at limit **
  20  Prefactor     33.123        23.513        .14504E-06    .45403E-06
  21  Normalizat    .89090        .42814        .13647E-05   -.57700E-04
  22  Prefactor     1.1170        .19532       -.19539E-06   -.86497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.09373
  Prefactor  = 0.0001
  Prefactor  = 6.49733
  Prefactor  = 0.0001
  Prefactor  = 48.571
  norm       = 0.0001
  Prefactor  = 10.3856
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.46046
  norm       = 0.000100146
  Prefactor  = 0.0001
  norm       = 18.2905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.1227
  Normalizat = 0.890903
  Prefactor  = 1.11702
 **********
 **   18 **HESSE 
 **********

 FCN=   2873.548     FROM HESSE     STATUS=OK           346 CALLS     2808 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .87243        .48857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0937        1.9668        .57969E-04   -1.5356    
   3  Prefactor     .10000E-03    22.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4973        5.7789        .58299E-03   -1.5198    
   5  Prefactor     .10000E-03    249.84        .21409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.571        58.775        .57531E-04   -1.4313    
   7  norm          .10000E-03    7.8426        .14596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.386        16.721        .12439E-03   -1.5063    
   9  norm          .10000E-03    4.2756        .10741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46317        .69869E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    86.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .82391        .62178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4605        13.977        .14707E-03   -1.5162    
  15  norm          .10015E-03    44.972        .53643E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.291        5.7009        .68368E-04   -1.4852    
  18  Prefactor     .10000E-03    110.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    47.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.123        23.506        .69621E-04   -1.4556    
  21  Normalizat    .89090        .48338        .40859E-03   -.96781    
  22  Prefactor     1.1170        .22169        .18289E-03   -.88925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01177e-09
Minuit parameter uncertainties:
  1  2.91755e-08
  2  1.96683
  3  2.09614e-05
  4  5.77939
  5  0.000411377
  6  58.8456
  7  3.34886e-05
  8  16.7288
  9  4.05386e-07
  10  1.55365e-05
  11  1.88641e-07
  12  3.91543e-07
  13  8.62445e-07
  14  13.9827
  15  0.00512651
  16  2.18289e-06
  17  5.70109
  18  4.71514e-05
  19  4.98289e-05
  20  23.5123
  21  0.485762
  22  0.221877
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.000e-04  1.886e-07  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:  1.117e+00  2.219e-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:  8.909e-01  4.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.281 35.936
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310027/likelihoodResults_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.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) = 2873.54796113
delta logL = -0.000149237497226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2873.54781252
delta logL = -6.29037458566e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2371       1.0000          .0000       5.0000    
     3 'Normalizat'    .89103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1171       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=   2873.548     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      210 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2563        .90712E-02** at limit **
   2  alpha         2.0474        3.3211        .41443        .13999E-05
   3  Normalizat    .89091        .39533E-01    .92247E-01    .15407E-04
   4  Prefactor     1.1170        .19674E-01    .36971E-01    .16061E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04741
  Normalizat = 0.890906
  Prefactor  = 1.11702
 **********
 **   18 **HESSE 
 **********

 FCN=   2873.548     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51763        .71665E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0474        2.6986        .50000       -.18204    
   3  Normalizat    .89091        .43015        .40859E-03   -.96780    
   4  Prefactor     1.1170        .21534        .18289E-03   -.88925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16918e-09
Minuit parameter uncertainties:
  1  6.13438e-06
  2  61.4005
  3  0.431819
  4  0.215509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310027': 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) = 2873.54780781
delta logL = 4.07841753258e-06

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.000e-04  6.134e-06  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.047e+00  6.140e+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:  1.117e+00  2.155e-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:  8.909e-01  4.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.281 35.936

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/310027/cmap_HighResolution_408585601_408844801_4FGL_J0221.1+3556_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-08-15 18:02:03.454746', job_id='310027', GAL2='1.12', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629075723.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='653' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 310027: <4FGL_J0221.1+3556_daily_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin653 35.281 35.9359 408585601 408844801 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 :                                   453.52 sec.
    Max Memory :                                 1048 MB
    Average Memory :                             285.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            972 sec.

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

