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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1008
RA = 325.894, Dec = 17.7306
tmin = 500601601, tmax = 500860801
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='721224', job_status='RUN', time_executed='2021-09-27 02:24:39.351015', time_epoch_executed='1632734679.35' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721224/ft1_4FGL_J2143.5+1743_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721224/ft1_4FGL_J2143.5+1743_daily_bin1008.fits outfile=/scratch/kocevski/721224/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1008.fits ra=325.894 dec=17.7306 rad=12.0 tmin=500601601.0 tmax=500860801.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.59
user 4.93
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.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/721224/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/721224/ltcube_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.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/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits
.....................!
real 16.86
user 16.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/721224/ltcube_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits outfile=/scratch/kocevski/721224/expmap_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.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/721224/ltcube_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits
.....................!
real 191.67
user 185.99
sys 5.10

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 165 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2143.5+1743 @ 325.894 17.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits outfile=/scratch/kocevski/721224/cmap_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.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.894 yref=17.7306 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.96
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits outfile=/scratch/kocevski/721224/cmap_HighResolution_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.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.894 yref=17.7306 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721224/Model_4FGL_J2143.5+1743_daily_bin1008.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits.....................!
real 91.95
user 90.54
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits', '/scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits', expMap='/scratch/kocevski/721224/expmap_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits', expCube='/scratch/kocevski/721224/ltcube_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/721224/Model_4FGL_J2143.5+1743_daily_bin1008.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2143.5+1743'

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.341e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/721224/ft1_filtered_4FGL_J2143.5+1743_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/721224/ft2_4FGL_J2143.5+1743_daily_bin1008.fits
Exposure map: /scratch/kocevski/721224/expmap_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits
Exposure cube: /scratch/kocevski/721224/ltcube_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/721224/Model_4FGL_J2143.5+1743_daily_bin1008.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) = 5343.32384417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.5352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.992       1.0000         .10000E-03   10000.    
    11 'norm      '    14.570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2663       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    74.037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.874       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2884       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5343.195     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2620 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.645       -.27408E-06** at limit **
   2  Prefactor     22.607        33.072        .88640E-07   -.73118E-05
   3  Prefactor     .10000E-03    107.73       -.27377E-06** at limit **
   4  Prefactor     .10000E-03    12.585        .23579E-06** at limit **
   5  Prefactor     21.497        31.338       -.36327E-06    .48945E-06
   6  Prefactor     .10000E-03    70.862        .14800E-05** at limit **
   7  norm          6.5354        5.6528        .14045E-05   -.81770E-04
   8  Prefactor     7.7838        7.5351        .17537E-05   -.31632E-04
   9  Prefactor     .16372        7.8739       -.60639E-06    .38156E-04
  10  Prefactor     67.010        166.78        .51837E-06   -.97622E-08
  11  norm          14.570        5.9646        .85062E-08    .10870E-03
  12  Prefactor     .10000E-03    58.627        .12586E-06** at limit **
  13  norm          2.2659        2.6347        .98492E-07   -.11721E-04
  14  norm          .10000E-03    8.6831        .38376E-07** at limit **
  15  Prefactor     73.977        66.597       -.46109E-06   -.89390E-04
  16  Prefactor     .10000E-03    56.728       -.44125E-06** at limit **
  17  norm          1.8362        1.4156       -.48437E-07    .29402E-04
  18  Prefactor     .10000E-03    7.0043        .27839E-07** at limit **
  19  norm          .10000E-03    21.296        .11456E-06** at limit **
  20  Prefactor     90.848        41.866       -.11333E-06   -.78688E-04
  21  Prefactor     10.892        16.730        .77706E-07    .43800E-06
  22  Normalizat    1.2895        .33384        .17289E-05   -.33803E-04
  23  Prefactor     .81825        .13370       -.17326E-05    .15798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.607
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.4967
  Prefactor  = 0.000100001
  norm       = 6.53538
  Prefactor  = 7.78379
  Prefactor  = 0.163719
  Prefactor  = 67.0103
  norm       = 14.5697
  Prefactor  = 0.0001
  norm       = 2.26591
  norm       = 0.0001
  Prefactor  = 73.9771
  Prefactor  = 0.0001
  norm       = 1.83622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 90.8477
  Prefactor  = 10.8917
  Normalizat = 1.28952
  Prefactor  = 0.818246
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.195     FROM HESSE     STATUS=OK           368 CALLS     2988 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.607        33.152        .84245E-04   -1.4757    
   3  Prefactor     .10000E-03    107.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.497        31.347        .86396E-04   -1.4780    
   6  Prefactor     .10000E-03    71.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5354        5.6690        .77576E-03   -1.5197    
   8  Prefactor     7.7838        7.6083        .71856E-03   -1.5150    
   9  Prefactor     .16372        88.797        .38321E-02   -1.5627    
  10  Prefactor     67.010        166.79        .49037E-04   -1.4069    
  11  norm          14.570        5.9593        .99185E-04   -1.4944    
  12  Prefactor     .10000E-03    58.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2659        2.6245        .12282E-03   -1.5407    
  14  norm          .10000E-03    8.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.977        66.668        .46662E-04   -1.3986    
  16  Prefactor     .10000E-03    56.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8362        1.4114        .73097E-04   -1.5437    
  18  Prefactor     .10000E-03    7.0080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     90.848        42.035        .42153E-04   -1.3799    
  21  Prefactor     10.892        16.795        .12134E-03   -1.5048    
  22  Normalizat    1.2895        .39177        .37636E-03   -.83880    
  23  Prefactor     .81825        .15540        .18895E-03   -.99059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42648e-10
