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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin496
RA = 335.71, Dec = 12.1568
tmin = 367891201, tmax = 368150401
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='279054', job_status='RUN', time_executed='2021-09-28 10:17:08.000119', time_epoch_executed='1632849428.0' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279054/ft1_4FGL_J2222.8+1209_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279054/ft2_4FGL_J2222.8+1209_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279054/ft1_4FGL_J2222.8+1209_daily_bin496.fits outfile=/scratch/kocevski/279054/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin496.fits ra=335.71 dec=12.1568 rad=12.0 tmin=367891201.0 tmax=368150401.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.78
user 3.14
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279054/ft1_filtered_4FGL_J2222.8+1209_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/279054/ft2_4FGL_J2222.8+1209_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/279054/ltcube_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.fits outfile=/scratch/kocevski/279054/expmap_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.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/279054/ltcube_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.fits
.....................!
real 190.45
user 186.01
sys 4.04

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/279054/ft1_filtered_4FGL_J2222.8+1209_daily_bin496.fits scfile=/scratch/kocevski/279054/ft2_4FGL_J2222.8+1209_daily_bin496.fits outfile=/scratch/kocevski/279054/cmap_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279054/ft1_filtered_4FGL_J2222.8+1209_daily_bin496.fits scfile=/scratch/kocevski/279054/ft2_4FGL_J2222.8+1209_daily_bin496.fits outfile=/scratch/kocevski/279054/cmap_HighResolution_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.819       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47431       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .89680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.846       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80689       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=   6746.747     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3051 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7429        2.9538        .29958E-07   -.10182E-03
   2  Prefactor     .10000E-03    19.262       -.24165E-05** at limit **
   3  Prefactor     .10000E-03    18.822       -.66718E-05** at limit **
   4  norm          .10000E-03    .55639       -.18993E-06** at limit **
   5  norm          .10000E-03    13.781        .71302E-05** at limit **
   6  Prefactor     .10000E-03    10.251       -.11447E-05** at limit **
   7  Prefactor     .10000E-03    53.732        .12824E-04** at limit **
   8  norm          1.5211        .95152        .15019E-07   -.36464E-03
   9  Prefactor     18.383        15.374       -.38566E-06   -.10853E-04
  10  Prefactor     34.949        30.173        .16765E-05   -.50119E-05
  11  Prefactor     49.821        29.974        .10900E-05   -.71398E-05
  12  norm          .10000E-03    1.2723        .63816E-07** at limit **
  13  Prefactor     9.5576        12.412       -.14761E-07   -.55173E-04
  14  Prefactor     4.5923        8.5001       -.24101E-06   -.22141E-03
  15  Prefactor     .47434        .21363       -.29555E-07   -.77878E-03
  16  Prefactor     .10000E-03    2.2530       -.95618E-08** at limit **
  17  norm          .89682        .87807       -.16191E-06   -.22193E-03
  18  Prefactor     14.926        28.170        .83856E-06    .76624E-06
  19  Prefactor     .10000E-03    20.786        .20293E-04** at limit **
  20  Prefactor     .10000E-03    17.519       -.15339E-04** at limit **
  21  Prefactor     .22180        .14834        .22008E-07   -.55149E-03
  22  Prefactor     .10000E-03    56.801       -.19179E-04** at limit **
  23  Prefactor     24.847        10.018        .47698E-07    .62678E-04
  24  Prefactor     .10000E-03    5.3125       -.23756E-06** at limit **
  25  Normalizat    1.0630        .21815       -.53733E-06   -.14546E-03
  26  Prefactor     .80685        .11216       -.72087E-07   -.24266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.74287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52112
  Prefactor  = 18.3831
  Prefactor  = 34.9486
  Prefactor  = 49.8211
  norm       = 0.0001
  Prefactor  = 9.55763
  Prefactor  = 4.59227
  Prefactor  = 0.474339
  Prefactor  = 0.0001
  norm       = 0.896815
  Prefactor  = 14.9256
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.221802
  Prefactor  = 0.0001
  Prefactor  = 24.847
  Prefactor  = 0.0001
  Normalizat = 1.06301
  Prefactor  = 0.806851
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.747     FROM HESSE     STATUS=OK           458 CALLS     3509 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7429        2.9532        .83479E-04   -1.5151    
   2  Prefactor     .10000E-03    19.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .56004        .59814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5211        .94698        .60479E-04   -1.5461    
   9  Prefactor     18.383        15.373        .93418E-04   -1.4850    
  10  Prefactor     34.949        30.222        .67790E-04   -1.4525    
  11  Prefactor     49.821        29.985        .56816E-04   -1.4295    
  12  norm          .10000E-03    1.2760        .90472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5576        12.403        .12963E-03   -1.5090    
  14  Prefactor     4.5923        8.5130        .18784E-03   -1.5279    
  15  Prefactor     .47434        .21103        .23388E-04   -1.5570    
  16  Prefactor     .10000E-03    2.2545        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .89682        .91506        .74258E-03   -1.5519    
  18  Prefactor     14.926        28.121        .10368E-03   -1.4935    
  19  Prefactor     .10000E-03    21.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22180        .14409        .23693E-04   -1.5614    
  22  Prefactor     .10000E-03    57.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.847        10.002        .80363E-04   -1.4711    
  24  Prefactor     .10000E-03    5.3206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0630        .25677        .31330E-03   -.90948    
  26  Prefactor     .80685        .13259        .19007E-03   -.99476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81263e-10
