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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin674
RA = 335.71, Dec = 12.1568
tmin = 414028801, tmax = 414288001
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='279320', job_status='RUN', time_executed='2021-09-28 10:19:04.852027', time_epoch_executed='1632849544.85' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279320/ft1_4FGL_J2222.8+1209_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279320/ft1_4FGL_J2222.8+1209_daily_bin674.fits outfile=/scratch/kocevski/279320/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin674.fits ra=335.71 dec=12.1568 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.20
user 4.96
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.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/279320/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/279320/ltcube_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.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/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits
.....................!
real 11.91
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/279320/ltcube_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits outfile=/scratch/kocevski/279320/expmap_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.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/279320/ltcube_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits
.....................!
real 190.72
user 185.46
sys 4.94

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2222.8+1209 @ 335.71 12.1568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits outfile=/scratch/kocevski/279320/cmap_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.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=335.71 yref=12.1568 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits outfile=/scratch/kocevski/279320/cmap_HighResolution_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.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=335.71 yref=12.1568 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279320/Model_4FGL_J2222.8+1209_daily_bin674.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/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits.....................!
real 49.34
user 48.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits', '/scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits', expMap='/scratch/kocevski/279320/expmap_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits', expCube='/scratch/kocevski/279320/ltcube_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279320/Model_4FGL_J2222.8+1209_daily_bin674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2222.8+1209'

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/279320/ft1_filtered_4FGL_J2222.8+1209_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/279320/ft2_4FGL_J2222.8+1209_daily_bin674.fits
Exposure map: /scratch/kocevski/279320/expmap_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits
Exposure cube: /scratch/kocevski/279320/ltcube_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279320/Model_4FGL_J2222.8+1209_daily_bin674.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) = 4262.04016361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2162       1.0000         .10000E-03   10000.    
     5 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72897E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7418       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3159       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14562E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5803       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1356       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8315       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5801       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4262.010     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3085 TOTAL
                     EDM=   .42E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.254        5.6175       -.33232E-08   -.75925E-05
   2  Prefactor     .10000E-03    57.041       -.10194E-06** at limit **
   3  Prefactor     .10000E-03    39.496        .73507E-08** at limit **
   4  norm          2.2162        3.0285       -.19855E-06    .11345E-04
   5  norm          .10000E-03    86.862       -.77951E-06** at limit **
   6  Prefactor     .10000E-03    19.515        .31506E-07** at limit **
   7  Prefactor     .10000E-03    582.19        .60656E-05** at limit **
   8  norm          1.7418        1.6128       -.40966E-08   -.34348E-04
   9  Prefactor     .10000E-03    29.943       -.12724E-06** at limit **
  10  Prefactor     .10000E-03    29.934       -.85581E-07** at limit **
  11  Prefactor     .10000E-03    25.427       -.15211E-06** at limit **
  12  norm          1.3896        9.9173        .86549E-06   -.36999E-05
  13  Prefactor     10.176        23.762       -.31238E-06   -.10763E-05
  14  Prefactor     15.191        21.957       -.15972E-06   -.42234E-05
  15  Prefactor     1.5571        .47183        .11303E-08   -.29788E-04
  16  Prefactor     9.3180        11.938       -.82630E-07   -.25903E-06
  17  norm          .10000E-03    .72780       -.12185E-08** at limit **
  18  Prefactor     .10000E-03    426.67        .35170E-05** at limit **
  19  Prefactor     1.9619        27.697        .10406E-06   -.42317E-05
  20  Prefactor     .10000E-03    16.173       -.38362E-07** at limit **
  21  Prefactor     2.5806        .40234        .93344E-07   -.71340E-03
  22  Prefactor     .10000E-03    27.171       -.48159E-07** at limit **
  23  Prefactor     3.1381        7.9100       -.15503E-06    .43705E-05
  24  Prefactor     5.8137        24.213       -.45549E-06    .26410E-06
  25  Normalizat    1.5801        .35162        .92885E-06   -.56189E-05
  26  Prefactor     .63189        .16611        .69235E-06   -.72432E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38959
  Prefactor  = 10.1763
  Prefactor  = 15.1913
  Prefactor  = 1.55712
  Prefactor  = 9.31797
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.96188
  Prefactor  = 0.0001
  Prefactor  = 2.58056
  Prefactor  = 0.0001
  Prefactor  = 3.13807
  Prefactor  = 5.81369
  Normalizat = 1.58009
  Prefactor  = 0.63189
 **********
 **   18 **HESSE 
 **********

 FCN=   4262.010     FROM HESSE     STATUS=OK           456 CALLS     3541 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.254        5.6177        .87170E-04   -1.4901    
   2  Prefactor     .10000E-03    57.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2162        3.0231        .12627E-03   -1.5410    
   5  norm          .10000E-03    89.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    592.03        .41913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7418        1.5971        .75999E-04   -1.5444    
   9  Prefactor     .10000E-03    30.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3896        9.9432        .18439E-02   -1.5472    
  13  Prefactor     10.176        23.834        .12560E-03   -1.5070    
  14  Prefactor     15.191        22.189        .10278E-03   -1.4928    
  15  Prefactor     1.5571        .47469        .22633E-04   -1.5458    
  16  Prefactor     9.3180        11.952        .13130E-03   -1.5097    
  17  norm          .10000E-03    .72871        .54377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    429.08        .20494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9619        27.850        .14810E-02   -1.5428    
  20  Prefactor     .10000E-03    16.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5806        .40231        .15543E-04   -1.5387    
  22  Prefactor     .10000E-03    27.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1381        7.8995        .22894E-03   -1.5354    
  24  Prefactor     5.8137        24.425        .16631E-03   -1.5226    
  25  Normalizat    1.5801        .42035        .33396E-03   -.75552    
  26  Prefactor     .63189        .19646        .24973E-03   -1.0626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75329e-09
