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


Performing analysis on: 4FGL_J2034.6+1154_monthly_bin113
RA = 308.65, Dec = 11.9035
tmin = 529891201, tmax = 532483201
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='872430', job_status='RUN', time_executed='2021-11-06 07:10:15.332138', time_epoch_executed='1636207815.33' WHERE source_name='4FGL J2034.6+1154' and cadence='monthly' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872430

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872430/ft1_4FGL_J2034.6+1154_monthly_bin113.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872430/ft1_4FGL_J2034.6+1154_monthly_bin113.fits outfile=/scratch/kocevski/872430/ft1_filteredMKT_4FGL_J2034.6+1154_monthly_bin113.fits ra=308.65 dec=11.9035 rad=12.0 tmin=529891201.0 tmax=532483201.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 31.73
user 30.87
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/872430/ltcube_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.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/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits
.....................!
real 113.38
user 112.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/872430/ltcube_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits outfile=/scratch/kocevski/872430/expmap_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.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/872430/ltcube_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits
.....................!
real 192.31
user 186.92
sys 4.75

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/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits scfile=/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits outfile=/scratch/kocevski/872430/cmap_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.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.79
user 0.62
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits scfile=/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits outfile=/scratch/kocevski/872430/cmap_HighResolution_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.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.79
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872430/Model_4FGL_J2034.6+1154_monthly_bin113.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/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits.....................!
real 2743.41
user 2733.77
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits', '/scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits', expMap='/scratch/kocevski/872430/expmap_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits', expCube='/scratch/kocevski/872430/ltcube_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/872430/Model_4FGL_J2034.6+1154_monthly_bin113.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/872430/ft1_filtered_4FGL_J2034.6+1154_monthly_bin113.fits
Spacecraft file(s): /scratch/kocevski/872430/ft2_4FGL_J2034.6+1154_monthly_bin113.fits
Exposure map: /scratch/kocevski/872430/expmap_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits
Exposure cube: /scratch/kocevski/872430/ltcube_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/872430/Model_4FGL_J2034.6+1154_monthly_bin113.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) = 120162.701968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.6834       1.0000         .10000E-03   10000.    
     3 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1500       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0631       1.0000         .10000E-03   10000.    
     8 'norm      '    .22670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29205E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.323       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40765E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21237E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95879       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   120161.9     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1716 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2058         .0000    ** at limit **
   2  Prefactor     2.7106        4.2823         .0000       -.54265E-02
   3  norm          .10000E-03    .22888         .0000    ** at limit **
   4  Prefactor     .10000E-03    1.6098         .0000    ** at limit **
   5  norm          .10000E-03    .29851         .0000    ** at limit **
   6  Prefactor     1.1496        3.0823         .0000        .14362    
   7  Prefactor     7.0663        5.7001         .0000        .36313E-02
   8  norm          .22671        .18793         .0000        .23658E-01
   9  Prefactor     .10001E-03    6.0537         .0000    ** at limit **
  10  norm          19.319        3.1068         .0000       -.16648E-02
  11  norm          3.0303        11.789         .0000        .12394E-02
  12  Prefactor     .14762        .97574         .0000        .41416E-02
  13  Prefactor     .10000E-03    2.5006         .0000    ** at limit **
  14  Prefactor     .10005E-03    .91714         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.1451         .0000    ** at limit **
  16  Prefactor     .10000E-03    .97881         .0000    ** at limit **
  17  Prefactor     .10000E-03    2.0300         .0000    ** at limit **
  18  Normalizat    1.2859        .82911E-01     .0000        .36199E-03
  19  Prefactor     .95881        .21026E-01     .0000       -.37283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.71057
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.14963
  Prefactor  = 7.06629
  norm       = 0.226711
  Prefactor  = 0.000100009
  norm       = 19.3188
  norm       = 3.03031
  Prefactor  = 0.147621
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28586
  Prefactor  = 0.958812
 **********
 **   18 **HESSE 
 **********

 FCN=   120161.9     FROM HESSE     STATUS=OK           290 CALLS     2006 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7106        4.2683        .24874E-03   -1.5379    
   3  norm          .10000E-03    1.3737        .31973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .96857        .36941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1496        2.8837        .21582E-02   -1.5494    
   7  Prefactor     7.0663        5.1628        .15094E-03   -1.5176    
   8  norm          .22671        .17161        .11011E-03   -1.5613    
   9  Prefactor     .10001E-03    6.2207        .42802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.319        3.1017        .91116E-04   -1.4829    
  11  norm          3.0303        11.775        .22990E-03   -1.5360    
  12  Prefactor     .14762        1.0904        .11057       -1.5631    
  13  Prefactor     .10000E-03    2.5385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    .96315        .97724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .98087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2859        .93239E-01    .48176E-03   -.83989    
  19  Prefactor     .95881        .23602E-01    .14443E-03   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51171e-08
