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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin805
RA = 325.645, Dec = -25.8777
tmin = 447984001, tmax = 448243201
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='689509', job_status='RUN', time_executed='2021-09-27 00:42:43.530354', time_epoch_executed='1632728563.53' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689509/ft1_4FGL_J2142.5-2552_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689509/ft1_4FGL_J2142.5-2552_daily_bin805.fits outfile=/scratch/kocevski/689509/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin805.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=447984001.0 tmax=448243201.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 3.35
user 3.09
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.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/689509/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.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.50
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/689509/ltcube_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.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/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits
.....................!
real 11.67
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/689509/ltcube_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits outfile=/scratch/kocevski/689509/expmap_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.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/689509/ltcube_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits
.....................!
real 161.42
user 151.67
sys 4.40

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

Setting source of interest to:
4FGL J2142.5-2552 @ 325.645 -25.8777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits outfile=/scratch/kocevski/689509/cmap_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.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=325.645 yref=-25.8777 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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits outfile=/scratch/kocevski/689509/cmap_HighResolution_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.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=325.645 yref=-25.8777 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 1.15
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689509/Model_4FGL_J2142.5-2552_daily_bin805.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/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits.....................!
real 61.10
user 51.97
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits', '/scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits', expMap='/scratch/kocevski/689509/expmap_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits', expCube='/scratch/kocevski/689509/ltcube_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/689509/Model_4FGL_J2142.5-2552_daily_bin805.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.5-2552'

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.690e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/689509/ft1_filtered_4FGL_J2142.5-2552_daily_bin805.fits
Spacecraft file(s): /scratch/kocevski/689509/ft2_4FGL_J2142.5-2552_daily_bin805.fits
Exposure map: /scratch/kocevski/689509/expmap_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits
Exposure cube: /scratch/kocevski/689509/ltcube_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/689509/Model_4FGL_J2142.5-2552_daily_bin805.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) = 7845.11689199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.637       1.0000         .10000E-03   10000.    
     2 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8919       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5963       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18236       1.0000         .10000E-03   10000.    
    13 'norm      '    21.811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8222       1.0000         .10000E-03   10000.    
    15 'norm      '    .40526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0698       1.0000         .10000E-03   10000.    
    18 'norm      '    15.781       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76472       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7845.106     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2392 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.561        48.565        .25858E-05   -.16396E-04
   2  norm          .10000E-03    6.3281       -.12562E-07** at limit **
   3  Prefactor     25.303        13.740        .97304E-07    .54930E-05
   4  Prefactor     7.8921        4.1619       -.75389E-06   -.33256E-02
   5  norm          2.4273        3.1538       -.40164E-07    .19816E-04
   6  Prefactor     11.074        6.3341       -.22399E-06   -.87849E-05
   7  Prefactor     .10000E-03    2.8608        .23478E-07** at limit **
   8  Prefactor     7.6001        9.2674        .76572E-05   -.41523E-03
   9  norm          .10000E-03    2.5653        .31996E-07** at limit **
  10  Prefactor     .10000E-03    10.421        .45726E-07** at limit **
  11  Prefactor     .10000E-03    9.5471       -.38478E-07** at limit **
  12  Prefactor     .10002E-03    51.556       -.37549E-05** at limit **
  13  norm          21.817        5.5793        .54504E-08    .78471E-03
  14  Prefactor     5.8219        7.2273        .58932E-06   -.47874E-04
  15  norm          .40527        .23916        .76592E-08    .68958E-03
  16  Prefactor     .10000E-03    1.9798       -.35627E-07** at limit **
  17  Prefactor     8.0693        13.947        .18357E-05   -.71607E-04
  18  norm          15.780        18.361        .47403E-05   -.16716E-03
  19  Normalizat    .76468        .15830       -.12509E-05    .18801E-03
  20  Prefactor     .87206        .99732E-01   -.48568E-07    .14878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5611
  norm       = 0.0001
  Prefactor  = 25.3027
  Prefactor  = 7.89209
  norm       = 2.42733
  Prefactor  = 11.0738
  Prefactor  = 0.0001
  Prefactor  = 7.60014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 21.8165
  Prefactor  = 5.82193
  norm       = 0.405273
  Prefactor  = 0.0001
  Prefactor  = 8.06933
  norm       = 15.7804
  Normalizat = 0.764678
  Prefactor  = 0.872063
 **********
 **   18 **HESSE 
 **********

 FCN=   7845.106     FROM HESSE     STATUS=OK           305 CALLS     2697 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.561        48.589        .80704E-04   -1.4716    
   2  norm          .10000E-03    6.3320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.303        13.747        .79621E-04   -1.4702    
   4  Prefactor     7.8921        4.4031        .66743E-03   -1.5146    
   5  norm          2.4273        3.1464        .17501E-03   -1.5396    
   6  Prefactor     11.074        6.3385        .12039E-03   -1.5042    
   7  Prefactor     .10000E-03    2.8783        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6001        9.0336        .14550E-03   -1.5157    
   9  norm          .10000E-03    2.5786        .13851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    46.203        .14737       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.817        5.5772        .85764E-04   -1.4773    
  14  Prefactor     5.8219        7.2219        .16644E-03   -1.5225    
  15  norm          .40527        .24118        .31413E-04   -1.5581    
  16  Prefactor     .10000E-03    1.9817        .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0693        13.951        .14114E-03   -1.5140    
  18  norm          15.780        18.217        .10082E-03   -1.4913    
  19  Normalizat    .76468        .18489        .28955E-03   -1.0139    
  20  Prefactor     .87206        .11699        .17946E-03   -.97124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23153e-09
