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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin994
RA = 335.71, Dec = 12.1568
tmin = 496972801, tmax = 497232001
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='280863', job_status='RUN', time_executed='2021-09-28 10:21:02.997776', time_epoch_executed='1632849663.0' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280863/ft1_4FGL_J2222.8+1209_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280863/ft2_4FGL_J2222.8+1209_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280863/ft1_4FGL_J2222.8+1209_daily_bin994.fits outfile=/scratch/kocevski/280863/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin994.fits ra=335.71 dec=12.1568 rad=12.0 tmin=496972801.0 tmax=497232001.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.15
user 4.89
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280863/ft1_filtered_4FGL_J2222.8+1209_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/280863/ft2_4FGL_J2222.8+1209_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/280863/ltcube_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.fits outfile=/scratch/kocevski/280863/expmap_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.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/280863/ltcube_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.fits
.....................!
real 192.12
user 186.82
sys 4.88

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/280863/ft1_filtered_4FGL_J2222.8+1209_daily_bin994.fits scfile=/scratch/kocevski/280863/ft2_4FGL_J2222.8+1209_daily_bin994.fits outfile=/scratch/kocevski/280863/cmap_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.293       1.0000         .10000E-03   10000.    
     4 'norm      '    .11757E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    41.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.431       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.088       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3167       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84887       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=   6641.138     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3063 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3430        3.6529       -.39961E-06   -.34439E-03
   2  Prefactor     .10000E-03    50.284       -.97993E-05** at limit **
   3  Prefactor     46.277        87.866       -.18495E-04    .29221E-05
   4  norm          .10001E-03    4.7412        .11772E-05** at limit **
   5  norm          41.166        36.215       -.28218E-04   -.23485E-04
   6  Prefactor     .10000E-03    33.712        .75155E-05** at limit **
   7  Prefactor     .10000E-03    17.192       -.55425E-05** at limit **
   8  norm          .10000E-03    .41820       -.15624E-06** at limit **
   9  Prefactor     .10000E-03    14.002        .94693E-05** at limit **
  10  Prefactor     .10000E-03    26.172       -.16332E-04** at limit **
  11  Prefactor     42.432        35.184        .15866E-05    .12905E-04
  12  norm          9.0217        6.6531       -.41705E-06   -.28743E-05
  13  Prefactor     .10000E-03    9.4557       -.71946E-05** at limit **
  14  Prefactor     .10000E-03    3.9148       -.32034E-06** at limit **
  15  Prefactor     2.4480        .41872       -.66763E-07    .12297E-02
  16  Prefactor     .10000E-03    4.4021        .36889E-06** at limit **
  17  norm          6.3976        3.2734       -.70083E-06   -.30212E-02
  18  Prefactor     53.045        52.307        .29950E-06   -.10666E-04
  19  Prefactor     .10000E-03    33.762        .91179E-05** at limit **
  20  Prefactor     .10000E-03    8.5284        .46975E-05** at limit **
  21  Prefactor     3.4805        .39480       -.40418E-07    .42272E-04
  22  Prefactor     .10000E-03    34.138        .83476E-05** at limit **
  23  Prefactor     .10000E-03    3.4616        .15723E-07** at limit **
  24  Prefactor     11.091        16.582       -.10568E-05   -.16421E-04
  25  Normalizat    1.3161        .31147        .57320E-05   -.89170E-04
  26  Prefactor     .84910        .15484        .10238E-05    .49540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.34296
  Prefactor  = 0.0001
  Prefactor  = 46.2773
  norm       = 0.000100006
  norm       = 41.166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.4322
  norm       = 9.02168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44804
  Prefactor  = 0.0001
  norm       = 6.39757
  Prefactor  = 53.0448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0909
  Normalizat = 1.31611
  Prefactor  = 0.849104
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.138     FROM HESSE     STATUS=OK           450 CALLS     3513 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3430        3.6558        .13682E-03   -1.5291    
   2  Prefactor     .10000E-03    50.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.277        87.814        .58930E-04   -1.4346    
   4  norm          .10001E-03    4.9497        .34634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          41.166        36.189        .62451E-04   -1.4424    
   6  Prefactor     .10000E-03    33.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .63415        .10236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.432        35.258        .61542E-04   -1.4404    
  12  norm          9.0217        6.6514        .13345E-03   -1.5107    
  13  Prefactor     .10000E-03    9.4693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9179        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4480        .42011        .20677E-04   -1.5395    
  16  Prefactor     .10000E-03    4.4082        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3976        3.2914        .51194E-03   -1.5202    
  18  Prefactor     53.045        52.515        .55070E-04   -1.4250    
  19  Prefactor     .10000E-03    34.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4805        .39749        .15996E-04   -1.5335    
  22  Prefactor     .10000E-03    34.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4713        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.091        16.583        .12031E-03   -1.5042    
  25  Normalizat    1.3161        .37556        .39860E-03   -.83087    
  26  Prefactor     .84910        .18707        .24517E-03   -.97943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08832e-09
