/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 195 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin378
RA = 335.71, Dec = 12.1568
tmin = 337305601, tmax = 337564801
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='277876', job_status='RUN', time_executed='2021-09-28 10:14:07.133715', time_epoch_executed='1632849247.13' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277876/ft1_4FGL_J2222.8+1209_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277876/ft2_4FGL_J2222.8+1209_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277876/ft1_4FGL_J2222.8+1209_daily_bin378.fits outfile=/scratch/kocevski/277876/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin378.fits ra=335.71 dec=12.1568 rad=12.0 tmin=337305601.0 tmax=337564801.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.43
user 7.15
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277876/ft1_filtered_4FGL_J2222.8+1209_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/277876/ft2_4FGL_J2222.8+1209_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/277876/ltcube_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.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/277876/ft2_4FGL_J2222.8+1209_daily_bin378.fits
.....................!
real 11.50
user 11.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277876/ft1_filtered_4FGL_J2222.8+1209_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/277876/ft2_4FGL_J2222.8+1209_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/277876/ltcube_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.fits outfile=/scratch/kocevski/277876/expmap_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.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/277876/ltcube_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.fits
.....................!
real 190.44
user 185.39
sys 4.71

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/277876/ft1_filtered_4FGL_J2222.8+1209_daily_bin378.fits scfile=/scratch/kocevski/277876/ft2_4FGL_J2222.8+1209_daily_bin378.fits outfile=/scratch/kocevski/277876/cmap_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.214       1.0000         .10000E-03   10000.    
     4 'norm      '    .52413       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4854       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.285       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12472E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.735       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8147       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99578       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81557       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=   5430.412     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2655 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1427        4.1640       -.52824E-05    .13699E-03
   2  Prefactor     .10000E-03    33.264        .27886E-04** at limit **
   3  Prefactor     82.186        70.771       -.27544E-04    .47598E-04
   4  norm          .52484        1.5598       -.14391E-05   -.18655E-02
   5  norm          .10000E-03    11.284        .19940E-05** at limit **
   6  Prefactor     34.695        46.426        .76461E-04    .19729E-03
   7  Prefactor     3.4032        246.81       -.37478E-03    .35182E-04
   8  norm          3.5739        1.6947       -.77710E-06    .11809E-02
   9  Prefactor     .10000E-03    7.5987       -.21312E-05** at limit **
  10  Prefactor     20.856        30.156       -.18147E-04    .40896E-04
  11  Prefactor     .10000E-03    11.504       -.55774E-06** at limit **
  12  norm          .10000E-03    3.6596       -.13043E-06** at limit **
  13  Prefactor     26.310        22.864       -.76887E-05    .10821E-03
  14  Prefactor     .10000E-03    9.6595        .34628E-05** at limit **
  15  Prefactor     .79220        .28100        .60234E-08    .11013E-02
  16  Prefactor     12.287        9.9282       -.26117E-06    .26131E-04
  17  norm          2.5315        2.1526       -.12374E-06    .10860E-02
  18  Prefactor     .10000E-03    8.9472       -.52443E-05** at limit **
  19  Prefactor     .10000E-03    26.832       -.22973E-04** at limit **
  20  Prefactor     .10000E-03    7.4621        .29731E-05** at limit **
  21  Prefactor     .10000E-03    .34037E-01   -.65124E-07** at limit **
  22  Prefactor     44.692        56.641       -.53786E-04    .32618E-04
  23  Prefactor     8.8141        7.6130       -.78326E-06    .44123E-04
  24  Prefactor     .10000E-03    4.6067        .92413E-07** at limit **
  25  Normalizat    .99589        .24962        .11066E-04    .45430E-03
  26  Prefactor     .81552        .12722        .41712E-05    .81724E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.14272
  Prefactor  = 0.0001
  Prefactor  = 82.1857
  norm       = 0.524837
  norm       = 0.0001
  Prefactor  = 34.6953
  Prefactor  = 3.40321
  norm       = 3.57389
  Prefactor  = 0.0001
  Prefactor  = 20.8556
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.3099
  Prefactor  = 0.0001
  Prefactor  = 0.792198
  Prefactor  = 12.2873
  norm       = 2.53152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.6919
  Prefactor  = 8.81405
  Prefactor  = 0.0001
  Normalizat = 0.995886
  Prefactor  = 0.815519
 **********
 **   18 **HESSE 
 **********

 FCN=   5430.412     FROM HESSE     STATUS=OK           454 CALLS     3109 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1427        4.1597        .11288E-03   -1.5212    
   2  Prefactor     .10000E-03    33.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     82.186        70.725        .44299E-04   -1.3892    
   4  norm          .52484        1.4618        .15205E-02   -1.5563    
   5  norm          .10000E-03    11.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.695        46.459        .68092E-04   -1.4529    
   7  Prefactor     3.4032        253.28        .21658E-03   -1.5339    
   8  norm          3.5739        1.6924        .61756E-04   -1.5330    
   9  Prefactor     .10000E-03    7.6066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.856        30.203        .87672E-04   -1.4794    
  11  Prefactor     .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6883        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.310        22.928        .78083E-04   -1.4682    
  14  Prefactor     .10000E-03    9.7181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .79220        .28088        .21086E-04   -1.5530    
  16  Prefactor     12.287        9.9369        .11429E-03   -1.5007    
  17  norm          2.5315        2.1504        .96268E-04   -1.5390    
  18  Prefactor     .10000E-03    8.9488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .35601E-01    .26486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.692        56.820        .59943E-04   -1.4370    
  23  Prefactor     8.8141        7.6079        .13501E-03   -1.5114    
  24  Prefactor     .10000E-03    4.6093        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99589        .29274        .33004E-03   -.93168    
  26  Prefactor     .81552        .15042        .19005E-03   -.99159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4009e-09
