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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin1170
RA = 175.788, Dec = 61.3801
tmin = 542592001, tmax = 542851201
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='7255', job_status='RUN', time_executed='2021-09-04 08:10:26.574879', time_epoch_executed='1630768226.57' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7255/ft1_4FGL_J1143.1+6122_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7255/ft1_4FGL_J1143.1+6122_daily_bin1170.fits outfile=/scratch/kocevski/7255/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin1170.fits ra=175.788 dec=61.3801 rad=12.0 tmin=542592001.0 tmax=542851201.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 7.31
user 6.49
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.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/7255/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/7255/ltcube_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.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/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits
.....................!
real 15.15
user 14.60
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/7255/ltcube_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits outfile=/scratch/kocevski/7255/expmap_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.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/7255/ltcube_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits
.....................!
real 192.55
user 185.77
sys 6.28

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 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1143.1+6122 @ 175.788 61.3801

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits outfile=/scratch/kocevski/7255/cmap_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.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=175.788 yref=61.3801 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits outfile=/scratch/kocevski/7255/cmap_HighResolution_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.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=175.788 yref=61.3801 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/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7255/Model_4FGL_J1143.1+6122_daily_bin1170.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/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits.....................!
real 33.85
user 31.35
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits', '/scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits', expMap='/scratch/kocevski/7255/expmap_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits', expCube='/scratch/kocevski/7255/ltcube_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7255/Model_4FGL_J1143.1+6122_daily_bin1170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1143.1+6122'

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  2.057e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/7255/ft1_filtered_4FGL_J1143.1+6122_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/7255/ft2_4FGL_J1143.1+6122_daily_bin1170.fits
Exposure map: /scratch/kocevski/7255/expmap_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits
Exposure cube: /scratch/kocevski/7255/ltcube_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7255/Model_4FGL_J1143.1+6122_daily_bin1170.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) = 2168.88075605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4112       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13356E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8157       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2580       1.0000         .10000E-03   10000.    
     5 'Prefactor '    187.86       1.0000         .10000E-03   10000.    
     6 'norm      '    .11506E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .84453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9342       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20413E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13637E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.254       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.9419       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.665       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12708E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .56532       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2168.836     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4558 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4265        124.37        .21433E-05   -.87031E-06
   2  Prefactor     .10016E-03    247.58       -.78640E-05** at limit **
   3  norm          3.8207        2.8426        .68884E-07   -.26169E-03
   4  norm          2.2590        1.7887        .90351E-08   -.10203E-03
   5  Prefactor     188.15        324.33        .25595E-05   -.55296E-05
   6  norm          .32021E-02    1.1849       -.36889E-06    .51464E-03
   7  norm          .84346        2.8098        .86566E-06    .22779E-03
   8  Prefactor     .10000E-03    88.265       -.65635E-07** at limit **
   9  norm          .10000E-03    1.7116        .32547E-06** at limit **
  10  Prefactor     .10000E-03    6.3480        .34998E-07** at limit **
  11  Prefactor     73.214        77.116       -.15145E-05   -.27354E-04
  12  Prefactor     .10000E-03    19.108        .58858E-06** at limit **
  13  Prefactor     .10000E-03    3.8949        .23886E-06** at limit **
  14  Prefactor     .10000E-03    13.099        .16190E-06** at limit **
  15  Prefactor     .10000E-03    17.606        .17386E-06** at limit **
  16  Prefactor     3.9356        5.3783        .88144E-07   -.44771E-06
  17  norm          .10000E-03    11.376        .11657E-06** at limit **
  18  Prefactor     .10000E-03    5.3253        .41126E-06** at limit **
  19  norm          .10000E-03    7.1716        .41516E-07** at limit **
  20  Prefactor     .10000E-03    985.84        .19538E-05** at limit **
  21  Prefactor     .10000E-03    40.585       -.20871E-06** at limit **
  22  norm          .11303        13.743       -.23846E-05    .33015E-03
  23  Prefactor     .10000E-03    40.801        .59557E-06** at limit **
  24  Prefactor     21.400        456.59       -.77080E-05   -.10893E-05
  25  norm          .10000E-03    3.8703        .85396E-07** at limit **
  26  Prefactor     .10000E-03    10.384        .94538E-06** at limit **
  27  norm          6.9397        6.4272       -.91536E-07   -.35528E-04
  28  Prefactor     .10000E-03    94.581        .12407E-05** at limit **
  29  Prefactor     21.687        31.322       -.10604E-05   -.13139E-04
  30  Prefactor     .10000E-03    281.85       -.10094E-05** at limit **
  31  Normalizat    .56361        .32627        .86261E-05   -.61838E-04
  32  Prefactor     1.1615        .38182       -.85216E-05   -.78345E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42646
  Prefactor  = 0.000100164
  norm       = 3.82071
  norm       = 2.25903
  Prefactor  = 188.151
  norm       = 0.00320214
  norm       = 0.843455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.2144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93562
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.113026
  Prefactor  = 0.0001
  Prefactor  = 21.4
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.93974
  Prefactor  = 0.0001
  Prefactor  = 21.6871
  Prefactor  = 0.0001
  Normalizat = 0.563615
  Prefactor  = 1.16153
 **********
 **   18 **HESSE 
 **********

 FCN=   2168.836     FROM HESSE     STATUS=OK           675 CALLS     5233 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4265        125.40        .36466E-03   -1.5469    
   2  Prefactor     .10016E-03    277.91        .46923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8207        2.8613        .63399E-04   -1.5317    
   4  norm          2.2590        1.7923        .53689E-04   -1.5407    
   5  Prefactor     188.15        323.98        .14731E-03   -1.2956    
   6  norm          .32021E-02    3.4321        .12775E-01   -1.5697    
   7  norm          .84346        3.2673        .13012E-03   -1.5524    
   8  Prefactor     .10000E-03    88.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7370        .59592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7101        .23191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     73.214        77.158        .23469E-03   -1.3995    
  12  Prefactor     .10000E-03    19.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9024        .89795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.101        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9356        5.3708        .12284E-03   -1.5311    
  17  norm          .10000E-03    11.379        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3391        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.1963        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    87.990        .72542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .11303        75.067        .18241E-02   -1.5641    
  23  Prefactor     .10000E-03    40.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.400        782.35        .86880E-04   -1.4782    
  25  norm          .10000E-03    3.8709        .89490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.433        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.9397        6.4296        .10754E-03   -1.5181    
  28  Prefactor     .10000E-03    94.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     21.687        31.329        .86053E-04   -1.4776    
  30  Prefactor     .10000E-03    281.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .56361        .34366        .27635E-03   -1.0955    
  32  Prefactor     1.1615        .39564        .23463E-03   -.87523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04648e-09
