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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1195
RA = 325.645, Dec = -25.8777
tmin = 549072001, tmax = 549331201
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='691142', job_status='RUN', time_executed='2021-09-27 00:47:23.776998', time_epoch_executed='1632728843.78' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691142/ft1_4FGL_J2142.5-2552_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691142/ft1_4FGL_J2142.5-2552_daily_bin1195.fits outfile=/scratch/kocevski/691142/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1195.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=549072001.0 tmax=549331201.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 2.93
user 2.71
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691142/ft1_filtered_4FGL_J2142.5-2552_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/691142/ltcube_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.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/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits
.....................!
real 15.54
user 14.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691142/ft1_filtered_4FGL_J2142.5-2552_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/691142/ltcube_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.fits outfile=/scratch/kocevski/691142/expmap_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.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/691142/ltcube_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.fits
.....................!
real 194.11
user 188.76
sys 4.56

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/691142/ft1_filtered_4FGL_J2142.5-2552_daily_bin1195.fits scfile=/scratch/kocevski/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits outfile=/scratch/kocevski/691142/cmap_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.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.74
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691142/ft1_filtered_4FGL_J2142.5-2552_daily_bin1195.fits scfile=/scratch/kocevski/691142/ft2_4FGL_J2142.5-2552_daily_bin1195.fits outfile=/scratch/kocevski/691142/cmap_HighResolution_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2691       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9924       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1185       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.704       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.451       1.0000         .10000E-03   10000.    
    15 'norm      '    .67904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39443E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4916       1.0000         .10000E-03   10000.    
    18 'norm      '    18.909       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83168       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=   7458.404     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2019 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.042        .31878E-07** at limit **
   2  norm          .10000E-03    12.904       -.34491E-07** at limit **
   3  Prefactor     37.083        22.446        .10605E-06   -.18009E-04
   4  Prefactor     3.2683        5.5808        .62983E-06    .34464E-04
   5  norm          4.9924        5.1501        .10813E-07   -.16960E-05
   6  Prefactor     .10000E-03    2.2005       -.18896E-07** at limit **
   7  Prefactor     10.978        9.1223        .11380E-06   -.21442E-04
   8  Prefactor     4.1188        10.722        .65206E-06   -.22868E-04
   9  norm          4.5658        8.0245        .18874E-06   -.29136E-04
  10  Prefactor     .10000E-03    4.5024       -.32540E-07** at limit **
  11  Prefactor     .10000E-03    11.958        .35085E-05** at limit **
  12  Prefactor     28.744        43.409       -.13086E-05   -.94839E-05
  13  norm          2.6520        4.4848        .11532E-05   -.11161E-04
  14  Prefactor     12.450        13.471        .14928E-06   -.46667E-05
  15  norm          .67904        .29432       -.26176E-07   -.36598E-03
  16  Prefactor     .10000E-03    5.6149        .71901E-06** at limit **
  17  Prefactor     7.4934        12.986        .14499E-06   -.48511E-04
  18  norm          18.909        16.227        .10206E-06   -.83414E-05
  19  Normalizat    1.1821        .19002       -.19872E-05   -.94992E-04
  20  Prefactor     .83166        .11938        .72018E-06   -.29524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.0834
  Prefactor  = 3.26832
  norm       = 4.99235
  Prefactor  = 0.0001
  Prefactor  = 10.9779
  Prefactor  = 4.11881
  norm       = 4.56585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7437
  norm       = 2.65198
  Prefactor  = 12.4501
  norm       = 0.679035
  Prefactor  = 0.000100002
  Prefactor  = 7.49338
  norm       = 18.9086
  Normalizat = 1.18207
  Prefactor  = 0.831661
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.404     FROM HESSE     STATUS=OK           299 CALLS     2318 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.083        22.466        .65812E-04   -1.4489    
   4  Prefactor     3.2683        5.5740        .22397E-03   -1.5346    
   5  norm          4.9924        5.1501        .17998E-03   -1.5261    
   6  Prefactor     .10000E-03    2.2147        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.978        9.1156        .12091E-03   -1.5045    
   8  Prefactor     4.1188        10.707        .19864E-03   -1.5302    
   9  norm          4.5658        7.9846        .18838E-03   -1.5281    
  10  Prefactor     .10000E-03    4.5146        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.744        43.424        .74779E-04   -1.4635    
  13  norm          2.6520        4.4494        .20396E-03   -1.5382    
  14  Prefactor     12.450        13.471        .11352E-03   -1.5002    
  15  norm          .67904        .29605        .28456E-04   -1.5543    
  16  Prefactor     .10000E-03    17.166        .38617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4934        12.963        .14652E-03   -1.5160    
  18  norm          18.909        16.233        .92106E-04   -1.4838    
  19  Normalizat    1.1821        .21500        .26554E-03   -.87159    
  20  Prefactor     .83166        .13755        .20569E-03   -.98572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00067e-10
Minuit parameter uncertainties:
  1  2.36603e-05
  2  5.74224e-06
  3  22.4707
  4  5.57492
  5  5.15057
  6  1.34558e-06
  7  9.11677
  8  10.7121
  9  7.98643
  10  2.49394e-06
  11  5.31697e-05
  12  43.4721
  13  4.44992
  14  13.474
  15  0.296054
  16  0.000329502
  17  12.9681
  18  16.2365
  19  0.215165
  20  0.137606
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.119e+00  1.071e+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.317e-01  1.376e-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.182e+00  2.152e-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: 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/691142/likelihoodResults_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.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) = 7458.38134698
delta logL = 0.0222568037943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7458.37627768
delta logL = 0.0273261011853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3207       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9444       1.0000          .0000       10.000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83027       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=   7458.376     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3172        12.336       -.15214E-04    .31003E-03
   2  Index         1.9446        1.0210        .20169E-04    .19810E-03
   3  Normalizat    1.1848        .17208        .18589E-06    .28658E-04
   4  Prefactor     .83028        .11456        .70971E-06   -.27144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31719
  Index      = 1.94461
  Normalizat = 1.18478
  Prefactor  = 0.830277
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.376     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3172        12.447        .17424E-03   -1.5247    
   2  Index         1.9446        1.0484        .10448E-02   -.65742    
   3  Normalizat    1.1848        .20228        .26528E-03   -.87074    
   4  Prefactor     .83028        .13469        .20583E-03   -.98622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90959e-09
Minuit parameter uncertainties:
  1  12.4526
  2  1.06106
  3  0.202411
  4  0.134743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691142': 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) = 7458.37627763
delta logL = 0.0273261495831

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  5.317e+00  1.245e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.945e+00  1.061e+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.303e-01  1.347e-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.185e+00  2.024e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/691142/cmap_HighResolution_549072001_549331201_4FGL_J2142.5-2552_daily_bin1195.png

Cleaning up...

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

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 00:57:54.749865', job_id='691142', GAL2='0.83', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632729474.75', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.73e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1195' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:57:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 691142: <4FGL_J2142.5-2552_daily_bin1195> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1195 325.645 -25.8777 549072001 549331201 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 :                                   627.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            743 sec.

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

