/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 113 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 = 7304
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin384
RA = 335.71, Dec = 12.1568
tmin = 338860801, tmax = 339120001
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='277885', job_status='RUN', time_executed='2021-09-28 10:12:47.406595', time_epoch_executed='1632849167.41' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277885

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277885/ft1_4FGL_J2222.8+1209_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277885/ft2_4FGL_J2222.8+1209_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277885/ft1_4FGL_J2222.8+1209_daily_bin384.fits outfile=/scratch/kocevski/277885/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin384.fits ra=335.71 dec=12.1568 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.78
user 4.53
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277885/ft1_filtered_4FGL_J2222.8+1209_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/277885/ft2_4FGL_J2222.8+1209_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/277885/ltcube_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.fits outfile=/scratch/kocevski/277885/expmap_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.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/277885/ltcube_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.fits
.....................!
real 191.83
user 186.39
sys 5.05

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/277885/ft1_filtered_4FGL_J2222.8+1209_daily_bin384.fits scfile=/scratch/kocevski/277885/ft2_4FGL_J2222.8+1209_daily_bin384.fits outfile=/scratch/kocevski/277885/cmap_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277885/ft1_filtered_4FGL_J2222.8+1209_daily_bin384.fits scfile=/scratch/kocevski/277885/ft2_4FGL_J2222.8+1209_daily_bin384.fits outfile=/scratch/kocevski/277885/cmap_HighResolution_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7072       1.0000         .10000E-03   10000.    
     5 'norm      '    21.104       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.316       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16622E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .74521       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1819       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18623E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.571       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83866       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0576       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=   7262.825     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3115 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4906        2.5777       -.43327E-06   -.40922E-03
   2  Prefactor     .10000E-03    40.221       -.14588E-04** at limit **
   3  Prefactor     .10000E-03    36.957        .13209E-04** at limit **
   4  norm          4.7070        3.0531        .71060E-06   -.29007E-03
   5  norm          21.098        19.860       -.21365E-05   -.53645E-04
   6  Prefactor     39.352        28.567        .82242E-05   -.84546E-04
   7  Prefactor     10.383        67.082        .17450E-03    .95555E-05
   8  norm          3.6329        1.3376       -.50533E-06   -.14217E-02
   9  Prefactor     8.4218        19.854       -.42449E-05   -.44619E-04
  10  Prefactor     24.336        24.043        .69598E-07   -.16946E-04
  11  Prefactor     .10000E-03    19.908        .94109E-06** at limit **
  12  norm          .10064E-03    2.0856        .10027E-05** at limit **
  13  Prefactor     .10000E-03    5.0659        .78750E-07** at limit **
  14  Prefactor     11.871        10.680       -.42963E-06   -.24035E-03
  15  Prefactor     .74519        .21591        .93596E-07   -.10191E-02
  16  Prefactor     .10000E-03    3.7084        .82696E-07** at limit **
  17  norm          2.1826        1.6100        .15499E-06   -.37329E-03
  18  Prefactor     .10000E-03    8.7142       -.63462E-06** at limit **
  19  Prefactor     .10000E-03    5.8656        .68556E-06** at limit **
  20  Prefactor     .10000E-03    14.195       -.11216E-04** at limit **
  21  Prefactor     .12691        .11105        .98387E-07   -.10266E-02
  22  Prefactor     .10000E-03    12.678        .92917E-05** at limit **
  23  Prefactor     .10000E-03    5.7267        .12922E-05** at limit **
  24  Prefactor     24.569        15.816        .39524E-06   -.13034E-03
  25  Normalizat    .83879        .24052       -.44316E-05   -.42880E-03
  26  Prefactor     1.0576        .12563       -.28564E-05   -.32852E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70696
  norm       = 21.0977
  Prefactor  = 39.3517
  Prefactor  = 10.383
  norm       = 3.63289
  Prefactor  = 8.4218
  Prefactor  = 24.3363
  Prefactor  = 0.0001
  norm       = 0.000100643
  Prefactor  = 0.0001
  Prefactor  = 11.8713
  Prefactor  = 0.745185
  Prefactor  = 0.0001
  norm       = 2.18264
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.126914
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 24.5689
  Normalizat = 0.838787
  Prefactor  = 1.0576
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.825     FROM HESSE     STATUS=OK           468 CALLS     3583 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4906        2.5750        .98759E-04   -1.5284    
   2  Prefactor     .10000E-03    40.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7070        3.0435        .11129E-03   -1.5274    
   5  norm          21.098        19.843        .87189E-04   -1.4789    
   6  Prefactor     39.352        28.543        .63905E-04   -1.4453    
   7  Prefactor     10.383        66.759        .12475E-03   -1.5063    
   8  norm          3.6329        1.3336        .56486E-04   -1.5327    
   9  Prefactor     8.4218        19.832        .13807E-03   -1.5127    
  10  Prefactor     24.336        24.036        .81197E-04   -1.4721    
  11  Prefactor     .10000E-03    19.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10064E-03    38.175        .23725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.871        10.693        .11627E-03   -1.5019    
  15  Prefactor     .74519        .21556        .20287E-04   -1.5535    
  16  Prefactor     .10000E-03    3.7210        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1826        1.5887        .88895E-04   -1.5412    
  18  Prefactor     .10000E-03    8.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.680        .39415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12691        .10499        .25137E-03   -1.5637    
  22  Prefactor     .10000E-03    12.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    46.766        .38866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.569        15.765        .80812E-04   -1.4716    
  25  Normalizat    .83879        .27348        .37646E-03   -.98646    
  26  Prefactor     1.0576        .14550        .18613E-03   -.90833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61843e-08
