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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1280
RA = 350.708, Dec = -49.2725
tmin = 571104001, tmax = 571363201
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='805339', job_status='RUN', time_executed='2021-09-29 14:16:33.925948', time_epoch_executed='1632950193.93' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805339/ft1_4FGL_J2322.8-4916_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805339/ft1_4FGL_J2322.8-4916_daily_bin1280.fits outfile=/scratch/kocevski/805339/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1280.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=571104001.0 tmax=571363201.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 2.99
user 2.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.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/805339/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.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/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/805339/ltcube_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.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/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits
.....................!
real 12.95
user 12.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/805339/ltcube_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits outfile=/scratch/kocevski/805339/expmap_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.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/805339/ltcube_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits
.....................!
real 192.05
user 186.61
sys 5.08

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.8-4916 @ 350.708 -49.2725

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits outfile=/scratch/kocevski/805339/cmap_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.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=350.708 yref=-49.2725 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/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits outfile=/scratch/kocevski/805339/cmap_HighResolution_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.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=350.708 yref=-49.2725 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805339/Model_4FGL_J2322.8-4916_daily_bin1280.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/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits.....................!
real 31.11
user 29.81
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits', '/scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits', expMap='/scratch/kocevski/805339/expmap_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits', expCube='/scratch/kocevski/805339/ltcube_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805339/Model_4FGL_J2322.8-4916_daily_bin1280.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.8-4916'

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805339/ft1_filtered_4FGL_J2322.8-4916_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/805339/ft2_4FGL_J2322.8-4916_daily_bin1280.fits
Exposure map: /scratch/kocevski/805339/expmap_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits
Exposure cube: /scratch/kocevski/805339/ltcube_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805339/Model_4FGL_J2322.8-4916_daily_bin1280.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) = 3398.27657356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85798E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    313.47       1.0000         .10000E-03   10000.    
     8 'norm      '    13.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24655E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .74973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59628E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.1960       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.986       1.0000         .10000E-03   10000.    
    23 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11479E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11773E-02   1.0000         .10000E-03   10000.    
    30 'norm      '    .12573E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.3307       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .48320       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0476       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .91678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3398.050     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     3688 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.342        .13324E-05** at limit **
   2  Prefactor     .10000E-03    10.972       -.78331E-06** at limit **
   3  Prefactor     5.8129        21.915        .15043E-05   -.19539E-06
   4  Prefactor     .10000E-03    3.4439       -.75423E-07** at limit **
   5  Prefactor     9.0946        7.0804       -.15696E-07   -.20882E-06
   6  Prefactor     .10000E-03    3.6997       -.41386E-06** at limit **
   7  Prefactor     334.70        589.20        .22589E-04    .35086E-05
   8  norm          13.739        13.750        .35270E-06   -.36726E-05
   9  Prefactor     15.150        12.106        .24515E-06   -.38732E-06
  10  Prefactor     .10000E-03    1106.2       -.78152E-05** at limit **
  11  Prefactor     .10000E-03    4.3306        .48343E-06** at limit **
  12  Prefactor     25.650        50.956       -.33393E-05    .10007E-05
  13  Prefactor     13.140        26.438        .30759E-05   -.62309E-05
  14  Prefactor     .10000E-03    84.738       -.15112E-05** at limit **
  15  Prefactor     .76285        39.597        .27825E-05   -.93163E-06
  16  Prefactor     .10000E-03    399.10       -.15755E-04** at limit **
  17  Prefactor     .10000E-03    32.411        .19843E-05** at limit **
  18  norm          .10000E-03    12.236       -.45594E-06** at limit **
  19  norm          9.2633        11.342        .24229E-06   -.53401E-06
  20  norm          .10000E-03    3.2597       -.43486E-06** at limit **
  21  Prefactor     .10000E-03    2.9271       -.12997E-06** at limit **
  22  Prefactor     53.562        57.292        .11572E-05   -.29184E-05
  23  norm          .10000E-03    12.863       -.75853E-06** at limit **
  24  Prefactor     .10000E-03    4.5236       -.14132E-06** at limit **
  25  norm          .10000E-03    1.2628       -.17537E-06** at limit **
  26  norm          .10000E-03    9.9645       -.71356E-07** at limit **
  27  Prefactor     .10000E-03    9.3099       -.86821E-06** at limit **
  28  Prefactor     .10000E-03    1.3976       -.11290E-06** at limit **
  29  Prefactor     .10000E-03    11.565       -.13385E-06** at limit **
  30  norm          .10000E-03    9.4052        .64873E-06** at limit **
  31  Prefactor     7.3680        5.3926        .41018E-07   -.40552E-06
  32  Prefactor     .54654        11.856       -.11940E-05   -.17910E-05
  33  Normalizat    1.0452        .29019       -.11785E-05    .37364E-06
  34  Prefactor     .91768        .30029        .12563E-05   -.17867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81292
  Prefactor  = 0.0001
  Prefactor  = 9.09457
  Prefactor  = 0.0001
  Prefactor  = 334.698
  norm       = 13.7389
  Prefactor  = 15.1503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6497
  Prefactor  = 13.1397
  Prefactor  = 0.0001
  Prefactor  = 0.762854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.26331
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.5617
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.36798
  Prefactor  = 0.546543
  Normalizat = 1.04524
  Prefactor  = 0.917682
 **********
 **   18 **HESSE 
 **********

 FCN=   3398.050     FROM HESSE     STATUS=OK           814 CALLS     4502 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.988        .10430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8129        21.830        .37520E-02   -1.5226    
   4  Prefactor     .10000E-03    3.4369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0946        7.0827        .33290E-02   -1.5105    
   6  Prefactor     .10000E-03    3.6723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     334.70        587.64        .57388E-03   -1.2028    
   8  norm          13.739        13.759        .26916E-02   -1.4966    
   9  Prefactor     15.150        12.132        .25671E-02   -1.4929    
  10  Prefactor     .10000E-03    1109.0        .41260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.650        51.091        .19508E-02   -1.4695    
  13  Prefactor     13.140        26.530        .28976E-02   -1.4983    
  14  Prefactor     .10000E-03    84.812        .10016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .76285        13.566        .72938E-01   -1.5533    
  16  Prefactor     .10000E-03    386.59        .11167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.095        .94746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2633        11.833        .33041E-02   -1.5099    
  20  norm          .10000E-03    3.2459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.562        59.219        .14041E-02   -1.4243    
  23  norm          .10000E-03    12.634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .76348        .27225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.9117        .42571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.2898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.3938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    11.598        .10326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    9.4148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.3680        5.3805        .37034E-02   -1.5165    
  32  Prefactor     .54654        3.9258        .58313E-01   -1.5560    
  33  Normalizat    1.0452        .24445        .40723E-01   -.91530    
  34  Prefactor     .91768        .25081        .45219E-01   -.95526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73618e-09