Minuit parameter uncertainties:
  1  3.65602
  2  0.000108231
  3  88.0614
  4  0.000344871
  5  36.2081
  6  6.77196e-05
  7  8.42247e-06
  8  8.76624e-06
  9  7.64212e-05
  10  2.59618e-05
  11  35.2753
  12  6.65193
  13  1.17382e-05
  14  6.39527e-06
  15  0.42011
  16  5.32507e-06
  17  3.2915
  18  52.5613
  19  0.0001634
  20  5.6092e-06
  21  0.397486
  22  6.86381e-05
  23  5.5776e-06
  24  16.5901
  25  0.376343
  26  0.18721
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.174e-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:  8.491e-01  1.872e-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.316e+00  3.763e-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.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280863/likelihoodResults_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.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) = 6641.13864174
delta logL = -0.000502655951095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6641.13813907
delta logL = 9.07675712369e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3981       1.0000          .0000       10.000    
     3 'Normalizat'    1.3161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84911       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6641.138     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    644.13        .18142E-02** at limit **
   2  Index         2.2394        6.5473        .50000        .44043E-05
   3  Normalizat    1.3161        .66343E-01    .39859E-03   -.40473E-04
   4  Prefactor     .84910        .33817E-01    .24517E-03   -.25875E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6641.138     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      383 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    644.13        .47921E-03** at limit **
   2  Index         2.2394        6.5473        .71891E-04    .44043E-05
   3  Normalizat    1.3161        .66343E-01    .19987E-05   -.40473E-04
   4  Prefactor     .84910        .33817E-01    .10161E-05   -.25875E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6641.138     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      433 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.984        .36285E-03** at limit **
   2  Index         2.0569        7.3053        .50000       -.98680E-08
   3  Normalizat    1.3161        .36101        .15944E-04    .90557E-04
   4  Prefactor     .84910        .18430        .98068E-05    .17157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05687
  Normalizat = 1.31611
  Prefactor  = 0.849102
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.138     FROM HESSE     STATUS=OK            29 CALLS      462 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.438        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0569        5.0130        .50000       -.62936    
   3  Normalizat    1.3161        .36043        .31888E-05   -.83087    
   4  Prefactor     .84910        .18404        .19614E-05   -.97943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85019e-11
Minuit parameter uncertainties:
  1  1.26248e-06
  2  286.949
  3  0.361124
  4  0.184172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280863': 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) = 6641.13813874
delta logL = 3.44991349266e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.262e-06  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.057e+00  2.869e+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:  8.491e-01  1.842e-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.316e+00  3.611e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/280863/cmap_HighResolution_496972801_497232001_4FGL_J2222.8+1209_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-28 10:33:43.565633', job_id='280863', GAL2='0.85', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632850423.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='994' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:33:43 PDT 2021


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

Job <4FGL_J2222.8+1209_daily_bin994> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 10:20:44 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:20:46 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:20:46 2021
Terminated at Tue Sep 28 10:33:43 2021
Results reported at Tue Sep 28 10:33:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin994 335.71 12.1568 496972801 497232001 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

