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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin372
RA = 335.71, Dec = 12.1568
tmin = 335750401, tmax = 336009601
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='277867', job_status='RUN', time_executed='2021-09-28 10:13:20.931742', time_epoch_executed='1632849200.93' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277867

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277867/ft1_4FGL_J2222.8+1209_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277867/ft2_4FGL_J2222.8+1209_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277867/ft1_4FGL_J2222.8+1209_daily_bin372.fits outfile=/scratch/kocevski/277867/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin372.fits ra=335.71 dec=12.1568 rad=12.0 tmin=335750401.0 tmax=336009601.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 6.94
user 6.65
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277867/ft1_filtered_4FGL_J2222.8+1209_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/277867/ft2_4FGL_J2222.8+1209_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/277867/ltcube_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.fits outfile=/scratch/kocevski/277867/expmap_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.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/277867/ltcube_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.fits
.....................!
real 191.77
user 187.07
sys 4.32

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/277867/ft1_filtered_4FGL_J2222.8+1209_daily_bin372.fits scfile=/scratch/kocevski/277867/ft2_4FGL_J2222.8+1209_daily_bin372.fits outfile=/scratch/kocevski/277867/cmap_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.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.67
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277867/ft1_filtered_4FGL_J2222.8+1209_daily_bin372.fits scfile=/scratch/kocevski/277867/ft2_4FGL_J2222.8+1209_daily_bin372.fits outfile=/scratch/kocevski/277867/cmap_HighResolution_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.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.63
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24981E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5228       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4272       1.0000         .10000E-03   10000.    
     5 'norm      '    18.306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.776       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1734       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.520       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17656       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93152       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=   6263.769     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3142 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4222        3.1001        .36443E-07    .11249E-04
   2  Prefactor     .10038E-03    912.52        .41667E-05** at limit **
   3  Prefactor     5.5961        176.26        .37523E-05    .76665E-04
   4  norm          1.4282        2.4190       -.43051E-05    .54835E-04
   5  norm          18.296        19.109        .14253E-05    .94873E-04
   6  Prefactor     .10000E-03    32.026       -.55146E-07** at limit **
   7  Prefactor     30.770        44.533       -.17168E-06   -.32670E-04
   8  norm          1.1735        .81465        .45737E-08   -.98650E-04
   9  Prefactor     .10000E-03    15.055        .67198E-06** at limit **
  10  Prefactor     .10000E-03    10.161        .97052E-07** at limit **
  11  Prefactor     24.517        22.326        .11437E-06    .65455E-05
  12  norm          .10000E-03    2.6385       -.83074E-07** at limit **
  13  Prefactor     .10000E-03    6.0447       -.63038E-07** at limit **
  14  Prefactor     .10106E-03    9.4851        .20800E-05** at limit **
  15  Prefactor     .59794        .23440       -.58677E-08   -.19325E-05
  16  Prefactor     .10000E-03    2.4299       -.15863E-07** at limit **
  17  norm          .10000E-03    .73333       -.11018E-06** at limit **
  18  Prefactor     38.898        33.832       -.47213E-07    .13249E-04
  19  Prefactor     .10000E-03    4.6144       -.58375E-07** at limit **
  20  Prefactor     .10000E-03    26.264       -.40862E-06** at limit **
  21  Prefactor     .17653        .13819       -.22927E-07   -.67383E-04
  22  Prefactor     .10000E-03    89.083       -.82200E-06** at limit **
  23  Prefactor     .10000E-03    13.879       -.54257E-06** at limit **
  24  Prefactor     .10000E-03    13.937       -.43529E-06** at limit **
  25  Normalizat    1.1395        .24064        .72666E-06   -.84548E-04
  26  Prefactor     .93131        .12578        .21257E-06   -.73321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42217
  Prefactor  = 0.000100383
  Prefactor  = 5.59612
  norm       = 1.42821
  norm       = 18.2961
  Prefactor  = 0.0001
  Prefactor  = 30.7697
  norm       = 1.17349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5173
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101057
  Prefactor  = 0.59794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.8982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.176533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13946
  Prefactor  = 0.931311
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.769     FROM HESSE     STATUS=OK           460 CALLS     3602 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4222        3.0998        .92893E-04   -1.5201    
   2  Prefactor     .10038E-03    939.35        .40037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5961        174.28        .17097E-03   -1.5235    
   4  norm          1.4282        2.4227        .15309E-03   -1.5469    
   5  norm          18.296        19.054        .93611E-04   -1.4852    
   6  Prefactor     .10000E-03    32.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.770        44.580        .72224E-04   -1.4598    
   8  norm          1.1735        .80484        .57548E-04   -1.5491    
   9  Prefactor     .10000E-03    15.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.517        22.322        .80896E-04   -1.4717    
  12  norm          .10000E-03    2.6571        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10106E-03    80.396        .45458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .59794        .23254        .22744E-04   -1.5553    
  16  Prefactor     .10000E-03    2.4311        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1828        .13196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.898        33.734        .64269E-04   -1.4460    
  19  Prefactor     .10000E-03    4.6233        .16603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17653        .13933        .23899E-04   -1.5624    
  22  Prefactor     .10000E-03    89.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1395        .28103        .32372E-03   -.88495    
  26  Prefactor     .93131        .15036        .19097E-03   -.95055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32562e-08