Minuit parameter uncertainties:
  1  6.88813e-06
  2  3.93401e-06
  3  21.8601
  4  3.39142e-07
  5  7.08337
  6  9.6992e-07
  7  598.633
  8  13.7625
  9  12.1337
  10  0.00027096
  11  1.36812e-06
  12  51.1786
  13  26.5541
  14  1.48754e-05
  15  6.43531
  16  0.000395863
  17  1.1062e-05
  18  5.77272e-07
  19  11.8358
  20  8.13908e-07
  21  3.03209e-07
  22  59.2843
  23  3.19253e-06
  24  5.25678e-07
  25  1.99013e-07
  26  7.25217e-07
  27  3.98268e-06
  28  2.19223e-07
  29  2.50228e-07
  30  2.55972e-06
  31  5.38081
  32  2.92958
  33  0.244709
  34  0.251127
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  9.263e+00  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.177e-01  2.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.045e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805339/likelihoodResults_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.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) = 3397.66513527
delta logL = 0.3852417447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3397.6531684
delta logL = 0.397208616096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1436       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5344       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3397.653     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1351        102.83        .49504E-02    .95400E-03
   2  alpha         2.5357        3.7584        .25553        .12152E-03
   3  Normalizat    1.0250        .85454E-01    .42696E-01    .56927E-04
   4  Prefactor     .92554        .76257E-01    .45330E-01   -.64955E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13507
  alpha      = 2.5357
  Normalizat = 1.02502
  Prefactor  = 0.925536
 **********
 **   18 **HESSE 
 **********

 FCN=   3397.653     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1351        17.455        .10771E-03   -1.5301    
   2  alpha         2.5357        1.9399        .90241E-02    .14279E-01
   3  Normalizat    1.0250        .28898        .22773E-03   -.92197    
   4  Prefactor     .92554        .30973        .25802E-03   -.95254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06931e-10
Minuit parameter uncertainties:
  1  16.9996
  2  2.2206
  3  0.289423
  4  0.310319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805339': 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) = 3397.65316789
delta logL = 0.397209121819

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.135e+00  1.700e+01  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.536e+00  2.221e+00  0.000e+00  5.000e+00 ( 1.000e+00)
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.255e-01  3.103e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.025e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 2.54 +/- 2.22
Photon Flux (Free Index): 3.47e-08 +/- 4.83e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.97e-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/805339/cmap_HighResolution_571104001_571363201_4FGL_J2322.8-4916_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='3.97e-01', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-29 14:27:28.162580', photon_index_error2='2.22', photon_index2='2.54', ts='0.91', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='5.90e-08', energy_flux_error2='2.97e-05', EG='1.05', time_epoch_completed='1632950848.16', return_code='0', job_id='805339', GAL2='0.93', EG2='1.03', return_code2='0', photon_flux_error2='4.83e-08', ts2='1.69', photon_index='1.61' WHERE bin_id='1280' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:27:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 805339: <4FGL_J2322.8-4916_daily_bin1280> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1280> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:43 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:15:45 2021
Terminated at Wed Sep 29 14:27:29 2021
Results reported at Wed Sep 29 14:27:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1280 350.708 -49.2725 571104001 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.8-4916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

