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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1578
RA = 325.645, Dec = -25.8777
tmin = 648345601, tmax = 648604801
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='691760', job_status='RUN', time_executed='2021-09-27 00:53:04.890588', time_epoch_executed='1632729184.89' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691760/ft1_4FGL_J2142.5-2552_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691760/ft1_4FGL_J2142.5-2552_daily_bin1578.fits outfile=/scratch/kocevski/691760/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1578.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=648345601.0 tmax=648604801.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.13
user 2.71
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.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/691760/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1578.fits evtable="EVENTS" outfile="/scratch/kocevski/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.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.54
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits" evtable="EVENTS" scfile=/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits sctable="SC_DATA" outfile=/scratch/kocevski/691760/ltcube_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.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/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits
.....................!
real 15.66
user 15.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/691760/ltcube_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits outfile=/scratch/kocevski/691760/expmap_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.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/691760/ltcube_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits
.....................!
real 191.55
user 186.21
sys 4.92

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/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits scfile=/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits outfile=/scratch/kocevski/691760/cmap_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits scfile=/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits outfile=/scratch/kocevski/691760/cmap_HighResolution_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.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.73
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits', '/scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits', expMap='/scratch/kocevski/691760/expmap_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits', expCube='/scratch/kocevski/691760/ltcube_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691760/Model_4FGL_J2142.5-2552_daily_bin1578.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/691760/ft1_filtered_4FGL_J2142.5-2552_daily_bin1578.fits
Spacecraft file(s): /scratch/kocevski/691760/ft2_4FGL_J2142.5-2552_daily_bin1578.fits
Exposure map: /scratch/kocevski/691760/expmap_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits
Exposure cube: /scratch/kocevski/691760/ltcube_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691760/Model_4FGL_J2142.5-2552_daily_bin1578.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 208.041626353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 205.000910782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0883       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8454       1.0000         .10000E-03   10000.    
     5 'norm      '    .46029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58953E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    297.19       1.0000         .10000E-03   10000.    
    11 'Prefactor '    406.39       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5143       1.0000         .10000E-03   10000.    
    13 'norm      '    .66597E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    125.63       1.0000         .10000E-03   10000.    
    15 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    88.719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39481       1.0000         .10000E-03   10000.    
    18 'norm      '    89.862       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   204.9968     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      419 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0883        1.0034         .0000         .0000    
   2  norm          4.4865        1.0063         .0000         .0000    
   3  Prefactor     4.5723        1.0061         .0000         .0000    
   4  Prefactor     1.8454        1.0424         .0000         .0000    
   5  norm          .10188E-03    1688.9       -.37188E-03** at limit **
   6  Prefactor     78.376        49.940       -.87357E-05   -.85102E-03
   7  Prefactor     3.3453        1.0116         .0000         .0000    
   8  Prefactor     .10000E-03    186.87        .10865E-03** at limit **
   9  norm          .40469E-02    1968.8        .24969E-04   -.91030E-03
  10  Prefactor     296.13        53.636        .76997E-05   -.22795E-02
  11  Prefactor     407.93        54.897        .28571E-04   -.14318E-01
  12  Prefactor     .14378E-03    6306.0       -.93557E-03** at limit **
  13  norm          .10000E-03    108.52       -.12066E-03** at limit **
  14  Prefactor     128.94        141.35        .34114E-04   -.32489E-02
  15  norm          .10000E-03    1.9221       -.12397E-04** at limit **
  16  Prefactor     89.295        118.71        .98908E-04   -.32088E-02
  17  Prefactor     .10000E-03    154.24        .96520E-04** at limit **
  18  norm          90.540        87.057       -.80664E-04   -.11888E-01
  19  Normalizat    .10000E-01    2.2470        .99409E-03** at limit **
  20  Prefactor     .62920        .52549       -.46790E-03    .68897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08827
  norm       = 4.48651
  Prefactor  = 4.5723
  Prefactor  = 1.84539
  norm       = 0.000101879
  Prefactor  = 78.3758
  Prefactor  = 3.34533
  Prefactor  = 0.000100001
  norm       = 0.00404685
  Prefactor  = 296.129
  Prefactor  = 407.929
  Prefactor  = 0.000143778
  norm       = 0.000100001
  Prefactor  = 128.944
  norm       = 0.0001
  Prefactor  = 89.2952
  Prefactor  = 0.0001
  norm       = 90.5404
  Normalizat = 0.01
  Prefactor  = 0.629202
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   204.9968     FROM HESSE     STATUS=FAILED        11 CALLS      430 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     521.17        515.04         .0000       -1.5214    
   2  norm          4.4865        1.0063         .0000       -1.5284    
   3  Prefactor     4.5723        1.0061         .0000       -1.5280    
   4  Prefactor     1.8454        1.0424         .0000       -1.5436    
   5  norm          .10188E-03    .28084       -.37188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.376        .98418       -.87357E-05   -1.3935    
   7  Prefactor     3.3453        1.0116         .0000       -1.5342    
   8  Prefactor     .10000E-03    .21686        .10865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .40469E-02    .78556E-01    .24969E-04   -1.5721    
  10  Prefactor     296.13        .99828        .76997E-05   -1.2249    
  11  Prefactor     407.93        1.0018        .28571E-04   -1.1641    
  12  Prefactor     .14378E-03    .26374E-01   -.93557E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .21859       -.12066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     128.94        1.0129        .34114E-04   -1.3432    
  15  norm          .10000E-03    .20571       -.12397E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     89.295        1.0032        .98908E-04   -1.3815    
  17  Prefactor     .10000E-03    .29341        .96520E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          90.540        1.0037       -.80664E-04   -1.3802    
  19  Normalizat    .10000E-01    .25676        .99409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .62920        .97890       -.46790E-03   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.53208e-10
