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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin623
RA = 335.71, Dec = 12.1568
tmin = 400809601, tmax = 401068801
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='279247', job_status='RUN', time_executed='2021-09-28 10:17:45.934465', time_epoch_executed='1632849465.93' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279247

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279247/ft1_4FGL_J2222.8+1209_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279247/ft1_4FGL_J2222.8+1209_daily_bin623.fits outfile=/scratch/kocevski/279247/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin623.fits ra=335.71 dec=12.1568 rad=12.0 tmin=400809601.0 tmax=401068801.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 3.40
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.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/279247/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin623.fits evtable="EVENTS" outfile="/scratch/kocevski/279247/ft1_filtered_4FGL_J2222.8+1209_daily_bin623.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279247/ft1_filtered_4FGL_J2222.8+1209_daily_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/279247/ltcube_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.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/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits
.....................!
real 11.94
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279247/ft1_filtered_4FGL_J2222.8+1209_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/279247/ltcube_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.fits outfile=/scratch/kocevski/279247/expmap_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.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/279247/ltcube_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.fits
.....................!
real 190.36
user 184.91
sys 5.09

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/279247/ft1_filtered_4FGL_J2222.8+1209_daily_bin623.fits scfile=/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits outfile=/scratch/kocevski/279247/cmap_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279247/ft1_filtered_4FGL_J2222.8+1209_daily_bin623.fits scfile=/scratch/kocevski/279247/ft2_4FGL_J2222.8+1209_daily_bin623.fits outfile=/scratch/kocevski/279247/cmap_HighResolution_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.727       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    126.06       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.973       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5008       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.065       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79362E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3222       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7512       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1303       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68325       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0264       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=   8094.371     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3117 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.726        3.6587        .42552E-06   -.45238E-03
   2  Prefactor     .10000E-03    20.528        .84387E-06** at limit **
   3  Prefactor     .10000E-03    30.601        .20269E-05** at limit **
   4  norm          .10000E-03    1.4482        .14935E-06** at limit **
   5  norm          .10000E-03    10.576        .21987E-06** at limit **
   6  Prefactor     .10000E-03    29.794       -.24007E-06** at limit **
   7  Prefactor     126.02        71.140       -.23446E-05   -.19645E-03
   8  norm          .10000E-03    .25083       -.65610E-08** at limit **
   9  Prefactor     26.316        22.088       -.17645E-06   -.75673E-04
  10  Prefactor     3.1862        50.739        .16321E-05    .82826E-06
  11  Prefactor     13.975        29.203        .45059E-07   -.23305E-04
  12  norm          2.4986        5.9575        .13299E-05    .48061E-04
  13  Prefactor     .97273E-01    8.5857       -.50539E-06    .11261E-03
  14  Prefactor     16.060        15.929        .11540E-06   -.31445E-04
  15  Prefactor     .79414E-01    .13308        .13603E-06    .19746E-02
  16  Prefactor     .10000E-03    2.4212        .22981E-07** at limit **
  17  norm          .10000E-03    .69646        .34263E-07** at limit **
  18  Prefactor     15.745        22.628        .11524E-06    .83388E-06
  19  Prefactor     .10000E-03    8.0810        .85529E-07** at limit **
  20  Prefactor     .10000E-03    12.363       -.19477E-06** at limit **
  21  Prefactor     2.3221        .28469       -.24974E-07    .22374E-03
  22  Prefactor     .10000E-03    26.529       -.26490E-05** at limit **
  23  Prefactor     7.7476        11.033        .30833E-05   -.29993E-03
  24  Prefactor     4.1257        14.698       -.28947E-06   -.21056E-04
  25  Normalizat    .68338        .24645       -.17738E-05   -.75828E-05
  26  Prefactor     1.0265        .11896        .35632E-07   -.27220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7258
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.025
  norm       = 0.0001
  Prefactor  = 26.3163
  Prefactor  = 3.18622
  Prefactor  = 13.9748
  norm       = 2.4986
  Prefactor  = 0.097273
  Prefactor  = 16.0599
  Prefactor  = 0.0794139
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32208
  Prefactor  = 0.000100002
  Prefactor  = 7.74764
  Prefactor  = 4.12567
  Normalizat = 0.683379
  Prefactor  = 1.02653
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.371     FROM HESSE     STATUS=OK           466 CALLS     3583 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.726        3.6691        .48088E-03   -1.5053    
   2  Prefactor     .10000E-03    20.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4982        .21124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     126.02        73.174        .17927E-03   -1.3458    
   8  norm          .10000E-03    .25396        .43955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.316        22.097        .78087E-04   -1.4682    
  10  Prefactor     3.1862        50.595        .22613E-03   -1.5351    
  11  Prefactor     13.975        29.248        .10715E-03   -1.4960    
  12  norm          2.4986        5.9310        .25843E-03   -1.5392    
  13  Prefactor     .97273E-01    12.335        .75359E-01   -1.5646    
  14  Prefactor     16.060        15.938        .99925E-04   -1.4906    
  15  Prefactor     .79414E-01    .11762        .39825E-03   -1.5652    
  16  Prefactor     .10000E-03    2.4242        .13671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .70671        .73312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.745        22.651        .10093E-03   -1.4914    
  19  Prefactor     .10000E-03    8.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3221        .28578        .15447E-04   -1.5403    
  22  Prefactor     .10000E-03    27.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7476        11.154        .72016E-03   -1.5151    
  24  Prefactor     4.1257        14.664        .19834E-03   -1.5302    
  25  Normalizat    .68338        .27740        .42467E-03   -1.0455    
  26  Prefactor     1.0265        .13637        .18739E-03   -.91850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93126e-10
