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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1362
RA = 325.645, Dec = -25.8777
tmin = 592358401, tmax = 592617601
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='691411', job_status='RUN', time_executed='2021-09-27 00:49:17.369744', time_epoch_executed='1632728957.37' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691411/ft1_4FGL_J2142.5-2552_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691411/ft1_4FGL_J2142.5-2552_daily_bin1362.fits outfile=/scratch/kocevski/691411/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1362.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=592358401.0 tmax=592617601.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.81
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.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/691411/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/691411/ft1_filtered_4FGL_J2142.5-2552_daily_bin1362.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691411/ft1_filtered_4FGL_J2142.5-2552_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/691411/ltcube_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.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/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.fits
.....................!
real 13.70
user 13.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691411/ft1_filtered_4FGL_J2142.5-2552_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/691411/ltcube_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.fits outfile=/scratch/kocevski/691411/expmap_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.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/691411/ltcube_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.fits
.....................!
real 192.89
user 186.60
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/691411/ft1_filtered_4FGL_J2142.5-2552_daily_bin1362.fits scfile=/scratch/kocevski/691411/ft2_4FGL_J2142.5-2552_daily_bin1362.fits outfile=/scratch/kocevski/691411/cmap_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.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.66
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.535       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3964       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.984       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84370       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=   5268.323     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2384 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.536        101.50        .60925E-06   -.26782E-05
   2  norm          .10000E-03    12.210        .62986E-05** at limit **
   3  Prefactor     .10000E-03    13.958       -.59446E-05** at limit **
   4  Prefactor     4.3971        5.9691        .17071E-06   -.79326E-03
   5  norm          .10000E-03    2.4305        .99400E-07** at limit **
   6  Prefactor     .10000E-03    4.0534        .94266E-07** at limit **
   7  Prefactor     .10000E-03    7.1151        .10657E-05** at limit **
   8  Prefactor     .10000E-03    8.5466       -.25450E-05** at limit **
   9  norm          2.8284        4.8212        .59505E-06   -.10814E-02
  10  Prefactor     .10000E-03    6.0466       -.22510E-05** at limit **
  11  Prefactor     .10000E-03    33.548        .54423E-05** at limit **
  12  Prefactor     .10000E-03    44.086       -.53636E-05** at limit **
  13  norm          7.1729        6.8500       -.30462E-07   -.69693E-04
  14  Prefactor     22.985        20.561        .14836E-06    .87454E-05
  15  norm          1.0156        .47716       -.20570E-07   -.16618E-03
  16  Prefactor     .10000E-03    5.7010        .88933E-06** at limit **
  17  Prefactor     .10000E-03    6.6066        .13422E-05** at limit **
  18  norm          .10000E-03    9.2387        .16650E-06** at limit **
  19  Normalizat    1.2851        .22018       -.22642E-06    .73359E-05
  20  Prefactor     .84370        .13539       -.41616E-08    .72176E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.536
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39711
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.17295
  Prefactor  = 22.9848
  norm       = 1.01559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.28509
  Prefactor  = 0.843696
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.323     FROM HESSE     STATUS=OK           285 CALLS     2669 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.536        101.52        .48840E-04   -1.4063    
   2  norm          .10000E-03    12.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3971        6.4641        .96039E-03   -1.5289    
   5  norm          .10000E-03    2.4308        .11051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0788        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8284        8.7236        .12092E-02   -1.5372    
  10  Prefactor     .10000E-03    6.0584        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1729        6.9119        .14974E-03   -1.5172    
  14  Prefactor     22.985        20.573        .83550E-04   -1.4749    
  15  norm          1.0156        .47486        .31690E-04   -1.5506    
  16  Prefactor     .10000E-03    5.7439        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.2415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2851        .25733        .27798E-03   -.84013    
  20  Prefactor     .84370        .15832        .21012E-03   -.98137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75647e-09
Minuit parameter uncertainties:
  1  101.783
  2  7.07209e-05
  3  6.519e-05
  4  6.46514
  5  5.83576e-07
  6  1.00512e-06
  7  8.33408e-06
  8  2.12415e-05
  9  8.72754
  10  1.70995e-05
  11  7.17263e-05
  12  0.000113449
  13  6.9127
  14  20.579
  15  0.474858
  16  6.01578e-06
  17  1.14239e-05
  18  1.81678e-06
  19  0.257589
  20  0.158403
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.124e-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:  8.437e-01  1.584e-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.285e+00  2.576e-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: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691411/likelihoodResults_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.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) = 5268.32360661
delta logL = -0.000555344901841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5268.32305131
delta logL = -4.74556145491e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1982       1.0000          .0000       10.000    
     3 'Normalizat'    1.2851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84372       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=   5268.323     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.028        .18142E-02** at limit **
   2  Index         2.1878        5.8927        .50000        .10059E-04
   3  Normalizat    1.2851        .24621        .27798E-03   -.31433E-03
   4  Prefactor     .84369        .15534        .21012E-03   -.45358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.18779
  Normalizat = 1.28509
  Prefactor  = 0.843695
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.323     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1878        6.0916        .50000       -.59734    
   3  Normalizat    1.2851        .24638        .55597E-04   -.84013    
   4  Prefactor     .84369        .15545        .42024E-04   -.98137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54484e-10
Minuit parameter uncertainties:
  1  0.00017567
  2  4.20035
  3  0.246603
  4  0.155532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691411': 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) = 5268.32305122
delta logL = 4.98739609611e-08

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.757e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.188e+00  4.200e+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.437e-01  1.555e-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.285e+00  2.466e-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/691411/cmap_HighResolution_592358401_592617601_4FGL_J2142.5-2552_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-27 00:58:30.638292', job_id='691411', GAL2='0.84', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632729510.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1362' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:58:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 691411: <4FGL_J2142.5-2552_daily_bin1362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1362 325.645 -25.8777 592358401 592617601 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            754 sec.

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

