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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin768
RA = 335.71, Dec = 12.1568
tmin = 438393601, tmax = 438652801
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='279456', job_status='RUN', time_executed='2021-09-28 10:18:53.910645', time_epoch_executed='1632849533.91' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279456/ft1_4FGL_J2222.8+1209_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279456/ft2_4FGL_J2222.8+1209_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279456/ft1_4FGL_J2222.8+1209_daily_bin768.fits outfile=/scratch/kocevski/279456/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin768.fits ra=335.71 dec=12.1568 rad=12.0 tmin=438393601.0 tmax=438652801.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.30
user 6.07
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279456/ft1_filtered_4FGL_J2222.8+1209_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/279456/ft2_4FGL_J2222.8+1209_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/279456/ltcube_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.fits outfile=/scratch/kocevski/279456/expmap_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.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/279456/ltcube_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.fits
.....................!
real 191.74
user 186.40
sys 4.98

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/279456/ft1_filtered_4FGL_J2222.8+1209_daily_bin768.fits scfile=/scratch/kocevski/279456/ft2_4FGL_J2222.8+1209_daily_bin768.fits outfile=/scratch/kocevski/279456/cmap_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279456/ft1_filtered_4FGL_J2222.8+1209_daily_bin768.fits scfile=/scratch/kocevski/279456/ft2_4FGL_J2222.8+1209_daily_bin768.fits outfile=/scratch/kocevski/279456/cmap_HighResolution_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.785       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.957       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.246       1.0000         .10000E-03   10000.    
     8 'norm      '    .56415       1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14945E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    170.97       1.0000         .10000E-03   10000.    
    12 'norm      '    24.262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43801E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1119       1.0000         .10000E-03   10000.    
    17 'norm      '    .66169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13652E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50661E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25353E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3998       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10868E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.616       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .37858       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95826       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=   5138.562     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2261 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.820        6.1670       -.47703E-07    .40020E-04
   2  Prefactor     48.554        77.743       -.71690E-05    .62531E-02
   3  Prefactor     30.610        26.593        .31381E-05   -.66018E-03
   4  norm          .10000E-03    1.4263       -.67860E-08** at limit **
   5  norm          24.038        22.422        .47604E-07    .20218E-01
   6  Prefactor     29.206        38.227       -.50263E-05   -.11030E-01
   7  Prefactor     62.122        23.478       -.19126E-05   -.91521E-03
   8  norm          .58238        1.8271       -.37328E-06   -.15971E-03
   9  Prefactor     87.206        45.892        .18945E-05   -.92383E-02
  10  Prefactor     .10000E-03    17.674       -.32441E-06** at limit **
  11  Prefactor     175.15        69.336        .62758E-06    .70514E-02
  12  norm          24.178        12.046       -.54657E-07   -.11183E-03
  13  Prefactor     .10000E-03    18.278       -.94663E-06** at limit **
  14  Prefactor     24.230        28.485        .77034E-07    .46497E-02
  15  Prefactor     2.1394        .50610       -.14976E-08    .10281E-02
  16  Prefactor     2.1286        14.837        .39557E-05    .15881E-03
  17  norm          .66536        1.9226        .16126E-06    .69136E-04
  18  Prefactor     .10000E-03    37.181       -.28505E-06** at limit **
  19  Prefactor     .10000E-03    6.4339       -.49576E-06** at limit **
  20  Prefactor     .10000E-03    20.752        .17919E-06** at limit **
  21  Prefactor     7.4025        .62637        .17321E-07    .11446E-02
  22  Prefactor     .10000E-03    84.086        .50959E-05** at limit **
  23  Prefactor     .10000E-03    3.6247       -.28673E-07** at limit **
  24  Prefactor     19.536        20.966        .43846E-06    .89664E-03
  25  Normalizat    .37435        .41578        .43638E-05    .60883E-04
  26  Prefactor     .95929        .21256       -.72549E-06    .11772E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8198
  Prefactor  = 48.5538
  Prefactor  = 30.6102
  norm       = 0.0001
  norm       = 24.0382
  Prefactor  = 29.2056
  Prefactor  = 62.1221
  norm       = 0.582378
  Prefactor  = 87.2061
  Prefactor  = 0.0001
  Prefactor  = 175.155
  norm       = 24.1779
  Prefactor  = 0.0001
  Prefactor  = 24.2304
  Prefactor  = 2.13941
  Prefactor  = 2.12859
  norm       = 0.665362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.40248
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 19.5363
  Normalizat = 0.374351
  Prefactor  = 0.959286
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.562     FROM HESSE     STATUS=OK           512 CALLS     2773 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.820        6.1894        .26041E-02   -1.4938    
   2  Prefactor     48.554        92.629        .14021E-02   -1.4313    
   3  Prefactor     30.610        103.32        .18301E-02   -1.4601    
   4  norm          .10000E-03    1.4252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.038        34.610        .20361E-02   -1.4727    
   6  Prefactor     29.206        42.499        .18036E-02   -1.4627    
   7  Prefactor     62.122        86.122        .12615E-02   -1.4130    
   8  norm          .58238        1.8547        .11530E-01   -1.5555    
   9  Prefactor     87.206        49.867        .10866E-02   -1.3838    
  10  Prefactor     .10000E-03    17.652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     175.15        73.770        .77141E-03   -1.3053    
  12  norm          24.178        12.103        .20331E-02   -1.4724    
  13  Prefactor     .10000E-03    18.215        .10611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.230        29.626        .20011E-02   -1.4723    
  15  Prefactor     2.1394        .51407        .51865E-02   -1.5415    
  16  Prefactor     2.1286        14.805        .70969E-02   -1.5416    
  17  norm          .66536        2.0713        .38631E-01   -1.5545    
  18  Prefactor     .10000E-03    37.174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4329        .10575E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.722        .10730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4025        .63253        .35635E-02   -1.5164    
  22  Prefactor     .10000E-03    83.891        .10353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.536        21.124        .22608E-02   -1.4824    
  25  Normalizat    .37435        .49122        .15764       -1.1865    
  26  Prefactor     .95929        .23323        .45743E-01   -.94099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15813e-06
