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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin926
RA = 207.757, Dec = 0.4873
tmin = 479347201, tmax = 479606401
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='17228', job_status='RUN', time_executed='2021-09-08 15:29:25.128309', time_epoch_executed='1631140165.13' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17228/ft1_4FGL_J1351.0+0029_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17228/ft1_4FGL_J1351.0+0029_daily_bin926.fits outfile=/scratch/kocevski/17228/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin926.fits ra=207.757 dec=0.4873 rad=12.0 tmin=479347201.0 tmax=479606401.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 3.55
user 3.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.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/17228/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin926.fits evtable="EVENTS" outfile="/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits" evtable="EVENTS" scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits sctable="SC_DATA" outfile=/scratch/kocevski/17228/ltcube_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.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/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits
.....................!
real 16.48
user 16.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/17228/ltcube_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits outfile=/scratch/kocevski/17228/expmap_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.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/17228/ltcube_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits
.....................!
real 192.48
user 186.88
sys 4.87

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

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits outfile=/scratch/kocevski/17228/cmap_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.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=207.757 yref=0.4873 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits outfile=/scratch/kocevski/17228/cmap_HighResolution_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.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=207.757 yref=0.4873 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17228/Model_4FGL_J1351.0+0029_daily_bin926.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/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits.....................!
real 45.59
user 44.03
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits', '/scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits', expMap='/scratch/kocevski/17228/expmap_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits', expCube='/scratch/kocevski/17228/ltcube_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17228/Model_4FGL_J1351.0+0029_daily_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17228/ft1_filtered_4FGL_J1351.0+0029_daily_bin926.fits
Spacecraft file(s): /scratch/kocevski/17228/ft2_4FGL_J1351.0+0029_daily_bin926.fits
Exposure map: /scratch/kocevski/17228/expmap_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits
Exposure cube: /scratch/kocevski/17228/ltcube_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17228/Model_4FGL_J1351.0+0029_daily_bin926.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) = 5517.10106068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.017       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7156       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1706       1.0000         .10000E-03   10000.    
    11 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.542       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85502       1.0000         .10000E-03   10000.    
    18 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.66       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4590       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5517.097     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2159 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.017        12.888       -.43808E-06   -.50375E-04
   2  norm          .10000E-03    6.2480       -.39016E-07** at limit **
   3  Prefactor     .10000E-03    10.278       -.64089E-06** at limit **
   4  Prefactor     .10000E-03    4.6959        .90880E-08** at limit **
   5  norm          1.9701        1.6330       -.12403E-06   -.49236E-03
   6  Prefactor     .10000E-03    16.370       -.57584E-06** at limit **
   7  norm          7.3463        19.345       -.10207E-05   -.20279E-04
   8  Prefactor     5.7154        3.7987        .19364E-07   -.75214E-04
   9  Prefactor     .10000E-03    8.9509       -.43547E-06** at limit **
  10  Prefactor     2.1700        4.7020       -.54474E-06   -.58477E-03
  11  norm          .10000E-03    3.6082        .30795E-06** at limit **
  12  Prefactor     .10000E-03    4.9704        .17724E-06** at limit **
  13  norm          .10000E-03    1.8049        .15452E-06** at limit **
  14  Prefactor     .10000E-03    10.257       -.58405E-06** at limit **
  15  norm          19.550        14.183       -.34536E-05   -.12846E-05
  16  norm          3.9808        10.130       -.10428E-05   -.17604E-03
  17  Prefactor     .81148        19.916       -.31152E-05    .30977E-04
  18  norm          .10000E-03    8.8696       -.82199E-06** at limit **
  19  Prefactor     121.71        100.62        .35053E-04    .16987E-04
  20  Normalizat    1.4590        .22148       -.10198E-05    .25140E-03
  21  Prefactor     .72979        .15354        .17086E-06    .10423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97009
  Prefactor  = 0.0001
  norm       = 7.34629
  Prefactor  = 5.71535
  Prefactor  = 0.0001
  Prefactor  = 2.17004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5498
  norm       = 3.98079
  Prefactor  = 0.811482
  norm       = 0.0001
  Prefactor  = 121.706
  Normalizat = 1.45904
  Prefactor  = 0.729787
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.097     FROM HESSE     STATUS=OK           317 CALLS     2476 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.017        12.900        .12661E-03   -1.5075    
   2  norm          .10000E-03    6.2499        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7103        .15719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9701        1.6247        .82459E-04   -1.5427    
   6  Prefactor     .10000E-03    16.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3463        19.354        .14802E-03   -1.5166    
   8  Prefactor     5.7154        3.7998        .11369E-03   -1.5230    
   9  Prefactor     .10000E-03    8.9629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1700        4.7001        .22907E-03   -1.5413    
  11  norm          .10000E-03    3.6244        .13778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9812        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8694        .19416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.550        14.212        .90603E-04   -1.4823    
  16  norm          3.9808        10.117        .20214E-03   -1.5309    
  17  Prefactor     .81148        165.65        .62380E-02   -1.5528    
  18  norm          .10000E-03    8.8764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     121.71        100.06        .18244E-03   -1.3497    
  20  Normalizat    1.4590        .26482        .25107E-03   -.78936    
  21  Prefactor     .72979        .18405        .23499E-03   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42925e-10
Minuit parameter uncertainties:
  1  12.9034
  2  1.7697e-06
  3  9.70448e-06
  4  2.79181e-06
  5  1.62473
  6  2.71841e-06
  7  19.3703
  8  3.79992
  9  5.21399e-06
  10  4.70089
  11  2.3208e-06
  12  2.1104e-06
  13  9.74144e-06
  14  4.47602e-06
  15  14.2145
  16  10.1215
  17  23.2522
  18  1.21562e-05
  19  100.195
  20  0.265073
  21  0.184199
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  5.214e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.298e-01  1.842e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.459e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17228/likelihoodResults_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5517.09737299
delta logL = -0.000530923919541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5517.09684206
delta logL = 8.05084710009e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4289       1.0000          .0000       10.000    
     3 'Normalizat'    1.4590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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.

 FCN=   5517.097     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10085E-03    205.12        .18142E-02** at limit **
   2  Index         2.3590        6.8401        .50000        .61582E-05
   3  Normalizat    1.4590        .26422E-01    .25107E-03    .25629E-04
   4  Prefactor     .72979        .18283E-01    .23499E-03    .13595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100845
  Index      = 2.359
  Normalizat = 1.45904
  Prefactor  = 0.729788
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.097     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10085E-03    812.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3590        5.4239        .50000       -.55648    
   3  Normalizat    1.4590        .58493E-01    .10043E-04   -.78936    
   4  Prefactor     .72979        .40466E-01    .93996E-05   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.09022e-08
Minuit parameter uncertainties:
  1  0.0531276
  2  2008.39
  3  0.058496
  4  0.0404675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17228': 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): 102
logL (Free Index) = 5517.09684198
delta logL = 8.01519490778e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.008e-04  5.313e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.359e+00  2.008e+03  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.298e-01  4.047e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.459e+00  5.850e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

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/17228/cmap_HighResolution_479347201_479606401_4FGL_J1351.0+0029_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-08 15:38:37.988045', job_id='17228', GAL2='0.73', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631140717.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='8.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='926' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 17228: <4FGL_J1351.0+0029_daily_bin926> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin926> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:36 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:26:24 2021
Terminated at Wed Sep  8 15:38:38 2021
Results reported at Wed Sep  8 15:38:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin926 207.757 0.4873 479347201 479606401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            782 sec.

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