Minuit parameter uncertainties:
  1  26.8059
  2  0.013554
  3  2.86141
  4  1.79237
  5  327.129
  6  0.206379
  7  3.26798
  8  2.28172e-05
  9  4.17246e-06
  10  8.47547e-05
  11  77.2637
  12  2.1073e-05
  13  3.83041e-06
  14  3.55294e-06
  15  1.00121e-05
  16  5.37145
  17  1.83605e-06
  18  5.30127e-06
  19  9.50603e-07
  20  0.000558072
  21  7.41671e-06
  22  5.8304
  23  1.12558e-05
  24  262.58
  25  1.08573e-06
  26  2.62287e-05
  27  6.43026
  28  9.06882e-05
  29  31.3529
  30  0.000311121
  31  0.344966
  32  0.396653
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.836e-06  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.162e+00  3.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  5.636e-01  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 175.788 61.380
Photon Flux Upper Limit: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7255/likelihoodResults_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.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) = 2168.83677176
delta logL = -0.000358338187198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2168.83641343
delta logL = -2.60160959442e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2168.836     FROM MIGRAD    STATUS=FAILED        77 CALLS      228 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    13.698        .15347E-02** at limit **
   2  alpha         1.6633        3.9703        .17557E-01    .46532E-06
   3  Normalizat    .56362        .29415        .27636E-03    .21499E-03
   4  Prefactor     1.1615        .35083        .23464E-03    .25742E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2168.836     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      350 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10016E-03    13.698        .54870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6633        3.9703        .63336E-03   -.34125    
   3  Normalizat    .56362        .29415        .10104E-03   -1.0955    
   4  Prefactor     1.1615        .35083        .76156E-04   -.87523    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2168.836     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      377 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.455        .30694E-03** at limit **
   2  alpha         1.5877        3.2015        .35114E-02   -.11979E-07
   3  Normalizat    .56361        .29438        .55272E-04   -.83693E-04
   4  Prefactor     1.1615        .35110        .46927E-04   -.10044E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.58771
  Normalizat = 0.563615
  Prefactor  = 1.16153
 **********
 **   18 **HESSE 
 **********

 FCN=   2168.836     FROM HESSE     STATUS=OK            29 CALLS      406 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.457        .61388E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5877        3.1121        .70227E-01   -.37354    
   3  Normalizat    .56361        .29441        .11054E-04   -1.0955    
   4  Prefactor     1.1615        .35115        .93854E-05   -.87523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1327e-11
Minuit parameter uncertainties:
  1  8.37948e-05
  2  601.131
  3  0.295234
  4  0.351854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7255': 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) = 2168.83641339
delta logL = 2.90388015856e-08

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  8.379e-05  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.588e+00  6.011e+02  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.162e+00  3.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  5.636e-01  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 175.788 61.380

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/7255/cmap_HighResolution_542592001_542851201_4FGL_J1143.1+6122_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-05', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-09-04 08:20:48.847220', job_id='7255', GAL2='1.16', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1630768848.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1170' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:20:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 7255: <4FGL_J1143.1+6122_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1143.1+6122_daily_bin1170> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 08:06:52 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 08:06:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 08:06:54 2021
Terminated at Sat Sep  4 08:20:49 2021
Results reported at Sat Sep  4 08:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin1170 175.788 61.3801 542592001 542851201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1143.1+6122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   615.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

