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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin598
RA = 335.71, Dec = 12.1568
tmin = 394329601, tmax = 394588801
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='279212', job_status='RUN', time_executed='2021-09-28 10:17:47.176305', time_epoch_executed='1632849467.18' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279212

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279212/ft1_4FGL_J2222.8+1209_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279212/ft2_4FGL_J2222.8+1209_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279212/ft1_4FGL_J2222.8+1209_daily_bin598.fits outfile=/scratch/kocevski/279212/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin598.fits ra=335.71 dec=12.1568 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.46
user 7.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279212/ft2_4FGL_J2222.8+1209_daily_bin598.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/279212/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/279212/ft1_filtered_4FGL_J2222.8+1209_daily_bin598.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.48
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279212/ft1_filtered_4FGL_J2222.8+1209_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/279212/ft2_4FGL_J2222.8+1209_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/279212/ltcube_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.fits outfile=/scratch/kocevski/279212/expmap_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.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/279212/ltcube_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.fits
.....................!
real 190.37
user 185.25
sys 4.77

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/279212/ft1_filtered_4FGL_J2222.8+1209_daily_bin598.fits scfile=/scratch/kocevski/279212/ft2_4FGL_J2222.8+1209_daily_bin598.fits outfile=/scratch/kocevski/279212/cmap_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279212/ft1_filtered_4FGL_J2222.8+1209_daily_bin598.fits scfile=/scratch/kocevski/279212/ft2_4FGL_J2222.8+1209_daily_bin598.fits outfile=/scratch/kocevski/279212/cmap_HighResolution_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5592       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .75258E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5241       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6150       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.871       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4774       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .43199       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1717       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=   6889.331     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3167 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5932        3.8746        .97650E-07    .10233E-03
   2  Prefactor     .10000E-03    19.770       -.13267E-06** at limit **
   3  Prefactor     7.5666        68.928        .61032E-07    .28492E-05
   4  norm          .10000E-03    .54828       -.27027E-07** at limit **
   5  norm          10.357        20.321        .21098E-06   -.10421E-04
   6  Prefactor     72.459        45.651        .19403E-06   -.40096E-04
   7  Prefactor     .10000E-03    240.19       -.11360E-05** at limit **
   8  norm          .10000E-03    .41685       -.21083E-06** at limit **
   9  Prefactor     9.8691        11.591        .19100E-07    .40924E-05
  10  Prefactor     23.657        24.062        .51050E-07   -.53489E-05
  11  Prefactor     .10000E-03    31.056        .26130E-06** at limit **
  12  norm          .10000E-03    2.2219        .73694E-07** at limit **
  13  Prefactor     27.855        21.075        .19521E-06   -.51196E-05
  14  Prefactor     .10000E-03    18.116        .95669E-06** at limit **
  15  Prefactor     .47842        .21106        .63265E-08    .11945E-03
  16  Prefactor     8.5251        8.1179        .14550E-07    .52413E-05
  17  norm          1.0045        1.7345        .72528E-06    .51953E-03
  18  Prefactor     .10000E-03    11.477        .11983E-07** at limit **
  19  Prefactor     .10000E-03    6.4898        .72320E-08** at limit **
  20  Prefactor     .10000E-03    9.6121        .25743E-07** at limit **
  21  Prefactor     2.6151        .29900       -.99932E-08   -.40549E-03
  22  Prefactor     19.872        23.509        .57296E-08   -.34219E-05
  23  Prefactor     1.4782        5.6168        .19242E-05   -.64834E-04
  24  Prefactor     .10000E-03    4.7232        .15403E-07** at limit **
  25  Normalizat    .43194        .28687       -.19424E-05   -.61038E-05
  26  Prefactor     1.1716        .15077        .66077E-06    .30470E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.59318
  Prefactor  = 0.0001
  Prefactor  = 7.56664
  norm       = 0.0001
  norm       = 10.3565
  Prefactor  = 72.4586
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.86909
  Prefactor  = 23.6566
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.8548
  Prefactor  = 0.0001
  Prefactor  = 0.478416
  Prefactor  = 8.52514
  norm       = 1.00448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61506
  Prefactor  = 19.8724
  Prefactor  = 1.47819
  Prefactor  = 0.0001
  Normalizat = 0.431937
  Prefactor  = 1.17156
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.331     FROM HESSE     STATUS=OK           462 CALLS     3629 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5932        3.8747        .95263E-04   -1.5122    
   2  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5666        68.559        .14586E-03   -1.5158    
   4  norm          .10000E-03    .55073        .59977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.357        20.202        .12453E-03   -1.5064    
   6  Prefactor     72.459        45.313        .47143E-04   -1.4003    
   7  Prefactor     .10000E-03    244.49        .20938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .57723        .10095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8691        11.585        .12756E-03   -1.5080    
  10  Prefactor     23.657        24.034        .82362E-04   -1.4735    
  11  Prefactor     .10000E-03    31.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2366        .12079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.855        20.890        .75915E-04   -1.4652    
  14  Prefactor     .10000E-03    18.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47842        .20944        .23172E-04   -1.5570    
  16  Prefactor     8.5251        8.1230        .13730E-03   -1.5124    
  17  norm          1.0045        1.6702        .15143E-02   -1.5508    
  18  Prefactor     .10000E-03    11.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.6200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6151        .29731        .14388E-04   -1.5385    
  22  Prefactor     19.872        23.503        .44926E-03   -1.4816    
  23  Prefactor     1.4782        5.4988        .35326E-03   -1.5465    
  24  Prefactor     .10000E-03    4.7381        .17617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .43194        .28091        .52096E-03   -1.1568    
  26  Prefactor     1.1716        .15269        .18297E-03   -.87211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13905e-10