Minuit parameter uncertainties:
  1  48.6674
  2  7.30465e-07
  3  13.7482
  4  4.40329
  5  3.14665
  6  6.33884
  7  2.97724e-06
  8  9.03527
  9  2.73289e-06
  10  1.28062e-05
  11  5.84405e-06
  12  0.0017167
  13  5.57732
  14  7.22298
  15  0.24118
  16  2.55118e-06
  17  13.957
  18  18.2238
  19  0.185046
  20  0.117019
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  7.600e+00  9.035e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.721e-01  1.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  7.647e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 9.47e-06

TS (Fixed Index): 1.31
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689509/likelihoodResults_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.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) = 7845.1059391
delta logL = 4.6560602641e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7845.10592467
delta logL = 6.0996450884e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7845.106     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      266 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6495        10.388        .72513E-03   -.11367E-04
   2  Index         2.1995        .83412        .93155E-02    .19982E-03
   3  Normalizat    .76485        .17410        .28952E-03   -.20969E-04
   4  Prefactor     .87201        .11488        .17946E-03   -.36236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.64954
  Index      = 2.19945
  Normalizat = 0.764854
  Prefactor  = 0.872006
 **********
 **   18 **HESSE 
 **********

 FCN=   7845.106     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6495        10.084        .29005E-04   -1.5155    
   2  Index         2.1995        .80992        .18631E-02   -.59452    
   3  Normalizat    .76485        .17416        .11581E-04   -1.0139    
   4  Prefactor     .87201        .11494        .71784E-05   -.97126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08053e-12
Minuit parameter uncertainties:
  1  10.0864
  2  0.815168
  3  0.17429
  4  0.114974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689509': 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) = 7845.10592347
delta logL = 6.21937506367e-05

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  7.650e+00  1.009e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.199e+00  8.152e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.720e-01  1.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  7.649e-01  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 2.20 +/- 0.82
Photon Flux (Free Index): 1.79e-08 +/- 2.57e-08
Energy Flux (Free Index): 8.03e-06 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/689509/cmap_HighResolution_447984001_448243201_4FGL_J2142.5-2552_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='8.03e-06', photon_flux_error='2.14e-08', dlogl='6.22e-05', energy_flux='7.97e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-27 00:53:06.891408', photon_index_error2='0.82', photon_index2='2.20', ts='1.31', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.43e-08', energy_flux_error2='1.10e-05', EG='0.76', time_epoch_completed='1632729186.89', return_code='0', job_id='689509', GAL2='0.87', EG2='0.76', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='2.57e-08', ts2='1.31', photon_index='2.21' WHERE bin_id='805' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 689509: <4FGL_J2142.5-2552_daily_bin805> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin805> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:40:13 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:40:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:40:20 2021
Terminated at Mon Sep 27 00:53:07 2021
Results reported at Mon Sep 27 00:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin805 325.645 -25.8777 447984001 448243201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.5-2552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            774 sec.

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

