aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 56 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7477
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1742
RA = 35.6696, Dec = 43.0357
tmin = 690854401, tmax = 691113601
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='217420', job_status='RUN', time_executed='2022-11-26 00:13:10.193771', time_epoch_executed='1669450390.19' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217420/ft1_4FGL_J0222.6+4302_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217420/ft1_4FGL_J0222.6+4302_daily_bin1742.fits outfile=/scratch/kocevski/217420/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1742.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=690854401.0 tmax=691113601.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.93
user 2.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.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/217420/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1742.fits evtable="EVENTS" outfile="/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 422

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217420/ltcube_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.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/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits
.....................!
real 16.65
user 16.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217420/ltcube_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits outfile=/scratch/kocevski/217420/expmap_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.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/217420/ltcube_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits
.....................!
real 193.35
user 188.42
sys 4.56

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 181 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits outfile=/scratch/kocevski/217420/cmap_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.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.6696 yref=43.0357 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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits outfile=/scratch/kocevski/217420/cmap_HighResolution_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.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.6696 yref=43.0357 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217420/Model_4FGL_J0222.6+4302_daily_bin1742.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits.....................!
real 62.13
user 59.86
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits', '/scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits', expMap='/scratch/kocevski/217420/expmap_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits', expCube='/scratch/kocevski/217420/ltcube_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217420/Model_4FGL_J0222.6+4302_daily_bin1742.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217420/ft1_filtered_4FGL_J0222.6+4302_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217420/ft2_4FGL_J0222.6+4302_daily_bin1742.fits
Exposure map: /scratch/kocevski/217420/expmap_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217420/ltcube_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217420/Model_4FGL_J0222.6+4302_daily_bin1742.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) = 4644.97471532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37239E-05   1.0000          .0000       .10000E+07
     2 'norm      '    2.5840       1.0000          .0000       .10000E+07
     3 'norm      '    1.7438       1.0000          .0000       .10000E+07
     4 'Prefactor '    25.654       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49916E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16922E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    56.966       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12377E-01   1.0000          .0000       .10000E+07
     9 'norm      '    1.4973       1.0000          .0000       .10000E+07
    10 'norm      '    .14772E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .92440       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41738E-02   1.0000          .0000       .10000E+07
    13 'norm      '    19.532       1.0000          .0000       .10000E+07
    14 'norm      '    .91544       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29784E-02   1.0000          .0000       .10000E+07
    16 'norm      '    34.080       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34377E-01   1.0000          .0000       .10000E+07
    18 'norm      '    4.7018       1.0000          .0000       .10000E+07
    19 'Normalizat'    .38353       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2988       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4644.973     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1584 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23259E-07    19.670        .20529E-06** at limit **
   2  norm          2.5829        1.6583       -.21483E-07   -.25182E-02
   3  norm          1.7440        .94475       -.50350E-07   -.13130E-01
   4  Prefactor     25.690        3.0794        .85427E-08    .21292    
   5  Prefactor     .55511E-10    3.0461        .12582E-06** at limit **
   6  Prefactor      .0000        25.791        .93004E-08** at limit **
   7  Prefactor     56.153        68.868       -.33660E-06    .17157E-01
   8  Prefactor     .72164E-08    14.861        .17231E-06** at limit **
   9  norm          1.5017        5.4417        .26923E-06    .23693E-02
  10  norm          .55511E-10    .76102       -.96317E-07** at limit **
  11  norm          .92510        .64835        .16121E-07    .54653E-02
  12  Prefactor     .55511E-10    7.5843       -.12751E-06** at limit **
  13  norm          19.529        1.2593       -.25602E-08   -.59155E-01
  14  norm          .90758        2.0522        .74950E-07    .15483E-01
  15  Prefactor      .0000        6.2198        .41849E-07** at limit **
  16  norm          34.027        1.1722        .19586E-08    .61528E-01
  17  Prefactor     .11102E-09    28.521       -.14338E-06** at limit **
  18  norm          4.7037        3.8320       -.56287E-07   -.23459E-02
  19  Normalizat    .38382        .35068        .48253E-05    .44507E-05
  20  Prefactor     1.2989        .13529       -.97024E-06   -.76625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32592e-08
  norm       = 2.58289
  norm       = 1.74399
  Prefactor  = 25.6897
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 56.1526
  Prefactor  = 7.21645e-09
  norm       = 1.50166
  norm       = 5.55112e-11
  norm       = 0.925103
  Prefactor  = 5.55112e-11
  norm       = 19.5286
  norm       = 0.907578
  Prefactor  = 0
  norm       = 34.027
  Prefactor  = 1.11022e-10
  norm       = 4.7037
  Normalizat = 0.383818
  Prefactor  = 1.29886
 **********
 **   18 **HESSE 
 **********

 FCN=   4644.973     FROM HESSE     STATUS=OK           333 CALLS     1917 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23259E-07    19.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5829        1.6652        .63457E-03   -1.5676    
   3  norm          1.7440        .95609        .79399E-03   -1.5682    
   4  Prefactor     25.690        22.913        .19747E-03   -1.5607    
   5  Prefactor     .55511E-10    3.0457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        25.687        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.153        70.080        .13250E-03   -1.5558    
   8  Prefactor     .72164E-08    14.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5017        5.5599        .87510E-03   -1.5683    
  10  norm          .55511E-10    .76228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .92510        .66295        .44088E-03   -1.5689    
  12  Prefactor     .55511E-10    7.5863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.529        17.878        .22635E-03   -1.5620    
  14  norm          .90758        154.86        .44698E-03   -1.5689    
  15  Prefactor      .0000        6.2198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          34.027        25.426        .17132E-03   -1.5591    
  17  Prefactor     .11102E-09    28.514        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7037        3.8303        .46384E-03   -1.5665    
  19  Normalizat    .38382        .42565        .16295       -1.1815    
  20  Prefactor     1.2989        .15795        .32630E-01   -.83341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22816e-06
