/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 192 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 = 7384
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin102
RA = 335.71, Dec = 12.1568
tmin = 265766401, tmax = 266025601
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='276548', job_status='RUN', time_executed='2021-09-28 10:09:26.940443', time_epoch_executed='1632848966.94' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276548/ft1_4FGL_J2222.8+1209_daily_bin102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276548/ft1_4FGL_J2222.8+1209_daily_bin102.fits outfile=/scratch/kocevski/276548/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin102.fits ra=335.71 dec=12.1568 rad=12.0 tmin=265766401.0 tmax=266025601.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 1.42
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276548/ft1_filtered_4FGL_J2222.8+1209_daily_bin102.fits" evtable="EVENTS" scfile=/scratch/kocevski/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits sctable="SC_DATA" outfile=/scratch/kocevski/276548/ltcube_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.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/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits
.....................!
real 15.16
user 14.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276548/ft1_filtered_4FGL_J2222.8+1209_daily_bin102.fits evtable="EVENTS" scfile=/scratch/kocevski/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits sctable="SC_DATA" expcube=/scratch/kocevski/276548/ltcube_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.fits outfile=/scratch/kocevski/276548/expmap_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.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/276548/ltcube_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.fits
.....................!
real 191.71
user 186.25
sys 5.02

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/276548/ft1_filtered_4FGL_J2222.8+1209_daily_bin102.fits scfile=/scratch/kocevski/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits outfile=/scratch/kocevski/276548/cmap_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276548/ft1_filtered_4FGL_J2222.8+1209_daily_bin102.fits scfile=/scratch/kocevski/276548/ft2_4FGL_J2222.8+1209_daily_bin102.fits outfile=/scratch/kocevski/276548/cmap_HighResolution_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.1894       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.865       1.0000         .10000E-03   10000.    
    12 'norm      '    .16037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.601       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7809       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91393       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=   7743.199     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3114 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5317        3.2912       -.80738E-07   -.13647E-03
   2  Prefactor     .10000E-03    29.826        .94132E-05** at limit **
   3  Prefactor     .10000E-03    49.804       -.42757E-05** at limit **
   4  norm          9.1894        2.9851       -.41673E-07   -.94988E-04
   5  norm          .10000E-03    7.3444       -.34375E-06** at limit **
   6  Prefactor     .10000E-03    9.6438       -.19898E-05** at limit **
   7  Prefactor     .10000E-03    11.440       -.17884E-05** at limit **
   8  norm          2.0502        1.3176       -.16107E-07   -.18995E-03
   9  Prefactor     .10016E-03    12.096       -.13666E-05** at limit **
  10  Prefactor     .10000E-03    9.2449        .11735E-05** at limit **
  11  Prefactor     35.863        25.712       -.10307E-05    .59994E-04
  12  norm          .10004E-03    4.4358       -.10635E-05** at limit **
  13  Prefactor     .10000E-03    20.037       -.52037E-05** at limit **
  14  Prefactor     27.491        14.600       -.22913E-06   -.17672E-03
  15  Prefactor     .10000E-03    .13238        .21579E-07** at limit **
  16  Prefactor     15.601        12.061       -.16367E-06   -.32161E-04
  17  norm          .10000E-03    .68055       -.42099E-07** at limit **
  18  Prefactor     .10000E-03    20.210       -.48479E-05** at limit **
  19  Prefactor     .10000E-03    6.8593        .49004E-06** at limit **
  20  Prefactor     .10000E-03    9.1983        .18304E-05** at limit **
  21  Prefactor     1.7809        .24123       -.12361E-07    .38566E-03
  22  Prefactor     .10000E-03    17.238        .43186E-05** at limit **
  23  Prefactor     4.4204        7.1637       -.39874E-06   -.27171E-03
  24  Prefactor     .10000E-03    16.540        .60924E-05** at limit **
  25  Normalizat    1.0509        .23198        .24887E-06    .19084E-03
  26  Prefactor     .91398        .12078        .39004E-06    .30227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.53169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.18945
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05016
  Prefactor  = 0.000100162
  Prefactor  = 0.0001
  Prefactor  = 35.8634
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 27.491
  Prefactor  = 0.0001
  Prefactor  = 15.6014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7809
  Prefactor  = 0.0001
  Prefactor  = 4.42045
  Prefactor  = 0.0001
  Normalizat = 1.05092
  Prefactor  = 0.913979
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.199     FROM HESSE     STATUS=OK           454 CALLS     3568 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5317        3.2893        .10079E-03   -1.5159    
   2  Prefactor     .10000E-03    29.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.1894        2.9864        .82833E-04   -1.5102    
   5  norm          .10000E-03    7.3676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0502        1.3022        .75932E-04   -1.5422    
   9  Prefactor     .10016E-03    77.433        .58328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.863        25.661        .66919E-04   -1.4510    
  12  norm          .10004E-03    20.049        .34674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.502        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.491        14.593        .38203E-03   -1.4659    
  15  Prefactor     .10000E-03    .84926        .58758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.601        11.747        .10140E-03   -1.4918    
  17  norm          .10000E-03    .68840        .70879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7809        .24171        .15103E-04   -1.5441    
  22  Prefactor     .10000E-03    17.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4204        7.1946        .19154E-03   -1.5287    
  24  Prefactor     .10000E-03    16.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0509        .27128        .35082E-03   -.91343    
  26  Prefactor     .91398        .14419        .20142E-03   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08956e-09