Minuit parameter uncertainties:
  1  0.000210166
  2  33.1793
  3  0.000488562
  4  4.79828e-06
  5  31.3706
  6  0.000524187
  7  5.66949
  8  7.60921
  9  7.63472
  10  167.973
  11  5.95951
  12  9.7522e-05
  13  2.62465
  14  4.56691e-07
  15  66.7352
  16  2.6345e-05
  17  1.41147
  18  1.03702e-06
  19  4.21556e-05
  20  42.0491
  21  16.8023
  22  0.392677
  23  0.155487
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.457e+01  5.960e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.182e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.290e+00  3.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.63
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 8.47e-05 +/- 3.46e-05

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) = 5343.16515201
delta logL = 0.0299128214556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.16219342
delta logL = 0.032871417141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.278       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5676       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82463       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5343.162     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.276        96.026        .26500E-02    .19339E-03
   2  alpha         2.5677        3.5585        .27749        .13230E-04
   3  Normalizat    1.2688        .42553        .85562E-01    .29175E-04
   4  Prefactor     .82461        .22960        .44037E-01    .19357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2762
  alpha      = 2.56771
  Normalizat = 1.26884
  Prefactor  = 0.824606
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.162     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.276        5.6533        .96965E-04   -1.4952    
   2  alpha         2.5677        .47242        .10912E-01    .27087E-01
   3  Normalizat    1.2688        .37765        .37885E-03   -.84501    
   4  Prefactor     .82461        .15319        .18831E-03   -.98828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8811e-12
Minuit parameter uncertainties:
  1  5.65354
  2  0.475284
  3  0.378474
  4  0.153273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721224': 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) = 5343.16219332
delta logL = 0.0328715184924

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.428e+01  5.654e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.568e+00  4.753e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.246e-01  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.269e+00  3.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.88
Ra Dec: 325.894 17.731
Photon Index (Free Index): 2.57 +/- 0.48
Photon Flux (Free Index): 3.11e-07 +/- 1.34e-07
Energy Flux (Free Index): 8.11e-05 +/- 3.34e-05

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/721224/cmap_HighResolution_500601601_500860801_4FGL_J2143.5+1743_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='8.11e-05', photon_flux_error='1.19e-07', dlogl='3.29e-02', energy_flux='8.47e-05', photon_flux2='3.11e-07', job_status='DONE', time_completed='2021-09-27 02:35:28.618850', photon_index_error2='0.48', photon_index2='2.57', ts='11.63', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='1.29', time_epoch_completed='1632735328.62', return_code='0', job_id='721224', GAL2='0.82', EG2='1.27', return_code2='0', energy_flux_error='3.46e-05', photon_flux_error2='1.34e-07', ts2='11.88', photon_index='2.45' WHERE bin_id='1008' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 02:35:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 721224: <4FGL_J2143.5+1743_daily_bin1008> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1008> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 02:21:50 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 02:21:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 02:21:57 2021
Terminated at Mon Sep 27 02:35:31 2021
Results reported at Mon Sep 27 02:35:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1008 325.894 17.7306 500601601 500860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2143.5+1743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            821 sec.

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

