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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1117
RA = 325.645, Dec = -25.8777
tmin = 528854401, tmax = 529113601
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='691019', job_status='RUN', time_executed='2021-09-27 00:47:19.293509', time_epoch_executed='1632728839.29' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691019

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691019/ft1_4FGL_J2142.5-2552_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691019/ft1_4FGL_J2142.5-2552_daily_bin1117.fits outfile=/scratch/kocevski/691019/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1117.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=528854401.0 tmax=529113601.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/691019/ltcube_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.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/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits
.....................!
real 14.73
user 14.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/691019/ltcube_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.fits outfile=/scratch/kocevski/691019/expmap_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.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/691019/ltcube_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.fits
.....................!
real 193.27
user 186.49
sys 5.51

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/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits scfile=/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits outfile=/scratch/kocevski/691019/cmap_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits scfile=/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits outfile=/scratch/kocevski/691019/cmap_HighResolution_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.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.80
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/691019/ft2_4FGL_J2142.5-2552_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691019/Model_4FGL_J2142.5-2552_daily_bin1117.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/691019/ft1_filtered_4FGL_J2142.5-2552_daily_bin1117.fits....................!
real 56.74
user 54.40
sys 1.20

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6316.80684212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52172E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2019       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1431       1.0000         .10000E-03   10000.    
     9 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.894       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.786       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2717       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.558       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0683       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82850       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=   6316.689     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     2176 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.575        .23582    ** at limit **
   2  norm          .10000E-03    13.379        .18142E-02** at limit **
   3  Prefactor     8.1071        15.525        .14069E-03    .90584E-04
   4  Prefactor     .10000E-03    2.8394        .13036E-02** at limit **
   5  norm          .10000E-03    7.6268        .18142E-02** at limit **
   6  Prefactor     9.1991        7.4827        .13212E-03    .11040E-03
   7  Prefactor     9.9168        11.930        .12726E-03    .26354E-03
   8  Prefactor     4.1371        13.408        .19803E-03   -.40129E-04
   9  norm          .10000E-03    3.8735        .15202E-02** at limit **
  10  Prefactor     .86106        43.445        .48621E-02    .10625E-03
  11  Prefactor     12.831        19.363        .11155E-03   -.12841E-04
  12  Prefactor     21.880        67.526        .85815E-04   -.19872E-04
  13  norm          4.4869        4.1328        .14125E-03    .59880E-04
  14  Prefactor     6.2725        12.750        .16029E-03    .82772E-04
  15  norm          1.0646        .37412        .27384E-04   -.30681E-03
  16  Prefactor     4.0386        4.0000        .15385E-03   -.15311E-03
  17  Prefactor     21.546        17.746        .86267E-04   -.13020E-03
  18  norm          8.0966        25.693        .14115E-03   -.26257E-04
  19  Normalizat    1.1799        .23387        .27095E-03    .59642E-03
  20  Prefactor     .82854        .14021        .20328E-03    .94059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.10711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.19906
  Prefactor  = 9.91682
  Prefactor  = 4.13711
  norm       = 0.0001
  Prefactor  = 0.861057
  Prefactor  = 12.8309
  Prefactor  = 21.8799
  norm       = 4.48686
  Prefactor  = 6.27251
  norm       = 1.06459
  Prefactor  = 4.03863
  Prefactor  = 21.5465
  norm       = 8.09656
  Normalizat = 1.17988
  Prefactor  = 0.828541
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.689     FROM HESSE     STATUS=OK           283 CALLS     2459 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.538        .23392       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1071        15.523        .56276E-05   -1.5138    
   4  Prefactor     .10000E-03    2.8397        .26073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.6324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1991        7.4825        .52848E-05   -1.5101    
   7  Prefactor     9.9168        11.926        .50903E-05   -1.5078    
   8  Prefactor     4.1371        13.404        .79211E-05   -1.5301    
   9  norm          .10000E-03    3.8745        .30404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .86106        43.533        .19448E-03   -1.5522    
  11  Prefactor     12.831        19.349        .44620E-05   -1.4991    
  12  Prefactor     21.880        67.426        .34326E-05   -1.4772    
  13  norm          4.4869        4.1317        .56501E-05   -1.5284    
  14  Prefactor     6.2725        12.737        .64115E-05   -1.5207    
  15  norm          1.0646        .37410        .10953E-05   -1.5502    
  16  Prefactor     4.0386        4.0000        .61541E-05   -1.5306    
  17  Prefactor     21.546        17.743        .34507E-05   -1.4779    
  18  norm          8.0966        25.688        .56461E-05   -1.5139    
  19  Normalizat    1.1799        .23371        .54189E-04   -.87227    
  20  Prefactor     .82854        .14031        .40657E-04   -.98685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80018e-10
Minuit parameter uncertainties:
  1  0.000922863
  2  1.11914e-05
  3  15.5305
  4  2.03654e-05
  5  3.93797e-05
  6  7.48321
  7  11.9293
  8  13.4141
  9  3.38437e-05
  10  12.2536
  11  19.358
  12  67.6625
  13  4.13191
  14  12.7423
  15  0.374096
  16  4.00024
  17  17.7469
  18  25.7228
  19  0.23392
  20  0.140373
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.285e-01  1.404e-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:  1.180e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/691019/likelihoodResults_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6315.75805497
delta logL = 0.931302838824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6315.69898953
delta logL = 0.990368282125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47299E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2679       1.0000          .0000       10.000    
     3 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85900       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=   6315.699     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      295 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47024E-01    .53433        .29571E-02   -.10457E-02
   2  Index         5.2705        2.1324        .11390        .46078E-04
   3  Normalizat    1.1017        .45945E-01    .62992E-01   -.37752E-04
   4  Prefactor     .85892        .29597E-01    .44480E-01   -.45490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0470237
  Index      = 5.27045
  Normalizat = 1.10174
  Prefactor  = 0.858924
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.699     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      330 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47024E-01    1.4731        .13505E-03   -1.5665    
   2  Index         5.2705        4.0441        .40761E-02    .54117E-01
   3  Normalizat    1.1017        .16937        .27863E-03   -.89696    
   4  Prefactor     .85892        .10742        .19993E-03   -.97592    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5401e-10
Minuit parameter uncertainties:
  1  0.52584
  2  4.71388
  3  0.169456
  4  0.107449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691019': 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) = 6315.69898895
delta logL = 0.990368857322

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.702e-02  5.258e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  5.270e+00  4.714e+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:  8.589e-01  1.074e-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:  1.102e+00  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 5.27 +/- 4.71
Photon Flux (Free Index): 8.11e-08 +/- 6.27e-08
Energy Flux (Free Index): 1.06e-05 +/- 9.66e-06

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/691019/cmap_HighResolution_528854401_529113601_4FGL_J2142.5-2552_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='9.90e-01', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-27 00:57:23.698547', photon_index_error2='4.71', photon_index2='5.27', ts='0.12', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.14e-08', energy_flux_error2='9.66e-06', EG='1.18', time_epoch_completed='1632729443.7', return_code='0', job_id='691019', GAL2='0.86', EG2='1.10', return_code2='102', photon_flux_error2='6.27e-08', ts2='2.21', photon_index='2.21' WHERE bin_id='1117' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:57:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 691019: <4FGL_J2142.5-2552_daily_bin1117> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1117> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:45:22 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:45:36 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:45:36 2021
Terminated at Mon Sep 27 00:57:24 2021
Results reported at Mon Sep 27 00:57:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1117 325.645 -25.8777 528854401 529113601 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 :                                   599.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            722 sec.

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

