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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1394
RA = 325.645, Dec = -25.8777
tmin = 600652801, tmax = 600912001
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='691458', job_status='RUN', time_executed='2021-09-27 00:49:49.351757', time_epoch_executed='1632728989.35' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691458

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691458/ft1_4FGL_J2142.5-2552_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691458/ft1_4FGL_J2142.5-2552_daily_bin1394.fits outfile=/scratch/kocevski/691458/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1394.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=600652801.0 tmax=600912001.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 4.20
user 3.42
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/691458/ltcube_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.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/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits
.....................!
real 13.92
user 13.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/691458/ltcube_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits outfile=/scratch/kocevski/691458/expmap_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.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/691458/ltcube_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits
.....................!
real 191.85
user 185.64
sys 5.35

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/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits scfile=/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits outfile=/scratch/kocevski/691458/cmap_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.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 1.10
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits scfile=/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits outfile=/scratch/kocevski/691458/cmap_HighResolution_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.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 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691458/Model_4FGL_J2142.5-2552_daily_bin1394.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/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits.....................!
real 47.26
user 44.95
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits', '/scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits', expMap='/scratch/kocevski/691458/expmap_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits', expCube='/scratch/kocevski/691458/ltcube_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691458/Model_4FGL_J2142.5-2552_daily_bin1394.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/691458/ft1_filtered_4FGL_J2142.5-2552_daily_bin1394.fits
Spacecraft file(s): /scratch/kocevski/691458/ft2_4FGL_J2142.5-2552_daily_bin1394.fits
Exposure map: /scratch/kocevski/691458/expmap_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits
Exposure cube: /scratch/kocevski/691458/ltcube_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691458/Model_4FGL_J2142.5-2552_daily_bin1394.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) = 4906.59830763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.310       1.0000         .10000E-03   10000.    
     2 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    81.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23939       1.0000         .10000E-03   10000.    
     9 'norm      '    .98447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    164.47       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .70801       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5147       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0625       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4906.579     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     2649 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.294        233.80        .84802E-04    .10993E-05
   2  norm          .10000E-03    15.638        .18142E-02** at limit **
   3  Prefactor     81.338        37.547        .44531E-04    .79449E-04
   4  Prefactor     .10000E-03    5.0352        .15292E-02** at limit **
   5  norm          14.514        10.398        .10514E-03   -.57310E-05
   6  Prefactor     .10000E-03    2.9947        .11815E-02** at limit **
   7  Prefactor     17.184        14.277        .96612E-04    .15074E-03
   8  Prefactor     .21466        22.249        .85394E-01    .16527E-03
   9  norm          .97358        38.245        .36037E-02    .72356E-04
  10  Prefactor     .10000E-03    5.3744        .15852E-02** at limit **
  11  Prefactor     .10000E-03    20.846        .18142E-02** at limit **
  12  Prefactor     164.54        102.70        .15725E-03    .25376E-04
  13  norm          1.5872        9.5833        .16856E-02    .19585E-03
  14  Prefactor     .10000E-03    10.130        .18142E-02** at limit **
  15  norm          .70789        .46847        .34706E-04    .15975E-02
  16  Prefactor     .10000E-03    8.1258        .18142E-02** at limit **
  17  Prefactor     4.5146        12.688        .18948E-03    .17460E-04
  18  norm          .10000E-03    25.593        .18142E-02** at limit **
  19  Normalizat    .92894        .29557        .33181E-03    .27653E-03
  20  Prefactor     1.0625        .18209        .19750E-03    .20062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2943
  norm       = 0.0001
  Prefactor  = 81.3383
  Prefactor  = 0.0001
  norm       = 14.5144
  Prefactor  = 0.0001
  Prefactor  = 17.184
  Prefactor  = 0.214663
  norm       = 0.973583
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 164.54
  norm       = 1.58718
  Prefactor  = 0.0001
  norm       = 0.707892
  Prefactor  = 0.0001
  Prefactor  = 4.51459
  norm       = 0.0001
  Normalizat = 0.928939
  Prefactor  = 1.06251
 **********
 **   18 **HESSE 
 **********

 FCN=   4906.579     FROM HESSE     STATUS=OK           285 CALLS     2934 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.294        233.80        .16960E-04   -1.4763    
   2  norm          .10000E-03    15.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     81.338        37.541        .89062E-05   -1.3902    
   4  Prefactor     .10000E-03    5.0362        .30584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.514        10.398        .42055E-05   -1.4946    
   6  Prefactor     .10000E-03    2.9949        .23630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.184        14.241        .38645E-05   -1.4879    
   8  Prefactor     .21466        20.867        .89303E-01   -1.5615    
   9  norm          .97358        37.637        .14415E-03   -1.5511    
  10  Prefactor     .10000E-03    5.3746        .31705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     164.54        102.23        .62901E-05   -1.3135    
  13  norm          1.5872        9.3121        .67425E-04   -1.5456    
  14  Prefactor     .10000E-03    10.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .70789        .46615        .13883E-05   -1.5540    
  16  Prefactor     .10000E-03    8.1285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5146        12.687        .75792E-05   -1.5283    
  18  norm          .10000E-03    25.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92894        .29530        .13272E-04   -.95451    
  20  Prefactor     1.0625        .18216        .39500E-04   -.90674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48512e-10
