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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1541
RA = 325.645, Dec = -25.8777
tmin = 638755201, tmax = 639014401
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='691693', job_status='RUN', time_executed='2021-09-27 00:51:57.906919', time_epoch_executed='1632729117.91' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691693/ft1_4FGL_J2142.5-2552_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691693/ft1_4FGL_J2142.5-2552_daily_bin1541.fits outfile=/scratch/kocevski/691693/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1541.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=638755201.0 tmax=639014401.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 5.39
user 5.07
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.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/691693/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1541.fits evtable="EVENTS" outfile="/scratch/kocevski/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/691693/ltcube_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.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/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits
.....................!
real 12.82
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/691693/ltcube_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.fits outfile=/scratch/kocevski/691693/expmap_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.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/691693/ltcube_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.fits
.....................!
real 193.70
user 186.89
sys 5.24

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/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits outfile=/scratch/kocevski/691693/cmap_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits outfile=/scratch/kocevski/691693/cmap_HighResolution_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/691693/ft2_4FGL_J2142.5-2552_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691693/Model_4FGL_J2142.5-2552_daily_bin1541.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/691693/ft1_filtered_4FGL_J2142.5-2552_daily_bin1541.fits.....................!
real 59.56
user 57.05
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5147       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .53083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26576E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
    15 'norm      '    .64607       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.545       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79073       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=   6992.760     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1786 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.69        .90712E-02** at limit **
   2  norm          .10000E-03    11.341        .90712E-02** at limit **
   3  Prefactor     8.5139        13.389        .34344E-02    .25437E-02
   4  Prefactor     .10000E-03    1.7114        .90712E-02** at limit **
   5  norm          .54730        4.7208        .62826E-01    .77364E-03
   6  Prefactor     .10000E-03    1.1967        .90712E-02** at limit **
   7  Prefactor     .10000E-03    3.7640        .90712E-02** at limit **
   8  Prefactor     .10001E-03    9.9053        .91551E-01** at limit **
   9  norm          1.9207        3.9032        .74943E-02    .54920E-03
  10  Prefactor     .10000E-03    9.1341        .90712E-02** at limit **
  11  Prefactor     4.9714        8.8388        .45118E-02    .88985E-03
  12  Prefactor     .10000E-03    20.330        .90712E-02** at limit **
  13  norm          .10000E-03    1.1873        .90712E-02** at limit **
  14  Prefactor     13.359        16.034        .27396E-02    .73231E-03
  15  norm          .64608        .27052        .61332E-02    .18156E-03
  16  Prefactor     .10000E-03    4.0961        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.4067        .90712E-02** at limit **
  18  norm          20.538        24.514        .22092E-02   -.29343E-03
  19  Normalizat    1.1855        .16190        .56398E-01    .33493E-04
  20  Prefactor     .79076        .10514        .43596E-01    .38384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 8.51391
  Prefactor  = 0.0001
  norm       = 0.547296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 1.92071
  Prefactor  = 0.0001
  Prefactor  = 4.97141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.359
  norm       = 0.646079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.5376
  Normalizat = 1.18553
  Prefactor  = 0.790762
 **********
 **   18 **HESSE 
 **********

 FCN=   6992.760     FROM HESSE     STATUS=OK           295 CALLS     2081 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5139        13.401        .13738E-03   -1.5124    
   4  Prefactor     .10000E-03    1.7175        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .54730        11.941        .35235E-02   -1.5560    
   6  Prefactor     .10000E-03    1.1971        .89335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7940        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    13.073        .75604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9207        3.8723        .22860E-03   -1.5431    
  10  Prefactor     .10000E-03    9.1974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9714        8.8238        .18047E-03   -1.5262    
  12  Prefactor     .10000E-03    20.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2073        .88905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.359        16.036        .10958E-03   -1.4977    
  15  norm          .64608        .26864        .27281E-04   -1.5547    
  16  Prefactor     .10000E-03    4.1397        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.538        24.541        .88366E-04   -1.4801    
  19  Normalizat    1.1855        .18724        .24939E-03   -.87051    
  20  Prefactor     .79076        .12172        .19442E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31531e-08
Minuit parameter uncertainties:
  1  0.0013276
  2  7.5452e-06
  3  13.4056
  4  2.66643e-07
  5  5.11349
  6  5.08086e-08
  7  1.58895e-07
  8  0.000688003
  9  3.87284
  10  9.49422e-06
  11  8.82606
  12  1.2864e-05
  13  1.51473e-07
  14  16.0414
  15  0.268639
  16  9.37086e-07
  17  4.94438e-07
  18  24.5531
  19  0.187342
  20  0.121759
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  7.908e-01  1.218e-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.186e+00  1.873e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691693/likelihoodResults_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.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) = 6992.76023919
delta logL = -2.13201328734e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6992.76023905
delta logL = -2.11836695598e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96305E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2088       1.0000          .0000       10.000    
     3 'Normalizat'    1.1854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79082       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6992.714     FROM MIGRAD    STATUS=CONVERGED    196 CALLS      371 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3825        14.039        .30953E-03    .60971E-05
   2  Index         2.9270        2.4795        .10515E-01    .75391E-05
   3  Normalizat    1.1737        .18835        .25048E-03    .50381E-05
   4  Prefactor     .79291        .12076        .19416E-03    .26466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38248
  Index      = 2.92697
  Normalizat = 1.17368
  Prefactor  = 0.792911
 **********
 **   18 **HESSE 
 **********

 FCN=   6992.714     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3825        7.6606        .12381E-04   -1.5473    
   2  Index         2.9270        1.8777        .42060E-03   -.42751    
   3  Normalizat    1.1737        .18865        .10019E-04   -.87420    
   4  Prefactor     .79291        .12078        .77664E-05   -.99990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2696e-13
Minuit parameter uncertainties:
  1  6.5097
  2  1.93555
  3  0.188761
  4  0.120821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691693': 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) = 6992.71428927
delta logL = 0.0459285916595

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.382e+00  6.510e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.927e+00  1.936e+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:  7.929e-01  1.208e-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.174e+00  1.888e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/691693/cmap_HighResolution_638755201_639014401_4FGL_J2142.5-2552_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-27 01:02:09.428613', job_id='691693', GAL2='0.79', fit_tolerance='1e-08', EG2='1.17', EG='1.19', time_epoch_completed='1632729729.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.59e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1541' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 691693: <4FGL_J2142.5-2552_daily_bin1541> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1541> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:23 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:51: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:51:36 2021
Terminated at Mon Sep 27 01:02:09 2021
Results reported at Mon Sep 27 01:02:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1541 325.645 -25.8777 638755201 639014401 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 :                                   602.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            946 sec.

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