Minuit parameter uncertainties:
  1  2.57509
  2  1.00693e-05
  3  0.000124647
  4  3.04358
  5  19.849
  6  28.5529
  7  52.7417
  8  1.33363
  9  19.8477
  10  24.0459
  11  0.000139265
  12  0.00991803
  13  2.14007e-05
  14  10.6945
  15  0.215561
  16  1.04322e-05
  17  1.58873
  18  1.33605e-05
  19  0.000606926
  20  6.99916e-05
  21  0.104994
  22  1.57248e-05
  23  0.000722186
  24  15.7676
  25  0.273934
  26  0.145559
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.140e-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:  1.058e+00  1.456e-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:  8.388e-01  2.739e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277885/likelihoodResults_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.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) = 7262.82643056
delta logL = -0.000935965189456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7262.82549461
delta logL = -1.25683072838e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3833       1.0000          .0000       10.000    
     3 'Normalizat'    .83881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       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=   7262.825     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    40.219        .18142E-02** at limit **
   2  Index         2.3274        8.3438        .50000        .33155E-04
   3  Normalizat    .83879        .15187E-01    .37646E-03   -.15100E-05
   4  Prefactor     1.0576        .84000E-02    .18614E-03   -.78912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101368
  Index      = 2.32739
  Normalizat = 0.838794
  Prefactor  = 1.0576
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.825     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10137E-03    174.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3274        5.9983        .50000       -.56394    
   3  Normalizat    .83879        .32551E-01    .15058E-04   -.98645    
   4  Prefactor     1.0576        .18004E-01    .37227E-04   -.90834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93577e-08
Minuit parameter uncertainties:
  1  0.03096
  2  374.428
  3  0.0325517
  4  0.0180041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277885': 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) = 7262.82549403
delta logL = 5.64088622923e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.014e-04  3.096e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.327e+00  3.744e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.058e+00  1.800e-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.388e-01  3.255e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277885/cmap_HighResolution_338860801_339120001_4FGL_J2222.8+1209_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-28 10:25:46.357830', job_id='277885', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632849946.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='384' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 277885: <4FGL_J2222.8+1209_daily_bin384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin384 335.71 12.1568 338860801 339120001 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 :                                   777.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