Minuit parameter uncertainties:
  1  4.15985
  2  2.14005e-05
  3  70.7974
  4  1.46191
  5  8.07058e-05
  6  46.5073
  7  58.9783
  8  1.69246
  9  2.11013e-05
  10  30.2248
  11  1.94618e-05
  12  2.31175e-05
  13  22.9358
  14  7.75036e-05
  15  0.280884
  16  9.93826
  17  2.15048
  18  1.75137e-05
  19  0.000225984
  20  2.13327e-05
  21  9.83072e-07
  22  56.8886
  23  7.60877
  24  1.33362e-05
  25  0.293216
  26  0.150494
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.631e+01  2.294e+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:  8.155e-01  1.505e-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:  9.959e-01  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 7.65e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 2.49e-05

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

Saving results to:
/scratch/kocevski/277876/likelihoodResults_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.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) = 5428.91521406
delta logL = 1.49672444582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5428.89012137
delta logL = 1.52181713587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3553       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8395       1.0000          .0000       10.000    
     3 'Normalizat'    .84910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86793       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=   5428.890     FROM MIGRAD    STATUS=FAILED        80 CALLS      295 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3537        39.358        .64098E-04   -.65949E-02
   2  Index         3.8397        2.9359        .29929E-02   -.14637E-02
   3  Normalizat    .84909        .27862        .35314E-03   -.95269E-03
   4  Prefactor     .86794        .14788        .18459E-03   -.17982E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5428.890     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      380 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3537        39.358        .11733E-03   -.65949E-02
   2  Index         3.8397        2.9359        .70949E-03   -.14637E-02
   3  Normalizat    .84909        .27862        .40055E-03   -.95269E-03
   4  Prefactor     .86794        .14788        .21293E-03   -.17982E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5428.890     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      411 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3533        8.9103        .25639E-05   -.11529E-04
   2  Index         3.8398        1.2090        .11971E-03   -.13295E-05
   3  Normalizat    .84909        .29385        .70628E-04    .23791E-04
   4  Prefactor     .86795        .15190        .36918E-04    .95462E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35332
  Index      = 3.83978
  Normalizat = 0.849087
  Prefactor  = 0.867948
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.890     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3533        8.4933        .51278E-06   -1.5342    
   2  Index         3.8398        1.1536        .47886E-05   -.23418    
   3  Normalizat    .84909        .29376        .14126E-04   -.98273    
   4  Prefactor     .86795        .15178        .73837E-05   -.97270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.421e-12
Minuit parameter uncertainties:
  1  8.49638
  2  1.16467
  3  0.29431
  4  0.151858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277876': 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) = 5428.89012131
delta logL = 1.52181719176

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.353e+00  8.496e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.840e+00  1.165e+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:  8.679e-01  1.519e-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:  8.491e-01  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 335.710 12.157
Photon Index (Free Index): 3.84 +/- 1.16
Photon Flux (Free Index): 2.17e-07 +/- 1.14e-07
Energy Flux (Free Index): 3.34e-05 +/- 1.80e-05

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/277876/cmap_HighResolution_337305601_337564801_4FGL_J2222.8+1209_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='3.34e-05', photon_flux_error='7.65e-08', dlogl='1.52e+00', energy_flux='2.85e-05', photon_flux2='2.17e-07', job_status='DONE', time_completed='2021-09-28 10:24:52.739475', photon_index_error2='1.16', photon_index2='3.84', ts='1.84', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='2.31e-07', energy_flux_error2='1.80e-05', EG='1.00', time_epoch_completed='1632849892.74', return_code='0', job_id='277876', GAL2='0.87', EG2='0.85', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='1.14e-07', ts2='5.32', photon_index='2.41' WHERE bin_id='378' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:24:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 277876: <4FGL_J2222.8+1209_daily_bin378> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin378> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:41 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:42 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:10:42 2021
Terminated at Tue Sep 28 10:24:53 2021
Results reported at Tue Sep 28 10:24:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin378 335.71 12.1568 337305601 337564801 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 :                                   643.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

