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


Performing analysis on: 4FGL_J2034.6+1154_daily_bin727
RA = 308.65, Dec = 11.9035
tmin = 427766401, tmax = 428025601
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='36709', job_status='RUN', time_executed='2021-09-25 11:35:49.404457', time_epoch_executed='1632594949.4' WHERE source_name='4FGL J2034.6+1154' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36709/ft1_4FGL_J2034.6+1154_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36709/ft1_4FGL_J2034.6+1154_daily_bin727.fits outfile=/scratch/kocevski/36709/ft1_filteredMKT_4FGL_J2034.6+1154_daily_bin727.fits ra=308.65 dec=11.9035 rad=12.0 tmin=427766401.0 tmax=428025601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 5.16
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36709/ft1_filtered_4FGL_J2034.6+1154_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/36709/ltcube_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.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/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits
.....................!
real 13.78
user 13.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36709/ft1_filtered_4FGL_J2034.6+1154_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/36709/ltcube_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.fits outfile=/scratch/kocevski/36709/expmap_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.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/36709/ltcube_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.fits
.....................!
real 190.69
user 185.63
sys 4.48

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/36709/ft1_filtered_4FGL_J2034.6+1154_daily_bin727.fits scfile=/scratch/kocevski/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits outfile=/scratch/kocevski/36709/cmap_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36709/ft1_filtered_4FGL_J2034.6+1154_daily_bin727.fits scfile=/scratch/kocevski/36709/ft2_4FGL_J2034.6+1154_daily_bin727.fits outfile=/scratch/kocevski/36709/cmap_HighResolution_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.363       1.0000         .10000E-03   10000.    
     8 'norm      '    .64276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13546E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    64.147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64693       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89367       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=   7422.141     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2164 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.370       -.19910E-05** at limit **
   2  Prefactor     .10000E-03    15.441       -.82009E-05** at limit **
   3  norm          2.3626        1.9235        .47887E-06   -.20146E-02
   4  Prefactor     .10000E-03    7.6052        .28553E-07** at limit **
   5  norm          .10000E-03    2.3722        .81959E-10** at limit **
   6  Prefactor     .10000E-03    16.574        .60883E-05** at limit **
   7  Prefactor     15.342        21.611        .90741E-05   -.89591E-04
   8  norm          .64347        1.0292       -.14261E-05   -.29118E-02
   9  Prefactor     .10009E-03    20.984       -.10198E-05** at limit **
  10  norm          .10000E-03    3.5043       -.37358E-08** at limit **
  11  norm          64.138        74.719       -.72870E-05   -.76464E-05
  12  Prefactor     9.7657        14.034        .88808E-06    .25899E-04
  13  Prefactor     6.5661        17.855       -.73596E-06   -.17694E-05
  14  Prefactor     5.9886        17.468       -.78766E-06    .55491E-05
  15  Prefactor     .10000E-03    40.812        .12629E-05** at limit **
  16  Prefactor     .10000E-03    13.208        .14665E-05** at limit **
  17  Prefactor     .10000E-03    10.071       -.11210E-06** at limit **
  18  Normalizat    .64693        .30811       -.17093E-05    .65519E-04
  19  Prefactor     .89366        .79012E-01    .24605E-06    .17827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36256
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.342
  norm       = 0.643469
  Prefactor  = 0.00010009
  norm       = 0.0001
  norm       = 64.1375
  Prefactor  = 9.7657
  Prefactor  = 6.56605
  Prefactor  = 5.98862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.646925
  Prefactor  = 0.893661
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.141     FROM HESSE     STATUS=OK           270 CALLS     2434 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3626        5.7948        .13331E-02   -1.5401    
   4  Prefactor     .10000E-03    7.6407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3724        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.342        21.293        .10218E-03   -1.4924    
   8  norm          .64347        .96566        .84247E-03   -1.5548    
   9  Prefactor     .10009E-03    188.14        .76209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5148        .15748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          64.138        74.509        .50105E-04   -1.4105    
  12  Prefactor     9.7657        14.008        .12823E-03   -1.5083    
  13  Prefactor     6.5661        17.844        .15664E-03   -1.5195    
  14  Prefactor     5.9886        17.435        .16413E-03   -1.5218    
  15  Prefactor     .10000E-03    41.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .64693        .31997        .55084E-03   -1.0603    
  19  Prefactor     .89366        .85041E-01    .12746E-03   -.96363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27846e-09
Minuit parameter uncertainties:
  1  2.12204e-05
  2  4.31352e-05
  3  5.79616
  4  2.84464e-06
  5  2.0957e-08
  6  0.000455795
  7  21.3033
  8  0.965688
  9  0.00825874
  10  7.14577e-08
  11  74.6179
  12  14.0124
  13  17.8587
  14  17.4494
  15  3.01843e-05
  16  9.42798e-06
  17  2.11303e-06
  18  0.320897
  19  0.0850533
Done.

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

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.534e+01  2.130e+01  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:  8.937e-01  8.505e-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:  6.469e-01  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 308.650 11.903
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 8.06e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 2.24e-05

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

Saving results to:
/scratch/kocevski/36709/likelihoodResults_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.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) = 7421.96314325
delta logL = 0.178178749366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.9456266
delta logL = 0.195695398543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6190       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0617       1.0000          .0000       10.000    
     3 'Normalizat'    .62547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89693       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=   7421.946     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      261 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6093        190.21        .36321E-02    .18466E-03
   2  Index         3.0624        3.5028        .12126        .17309E-03
   3  Normalizat    .62535        .99963E-01    .12611        .48440E-04
   4  Prefactor     .89694        .25839E-01    .28790E-01   -.11931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.60933
  Index      = 3.06236
  Normalizat = 0.625353
  Prefactor  = 0.896945
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.946     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6093        21.006        .14529E-03   -1.5156    
   2  Index         3.0624        1.3227        .65864E-02   -.39795    
   3  Normalizat    .62535        .30521        .55951E-03   -1.0692    
   4  Prefactor     .89694        .81747E-01    .12722E-03   -.96248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42597e-11
Minuit parameter uncertainties:
  1  21.0261
  2  1.34156
  3  0.306037
  4  0.0817586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36709': 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) = 7421.94562623
delta logL = 0.195695767134

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  7.609e+00  2.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  3.062e+00  1.342e+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:  8.969e-01  8.176e-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:  6.254e-01  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 308.650 11.903
Photon Index (Free Index): 3.06 +/- 1.34
Photon Flux (Free Index): 7.97e-08 +/- 7.56e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/36709/cmap_HighResolution_427766401_428025601_4FGL_J2034.6+1154_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.55e-05', photon_flux_error='8.06e-08', dlogl='1.96e-01', energy_flux='1.62e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-25 11:51:10.810407', photon_index_error2='1.34', photon_index2='3.06', ts='1.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.64e-05', EG='0.65', time_epoch_completed='1632595870.81', return_code='0', job_id='36709', GAL2='0.90', EG2='0.63', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='7.56e-08', ts2='1.48', photon_index='2.54' WHERE bin_id='727' AND source_name='4FGL J2034.6+1154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 11:51:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 36709: <4FGL_J2034.6+1154_daily_bin727> in cluster <slac> Done

Job <4FGL_J2034.6+1154_daily_bin727> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 11:35:18 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 11:35:34 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:35:34 2021
Terminated at Sat Sep 25 11:51:12 2021
Results reported at Sat Sep 25 11:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2034.6+1154_daily_bin727 308.65 11.9035 427766401 428025601 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 :                                   919.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             367.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            954 sec.

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