Minuit parameter uncertainties:
  1  5.61784
  2  6.35982e-05
  3  4.23577e-05
  4  3.02326
  5  0.000134491
  6  2.45781e-06
  7  0.000252789
  8  1.59715
  9  1.73207e-05
  10  8.61635e-06
  11  4.47592e-05
  12  7.43571
  13  23.8562
  14  22.2006
  15  0.474692
  16  11.9551
  17  5.91626e-07
  18  0.00103997
  19  14.7916
  20  1.93499e-05
  21  0.402314
  22  2.23144e-05
  23  7.90208
  24  23.849
  25  0.421295
  26  0.196675
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.018e+01  2.386e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  6.319e-01  1.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.580e+00  4.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 2.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279320/likelihoodResults_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.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) = 4261.94446356
delta logL = 0.0652634780872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4261.93730879
delta logL = 0.0724182411359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7558       1.0000          .0000       10.000    
     3 'Normalizat'    1.6026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   4261.937     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      284 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.931        26.190        .11145E-03    .38150E-04
   2  Index         1.7566        1.3178        .16532E-01   -.12419E-04
   3  Normalizat    1.6025        .38566        .33217E-03   -.29023E-04
   4  Prefactor     .62419        .19293        .25112E-03    .19421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9312
  Index      = 1.75665
  Normalizat = 1.60252
  Prefactor  = 0.624188
 **********
 **   18 **HESSE 
 **********

 FCN=   4261.937     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.931        26.535        .44580E-05   -1.4989    
   2  Index         1.7566        1.3352        .66127E-03   -.70584    
   3  Normalizat    1.6025        .38591        .13287E-04   -.74937    
   4  Prefactor     .62419        .19308        .10045E-04   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96727e-11
Minuit parameter uncertainties:
  1  26.5595
  2  1.3642
  3  0.386626
  4  0.193289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279320': 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) = 4261.93730843
delta logL = 0.0724186035704

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.293e+01  2.656e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.757e+00  1.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  6.242e-01  1.933e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.603e+00  3.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 335.710 12.157

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/279320/cmap_HighResolution_414028801_414288001_4FGL_J2222.8+1209_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', job_status='DONE', photon_flux_upper_limit='2.32e-07', time_completed='2021-09-28 10:28:51.640372', job_id='279320', GAL2='0.62', fit_tolerance='1e-08', EG2='1.60', EG='1.58', time_epoch_completed='1632850131.64', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.24e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='674' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:28:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 279320: <4FGL_J2222.8+1209_daily_bin674> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin674> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:39 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:15:42 2021
Terminated at Tue Sep 28 10:28:52 2021
Results reported at Tue Sep 28 10:28:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin674 335.71 12.1568 414028801 414288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2222.8+1209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.00 sec.
    Max Memory :                                 1123 MB
    Average Memory :                             285.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            793 sec.

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