Minuit parameter uncertainties:
  1  3.66921
  2  0.000123103
  3  0.000367167
  4  2.6785e-06
  5  2.00572e-05
  6  4.46161e-05
  7  73.2263
  8  7.13786e-08
  9  22.1041
  10  25.4186
  11  29.278
  12  5.93236
  13  2.19008
  14  15.9427
  15  0.117619
  16  4.42857e-08
  17  2.65785e-07
  18  22.6631
  19  2.8991e-06
  20  2.67724e-05
  21  0.285783
  22  0.000455377
  23  11.1567
  24  14.6772
  25  0.277973
  26  0.136413
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  9.727e-02  2.190e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.027e+00  1.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.834e-01  2.780e-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: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279247/likelihoodResults_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.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) = 8094.27588491
delta logL = 0.0948588448009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.26572199
delta logL = 0.105021767031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72489       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6042       1.0000          .0000       10.000    
     3 'Normalizat'    .65062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0353       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=   8094.266     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72873        26.324        .12157E-01    .13776E-02
   2  Index         3.6013        2.5054        .21023        .41242E-04
   3  Normalizat    .65055        .31403E-01    .98088E-01   -.19153E-04
   4  Prefactor     1.0353        .16785E-01    .40863E-01   -.82502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.728725
  Index      = 3.60131
  Normalizat = 0.650551
  Prefactor  = 1.03528
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.266     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72873        169.83        .16105E-03   -1.5537    
   2  Index         3.6013        5.7870        .86133E-02   -.28352    
   3  Normalizat    .65055        .22717        .43474E-03   -1.0588    
   4  Prefactor     1.0353        .12183        .18670E-03   -.91563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.7883e-10
Minuit parameter uncertainties:
  1  22.3123
  2  13.8882
  3  0.227499
  4  0.121867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279247': 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) = 8094.26572111
delta logL = 0.105022646529

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  7.287e-01  2.231e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.601e+00  1.389e+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:  1.035e+00  1.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.506e-01  2.275e-01  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/279247/cmap_HighResolution_400809601_401068801_4FGL_J2222.8+1209_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-28 10:31:15.711238', job_id='279247', GAL2='1.04', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1632850275.71', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.05e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='623' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 279247: <4FGL_J2222.8+1209_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin623 335.71 12.1568 400809601 401068801 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 :                                   809.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

