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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1425
RA = 35.6696, Dec = 43.0357
tmin = 608688001, tmax = 608947201
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='343901', job_status='RUN', time_executed='2021-08-15 19:31:08.039179', time_epoch_executed='1629081068.04' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343901/ft1_4FGL_J0222.6+4302_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343901/ft1_4FGL_J0222.6+4302_daily_bin1425.fits outfile=/scratch/kocevski/343901/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1425.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=608688001.0 tmax=608947201.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.12
user 2.86
sys 1.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.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/343901/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.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.53
user 0.36
sys 1.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/343901/ltcube_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.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/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits
.....................!
real 15.91
user 14.33
sys 1.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/343901/ltcube_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits outfile=/scratch/kocevski/343901/expmap_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.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/343901/ltcube_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits
.....................!
real 192.80
user 186.33
sys 6.00

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_archive_v18/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/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits outfile=/scratch/kocevski/343901/cmap_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.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 1.61
user 0.39
sys 1.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits outfile=/scratch/kocevski/343901/cmap_HighResolution_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.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 1.57
user 0.40
sys 1.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343901/Model_4FGL_J0222.6+4302_daily_bin1425.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/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits.......................!
real 25.82
user 23.13
sys 2.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits', '/scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits', expMap='/scratch/kocevski/343901/expmap_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits', expCube='/scratch/kocevski/343901/ltcube_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343901/Model_4FGL_J0222.6+4302_daily_bin1425.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  1.000e-04  1.000e+04 ( 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  0.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/343901/ft1_filtered_4FGL_J0222.6+4302_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/343901/ft2_4FGL_J0222.6+4302_daily_bin1425.fits
Exposure map: /scratch/kocevski/343901/expmap_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits
Exposure cube: /scratch/kocevski/343901/ltcube_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343901/Model_4FGL_J0222.6+4302_daily_bin1425.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) = 952.343593017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    186.40       1.0000         .10000E-03   10000.    
     3 'norm      '    .98616       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45614E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81848E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    9269.5       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    .34196E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16822E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .11131E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1254.1       1.0000         .10000E-03   10000.    
    20 'norm      '    .27134E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .93538E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5234       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .47036       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   936.7254     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     3515 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.717        .76286E-06** at limit **
   2  Prefactor     186.35        116.72       -.11251E-05   -.10459E-03
   3  norm          .96805        4.7683        .33095E-05   -.14116E-03
   4  norm          .10000E-03    .66092        .96083E-06** at limit **
   5  Prefactor     .10000E-03    39.064        .34591E-06** at limit **
   6  Prefactor     .10000E-03    10.571        .48539E-06** at limit **
   7  Prefactor     .10000E-03    856.35        .19945E-05** at limit **
   8  Prefactor     .10000E-03    118.76        .51959E-06** at limit **
   9  Prefactor     .10001E-03    6364.4        .71995E-05** at limit **
  10  norm          9292.9        9540.1        .11462E-03   -.44970E-05
  11  Prefactor    10000.0        8859.9       -.21679E-05** at limit **
  12  norm          .10000E-03    316.84        .76658E-05** at limit **
  13  norm          .10000E-03    4.2791        .59067E-06** at limit **
  14  Prefactor     .10000E-03    160.27       -.29779E-06** at limit **
  15  Prefactor    10000.0        1709.8       -.59376E-05** at limit **
  16  norm         10000.0        2296.6       -.62211E-05** at limit **
  17  Prefactor    10000.0        8772.7        .48016E-06** at limit **
  18  norm          .10000E-03    22.820       -.96498E-07** at limit **
  19  Prefactor     1253.9        405.40        .34441E-06   -.50914E-04
  20  norm          .10000E-03    51.335       -.51014E-07** at limit **
  21  Prefactor     .10000E-03    25.722        .11209E-06** at limit **
  22  Prefactor     .10000E-03    234.57        .13031E-06** at limit **
  23  norm          6.5276        3.0222        .34630E-07   -.19192E-03
  24  Normalizat    .10000E-01    .15017        .26151E-04** at limit **
  25  Prefactor     .47037        .11084       -.35366E-05   -.40289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 186.346
  norm       = 0.968053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 9292.92
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 1253.9
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52755
  Normalizat = 0.01
  Prefactor  = 0.470365
 **********
 **   18 **HESSE 
 **********

 FCN=   936.7254     FROM HESSE     STATUS=OK           403 CALLS     3918 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.760        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     186.35        117.00        .29575E-04   -1.2969    
   3  norm          .96805        4.6180        .12516E-03   -1.5511    
   4  norm          .10000E-03    .67048        .24251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.568        .97211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    856.21        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    118.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    6362.7        .18438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9292.9        9552.2        .76858E-04    1.0325    
  11  Prefactor    10000.0        8830.6        .18347E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    315.99        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2772        .61835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    160.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        1712.0        .18302E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        6149.5        .21201E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        8774.5        .18738E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.821        .14287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1253.9        405.84        .60389E-04   -.84688    
  20  norm          .10000E-03    51.338        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.724        .15169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    234.59        .20806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5276        3.0234        .35226E-04   -1.5197    
  24  Normalizat    .10000E-01    .15517        .72922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .47037        .11476        .15291E-03   -1.1336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21238e-10
