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


Performing analysis on: 4FGL_J2034.6+1154_daily_bin1056
RA = 308.65, Dec = 11.9035
tmin = 513043201, tmax = 513302401
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='39460', job_status='RUN', time_executed='2021-09-25 11:47:07.846590', time_epoch_executed='1632595627.85' WHERE source_name='4FGL J2034.6+1154' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39460/ft1_4FGL_J2034.6+1154_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39460/ft1_4FGL_J2034.6+1154_daily_bin1056.fits outfile=/scratch/kocevski/39460/ft1_filteredMKT_4FGL_J2034.6+1154_daily_bin1056.fits ra=308.65 dec=11.9035 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.35
user 6.06
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.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/39460/ft1_filteredMKT_4FGL_J2034.6+1154_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/39460/ltcube_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.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/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits
.....................!
real 13.18
user 12.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/39460/ltcube_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits outfile=/scratch/kocevski/39460/expmap_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.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/39460/ltcube_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits
.....................!
real 192.90
user 186.91
sys 5.40

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
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 225 point sources and 3 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 J2034.6+1154 @ 308.65 11.9035

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits outfile=/scratch/kocevski/39460/cmap_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.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=308.65 yref=11.9035 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits outfile=/scratch/kocevski/39460/cmap_HighResolution_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.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=308.65 yref=11.9035 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.61
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/39460/Model_4FGL_J2034.6+1154_daily_bin1056.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 G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits.....................!
real 151.11
user 149.24
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits', '/scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits', expMap='/scratch/kocevski/39460/expmap_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits', expCube='/scratch/kocevski/39460/ltcube_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39460/Model_4FGL_J2034.6+1154_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2034.6+1154'

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  5.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/39460/ft1_filtered_4FGL_J2034.6+1154_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/39460/ft2_4FGL_J2034.6+1154_daily_bin1056.fits
Exposure map: /scratch/kocevski/39460/expmap_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits
Exposure cube: /scratch/kocevski/39460/ltcube_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39460/Model_4FGL_J2034.6+1154_daily_bin1056.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) = 6172.06104476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.518       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.127       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15463E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11201E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9019       1.0000         .10000E-03   10000.    
    11 'norm      '    73.486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13924E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.416       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .56630       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6172.051     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1847 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.135        59.002       -.36140E-04   -.57344E-04
   2  Prefactor     .10000E-03    28.917       -.43741E-05** at limit **
   3  norm          .10000E-03    4.4301        .18498E-06** at limit **
   4  Prefactor     20.505        21.252       -.74297E-05   -.12253E-03
   5  norm          .10000E-03    8.0601       -.27383E-07** at limit **
   6  Prefactor     16.138        21.223       -.21217E-05   -.10823E-03
   7  Prefactor     .10000E-03    20.563        .67485E-05** at limit **
   8  norm          .10000E-03    .39688       -.38666E-06** at limit **
   9  Prefactor     .10000E-03    56.386        .14768E-04** at limit **
  10  norm          4.8930        13.459       -.56917E-05   -.18610E-03
  11  norm          73.463        95.551       -.22392E-04   -.22659E-04
  12  Prefactor     9.5681        22.632       -.14580E-04   -.27151E-04
  13  Prefactor     30.305        33.302       -.25611E-04   -.76410E-04
  14  Prefactor     .10000E-03    23.264       -.59592E-05** at limit **
  15  Prefactor     .10000E-03    11.819       -.39464E-05** at limit **
  16  Prefactor     .10000E-03    11.442        .31311E-05** at limit **
  17  Prefactor     60.384        49.042       -.31188E-04   -.13673E-04
  18  Normalizat    .56671        .39025        .41190E-04    .24149E-03
  19  Prefactor     1.0598        .10061       -.15641E-05   -.34269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.1347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5052
  norm       = 0.0001
  Prefactor  = 16.1382
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89302
  norm       = 73.4629
  Prefactor  = 9.56808
  Prefactor  = 30.3046
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.3842
  Normalizat = 0.566709
  Prefactor  = 1.0598
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.051     FROM HESSE     STATUS=OK           264 CALLS     2111 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.135        59.072        .54499E-04   -1.4235    
   2  Prefactor     .10000E-03    28.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4906        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.505        21.226        .88425E-04   -1.4802    
   5  norm          .10000E-03    8.0776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.138        20.613        .99735E-04   -1.4904    
   7  Prefactor     .10000E-03    20.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55515        .93687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8930        13.344        .18167E-03   -1.5266    
  11  norm          73.463        95.477        .23418E-03   -1.3992    
  12  Prefactor     9.5681        22.575        .12930E-03   -1.5089    
  13  Prefactor     30.305        33.278        .72749E-04   -1.4606    
  14  Prefactor     .10000E-03    23.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.384        49.013        .51619E-04   -1.4152    
  18  Normalizat    .56671        .38851        .65118E-03   -1.0942    
  19  Prefactor     1.0598        .10242        .13731E-03   -.90762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78544e-09
Minuit parameter uncertainties:
  1  59.1364
  2  3.65583e-06
  3  8.18177e-05
  4  21.2342
  5  3.01591e-05
  6  20.6221
  7  0.000145913
  8  1.88091e-05
  9  0.000130364
  10  13.3517
  11  95.677
  12  22.5947
  13  33.298
  14  0.000395556
  15  4.65307e-05
  16  1.82104e-05
  17  49.0457
  18  0.390393
  19  0.102435
Done.

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

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.000e-04  1.459e-04  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  1.060e+00  1.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  5.667e-01  3.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 308.650 11.903
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39460/likelihoodResults_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.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) = 6172.05103517
delta logL = -0.000231775592511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6172.05080363
delta logL = -2.31422745856e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6386       1.0000          .0000       10.000    
     3 'Normalizat'    .56671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6172.051     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1339.4        .90712E-02** at limit **
   2  Index         2.6521        5.6569        .50000       -.61320E-05
   3  Normalizat    .56669        .76343E-01    .14672        .41281E-04
   4  Prefactor     1.0598        .21632E-01    .39367E-01   -.33947E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65213
  Normalizat = 0.566693
  Prefactor  = 1.05981
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.051     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1949.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6521        8.1674        .50000       -.48881    
   3  Normalizat    .56669        .96639E-01    .65114E-03   -1.0942    
   4  Prefactor     1.0598        .27589E-01    .13731E-03   -.90762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.91158e-09
Minuit parameter uncertainties:
  1  0.00123852
  2  43.5218
  3  0.0966675
  4  0.0275895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39460': 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) = 6172.05080327
delta logL = 1.28311512526e-07

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.000e-04  1.239e-03  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  2.652e+00  4.352e+01  0.000e+00  1.000e+01 (-1.000e+00)
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  1.060e+00  2.759e-02  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  5.667e-01  9.667e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 308.650 11.903

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/39460/cmap_HighResolution_513043201_513302401_4FGL_J2034.6+1154_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-25 12:00:17.806166', job_id='39460', GAL2='1.06', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632596417.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1056' AND source_name='4FGL J2034.6+1154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:00:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 39460: <4FGL_J2034.6+1154_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2034.6+1154_daily_bin1056> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 11:45:23 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 11:46:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 11:46:55 2021
Terminated at Sat Sep 25 12:00:18 2021
Results reported at Sat Sep 25 12:00:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2034.6+1154_daily_bin1056 308.65 11.9035 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2034.6+1154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   785.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            895 sec.

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

