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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1177
RA = 335.71, Dec = 12.1568
tmin = 544406401, tmax = 544665601
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='282121', job_status='RUN', time_executed='2021-09-28 10:25:43.498902', time_epoch_executed='1632849943.5' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282121

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282121/ft1_4FGL_J2222.8+1209_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282121/ft1_4FGL_J2222.8+1209_daily_bin1177.fits outfile=/scratch/kocevski/282121/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1177.fits ra=335.71 dec=12.1568 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.64
user 7.35
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/282121/ltcube_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.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/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits
.....................!
real 7.76
user 7.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/282121/ltcube_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits outfile=/scratch/kocevski/282121/expmap_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.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/282121/ltcube_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits
.....................!
real 190.00
user 184.65
sys 4.99

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/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits scfile=/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits outfile=/scratch/kocevski/282121/cmap_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits scfile=/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits outfile=/scratch/kocevski/282121/cmap_HighResolution_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.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/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282121/Model_4FGL_J2222.8+1209_daily_bin1177.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/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits.....................!
real 39.63
user 38.17
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits', '/scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits', expMap='/scratch/kocevski/282121/expmap_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits', expCube='/scratch/kocevski/282121/ltcube_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282121/Model_4FGL_J2222.8+1209_daily_bin1177.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/282121/ft1_filtered_4FGL_J2222.8+1209_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/282121/ft2_4FGL_J2222.8+1209_daily_bin1177.fits
Exposure map: /scratch/kocevski/282121/expmap_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits
Exposure cube: /scratch/kocevski/282121/ltcube_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282121/Model_4FGL_J2222.8+1209_daily_bin1177.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) = 3223.3359553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.672       1.0000         .10000E-03   10000.    
     8 'norm      '    .19752E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.733       1.0000         .10000E-03   10000.    
    12 'norm      '    11.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .85315E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .73933       1.0000         .10000E-03   10000.    
    22 'Prefactor '    79.667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.173       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4593       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61254       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1219       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=   3223.310     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3092 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3163        7.0360        .17596E-05    .30094E-03
   2  Prefactor     .10000E-03    46.015        .64216E-06** at limit **
   3  Prefactor     .10000E-03    33.175       -.16758E-05** at limit **
   4  norm          .10000E-03    1.1647       -.10562E-05** at limit **
   5  norm          6.8270        29.724        .18805E-05    .47929E-04
   6  Prefactor     49.092        75.269       -.98100E-05   -.12325E-04
   7  Prefactor     75.626        119.09       -.45077E-05   -.65376E-05
   8  norm          .39776E-01    30.921        .64839E-05    .13673E-02
   9  Prefactor     .10000E-03    10.601       -.13409E-05** at limit **
  10  Prefactor     .10000E-03    12.556       -.91774E-06** at limit **
  11  Prefactor     17.750        44.370        .40804E-05    .48882E-04
  12  norm          11.042        17.761        .14261E-06    .12949E-03
  13  Prefactor     .10000E-03    28.253       -.29739E-05** at limit **
  14  Prefactor     .10000E-03    13.222        .21450E-06** at limit **
  15  Prefactor     2.7403        .63406        .19351E-06    .18965E-02
  16  Prefactor     .10000E-03    11.967       -.10146E-05** at limit **
  17  norm          .99044E-02    110.33        .13874E-04   -.73459E-03
  18  Prefactor     19.716        114.95        .43013E-05    .16537E-04
  19  Prefactor     .10000E-03    20.269        .17265E-07** at limit **
  20  Prefactor     .10000E-03    47.677       -.26669E-05** at limit **
  21  Prefactor     .73932        .44821        .48714E-07    .48181E-03
  22  Prefactor     79.707        109.56        .36467E-05    .23129E-04
  23  Prefactor     11.173        13.569       -.69453E-06   -.22549E-04
  24  Prefactor     5.4814        66.761        .50527E-05    .18366E-04
  25  Normalizat    .61209        .44931       -.10453E-04    .12083E-03
  26  Prefactor     1.1219        .21221        .35107E-05    .15699E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.31627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.82699
  Prefactor  = 49.0919
  Prefactor  = 75.6263
  norm       = 0.0397757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7504
  norm       = 11.0421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74032
  Prefactor  = 0.0001
  norm       = 0.0099044
  Prefactor  = 19.7163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.739323
  Prefactor  = 79.7072
  Prefactor  = 11.1731
  Prefactor  = 5.48142
  Normalizat = 0.612094
  Prefactor  = 1.12189
 **********
 **   18 **HESSE 
 **********

 FCN=   3223.310     FROM HESSE     STATUS=OK           468 CALLS     3560 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3163        7.0228        .15099E-03   -1.5247    
   2  Prefactor     .10000E-03    46.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1696        .59805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8270        29.662        .15370E-03   -1.5185    
   6  Prefactor     49.092        75.743        .28594E-03   -1.4306    
   7  Prefactor     75.626        119.11        .23079E-03   -1.3966    
   8  norm          .39776E-01    35.782        .12477E-02   -1.5668    
   9  Prefactor     .10000E-03    10.608        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.750        44.327        .95110E-04   -1.4865    
  12  norm          11.042        17.796        .12042E-03   -1.5043    
  13  Prefactor     .10000E-03    28.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7403        .63372        .20064E-04   -1.5377    
  16  Prefactor     .10000E-03    12.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .99044E-02    8.1410        .41237E-01   -1.5688    
  18  Prefactor     19.716        115.94        .90339E-04   -1.4820    
  19  Prefactor     .10000E-03    20.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .73932        .44756        .26186E-04   -1.5536    
  22  Prefactor     79.707        109.38        .22498E-03   -1.3920    
  23  Prefactor     11.173        13.562        .11985E-03   -1.5039    
  24  Prefactor     5.4814        66.136        .17197E-03   -1.5240    
  25  Normalizat    .61209        .47295        .47039E-03   -1.0747    
  26  Prefactor     1.1219        .22933        .18713E-03   -.88770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80449e-08