Minuit parameter uncertainties:
  1  3.09988
  2  0.038554
  3  62.6594
  4  2.4229
  5  19.0608
  6  5.13374e-05
  7  44.6285
  8  0.804852
  9  0.000112432
  10  1.06919e-06
  11  22.3299
  12  5.28177e-06
  13  1.76274e-06
  14  0.018465
  15  0.232542
  16  1.89699e-07
  17  4.30608e-07
  18  33.7501
  19  2.91001e-06
  20  0.000113078
  21  0.139333
  22  0.000326176
  23  4.13788e-05
  24  6.92049e-05
  25  0.281401
  26  0.150424
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.763e-06  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.313e-01  1.504e-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.139e+00  2.814e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277867/likelihoodResults_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.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) = 6263.76982384
delta logL = -0.000786041754509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6263.76903796
delta logL = -1.58288457897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3945       1.0000          .0000       10.000    
     3 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93138       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=   6263.769     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    119.71        .18142E-02** at limit **
   2  Index         2.2964        5.8824        .50000        .13620E-04
   3  Normalizat    1.1395        .26181E-01    .32373E-03    .12994E-04
   4  Prefactor     .93131        .14204E-01    .19097E-03    .17443E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6263.769     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      368 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    119.71        .43336E-03** at limit **
   2  Index         2.2964        5.8824        .91404E-04    .13620E-04
   3  Normalizat    1.1395        .26181E-01    .10686E-05    .12994E-04
   4  Prefactor     .93131        .14204E-01    .52475E-06    .17443E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6263.769     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      411 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    124.88        .36285E-02** at limit **
   2  Index         1.9433        7.8012        .50000       -.39891E-06
   3  Normalizat    1.1395        .25732E-01    .12949E-04   -.57945E-04
   4  Prefactor     .93131        .13961E-01    .76387E-05   -.95846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94326
  Normalizat = 1.13946
  Prefactor  = 0.931311
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.769     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      438 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    610.39        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9433        5.9709        .50000       -.65776    
   3  Normalizat    1.1395        .63404E-01    .25898E-05   -.88495    
   4  Prefactor     .93131        .34395E-01    .15277E-05   -.95055    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16559e-08
Minuit parameter uncertainties:
  1  7.39123e-05
  2  1818.39
  3  0.063408
  4  0.0343955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277867': 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) = 6263.76903682
delta logL = 9.77150193648e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  7.391e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.943e+00  1.818e+03  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.313e-01  3.440e-02  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.139e+00  6.341e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/277867/cmap_HighResolution_335750401_336009601_4FGL_J2222.8+1209_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-28 10:25:29.825334', job_id='277867', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632849929.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='372' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 277867: <4FGL_J2222.8+1209_daily_bin372> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin372> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:40 2021
Job was executed on host(s) <bullet0196>, 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:25:30 2021
Results reported at Tue Sep 28 10:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin372 335.71 12.1568 335750401 336009601 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 :                                   723.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