Minuit parameter uncertainties:
  1  7.61856e-06
  2  117.145
  3  4.22899
  4  3.8575e-06
  5  1.96008e-05
  6  1.23002e-05
  7  0.00116626
  8  2.50553e-05
  9  0.00821665
  10  5967.18
  11  0.118892
  12  0.000422744
  13  7.16862e-06
  14  1.88586e-05
  15  0.00200426
  16  0.00202958
  17  0.0227525
  18  3.25106e-06
  19  406.863
  20  3.86234e-05
  21  3.81695e-07
  22  0.000173783
  23  3.02351
  24  1.22162e-06
  25  0.114815
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  7.169e-06  1.000e-04  1.000e+04 ( 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  0.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:  4.704e-01  1.148e-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:  1.000e-02  1.222e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 2.71e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343901/likelihoodResults_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 936.726403433
delta logL = -0.00101979095689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 936.725391502
delta logL = -7.85970564721e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8861       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46994       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   936.7254     FROM MIGRAD    STATUS=FAILED        94 CALLS      245 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    772.14        .62032E-03** at limit **
   2  alpha         1.6313        2.6100        .50000       -.13364E-07
   3  Normalizat    .10000E-01    .84274E-01    .72911E-02** at limit **
   4  Prefactor     .47037        .79684E-01    .15291E-03   -.46747E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   936.7254     FROM SIMPLEX   STATUS=UNCHANGED    206 CALLS      451 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    772.14        .22362E-03** at limit **
   2  alpha         1.6313        2.6100        .19937E-06   -.13364E-07
   3  Normalizat    .10000E-01    .84274E-01    .96133E-03** at limit **
   4  Prefactor     .47037        .79684E-01    .18461E-09   -.46747E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   936.7254     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      485 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2252        .12406E-03** at limit **
   2  alpha         1.6338        2.8278        .50000        .89864E-07
   3  Normalizat    .10000E-01    .15516        .14582E-02** at limit **
   4  Prefactor     .47037        .10822        .61163E-05   -.46933E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63382
  Normalizat = 0.01
  Prefactor  = 0.470367
 **********
 **   18 **HESSE 
 **********

 FCN=   936.7254     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5296        .24813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6338        3.0074        .50000       -.35381    
   3  Normalizat    .10000E-01    .15516        .29165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47037        .10821        .12233E-05   -1.1336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05195e-10
Minuit parameter uncertainties:
  1  6.93303e-05
  2  192.723
  3  7.63973e-09
  4  0.10826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343901': 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) = 936.725383055
delta logL = 5.87670683672e-07

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  6.933e-05  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.634e+00  1.927e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00  0.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:  4.704e-01  1.083e-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:  1.000e-02  7.640e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.670 43.036

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/343901/cmap_HighResolution_608688001_608947201_4FGL_J0222.6+4302_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-03', job_status='DONE', photon_flux_upper_limit='2.71e-06', time_completed='2021-08-15 19:38:25.203287', job_id='343901', GAL2='0.47', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629081505.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='5.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1425' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:38:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 343901: <4FGL_J0222.6+4302_daily_bin1425> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1425> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 19:25:25 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:28:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 19:28:55 2021
Terminated at Sun Aug 15 19:38:26 2021
Results reported at Sun Aug 15 19:38:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1425 35.6696 43.0357 608688001 608947201 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 :                                   434.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            781 sec.

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