Minuit parameter uncertainties:
  1  7.02391
  2  3.87593e-05
  3  7.64661e-05
  4  7.78682e-06
  5  28.4841
  6  75.8921
  7  119.488
  8  2.38444
  9  3.80734e-05
  10  2.27993e-05
  11  44.4097
  12  17.8043
  13  0.000184193
  14  1.27398e-05
  15  0.633726
  16  6.27054e-05
  17  0.565116
  18  95.9042
  19  1.159e-05
  20  0.000217179
  21  0.447562
  22  109.658
  23  13.5657
  24  38.1321
  25  0.476123
  26  0.229529
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.842e-04  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:  1.122e+00  2.295e-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:  6.121e-01  4.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282121/likelihoodResults_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.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) = 3223.30999678
delta logL = -0.00016747595555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3223.30982954
delta logL = -2.34574599745e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3278       1.0000          .0000       10.000    
     3 'Normalizat'    .61213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1219       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.

 FCN=   3223.310     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2121.0        .90712E-02** at limit **
   2  Index         2.3570        7.4967        .50000       -.10549E-04
   3  Normalizat    .61209        .94256E-01    .10611        .36132E-04
   4  Prefactor     1.1219        .49861E-01    .36809E-01    .46022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.35696
  Normalizat = 0.612089
  Prefactor  = 1.12189
 **********
 **   18 **HESSE 
 **********

 FCN=   3223.310     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6905.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3570        5.7582        .50000       -.55696    
   3  Normalizat    .61209        .15936        .47042E-03   -1.0747    
   4  Prefactor     1.1219        .84731E-01    .18713E-03   -.88770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24617e-09
Minuit parameter uncertainties:
  1  0.00973995
  2  55.142
  3  0.159483
  4  0.0847409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282121': 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): 102
logL (Free Index) = 3223.30982943
delta logL = -1.2933560356e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.740e-03  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.357e+00  5.514e+01  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:  1.122e+00  8.474e-02  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:  6.121e-01  1.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/282121/cmap_HighResolution_544406401_544665601_4FGL_J2222.8+1209_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-28 10:34:19.250806', job_id='282121', GAL2='1.12', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632850459.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1177' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:34:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 282121: <4FGL_J2222.8+1209_daily_bin1177> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1177> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:25:30 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:25:31 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:25:31 2021
Terminated at Tue Sep 28 10:34:20 2021
Results reported at Tue Sep 28 10:34:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1177 335.71 12.1568 544406401 544665601 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 :                                   514.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            530 sec.

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

