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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin736
RA = 335.71, Dec = 12.1568
tmin = 430099201, tmax = 430358401
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='279408', job_status='RUN', time_executed='2021-09-28 10:18:09.526355', time_epoch_executed='1632849489.53' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279408/ft1_4FGL_J2222.8+1209_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279408/ft1_4FGL_J2222.8+1209_daily_bin736.fits outfile=/scratch/kocevski/279408/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin736.fits ra=335.71 dec=12.1568 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.09
user 10.75
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.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/279408/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin736.fits evtable="EVENTS" outfile="/scratch/kocevski/279408/ft1_filtered_4FGL_J2222.8+1209_daily_bin736.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/279408/ft1_filtered_4FGL_J2222.8+1209_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/279408/ltcube_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.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/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279408/ft1_filtered_4FGL_J2222.8+1209_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/279408/ltcube_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.fits outfile=/scratch/kocevski/279408/expmap_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.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/279408/ltcube_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.fits
.....................!
real 192.08
user 186.77
sys 4.99

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/279408/ft1_filtered_4FGL_J2222.8+1209_daily_bin736.fits scfile=/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits outfile=/scratch/kocevski/279408/cmap_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279408/ft1_filtered_4FGL_J2222.8+1209_daily_bin736.fits scfile=/scratch/kocevski/279408/ft2_4FGL_J2222.8+1209_daily_bin736.fits outfile=/scratch/kocevski/279408/cmap_HighResolution_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4532       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.856       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.373       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2732       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.724       1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.416       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0416       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7230       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.634       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63493       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0089       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=   4766.614     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3092 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4522        3.8482       -.42693E-07   -.84981E-05
   2  Prefactor     .10000E-03    210.05        .35739E-04** at limit **
   3  Prefactor     24.985        92.176        .20528E-03    .20151E-04
   4  norm          .10000E-03    3.1751       -.55998E-06** at limit **
   5  norm          .10000E-03    9.4852       -.79600E-06** at limit **
   6  Prefactor     .10000E-03    20.623       -.55590E-08** at limit **
   7  Prefactor     59.360        69.293       -.11382E-04    .56199E-05
   8  norm          2.2731        1.9292        .96285E-07   -.20455E-03
   9  Prefactor     .10000E-03    39.116        .14897E-05** at limit **
  10  Prefactor     30.091        52.668       -.22100E-04    .11627E-05
  11  Prefactor     16.670        57.296       -.67952E-04   -.63459E-05
  12  norm          .10000E-03    9.4676        .25127E-06** at limit **
  13  Prefactor     15.414        32.376        .18540E-05    .69408E-05
  14  Prefactor     17.830        22.497       -.10490E-06   -.21529E-05
  15  Prefactor     .37153        .39005        .13044E-06    .50961E-03
  16  Prefactor     .10000E-03    6.5745        .87939E-08** at limit **
  17  norm          .10000E-03    1.1866        .88069E-08** at limit **
  18  Prefactor     37.601        72.051       -.18278E-04    .88473E-05
  19  Prefactor     20.047        24.870       -.73121E-06    .50549E-05
  20  Prefactor     61.859        54.910       -.12122E-04    .15326E-04
  21  Prefactor     9.0418        .79690        .19183E-06   -.11397E-02
  22  Prefactor     .10000E-03    66.968       -.35770E-05** at limit **
  23  Prefactor     8.7224        18.080       -.27995E-06   -.11500E-04
  24  Prefactor     17.624        29.138        .19458E-05    .57838E-05
  25  Normalizat    .63469        .43414       -.50354E-05    .21296E-04
  26  Prefactor     1.0090        .19573        .21772E-05   -.51031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45217
  Prefactor  = 0.000100001
  Prefactor  = 24.9847
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 59.3601
  norm       = 2.2731
  Prefactor  = 0.000100001
  Prefactor  = 30.091
  Prefactor  = 16.67
  norm       = 0.0001
  Prefactor  = 15.4136
  Prefactor  = 17.8297
  Prefactor  = 0.371527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6015
  Prefactor  = 20.0471
  Prefactor  = 61.8591
  Prefactor  = 9.04179
  Prefactor  = 0.0001
  Prefactor  = 8.72238
  Prefactor  = 17.624
  Normalizat = 0.634685
  Prefactor  = 1.00903
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.614     FROM HESSE     STATUS=OK           456 CALLS     3548 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4522        3.8571        .10888E-03   -1.5241    
   2  Prefactor     .10000E-03    210.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.985        92.054        .80348E-04   -1.4708    
   4  norm          .10000E-03    3.3205        .23992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.4897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.360        69.405        .52068E-04   -1.4166    
   8  norm          2.2731        1.9119        .81596E-04   -1.5406    
   9  Prefactor     .10000E-03    39.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.091        52.690        .73005E-04   -1.4610    
  11  Prefactor     16.670        57.340        .97938E-04   -1.4891    
  12  norm          .10000E-03    9.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.414        31.908        .10201E-03   -1.4923    
  14  Prefactor     17.830        22.444        .94851E-04   -1.4863    
  15  Prefactor     .37153        .36627        .38839E-03   -1.5586    
  16  Prefactor     .10000E-03    6.5838        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1923        .73422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.601        72.190        .65346E-04   -1.4481    
  19  Prefactor     20.047        24.817        .89454E-04   -1.4812    
  20  Prefactor     61.859        54.991        .51010E-04   -1.4133    
  21  Prefactor     9.0418        .80067        .16394E-04   -1.5106    
  22  Prefactor     .10000E-03    66.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.7224        18.104        .13572E-03   -1.5117    
  24  Prefactor     17.624        29.104        .95377E-04   -1.4868    
  25  Normalizat    .63469        .46152        .56127E-03   -1.0653    
  26  Prefactor     1.0090        .21599        .22948E-03   -.92429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67392e-10
