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 60 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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1758
RA = 335.71, Dec = 12.1568
tmin = 695001601, tmax = 695260801
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='384901', job_status='RUN', time_executed='2023-01-13 01:52:13.277994', time_epoch_executed='1673603533.28' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384901/ft1_4FGL_J2222.8+1209_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384901/ft1_4FGL_J2222.8+1209_daily_bin1758.fits outfile=/scratch/kocevski/384901/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1758.fits ra=335.71 dec=12.1568 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.85
user 2.55
sys 0.21

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

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

Number of photons that the gtmktime cut: 1295

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384901/ft1_filtered_4FGL_J2222.8+1209_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/384901/ltcube_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.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/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits
.....................!
real 16.44
user 15.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384901/ft1_filtered_4FGL_J2222.8+1209_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/384901/ltcube_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.fits outfile=/scratch/kocevski/384901/expmap_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.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/384901/ltcube_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.fits
.....................!
real 193.99
user 186.30
sys 5.33

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/384901/ft1_filtered_4FGL_J2222.8+1209_daily_bin1758.fits scfile=/scratch/kocevski/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits outfile=/scratch/kocevski/384901/cmap_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.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.63
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384901/ft1_filtered_4FGL_J2222.8+1209_daily_bin1758.fits scfile=/scratch/kocevski/384901/ft2_4FGL_J2222.8+1209_daily_bin1758.fits outfile=/scratch/kocevski/384901/cmap_HighResolution_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80393       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10388E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .75108       1.0000          .0000       .10000E+07
     4 'norm      '    .19286E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.4020       1.0000          .0000       .10000E+07
     6 'Prefactor '    41.280       1.0000          .0000       .10000E+07
     7 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.205       1.0000          .0000       .10000E+07
     9 'norm      '    1.6553       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6082       1.0000          .0000       .10000E+07
    11 'Prefactor '    24.340       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.9062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0895       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8524       1.0000          .0000       .10000E+07
    15 'Prefactor '    18.009       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.906       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3952       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19232E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14516E-06   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95239       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=   13451.96     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1623 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80473        1.8558        .30367E-06   -.44526E-03
   2  Prefactor     .87808E-06    17.036        .32813E-05** at limit **
   3  norm          .75120        1.1618       -.69359E-07   -.13147E-02
   4  norm          .16653E-09    6.5172       -.32099E-07** at limit **
   5  Prefactor     4.3755        1.4806        .18217E-07   -.16370E-02
   6  Prefactor     41.497        5.0163        .74782E-07   -.22159    
   7  norm           .0000        .15897       -.32856E-07** at limit **
   8  Prefactor     13.203        1.0808        .12230E-07    .43094E-04
   9  norm          1.6548        2.0853        .10274E-06    .26462E-03
  10  Prefactor     2.6114        2.1939       -.20654E-06    .10283E-01
  11  Prefactor     24.390        10.795       -.37167E-06   -.98045E-01
  12  Prefactor     3.9067        .33379        .16710E-06   -.27398E-03
  13  Prefactor     7.0411        6.4760       -.10065E-05    .30630E-04
  14  norm          1.8508        1.2491       -.11769E-06    .22191E-02
  15  Prefactor     17.708        6.5712       -.12785E-06    .16815    
  16  Prefactor     10.945        9.1695        .22112E-06    .24864E-01
  17  Prefactor     1.3956        .17650        .43520E-06    .22971E-02
  18  Prefactor     .20996E-05    19.724        .26028E-05** at limit **
  19  Prefactor      .0000        1.5562       -.52164E-06** at limit **
  20  Normalizat    1.0960        .23395       -.57410E-05   -.10305E-03
  21  Prefactor     .95257        .11800        .17709E-05   -.13829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.804733
  Prefactor  = 8.78075e-07
  norm       = 0.751199
  norm       = 1.66533e-10
  Prefactor  = 4.37547
  Prefactor  = 41.4971
  norm       = 0
  Prefactor  = 13.2033
  norm       = 1.65481
  Prefactor  = 2.6114
  Prefactor  = 24.3902
  Prefactor  = 3.90668
  Prefactor  = 7.04112
  norm       = 1.85077
  Prefactor  = 17.7082
  Prefactor  = 10.9445
  Prefactor  = 1.39564
  Prefactor  = 2.0996e-06
  Prefactor  = 0
  Normalizat = 1.09603
  Prefactor  = 0.952574
 **********
 **   18 **HESSE 
 **********

 FCN=   13451.96     FROM HESSE     STATUS=OK           365 CALLS     1988 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80473        1.9038        .52642E-03   -1.5690    
   2  Prefactor     .87808E-06    17.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .75120        1.1739        .56655E-03   -1.5691    
   4  norm          .16653E-09    6.5187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3755        21.215        .47977E-03   -1.5666    
   6  Prefactor     41.497        29.425        .15566E-03   -1.5579    
   7  norm           .0000        .15864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.203        19.622        .27539E-03   -1.5635    
   9  norm          1.6548        2.0983        .82001E-03   -1.5682    
  10  Prefactor     2.6114        14.445        .63138E-03   -1.5676    
  11  Prefactor     24.390        10.939        .20274E-03   -1.5609    
  12  Prefactor     3.9067        .34171        .41568E-02   -1.5313    
  13  Prefactor     7.0411        6.4754        .37665E-02   -1.5177    
  14  norm          1.8508        1.2492        .76565E-03   -1.5681    
  15  Prefactor     17.708        27.235        .23574E-03   -1.5624    
  16  Prefactor     10.945        9.2257        .30312E-03   -1.5642    
  17  Prefactor     1.3956        .17963        .37104E-02   -1.5472    
  18  Prefactor     .20996E-05    20.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.5555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0960        .19985        .89628E-01   -.89879    
  21  Prefactor     .95257        .10065        .45669E-01   -.94327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9725e-06