Minuit parameter uncertainties:
  1  1.00341
  2  1.00635
  3  1.00611
  4  1.04244
  5  0.00145304
  6  0.984178
  7  1.01163
  8  3.42573e-05
  9  0.0352165
  10  0.998275
  11  1.00182
  12  0.00214906
  13  3.40234e-05
  14  1.01293
  15  4.03728e-06
  16  1.00323
  17  1.88414e-05
  18  1.00375
  19  2.09539e-05
  20  1.00757
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 204.996783734

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.426e-05  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:  6.292e-01  1.008e+00  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:  1.000e-02  2.095e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 2.62e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691760/likelihoodResults_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.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) = 204.996809532
delta logL = -2.5798684419e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 204.996784259
delta logL = -5.25571067556e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13703E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6029       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62920       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=   204.9968     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      286 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10454E-03    141.57        .15730E-01** at limit **
   2  Index         2.5055        6.2457        .50000        .20011E-05
   3  Normalizat    .10000E-01    .50918E-02    .10512E-01** at limit **
   4  Prefactor     .62920        .19051E-01    .24127E-03   -.39302E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104538
  Index      = 2.50552
  Normalizat = 0.01
  Prefactor  = 0.629196
 **********
 **   18 **HESSE 
 **********

 FCN=   204.9968     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10454E-03    1229.4        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5055        7.8334        .50000       -.52233    
   3  Normalizat    .10000E-01    .46773E-01    .21025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62920        .57704E-01    .96507E-05   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.84226e-10
Minuit parameter uncertainties:
  1  0.152633
  2  1219.97
  3  1.46679e-06
  4  0.0577091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691760': 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): 102
logL (Free Index) = 204.996783849
delta logL = -1.15646713539e-07

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.045e-04  1.526e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.506e+00  1.220e+03  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:  6.292e-01  5.771e-02  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:  1.000e-02  1.467e-06  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/691760/cmap_HighResolution_648345601_648604801_4FGL_J2142.5-2552_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-01', job_status='DONE', photon_flux_upper_limit='2.62e-06', time_completed='2021-09-27 00:58:28.770766', job_id='691760', GAL2='0.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632729508.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.63', dlogl='-1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1578' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:58:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 691760: <4FGL_J2142.5-2552_daily_bin1578> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1578> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:28 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:52:10 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:52:10 2021
Terminated at Mon Sep 27 00:58:29 2021
Results reported at Mon Sep 27 00:58:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1578 325.645 -25.8777 648345601 648604801 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 :                                   320.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             441.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   379 sec.
    Turnaround time :                            721 sec.

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