Minuit parameter uncertainties:
  1  0.00135349
  2  1.66515
  3  0.956089
  4  22.9128
  5  1.89126e-05
  6  6.27678e-06
  7  70.0806
  8  0.0006555
  9  5.55997
  10  1.08228e-05
  11  0.662949
  12  4.65157e-05
  13  17.8782
  14  23.7114
  15  8.39028e-07
  16  25.4261
  17  0.000118965
  18  3.83032
  19  0.429311
  20  0.15801
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  9.251e-01  6.629e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.299e+00  1.580e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  3.838e-01  4.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 7.17e-08
Energy Flux (Fixed Index): 8.28e-05 +/- 5.94e-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) = 4644.93858987
delta logL = 0.034764048014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4644.93754879
delta logL = 0.03580512586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91585       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0381       1.0000          .0000       5.0000    
     3 'Normalizat'    .36956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3004       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4644.938     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91548        14.469        .44670E-03    .32944E-02
   2  alpha         2.0384        3.3147        .30771        .23057E-04
   3  Normalizat    .36898        .20838        .16601        .42375E-04
   4  Prefactor     1.3006        .57008E-01    .32603E-01   -.67617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.915481
  alpha      = 2.03844
  Normalizat = 0.368976
  Prefactor  = 1.30057
 **********
 **   18 **HESSE 
 **********

 FCN=   4644.938     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91548        .63409        .42022E-05   -1.5689    
   2  alpha         2.0384        .53288        .10777E-01   -.18569    
   3  Normalizat    .36898        .35004        .73471E-03   -1.1894    
   4  Prefactor     1.3006        .13529        .15846E-03   -.83290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.397e-10
Minuit parameter uncertainties:
  1  0.634088
  2  0.53715
  3  0.352138
  4  0.135329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217420': 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) = 4644.93754714
delta logL = 0.0358067739944

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  9.155e-01  6.341e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.038e+00  5.371e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.301e+00  1.353e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  3.690e-01  3.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 35.670 43.036
Photon Index (Free Index): 2.04 +/- 0.54
Photon Flux (Free Index): 1.21e-07 +/- 1.10e-07
Energy Flux (Free Index): 7.31e-05 +/- 5.99e-05

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/217420/cmap_HighResolution_690854401_691113601_4FGL_J0222.6+4302_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='7.31e-05', photon_flux_error='7.17e-08', dlogl='3.58e-02', energy_flux='8.28e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2022-11-26 00:21:33.050677', photon_index_error2='0.54', photon_index2='2.04', ts='4.08', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='5.99e-05', EG='0.38', time_epoch_completed='1669450893.05', return_code='0', job_id='217420', GAL2='1.30', EG2='0.37', return_code2='0', energy_flux_error='5.94e-05', photon_flux_error2='1.10e-07', ts2='4.17', photon_index='1.89' WHERE bin_id='1742' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:21:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 217420: <4FGL_J0222.6+4302_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:05:00 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:12:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:12:00 2022
Terminated at Sat Nov 26 00:21:33 2022
Results reported at Sat Nov 26 00:21:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1742 35.6696 43.0357 690854401 691113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.6+4302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            993 sec.

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