Minuit parameter uncertainties:
  1  1.90376
  2  0.00782622
  3  1.17393
  4  6.79585e-05
  5  19.2695
  6  29.4255
  7  1.86287e-07
  8  19.6217
  9  2.09828
  10  12.2837
  11  10.939
  12  0.341713
  13  6.47608
  14  1.24922
  15  27.2356
  16  9.22573
  17  0.179627
  18  0.0131726
  19  6.84045e-06
  20  0.199989
  21  0.10067
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.611e+00  1.228e+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.526e-01  1.007e-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.096e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384901/likelihoodResults_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.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) = 13451.9587748
delta logL = 1.23400241137e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13451.9587716
delta logL = 3.31848241331e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6114       1.0000          .0000       .10000E+07
     2 'Index     '    2.4004       1.0000          .0000       10.000    
     3 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95264       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=   13451.96     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      221 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6382        101.87        .63096E-03    .20712E-02
   2  Index         2.3886        .71929        .50000        .62857E-05
   3  Normalizat    1.0962        .13590E-01    .89621E-01   -.62783E-03
   4  Prefactor     .95251        .71184E-02    .45672E-01   -.75941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6382
  Index      = 2.38857
  Normalizat = 1.09623
  Prefactor  = 0.952509
 **********
 **   18 **HESSE 
 **********

 FCN=   13451.96     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6382        19.119        .25239E-04   -1.5675    
   2  Index         2.3886        6.1919        .69424E-02   -.54953    
   3  Normalizat    1.0962        .22727        .39693E-03   -.89873    
   4  Prefactor     .95251        .11752        .22051E-03   -.94330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29442e-10
Minuit parameter uncertainties:
  1  14.2041
  2  4.54109
  3  0.227473
  4  0.11755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384901': 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) = 13451.9587663
delta logL = 8.63114473759e-06

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.638e+00  1.420e+01  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  2.389e+00  4.541e+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:  9.525e-01  1.176e-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.096e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/384901/cmap_HighResolution_695001601_695260801_4FGL_J2222.8+1209_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2023-01-13 02:06:26.357561', job_id='384901', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1673604386.36', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.63e-06', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1758' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 02:06:26 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 384901: <4FGL_J2222.8+1209_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 01:50:16 2023
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:51:04 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:51:04 2023
Terminated at Fri Jan 13 02:06:27 2023
Results reported at Fri Jan 13 02:06:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1758 335.71 12.1568 695001601 695260801 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 :                                   846.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            971 sec.

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

