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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin388
RA = 325.645, Dec = -25.8777
tmin = 339897601, tmax = 340156801
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='686765', job_status='RUN', time_executed='2021-09-27 00:32:26.136412', time_epoch_executed='1632727946.14' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686765

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686765/ft1_4FGL_J2142.5-2552_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686765/ft1_4FGL_J2142.5-2552_daily_bin388.fits outfile=/scratch/kocevski/686765/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin388.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=339897601.0 tmax=340156801.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.13
user 3.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.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/686765/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.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/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/686765/ltcube_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.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/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits
.....................!
real 13.36
user 13.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/686765/ltcube_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.fits outfile=/scratch/kocevski/686765/expmap_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.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/686765/ltcube_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.fits
.....................!
real 191.73
user 185.41
sys 5.36

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/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits outfile=/scratch/kocevski/686765/cmap_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.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.94
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits outfile=/scratch/kocevski/686765/cmap_HighResolution_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.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.69
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/686765/ft2_4FGL_J2142.5-2552_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/686765/Model_4FGL_J2142.5-2552_daily_bin388.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/686765/ft1_filtered_4FGL_J2142.5-2552_daily_bin388.fits....................!
real 47.00
user 45.66
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.667       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13708E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10906E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    184.40       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4893       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3568       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.993       1.0000         .10000E-03   10000.    
    18 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97391       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97950       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=   4997.371     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2051 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.910        .17544E-05** at limit **
   2  norm          .10000E-03    14.580       -.54295E-06** at limit **
   3  Prefactor     12.716        23.553       -.88625E-05   -.10519E-04
   4  Prefactor     17.665        11.468       -.64896E-06   -.12836E-04
   5  norm          .10000E-03    3.6072        .53076E-06** at limit **
   6  Prefactor     .10000E-03    4.1613       -.15387E-08** at limit **
   7  Prefactor     10.856        15.198       -.94574E-06   -.23011E-04
   8  Prefactor     .10000E-03    22.589        .79524E-05** at limit **
   9  norm          2.7815        8.4301       -.18000E-06   -.26861E-03
  10  Prefactor     18.560        23.794       -.11864E-04    .48976E-04
  11  Prefactor     .10001E-03    30.635        .14106E-04** at limit **
  12  Prefactor     184.36        102.03       -.29098E-04   -.15927E-03
  13  norm          2.3637        5.9444        .28278E-05   -.42821E-03
  14  Prefactor     .10000E-03    27.318       -.76011E-05** at limit **
  15  norm          1.4894        .53961        .10485E-06    .61833E-04
  16  Prefactor     9.3531        9.0231        .10556E-05    .30207E-04
  17  Prefactor     30.983        21.843       -.27830E-05    .14992E-04
  18  norm          .10000E-03    26.131       -.94434E-05** at limit **
  19  Normalizat    .97488        .25590        .99083E-05   -.19238E-03
  20  Prefactor     .97895        .14999       -.45558E-06    .19897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7161
  Prefactor  = 17.6646
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8559
  Prefactor  = 0.000100002
  norm       = 2.78147
  Prefactor  = 18.5596
  Prefactor  = 0.000100012
  Prefactor  = 184.36
  norm       = 2.36367
  Prefactor  = 0.0001
  norm       = 1.48936
  Prefactor  = 9.35306
  Prefactor  = 30.9827
  norm       = 0.0001
  Normalizat = 0.974882
  Prefactor  = 0.978952
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.371     FROM HESSE     STATUS=OK           291 CALLS     2342 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.716        23.551        .11227E-03   -1.4995    
   4  Prefactor     17.665        11.478        .95289E-04   -1.4867    
   5  norm          .10000E-03    3.6104        .13113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1772        .14082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.856        15.185        .12156E-03   -1.5049    
   8  Prefactor     .10000E-03    22.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7815        8.3902        .24402E-03   -1.5374    
  10  Prefactor     18.560        23.746        .92909E-04   -1.4846    
  11  Prefactor     .10001E-03    31.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     184.36        101.80        .14866E-03   -1.2984    
  13  norm          2.3637        5.8520        .23954E-03   -1.5400    
  14  Prefactor     .10000E-03    27.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4894        .53924        .29382E-04   -1.5464    
  16  Prefactor     9.3531        9.0334        .13102E-03   -1.5096    
  17  Prefactor     30.983        21.863        .71971E-04   -1.4594    
  18  norm          .10000E-03    26.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97488        .29714        .32658E-03   -.93877    
  20  Prefactor     .97895        .17605        .20346E-03   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63743e-09
Minuit parameter uncertainties:
  1  2.93565e-05
  2  4.3019e-06
  3  23.5681
  4  11.4798
  5  2.09422e-07
  6  5.97043e-06
  7  15.1903
  8  0.000420846
  9  8.39379
  10  23.7577
  11  0.00121238
  12  101.901
  13  5.8534
  14  0.00016221
  15  0.53924
  16  9.03471
  17  21.8682
  18  5.05815e-05
  19  0.297644
  20  0.176149
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  4.208e-04  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:  9.790e-01  1.761e-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.749e-01  2.976e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/686765/likelihoodResults_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.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) = 4997.37126045
delta logL = -0.000208518021282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4997.37105224
delta logL = -3.14538738166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1230       1.0000          .0000       10.000    
     3 'Normalizat'    .97491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97896       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=   4997.371     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6897.8        .18142E-02** at limit **
   2  Index         2.1529        5.0001        .50000       -.12764E-04
   3  Normalizat    .97489        .15106        .32657E-03   -.26910E-04
   4  Prefactor     .97895        .94951E-01    .20346E-03   -.56882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.15293
  Normalizat = 0.97489
  Prefactor  = 0.978947
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.371     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1529        6.0690        .50000       -.60579    
   3  Normalizat    .97489        .27276        .13063E-04   -.93876    
   4  Prefactor     .97895        .17164        .81385E-05   -.93435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57009e-10
Minuit parameter uncertainties:
  1  0.000562981
  2  4.28514
  3  0.273155
  4  0.171736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686765': 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) = 4997.37105211
delta logL = -1.77980837179e-07

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  5.630e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.153e+00  4.285e+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:  9.789e-01  1.717e-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.749e-01  2.732e-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/686765/cmap_HighResolution_339897601_340156801_4FGL_J2142.5-2552_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-27 00:41:09.667730', job_id='686765', GAL2='0.98', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632728469.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='388' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 686765: <4FGL_J2142.5-2552_daily_bin388> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin388> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:30:31 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:32:09 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:32:09 2021
Terminated at Mon Sep 27 00:41:10 2021
Results reported at Mon Sep 27 00:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin388 325.645 -25.8777 339897601 340156801 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 :                                   518.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            639 sec.

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

