aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 77 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17347
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2222.8+1209_weekly_bin741
RA = 335.71, Dec = 12.1568
tmin = 687139201, tmax = 687744001
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='396620', job_status='RUN', time_executed='2022-10-18 01:41:48.219943', time_epoch_executed='1666082508.22' WHERE source_name='4FGL J2222.8+1209' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396620

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396620/ft1_4FGL_J2222.8+1209_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396620/ft1_4FGL_J2222.8+1209_weekly_bin741.fits outfile=/scratch/kocevski/396620/ft1_filteredMKT_4FGL_J2222.8+1209_weekly_bin741.fits ra=335.71 dec=12.1568 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.63
user 6.30
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.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/396620/ft1_filteredMKT_4FGL_J2222.8+1209_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1069

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396620/ltcube_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.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/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits
.....................!
real 28.02
user 27.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396620/ltcube_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits outfile=/scratch/kocevski/396620/expmap_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.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/396620/ltcube_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits
.....................!
real 191.51
user 185.70
sys 5.44

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/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits scfile=/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits outfile=/scratch/kocevski/396620/cmap_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits scfile=/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits outfile=/scratch/kocevski/396620/cmap_HighResolution_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits', '/scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits', expMap='/scratch/kocevski/396620/expmap_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits', expCube='/scratch/kocevski/396620/ltcube_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396620/Model_4FGL_J2222.8+1209_weekly_bin741.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  0.000e+00  1.000e+06 ( 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/396620/ft1_filtered_4FGL_J2222.8+1209_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396620/ft2_4FGL_J2222.8+1209_weekly_bin741.fits
Exposure map: /scratch/kocevski/396620/expmap_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396620/ltcube_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396620/Model_4FGL_J2222.8+1209_weekly_bin741.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11180.292673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5748       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21580E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .56449E-06   1.0000          .0000       .10000E+07
     4 'norm      '    5.2348       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22093E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10112E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .28355E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.715       1.0000          .0000       .10000E+07
     9 'norm      '    5.7143       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.5346       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36081E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .72118       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6924       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.534       1.0000          .0000       .10000E+07
    16 'Prefactor '    .17522E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.973       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2779       1.0000          .0000       .10000E+07
    20 'Normalizat'    .80138       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11180.15     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1336 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5724        2.0017       -.10852E-07   -.46189E-03
   2  Prefactor     .10603E-07    40.542       -.16018E-06** at limit **
   3  norm           .0000        1.1657        .49511E-07** at limit **
   4  norm          5.2606        7.8937       -.18721E-07    .45324E-01
   5  Prefactor     .14544E-07    27.070       -.15582E-06** at limit **
   6  Prefactor     .84932E-08    13.988        .19781E-06** at limit **
   7  norm           .0000        .52900       -.12872E-08** at limit **
   8  Prefactor     19.765        13.480       -.24383E-08   -.49627E-01
   9  norm          5.6971        4.5465       -.37739E-07   -.25294E-03
  10  Prefactor     2.5512        10.278       -.43002E-08    .10142E-02
  11  Prefactor     .15321E-07    17.285        .20839E-07** at limit **
  12  Prefactor     .72100        .20557       -.71264E-07   -.13604E-02
  13  Prefactor     .10000E-03    2.4741        .54287E-06** at limit **
  14  norm          1.6922        1.2305        .58850E-08    .96278E-03
  15  Prefactor     14.485        1.1216       -.13673E-08   -.16670E-02
  16  Prefactor      .0000        5.1752        .42720E-07** at limit **
  17  Prefactor     5.6299        .38898       -.22474E-07   -.11565E-02
  18  Prefactor     46.257        41.899       -.60956E-07    .98222E-03
  19  Prefactor     1.2588        15.036       -.24241E-06   -.39209E-03
  20  Normalizat    .80203        .22463        .16730E-05    .40144E-04
  21  Prefactor     .93400        .11532       -.27734E-06    .45261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.57238
  Prefactor  = 1.06026e-08
  norm       = 0
  norm       = 5.26055
  Prefactor  = 1.45439e-08
  Prefactor  = 8.49321e-09
  norm       = 0
  Prefactor  = 19.765
  norm       = 5.6971
  Prefactor  = 2.5512
  Prefactor  = 1.53211e-08
  Prefactor  = 0.720999
  Prefactor  = 0.0001
  norm       = 1.6922
  Prefactor  = 14.4851
  Prefactor  = 0
  Prefactor  = 5.62986
  Prefactor  = 46.2571
  Prefactor  = 1.25878
  Normalizat = 0.802029
  Prefactor  = 0.934003
 **********
 **   18 **HESSE 
 **********

 FCN=   11180.15     FROM HESSE     STATUS=OK           363 CALLS     1699 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5724        2.0050        .53426E-03   -1.5670    
   2  Prefactor     .10603E-07    40.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.1528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2606        16.055        .43910E-03   -1.5662    
   5  Prefactor     .14544E-07    27.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .84932E-08    14.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .51520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.765        15.184        .22529E-03   -1.5619    
   9  norm          5.6971        4.5786        .41995E-03   -1.5660    
  10  Prefactor     2.5512        10.394        .64126E-03   -1.5676    
  11  Prefactor     .15321E-07    17.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .72100        .20703        .54226E-02   -1.5538    
  13  Prefactor     .10000E-03    2.4613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6922        1.2234        .80875E-03   -1.5682    
  15  Prefactor     14.485        30.618        .26246E-03   -1.5632    
  16  Prefactor      .0000        5.2096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6299        .39503        .37542E-02   -1.5233    
  18  Prefactor     46.257        41.945        .14291E-03   -1.5572    
  19  Prefactor     1.2588        14.820        .98212E-03   -1.5686    
  20  Normalizat    .80203        .19405        .90912E-01   -.99993    
  21  Prefactor     .93400        .97771E-01    .45437E-01   -.94963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15669e-06
Minuit parameter uncertainties:
  1  2.00496
  2  0.00131215
  3  2.89082e-06
  4  16.0546
  5  0.00125579
  6  0.000692281
  7  4.45836e-08
  8  15.1837
  9  4.57856
  10  10.2992
  11  0.00102982
  12  0.207027
  13  1.07705e-05
  14  1.22339
  15  30.618
  16  1.72116e-05
  17  0.395028
  18  41.9449
  19  8.63825
  20  0.194215
  21  0.0977896
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.551e+00  1.030e+01  0.000e+00  1.000e+06 ( 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:  9.340e-01  9.779e-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:  8.020e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 9.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396620/likelihoodResults_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.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) = 11178.5425665
delta logL = 1.60943934412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11180.186921
delta logL = -0.0349152196486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11657E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .78551       1.0000          .0000       10.000    
     3 'Normalizat'    .80778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93396       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=   11177.56     FROM MIGRAD    STATUS=CONVERGED    412 CALLS      744 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96806E-06    .20983E-07    .31681E-10** at limit **
   2  Index        10.0000        .20603        .48554E-05** at limit **
   3  Normalizat    .63977        .19854        .15344E-05    .20232E-03
   4  Prefactor     .99497        .10235       -.39236E-06    .75420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.68059e-07
  Index      = 10
  Normalizat = 0.639772
  Prefactor  = 0.994967
 **********
 **   18 **HESSE 
 **********

 FCN=   11177.56     FROM HESSE     STATUS=OK            37 CALLS      781 TOTAL
                     EDM=   .15E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96806E-06    .54204E-06    .11360E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .23223        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63977        .24751        .44589E-03   -1.0632    
   4  Prefactor     .99497        .12373        .19092E-03   -.92897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0014622
Minuit parameter uncertainties:
  1  5.42055e-07
  2  3.37696e-05
  3  0.247943
  4  0.123769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396620': 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) = 11177.5626428
delta logL = 2.58936300015

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  9.681e-07  5.421e-07  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  1.000e+01  3.377e-05  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:  9.950e-01  1.238e-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.398e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.79
Ra Dec: 335.710 12.157
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.40e-07 +/- 7.58e-08
Energy Flux (Free Index): 1.56e-05 +/- 8.53e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/396620/cmap_HighResolution_687139201_687744001_4FGL_J2222.8+1209_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='2.59e+00', photon_flux2='1.40e-07', job_status='DONE', time_completed='2022-10-18 01:55:25.870115', photon_index_error2='0.00', photon_index2='10.00', ts='0.07', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='8.53e-06', EG='0.80', time_epoch_completed='1666083325.87', return_code='0', job_id='396620', GAL2='0.99', EG2='0.64', return_code2='0', photon_flux_error2='7.58e-08', ts2='5.79', photon_index='2.41' WHERE bin_id='741' AND source_name='4FGL J2222.8+1209' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:55:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 396620: <4FGL_J2222.8+1209_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2222.8+1209_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:21 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:22 2022
Terminated at Tue Oct 18 01:55:26 2022
Results reported at Tue Oct 18 01:55:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_weekly_bin741 335.71 12.1568 687139201 687744001 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

