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


Performing analysis on: 4FGL_J2022.3-4513_daily_bin1321
RA = 305.591, Dec = -45.2228
tmin = 581731201, tmax = 581990401
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='856913', job_status='RUN', time_executed='2021-09-25 01:15:02.161493', time_epoch_executed='1632557702.16' WHERE source_name='4FGL J2022.3-4513' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856913/ft1_4FGL_J2022.3-4513_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856913/ft1_4FGL_J2022.3-4513_daily_bin1321.fits outfile=/scratch/kocevski/856913/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1321.fits ra=305.591 dec=-45.2228 rad=12.0 tmin=581731201.0 tmax=581990401.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.56
user 2.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.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/856913/ft1_filteredMKT_4FGL_J2022.3-4513_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.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.82
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/856913/ltcube_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.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/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits
.....................!
real 17.36
user 13.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/856913/ltcube_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits outfile=/scratch/kocevski/856913/expmap_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.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/856913/ltcube_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits
.....................!
real 194.05
user 187.22
sys 4.77

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

Setting source of interest to:
4FGL J2022.3-4513 @ 305.591 -45.2228

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits outfile=/scratch/kocevski/856913/cmap_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.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=305.591 yref=-45.2228 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.68
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits outfile=/scratch/kocevski/856913/cmap_HighResolution_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.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=305.591 yref=-45.2228 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856913/Model_4FGL_J2022.3-4513_daily_bin1321.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/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits.....................!
real 52.76
user 51.31
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits', '/scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits', expMap='/scratch/kocevski/856913/expmap_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits', expCube='/scratch/kocevski/856913/ltcube_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856913/Model_4FGL_J2022.3-4513_daily_bin1321.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.3-4513'

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  1.021e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.021e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856913/ft1_filtered_4FGL_J2022.3-4513_daily_bin1321.fits
Spacecraft file(s): /scratch/kocevski/856913/ft2_4FGL_J2022.3-4513_daily_bin1321.fits
Exposure map: /scratch/kocevski/856913/expmap_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits
Exposure cube: /scratch/kocevski/856913/ltcube_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856913/Model_4FGL_J2022.3-4513_daily_bin1321.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) = 5831.50976269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.576       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    181.91       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8869       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17692       1.0000         .10000E-03   10000.    
    16 'norm      '    27.365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26764E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21813E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9024       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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=   5831.505     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     2713 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.945        15.058        .10360E-03    .28203E-04
   2  Prefactor     .10000E-03    48.587        .18142E-02** at limit **
   3  Prefactor     28.573        21.997        .74946E-04    .27305E-05
   4  norm          .10000E-03    42.359        .18142E-02** at limit **
   5  norm          .10000E-03    .66741        .60459E-03** at limit **
   6  norm          .10000E-03    4.5930        .15975E-02** at limit **
   7  norm          .10000E-03    95.487        .36285E-03** at limit **
   8  norm          .28365        1.3592        .15032E-02    .43859E-03
   9  Prefactor     181.92        100.88        .14966E-03   -.33698E-04
  10  norm          2.8864        3.9935        .87253E-03   -.37118E-03
  11  norm          .10000E-03    11.367        .18142E-02** at limit **
  12  Prefactor     .10000E-03    14.192        .18142E-02** at limit **
  13  Prefactor     .10000E-03    23.044        .18142E-02** at limit **
  14  Prefactor     1.3406        4.1628        .25918E-03    .18015E-03
  15  Prefactor     .43221E-01    44.213        .11403        .33149E-03
  16  norm          27.366        5.0065        .67997E-04    .77056E-03
  17  Prefactor     .10010E-03    312.67        .21437E-02** at limit **
  18  Prefactor     .10030E-03    53.423        .42178E-02** at limit **
  19  Normalizat    1.9028        .39918        .36853E-03    .31514E-03
  20  Prefactor     .91705        .16837        .21973E-03    .32514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9446
  Prefactor  = 0.0001
  Prefactor  = 28.5729
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.283649
  Prefactor  = 181.92
  norm       = 2.88645
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34056
  Prefactor  = 0.043221
  norm       = 27.3662
  Prefactor  = 0.000100104
  Prefactor  = 0.0001003
  Normalizat = 1.90282
  Prefactor  = 0.91705
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.505     FROM HESSE     STATUS=OK           283 CALLS     2996 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.945        15.059        .41439E-05   -1.4935    
   2  Prefactor     .10000E-03    48.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.573        21.998        .29978E-05   -1.4638    
   4  norm          .10000E-03    42.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .66745        .12092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.5932        .31949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    95.494        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28365        1.3560        .60127E-04   -1.5601    
   9  Prefactor     181.92        100.87        .29931E-04   -1.3002    
  10  norm          2.8864        3.9929        .34901E-04   -1.5368    
  11  norm          .10000E-03    11.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3406        4.1613        .10367E-04   -1.5476    
  15  Prefactor     .43221E-01    42.073        .11740       -1.5666    
  16  norm          27.366        5.0067        .13599E-04   -1.4661    
  17  Prefactor     .10010E-03    312.75        .42874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10030E-03    54.227        .84356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.9028        .39926        .73706E-04   -.67009    
  20  Prefactor     .91705        .16849        .43947E-04   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57359e-09
