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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1495
RA = 35.6696, Dec = 43.0357
tmin = 626832001, tmax = 627091201
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='345019', job_status='RUN', time_executed='2021-08-15 19:31:45.352935', time_epoch_executed='1629081105.35' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345019/ft1_4FGL_J0222.6+4302_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345019/ft1_4FGL_J0222.6+4302_daily_bin1495.fits outfile=/scratch/kocevski/345019/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1495.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=626832001.0 tmax=627091201.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 3.01
user 2.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.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/345019/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/345019/ltcube_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.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/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits
.....................!
real 16.61
user 16.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/345019/ltcube_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits outfile=/scratch/kocevski/345019/expmap_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.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/345019/ltcube_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits
.....................!
real 192.79
user 187.49
sys 4.86

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/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits scfile=/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits outfile=/scratch/kocevski/345019/cmap_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits scfile=/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits outfile=/scratch/kocevski/345019/cmap_HighResolution_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits', '/scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits', expMap='/scratch/kocevski/345019/expmap_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits', expCube='/scratch/kocevski/345019/ltcube_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/345019/Model_4FGL_J0222.6+4302_daily_bin1495.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/345019/ft1_filtered_4FGL_J0222.6+4302_daily_bin1495.fits
Spacecraft file(s): /scratch/kocevski/345019/ft2_4FGL_J0222.6+4302_daily_bin1495.fits
Exposure map: /scratch/kocevski/345019/expmap_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits
Exposure cube: /scratch/kocevski/345019/ltcube_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/345019/Model_4FGL_J0222.6+4302_daily_bin1495.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) = 1240.79559548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .36945E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .35528       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    72.649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11340E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    106.99       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    107.56       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9999.2       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61848       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75848       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=   1225.300     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     3468 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.256       -.39175E-04** at limit **
   2  Prefactor     .10000E-03    33.799        .11535E-04** at limit **
   3  norm          .10000E-03    2.4764        .12989E-06** at limit **
   4  norm          2.6505        2.0539        .24433E-06    .18698E-03
   5  Prefactor     .10000E-03    55.661        .28314E-04** at limit **
   6  Prefactor     .10000E-03    13.959       -.11081E-07** at limit **
   7  Prefactor     .10000E-03    213.03        .15932E-03** at limit **
   8  Prefactor     .10000E-03    81.143       -.93510E-05** at limit **
   9  Prefactor     .10000E-03    347.37       -.22091E-03** at limit **
  10  norm          .10000E-03    139.03        .17177E-04** at limit **
  11  Prefactor     .10000E-03    240.30        .87869E-04** at limit **
  12  norm          .33829        7.9338       -.30867E-06   -.20213E-03
  13  norm          .10000E-03    .55508        .39743E-07** at limit **
  14  Prefactor     .10000E-03    301.57       -.89032E-04** at limit **
  15  Prefactor     .10000E-03    33.450       -.13480E-04** at limit **
  16  norm          72.681        69.509        .24086E-04    .22288E-04
  17  Prefactor     .10000E-03    266.83        .12087E-04** at limit **
  18  norm          107.05        79.319        .39144E-04   -.40166E-05
  19  Prefactor     .10000E-03    9.1217       -.31743E-06** at limit **
  20  norm          107.28        124.77       -.23516E-03   -.31155E-05
  21  Prefactor    10000.0        6971.9        .99378E-03** at limit **
  22  Prefactor    10000.0        7025.3        .17876E-01** at limit **
  23  norm          10000.        445.72        .26193E-04** at limit **
  24  Normalizat    .61765        .60034        .29867E-05    .15645E-04
  25  Prefactor     .75867        .20547       -.36239E-05    .20926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.65052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.33829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 72.6811
  Prefactor  = 0.0001
  norm       = 107.051
  Prefactor  = 0.0001
  norm       = 107.28
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.617653
  Prefactor  = 0.758672
 **********
 **   18 **HESSE 
 **********

 FCN=   1225.300     FROM HESSE     STATUS=OK           413 CALLS     3881 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5345        .53769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6505        2.0480        .40271E-04   -1.5382    
   5  Prefactor     .10000E-03    55.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.029        .12768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    213.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    81.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    349.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    139.99        .21300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    240.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33829        25.760        .18742E-02   -1.5592    
  13  norm          .10000E-03    .55721        .25458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    301.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          72.681        69.408        .23551E-03   -1.4001    
  17  Prefactor     .10000E-03    266.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          107.05        80.208        .19440E-03   -1.3635    
  19  Prefactor     .10000E-03    9.1236        .10326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          107.28        124.77        .19389E-03   -1.3633    
  21  Prefactor    10000.0        6972.0        .19721E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        7025.9        .25061E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10000.        445.72        .21295E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61765        .63349        .53117E-03   -1.0724    
  25  Prefactor     .75867        .22399        .15923E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68262e-10
Minuit parameter uncertainties:
  1  0.000133292
  2  1.0394e-05
  3  6.6754e-06
  4  2.04806
  5  1.44612e-05
  6  1.90228e-07
  7  0.000413546
  8  1.10721e-05
  9  0.00132546
  10  0.000217345
  11  0.000134171
  12  5.90576
  13  2.89303e-06
  14  0.000468485
  15  0.000285213
  16  69.485
  17  0.00013235
  18  80.2897
  19  7.93642e-05
  20  125.072
  21  0.000641536
  22  0.0518143
  23  6.04919e-06
  24  0.641172
  25  0.224262
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  2.893e-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:  7.587e-01  2.243e-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:  6.177e-01  6.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 3.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345019/likelihoodResults_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.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) = 1225.29967602
delta logL = -7.98432211013e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1225.29967494
delta logL = 2.85065880234e-07

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 'alpha     '    1.8817       1.0000          .0000       5.0000    
     3 'Normalizat'    .61765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75868       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.

 FCN=   1225.300     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2830        .25521E-03** at limit **
   2  alpha         1.7060        3.1972        .50000       -.60049E-07
   3  Normalizat    .61766        .62413        .53117E-03   -.83954E-05
   4  Prefactor     .75867        .21064        .15923E-03    .20791E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70605
  Normalizat = 0.617657
  Prefactor  = 0.75867
 **********
 **   18 **HESSE 
 **********

 FCN=   1225.300     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .58420        .51042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7060        3.8860        .50000       -.32318    
   3  Normalizat    .61766        .62424        .21247E-04   -1.0724    
   4  Prefactor     .75867        .21067        .31847E-04   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71661e-11
Minuit parameter uncertainties:
  1  9.45896e-07
  2  71.544
  3  0.631576
  4  0.210894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345019': 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) = 1225.29967302
delta logL = 2.20571655518e-06

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  9.459e-07  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.706e+00  7.154e+01  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:  7.587e-01  2.109e-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:  6.177e-01  6.316e-01  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/345019/cmap_HighResolution_626832001_627091201_4FGL_J0222.6+4302_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-04', job_status='DONE', photon_flux_upper_limit='3.32e-07', time_completed='2021-08-15 19:39:12.288822', job_id='345019', GAL2='0.76', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1629081552.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1495' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:39:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 345019: <4FGL_J0222.6+4302_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1495> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 19:30:38 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:31:14 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:31:14 2021
Terminated at Sun Aug 15 19:39:12 2021
Results reported at Sun Aug 15 19:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1495 35.6696 43.0357 626832001 627091201 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 :                                   418.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   478 sec.
    Turnaround time :                            514 sec.

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

