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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1593
RA = 325.645, Dec = -25.8777
tmin = 652233601, tmax = 652492801
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='692619', job_status='RUN', time_executed='2021-09-27 00:53:05.731249', time_epoch_executed='1632729185.73' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692619/ft1_4FGL_J2142.5-2552_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692619/ft1_4FGL_J2142.5-2552_daily_bin1593.fits outfile=/scratch/kocevski/692619/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1593.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=652233601.0 tmax=652492801.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.45
user 4.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/692619/ltcube_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.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/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits
.....................!
real 12.26
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/692619/ltcube_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.fits outfile=/scratch/kocevski/692619/expmap_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.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/692619/ltcube_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.fits
.....................!
real 190.82
user 185.30
sys 4.83

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/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits scfile=/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits outfile=/scratch/kocevski/692619/cmap_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.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.96
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits scfile=/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits outfile=/scratch/kocevski/692619/cmap_HighResolution_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/692619/ft2_4FGL_J2142.5-2552_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692619/Model_4FGL_J2142.5-2552_daily_bin1593.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/692619/ft1_filtered_4FGL_J2142.5-2552_daily_bin1593.fits.....................!
real 51.70
user 50.39
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.745       1.0000         .10000E-03   10000.    
     2 'norm      '    19.015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5235       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.607       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
    15 'norm      '    .64196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4774       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4347       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78069       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97606       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=   6011.095     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2045 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.939        73.945        .40633E-05    .17545E-03
   2  norm          19.011        20.067        .15558E-06   -.54509E-05
   3  Prefactor     .10000E-03    8.1367        .19222E-06** at limit **
   4  Prefactor     7.5262        6.6220        .38079E-06   -.11559E-04
   5  norm          3.0095        6.7286        .63256E-06   -.40266E-04
   6  Prefactor     2.9886        3.9169        .12505E-06   -.48775E-04
   7  Prefactor     2.5083        3.5994        .66014E-07   -.33228E-04
   8  Prefactor     .10549E-03    6.0362        .15524E-05** at limit **
   9  norm          3.6770        4.9468       -.16685E-06   -.63724E-04
  10  Prefactor     37.255        22.056        .16033E-06   -.98869E-04
  11  Prefactor     5.2409        10.968       -.76749E-06   -.50026E-04
  12  Prefactor     19.606        24.877       -.10956E-05   -.32974E-04
  13  norm          4.2012        4.3628        .48657E-05   -.42713E-03
  14  Prefactor     23.141        20.300        .15016E-06   -.36156E-04
  15  norm          .64204        .32419       -.28761E-06   -.16022E-03
  16  Prefactor     6.4799        9.8195        .29209E-06   -.52316E-04
  17  Prefactor     6.4346        8.3938        .13528E-07   -.21251E-04
  18  norm          .10000E-03    5.0597       -.34550E-08** at limit **
  19  Normalizat    .78126        .18916        .10836E-05   -.24195E-03
  20  Prefactor     .97543        .12359       -.19995E-05   -.77336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9385
  norm       = 19.0115
  Prefactor  = 0.0001
  Prefactor  = 7.52617
  norm       = 3.00951
  Prefactor  = 2.98861
  Prefactor  = 2.50827
  Prefactor  = 0.000105492
  norm       = 3.67701
  Prefactor  = 37.255
  Prefactor  = 5.24093
  Prefactor  = 19.606
  norm       = 4.20118
  Prefactor  = 23.1407
  norm       = 0.642037
  Prefactor  = 6.47991
  Prefactor  = 6.43457
  norm       = 0.0001
  Normalizat = 0.781256
  Prefactor  = 0.975427
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.095     FROM HESSE     STATUS=OK           311 CALLS     2356 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.939        73.868        .38732E-03   -1.4669    
   2  norm          19.011        20.071        .91850E-04   -1.4836    
   3  Prefactor     .10000E-03    8.1678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5262        6.6201        .14621E-03   -1.5159    
   5  norm          3.0095        6.7157        .23404E-03   -1.5361    
   6  Prefactor     2.9886        3.9089        .17097E-03   -1.5362    
   7  Prefactor     2.5083        3.5860        .17182E-03   -1.5391    
   8  Prefactor     .10549E-03    8.7809        .69407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6770        4.9380        .19362E-03   -1.5324    
  10  Prefactor     37.255        22.083        .65691E-04   -1.4486    
  11  Prefactor     5.2409        10.964        .17572E-03   -1.5250    
  12  Prefactor     19.606        24.897        .90452E-04   -1.4822    
  13  norm          4.2012        4.4144        .73539E-03   -1.5298    
  14  Prefactor     23.141        20.296        .83254E-04   -1.4745    
  15  norm          .64204        .32430        .28772E-04   -1.5548    
  16  Prefactor     6.4799        9.8269        .15769E-03   -1.5199    
  17  Prefactor     6.4346        8.3917        .15822E-03   -1.5201    
  18  norm          .10000E-03    5.0601        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78126        .22102        .30107E-03   -1.0077    
  20  Prefactor     .97543        .14445        .18244E-03   -.93553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91631e-09
Minuit parameter uncertainties:
  1  74.1202
  2  20.0779
  3  6.27557e-06
  4  6.62078
  5  6.71736
  6  3.90924
  7  3.58626
  8  0.0138909
  9  4.93858
  10  22.0881
  11  10.9679
  12  24.9102
  13  4.41471
  14  20.3022
  15  0.324303
  16  9.82938
  17  8.39327
  18  1.34646e-07
  19  0.221272
  20  0.144504
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.055e-04  1.389e-02  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.754e-01  1.445e-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.813e-01  2.213e-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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692619/likelihoodResults_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.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) = 6011.09473305
delta logL = -3.22970463458e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6011.09470074
delta logL = 1.46073944052e-08

Fit tolerance = 1e-08

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

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

 FCN=   6011.095     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      250 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .38498        .90712E-01** at limit **
   2  Index         2.1582        8.8880        .50000        .47917E-06
   3  Normalizat    .78126        .11068E-02    .68042E-01    .17112E-03
   4  Prefactor     .97543        .74629E-03    .45959E-01    .26816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15823
  Normalizat = 0.78126
  Prefactor  = 0.975425
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.095     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      291 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .57569        .72982E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1582        8.8787        .50000       -.60450    
   3  Normalizat    .78126        .12016E-02    .30106E-03   -1.0077    
   4  Prefactor     .97543        .81140E-03    .18244E-03   -.93553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.19519e-12
Minuit parameter uncertainties:
  1  3.54336e-06
  2  17.6568
  3  0.00120162
  4  0.0008114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692619': 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) = 6011.09470071
delta logL = 4.48599166702e-08

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.543e-06  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.158e+00  1.766e+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:  9.754e-01  8.114e-04  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.813e-01  1.202e-03  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/692619/cmap_HighResolution_652233601_652492801_4FGL_J2142.5-2552_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-27 01:02:36.299344', job_id='692619', GAL2='0.98', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632729756.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1593' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:02:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 692619: <4FGL_J2142.5-2552_daily_bin1593> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1593> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 00:50:16 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:52:25 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:25 2021
Terminated at Mon Sep 27 01:02:37 2021
Results reported at Mon Sep 27 01:02:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1593 325.645 -25.8777 652233601 652492801 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 :                                   563.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            741 sec.

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