Minuit parameter uncertainties:
  1  15.0627
  2  0.000310513
  3  22.0045
  4  0.000107288
  5  1.25051e-06
  6  1.41898e-06
  7  0.000339507
  8  1.24019
  9  100.971
  10  3.99325
  11  3.72415e-06
  12  9.27297e-07
  13  6.05595e-06
  14  4.16224
  15  2.69577
  16  5.00675
  17  0.0114477
  18  0.00806979
  19  0.399958
  20  0.168588
Done.

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

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  2.886e+00  3.993e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  2.021e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.171e-01  1.686e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.903e+00  4.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 305.591 -45.223
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856913/likelihoodResults_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.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) = 5831.46616232
delta logL = 0.0390350415637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.46310113
delta logL = 0.042096236185

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5831.463     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6070        3.7393        .63050E-02    .98349E-04
   2  alpha         1.6156        .94832        .44942       -.38159E-04
   3  Normalizat    1.9143        .32159        .83079E-01    .30376E-05
   4  Prefactor     .91473        .14080        .45194E-01    .75125E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60701
  alpha      = 1.61559
  Normalizat = 1.91427
  Prefactor  = 0.91473
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.463     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6070        3.8965        .16692E-03   -1.5385    
   2  alpha         1.6156        1.1507        .29878E-01   -.36159    
   3  Normalizat    1.9143        .37309        .36767E-03   -.66717    
   4  Prefactor     .91473        .16410        .21997E-03   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97998e-12
Minuit parameter uncertainties:
  1  3.89689
  2  1.20313
  3  0.373655
  4  0.164185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856913': 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) = 5831.4630899
delta logL = 0.0421074651022

Extracting fit parameters...

4FGL J2022.3-4513
   Spectrum: LogParabola
302         norm:  2.607e+00  3.897e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        alpha:  1.616e+00  1.203e+00  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  1.015e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  1.016e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.147e-01  1.642e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.914e+00  3.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 305.591 -45.223
Photon Index (Free Index): 1.62 +/- 1.20
Photon Flux (Free Index): 1.40e-08 +/- 2.87e-08
Energy Flux (Free Index): 1.85e-05 +/- 3.55e-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/856913/cmap_HighResolution_581731201_581990401_4FGL_J2022.3-4513_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-05', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='4.21e-02', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-09-25 01:25:46.057519', photon_index_error2='1.20', photon_index2='1.62', ts='0.96', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='3.55e-05', EG='1.90', time_epoch_completed='1632558346.06', return_code='0', job_id='856913', GAL2='0.91', EG2='1.91', return_code2='0', photon_flux_error2='2.87e-08', ts2='1.05', photon_index='2.02' WHERE bin_id='1321' AND source_name='4FGL J2022.3-4513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 856913: <4FGL_J2022.3-4513_daily_bin1321> in cluster <slac> Done

Job <4FGL_J2022.3-4513_daily_bin1321> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 01:11:01 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:14:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 01:14:42 2021
Terminated at Sat Sep 25 01:25:46 2021
Results reported at Sat Sep 25 01:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.3-4513_daily_bin1321 305.591 -45.2228 581731201 581990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2022.3-4513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1081 MB
    Average Memory :                             305.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            885 sec.

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

