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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1340
RA = 325.645, Dec = -25.8777
tmin = 586656001, tmax = 586915201
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='691377', job_status='RUN', time_executed='2021-09-27 00:49:59.375332', time_epoch_executed='1632728999.38' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691377/ft1_4FGL_J2142.5-2552_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691377/ft1_4FGL_J2142.5-2552_daily_bin1340.fits outfile=/scratch/kocevski/691377/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1340.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=586656001.0 tmax=586915201.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.27
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/691377/ltcube_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.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/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits
.....................!
real 15.65
user 15.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/691377/ltcube_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.fits outfile=/scratch/kocevski/691377/expmap_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.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/691377/ltcube_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.fits
.....................!
real 192.03
user 186.73
sys 4.60

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/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits scfile=/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits outfile=/scratch/kocevski/691377/cmap_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits scfile=/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits outfile=/scratch/kocevski/691377/cmap_HighResolution_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/691377/ft2_4FGL_J2142.5-2552_daily_bin1340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691377/Model_4FGL_J2142.5-2552_daily_bin1340.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/691377/ft1_filtered_4FGL_J2142.5-2552_daily_bin1340.fits.....................!
real 50.24
user 48.41
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.147       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1063       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.980       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .47599       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92250       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1887       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=   5301.614     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2054 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.560        .59917E-05** at limit **
   2  norm          8.9954        31.411       -.82016E-05   -.12366E-04
   3  Prefactor     39.753        28.430       -.76783E-06   -.54454E-05
   4  Prefactor     .10000E-03    4.9732        .87707E-07** at limit **
   5  norm          .10000E-03    4.2996       -.50909E-08** at limit **
   6  Prefactor     5.8733        9.0386        .62470E-07   -.36763E-05
   7  Prefactor     6.1409        16.265        .21153E-05   -.67713E-06
   8  Prefactor     10.149        28.113       -.41613E-05    .55050E-05
   9  norm          5.1090        12.673        .36937E-06   -.15365E-03
  10  Prefactor     23.835        21.685        .30837E-06   -.52800E-05
  11  Prefactor     .10004E-03    90.545       -.81755E-05** at limit **
  12  Prefactor     47.018        104.52        .27759E-04    .61603E-04
  13  norm          2.4036        3.9168        .75592E-06   -.98307E-03
  14  Prefactor     .10000E-03    35.725       -.15591E-07** at limit **
  15  norm          .47604        .38182       -.23858E-06   -.82005E-03
  16  Prefactor     .10000E-03    8.0918        .21518E-07** at limit **
  17  Prefactor     .10000E-03    14.777        .44098E-07** at limit **
  18  norm          .10000E-03    8.3433       -.18793E-07** at limit **
  19  Normalizat    .92225        .26618       -.49799E-05    .11773E-03
  20  Prefactor     1.1888        .16206        .12959E-05   -.11084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.99537
  Prefactor  = 39.7533
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.8733
  Prefactor  = 6.14086
  Prefactor  = 10.1492
  norm       = 5.10898
  Prefactor  = 23.8346
  Prefactor  = 0.000100035
  Prefactor  = 47.018
  norm       = 2.40361
  Prefactor  = 0.0001
  norm       = 0.476039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.922253
  Prefactor  = 1.18884
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.614     FROM HESSE     STATUS=OK           291 CALLS     2345 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9954        31.363        .13357E-03   -1.5108    
   3  Prefactor     39.753        28.464        .63570E-04   -1.4446    
   4  Prefactor     .10000E-03    5.0099        .15854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3041        .14745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8733        9.0332        .16570E-03   -1.5223    
   7  Prefactor     6.1409        16.226        .16195E-03   -1.5212    
   8  Prefactor     10.149        28.251        .12579E-03   -1.5071    
   9  norm          5.1090        12.575        .88962E-03   -1.5256    
  10  Prefactor     23.835        21.712        .82046E-04   -1.4731    
  11  Prefactor     .10004E-03    94.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.018        117.76        .58499E-04   -1.4335    
  13  norm          2.4036        8.0003        .13203E-02   -1.5398    
  14  Prefactor     .10000E-03    36.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .47604        .38619        .38108E-04   -1.5570    
  16  Prefactor     .10000E-03    8.1509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.3438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92225        .30586        .34485E-03   -.95683    
  20  Prefactor     1.1888        .18739        .19691E-03   -.86675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78973e-09
Minuit parameter uncertainties:
  1  0.000298883
  2  31.4205
  3  28.4734
  4  1.75231e-05
  5  5.29651e-07
  6  9.03533
  7  16.238
  8  28.2878
  9  12.5817
  10  21.7189
  11  0.00364483
  12  118.347
  13  8.00389
  14  4.42796e-05
  15  0.386191
  16  2.73792e-05
  17  8.62331e-06
  18  1.12392e-06
  19  0.306442
  20  0.187493
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.015e+01  2.829e+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:  1.189e+00  1.875e-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:  9.223e-01  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691377/likelihoodResults_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.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) = 5301.31091536
delta logL = 0.303378588089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5301.2769034
delta logL = 0.337390540551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9044       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0303       1.0000          .0000       10.000    
     3 'Normalizat'    .86740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2052       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5301.277     FROM MIGRAD    STATUS=FAILED       102 CALLS      294 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8916        32.452        .76343E-03    .18800E-03
   2  Index         3.0319        2.0511        .66540E-02    .51242E-03
   3  Normalizat    .86729        .29632        .35428E-03   -.11745E-04
   4  Prefactor     1.2053        .18591        .19561E-03   -.20818E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5301.277     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      369 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8916        32.452        .24341E-03   -1.5183    
   2  Index         3.0319        2.0511        .10686E-02   -.40456    
   3  Normalizat    .86729        .29632        .35762E-03   -.97619    
   4  Prefactor     1.2053        .18591        .20668E-03   -.86168    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5301.277     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      399 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8916        16.203        .15269E-03   -.77437E-05
   2  Index         3.0319        1.1372        .13308E-02    .19050E-04
   3  Normalizat    .86729        .29438        .14171E-04   -.11713E-04
   4  Prefactor     1.2053        .18367        .39122E-04   -.20807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.89158
  Index      = 3.03193
  Normalizat = 0.867288
  Prefactor  = 1.20532
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.277     FROM HESSE     STATUS=OK            25 CALLS      424 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8916        15.217        .61074E-05   -1.5183    
   2  Index         3.0319        1.0687        .26616E-03   -.40456    
   3  Normalizat    .86729        .29463        .28343E-05   -.97619    
   4  Prefactor     1.2053        .18372        .78244E-05   -.86168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76706e-13
Minuit parameter uncertainties:
  1  15.2254
  2  1.07859
  3  0.295181
  4  0.183818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691377': 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) = 5301.27690195
delta logL = 0.337391990345

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  6.892e+00  1.523e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.032e+00  1.079e+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:  1.205e+00  1.838e-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:  8.673e-01  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/691377/cmap_HighResolution_586656001_586915201_4FGL_J2142.5-2552_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-27 00:59:03.968445', job_id='691377', GAL2='1.21', fit_tolerance='1e-08', EG2='0.87', EG='0.92', time_epoch_completed='1632729543.97', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.37e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1340' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 691377: <4FGL_J2142.5-2552_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1340 325.645 -25.8777 586656001 586915201 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 :                                   540.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            790 sec.

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