Minuit parameter uncertainties:
  1  2.95322
  2  6.43944e-07
  3  2.07526e-06
  4  7.14091e-08
  5  2.33707e-05
  6  1.75356e-06
  7  4.85266e-05
  8  0.946985
  9  15.3762
  10  30.2348
  11  29.9944
  12  4.61456e-07
  13  12.4066
  14  8.51521
  15  0.211031
  16  8.77313e-07
  17  0.915077
  18  28.1462
  19  0.000347862
  20  1.94845e-05
  21  0.144091
  22  9.00935e-05
  23  10.003
  24  2.17357e-06
  25  0.257075
  26  0.13264
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  9.558e+00  1.241e+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:  8.069e-01  1.326e-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.063e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279054/likelihoodResults_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.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) = 6746.74165608
delta logL = 0.00487391583192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6746.73710918
delta logL = 0.00942081756148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1184       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5320       1.0000          .0000       10.000    
     3 'Normalizat'    1.0595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80820       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=   6746.737     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1148        17.634        .14071E-03    .24933E-03
   2  Index         2.5336        1.1080        .89461E-02    .71223E-04
   3  Normalizat    1.0596        .24726        .31374E-03   -.68057E-03
   4  Prefactor     .80819        .13246        .18993E-03   -.12626E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.1148
  Index      = 2.53355
  Normalizat = 1.05956
  Prefactor  = 0.808194
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.737     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1148        14.968        .56285E-05   -1.5138    
   2  Index         2.5336        .94288        .35784E-03   -.51587    
   3  Normalizat    1.0596        .24714        .62749E-04   -.91061    
   4  Prefactor     .80819        .13236        .37986E-04   -.99427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09798e-09
Minuit parameter uncertainties:
  1  14.9747
  2  0.950424
  3  0.247404
  4  0.132414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279054': 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) = 6746.73710678
delta logL = 0.0094232182737

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  8.115e+00  1.497e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.534e+00  9.504e-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:  8.082e-01  1.324e-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.060e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/279054/cmap_HighResolution_367891201_368150401_4FGL_J2222.8+1209_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.63e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-28 10:29:14.181105', job_id='279054', GAL2='0.81', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632850154.18', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.42e-03', ts2='0.87', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='496' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 279054: <4FGL_J2222.8+1209_daily_bin496> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin496> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:18 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:19 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:19 2021
Terminated at Tue Sep 28 10:29:15 2021
Results reported at Tue Sep 28 10:29:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin496 335.71 12.1568 367891201 368150401 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 :                                   723.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