Minuit parameter uncertainties:
  1  145.127
  2  6.19696e-05
  3  37.5517
  4  9.91249e-05
  5  10.399
  6  1.60306e-05
  7  14.2434
  8  4.23339
  9  12.1143
  10  1.77094e-05
  11  0.00059193
  12  102.341
  13  7.69052
  14  4.57873e-05
  15  0.466148
  16  1.48995e-05
  17  12.6945
  18  8.5145e-05
  19  0.295813
  20  0.182266
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.147e-01  4.233e+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:  1.063e+00  1.823e-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:  9.289e-01  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691458/likelihoodResults_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.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) = 4906.51827742
delta logL = 0.0610800456807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4906.49473758
delta logL = 0.084619886291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9789       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1828       1.0000          .0000       10.000    
     3 'Normalizat'    .90304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0683       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4906.495     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      275 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9786        26.545        .23266E-03   -.19995E-03
   2  Index         3.1824        3.1693        .79035E-02   -.43760E-04
   3  Normalizat    .90318        .28685        .33584E-03   -.11354E-03
   4  Prefactor     1.0682        .17893        .19696E-03   -.15295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97863
  Index      = 3.18243
  Normalizat = 0.903183
  Prefactor  = 1.06823
 **********
 **   18 **HESSE 
 **********

 FCN=   4906.495     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9786        9.6814        .93065E-05   -1.5427    
   2  Index         3.1824        2.0302        .31614E-03   -.37204    
   3  Normalizat    .90318        .28648        .13433E-04   -.96348    
   4  Prefactor     1.0682        .17831        .39392E-04   -.90489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07866e-10
Minuit parameter uncertainties:
  1  8.75553
  2  2.10066
  3  0.286961
  4  0.178412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691458': 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) = 4906.49473742
delta logL = 0.0846200457099

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.979e+00  8.756e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.182e+00  2.101e+00  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:  1.068e+00  1.784e-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:  9.032e-01  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 325.645 -25.878

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/691458/cmap_HighResolution_600652801_600912001_4FGL_J2142.5-2552_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-27 00:59:09.198507', job_id='691458', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1632729549.2', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.46e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1394' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 691458: <4FGL_J2142.5-2552_daily_bin1394> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1394> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:00 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:49:01 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:49:01 2021
Terminated at Mon Sep 27 00:59:09 2021
Results reported at Mon Sep 27 00:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1394 325.645 -25.8777 600652801 600912001 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 :                                   551.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             357.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            789 sec.

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