Minuit parameter uncertainties:
  1  3.87484
  2  5.86027e-05
  3  45.6219
  4  1.00969e-07
  5  20.2154
  6  45.3345
  7  0.00075119
  8  8.30693e-06
  9  11.5878
  10  24.0441
  11  1.00179e-05
  12  2.56017e-08
  13  20.895
  14  3.43575e-05
  15  0.209437
  16  8.12402
  17  1.67028
  18  4.72331e-06
  19  1.43179e-05
  20  7.46925e-07
  21  0.297309
  22  23.5135
  23  5.5007
  24  1.16775e-06
  25  0.281833
  26  0.152743
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.172e+00  1.527e-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:  4.319e-01  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.30e-08 +/- 6.97e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.27e-05

TS (Fixed Index): 2.51
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 2.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279212/likelihoodResults_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.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) = 6887.90984247
delta logL = 1.42141105267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6887.85274134
delta logL = 1.47851218429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8052       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6695       1.0000          .0000       10.000    
     3 'Normalizat'    .31798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2159       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=   6887.853     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7951        28.077        .51730E-02    .49228E-03
   2  Index         3.6709        2.1440        .81388E-01    .23424E-03
   3  Normalizat    .31745        .88081E-01    .13630        .59975E-04
   4  Prefactor     1.2163        .47993E-01    .34264E-01   -.67156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79508
  Index      = 3.67089
  Normalizat = 0.317453
  Prefactor  = 1.21627
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.853     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7951        42.598        .75021E-04   -1.5318    
   2  Index         3.6709        2.8495        .32541E-02   -.26906    
   3  Normalizat    .31745        .26759        .60285E-03   -1.2181    
   4  Prefactor     1.2163        .15113        .17984E-03   -.85832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.91759e-10
Minuit parameter uncertainties:
  1  25.4518
  2  3.04879
  3  0.268671
  4  0.151183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279212': 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) = 6887.85273806
delta logL = 1.47851545535

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.795e+00  2.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.671e+00  3.049e+00  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.216e+00  1.512e-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.175e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 335.710 12.157
Photon Index (Free Index): 3.67 +/- 3.05
Photon Flux (Free Index): 1.69e-07 +/- 8.48e-08
Energy Flux (Free Index): 2.70e-05 +/- 2.37e-05

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/279212/cmap_HighResolution_394329601_394588801_4FGL_J2222.8+1209_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', photon_flux='9.30e-08', energy_flux2='2.70e-05', photon_flux_error='6.97e-08', dlogl='1.48e+00', energy_flux='3.02e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-28 10:30:40.037548', photon_index_error2='3.05', photon_index2='3.67', ts='2.51', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='2.37e-05', EG='0.43', time_epoch_completed='1632850240.04', return_code='0', job_id='279212', GAL2='1.22', EG2='0.32', return_code2='102', energy_flux_error='2.27e-05', photon_flux_error2='8.48e-08', ts2='5.90', photon_index='2.41' WHERE bin_id='598' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 279212: <4FGL_J2222.8+1209_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin598 335.71 12.1568 394329601 394588801 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 :                                   771.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