Minuit parameter uncertainties:
  1  3.28936
  2  1.93779e-07
  3  1.17611e-05
  4  2.98642
  5  6.4564e-07
  6  8.32725e-07
  7  7.92036e-08
  8  1.30221
  9  0.00708774
  10  8.28632e-07
  11  25.6692
  12  0.00175351
  13  5.77668e-05
  14  14.5954
  15  7.04484e-06
  16  11.7483
  17  3.19492e-07
  18  2.42924e-06
  19  3.92106e-06
  20  4.65445e-07
  21  0.241714
  22  5.09423e-06
  23  7.196
  24  5.03739e-05
  25  0.271635
  26  0.144253
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.140e-01  1.443e-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.051e+00  2.716e-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: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276548/likelihoodResults_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.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) = 7743.19948352
delta logL = -0.000232726702052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7743.19925085
delta logL = -5.79793777433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4605       1.0000          .0000       10.000    
     3 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91394       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=   7743.199     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      220 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .11163        .90712E-01** at limit **
   2  Index         2.5253        6.5394        .50000       -.25352E-04
   3  Normalizat    1.0509        .79877E-03    .79255E-01    .55466E-05
   4  Prefactor     .91398        .43301E-03    .45182E-01   -.73125E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.52534
  Normalizat = 1.05092
  Prefactor  = 0.913979
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.199     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      255 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    39.934        .40030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5253        8.6927        .50000       -.51776    
   3  Normalizat    1.0509        .66456E-02    .35082E-03   -.91343    
   4  Prefactor     .91398        .36081E-02    .20142E-03   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08927e-07
Minuit parameter uncertainties:
  1  0.00134027
  2  99.2969
  3  0.00664559
  4  0.0036081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276548': 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) = 7743.19925011
delta logL = 6.75311639498e-07

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.051e+00  6.646e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/276548/cmap_HighResolution_265766401_266025601_4FGL_J2222.8+1209_daily_bin102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-28 10:22:41.196160', job_id='276548', GAL2='0.91', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632849761.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='102' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 276548: <4FGL_J2222.8+1209_daily_bin102> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin102> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:06:05 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:06:06 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:06:06 2021
Terminated at Tue Sep 28 10:22:42 2021
Results reported at Tue Sep 28 10:22:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin102 335.71 12.1568 265766401 266025601 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 :                                   794.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