Minuit parameter uncertainties:
  1  0.000113167
  2  4.26875
  3  7.92039e-06
  4  5.18826e-06
  5  2.69105e-06
  6  2.88402
  7  5.16314
  8  0.171609
  9  0.000481288
  10  3.10177
  11  11.7841
  12  0.802165
  13  2.36015e-05
  14  0.00044994
  15  1.48911e-05
  16  1.628e-06
  17  1.32464e-05
  18  0.0932509
  19  0.0236021
Done.

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

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  7.066e+00  5.163e+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

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  9.588e-01  2.360e-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:  1.286e+00  9.325e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.56
Ra Dec: 308.650 11.903
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 7.44e-06 +/- 5.44e-06

TS (Fixed Index): 3.56
Ra Dec: 308.650 11.903
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/872430/likelihoodResults_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.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) = 120161.566749
delta logL = 0.379858301807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 120161.56254
delta logL = 0.384067126288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9424       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2691       1.0000          .0000       10.000    
     3 'Normalizat'    1.2606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96283       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   120161.6     FROM MIGRAD    STATUS=FAILED       104 CALLS      362 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9235        33.173        .11839E-02   -.98641E-03
   2  Index         3.2722        3.3243        .84966E-02    .42116E-02
   3  Normalizat    1.2606        .76025E-01    .48586E-03   -.21228E-03
   4  Prefactor     .96284        .17884E-01    .14416E-03   -.34699E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   120161.6     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      447 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9235        33.173        .80116E-04   -.98641E-03
   2  Index         3.2722        3.3243        .53021E-03    .42116E-02
   3  Normalizat    1.2606        .76025E-01    .14093E-03   -.21228E-03
   4  Prefactor     .96284        .17884E-01    .37282E-04   -.34699E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   120161.6     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      479 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9234        34.275        .47355E-04   -.13098E-02
   2  Index         3.2722        3.3893        .16993E-02   -.17962E-03
   3  Normalizat    1.2606        .11467        .19434E-04   -.17783E-03
   4  Prefactor     .96284        .27424E-01    .57664E-05   -.41008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9234
  Index      = 3.27217
  Normalizat = 1.26059
  Prefactor  = 0.96284
 **********
 **   18 **HESSE 
 **********

 FCN=   120161.6     FROM HESSE     STATUS=OK            23 CALLS      502 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9234        7.0104        .18942E-05   -1.5366    
   2  Index         3.2722        1.3073        .67972E-04   -.35284    
   3  Normalizat    1.2606        .94703E-01    .38869E-05   -.84751    
   4  Prefactor     .96284        .24071E-01    .11533E-05   -.93979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18482e-10
Minuit parameter uncertainties:
  1  7.01238
  2  1.32488
  3  0.094716
  4  0.024071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872430': 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) = 120161.562535
delta logL = 0.384072326895

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  2.923e+00  7.012e+00  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  3.272e+00  1.325e+00  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:  9.628e-01  2.407e-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:  1.261e+00  9.472e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 308.650 11.903
Photon Index (Free Index): 3.27 +/- 1.32
Photon Flux (Free Index): 4.71e-08 +/- 3.04e-08
Energy Flux (Free Index): 8.39e-06 +/- 4.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/872430/cmap_HighResolution_529891201_532483201_4FGL_J2034.6+1154_monthly_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='8.39e-06', photon_flux_error='1.95e-08', dlogl='3.84e-01', energy_flux='7.44e-06', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-11-06 09:58:39.721622', photon_index_error2='1.32', photon_index2='3.27', ts='3.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.63e-08', energy_flux_error2='4.33e-06', EG='1.29', time_epoch_completed='1636217919.72', return_code='0', job_id='872430', GAL2='0.96', EG2='1.26', return_code2='0', energy_flux_error='5.44e-06', photon_flux_error2='3.04e-08', ts2='4.53', photon_index='2.54' WHERE bin_id='113' AND source_name='4FGL J2034.6+1154' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Nov  6 09:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 872430: <4FGL_J2034.6+1154_monthly_bin113> in cluster <slac> Done

Job <4FGL_J2034.6+1154_monthly_bin113> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Nov  6 07:05:25 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  6 07:07:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  6 07:07:20 2021
Terminated at Sat Nov  6 09:58:41 2021
Results reported at Sat Nov  6 09:58:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2034.6+1154_monthly_bin113 308.65 11.9035 529891201 532483201 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 :                                   9748.00 sec.
    Max Memory :                                 642 MB
    Average Memory :                             509.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10292 sec.
    Turnaround time :                            10396 sec.

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