Minuit parameter uncertainties:
  1  6.18965
  2  92.9054
  3  103.934
  4  2.65281e-07
  5  34.6389
  6  42.5426
  7  86.2954
  8  1.85493
  9  49.8908
  10  2.80173e-05
  11  73.8094
  12  12.1039
  13  7.4566e-05
  14  29.6444
  15  0.514074
  16  11.2312
  17  2.07149
  18  3.79827e-05
  19  2.33646e-05
  20  1.50439e-05
  21  0.632527
  22  0.000758983
  23  1.26369e-06
  24  21.1324
  25  0.497035
  26  0.233473
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  7.457e-05  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:  9.593e-01  2.335e-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:  3.744e-01  4.970e-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: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279456/likelihoodResults_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.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) = 5138.56225625
delta logL = -0.000260833954599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5138.5619941
delta logL = 1.31870910991e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1874       1.0000          .0000       10.000    
     3 'Normalizat'    .37434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95929       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=   5138.562     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      256 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .69532E-01    .59434E-01** at limit **
   2  Index         3.2324        5.4605        .50000       -.13143E-04
   3  Normalizat    .37435        .87970E-03    .15764        .59749E-05
   4  Prefactor     .95928        .46344E-03    .45756E-01   -.41520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.2324
  Normalizat = 0.374354
  Prefactor  = 0.959282
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.562     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.509        .35066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2324        5.0025        .50000       -.36133    
   3  Normalizat    .37435        .59402E-02    .69891E-03   -1.1865    
   4  Prefactor     .95928        .31388E-02    .23414E-03   -.94099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85556e-08
Minuit parameter uncertainties:
  1  4.54568e-05
  2  70.0834
  3  0.00594024
  4  0.00313878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279456': 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) = 5138.56199395
delta logL = 1.46180173033e-06

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.546e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.232e+00  7.008e+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:  9.593e-01  3.139e-03  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:  3.744e-01  5.940e-03  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/279456/cmap_HighResolution_438393601_438652801_4FGL_J2222.8+1209_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2021-09-28 10:29:10.842331', job_id='279456', GAL2='0.96', fit_tolerance='1e-08', EG2='0.37', EG='0.37', time_epoch_completed='1632850150.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='768' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 279456: <4FGL_J2222.8+1209_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin768 335.71 12.1568 438393601 438652801 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 :                                   615.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