Minuit parameter uncertainties:
  1  3.85732
  2  0.000663769
  3  92.5842
  4  0.000100953
  5  0.000188161
  6  1.50127e-05
  7  69.4998
  8  1.91199
  9  0.000427968
  10  52.7714
  11  57.5305
  12  2.11058e-05
  13  31.9436
  14  22.4546
  15  0.366268
  16  4.13305e-06
  17  9.96699e-07
  18  72.3582
  19  24.8295
  20  55.0366
  21  0.800672
  22  4.68666e-05
  23  18.1155
  24  29.1274
  25  0.464371
  26  0.216174
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.541e+01  3.194e+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.009e+00  2.162e-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.347e-01  4.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279408/likelihoodResults_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.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) = 4766.56628963
delta logL = 0.0475744933019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4766.55362982
delta logL = 0.0602342968714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7564       1.0000          .0000       10.000    
     3 'Normalizat'    .61286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4766.554     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.273        29.555        .11928E-03   -.17442E-03
   2  Index         2.7585        1.1806        .68044E-02   -.97249E-04
   3  Normalizat    .61245        .41668        .57072E-03    .18745E-04
   4  Prefactor     1.0151        .20988        .22883E-03    .14878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2726
  Index      = 2.75846
  Normalizat = 0.61245
  Prefactor  = 1.01507
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.554     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.273        26.109        .47711E-05   -1.5036    
   2  Index         2.7585        1.0437        .27218E-03   -.46487    
   3  Normalizat    .61245        .41669        .22829E-04   -1.0746    
   4  Prefactor     1.0151        .20964        .45766E-04   -.92229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87907e-10
Minuit parameter uncertainties:
  1  26.1356
  2  1.05339
  3  0.418848
  4  0.209808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279408': 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) = 4766.55362671
delta logL = 0.0602374074733

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.127e+01  2.614e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.758e+00  1.053e+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.015e+00  2.098e-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.124e-01  4.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 335.710 12.157

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279408/cmap_HighResolution_430099201_430358401_4FGL_J2222.8+1209_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', job_status='DONE', photon_flux_upper_limit='2.74e-07', time_completed='2021-09-28 10:29:28.592947', job_id='279408', GAL2='1.02', fit_tolerance='1e-08', EG2='0.61', EG='0.63', time_epoch_completed='1632850168.59', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.02e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='736' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 279408: <4FGL_J2222.8+1209_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin736 335.71 12.1568 430099201 430358401 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 :                                   676.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

