/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 6 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2035.4+1056_daily_bin385
RA = 308.852, Dec = 10.938
tmin = 339120001, tmax = 339379201
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='46360', job_status='RUN', time_executed='2021-09-25 12:12:12.463524', time_epoch_executed='1632597132.46' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46360

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46360/ft1_4FGL_J2035.4+1056_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46360/ft1_4FGL_J2035.4+1056_daily_bin385.fits outfile=/scratch/kocevski/46360/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin385.fits ra=308.852 dec=10.938 rad=12.0 tmin=339120001.0 tmax=339379201.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.22
user 4.95
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.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/46360/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.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.53
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/46360/ltcube_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.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/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits
.....................!
real 12.40
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/46360/ltcube_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits outfile=/scratch/kocevski/46360/expmap_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.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/46360/ltcube_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits
.....................!
real 156.60
user 151.90
sys 4.20

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 G42.8+0.6 in ROI with RadialDisk spatial model.
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 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 221 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 J2035.4+1056 @ 308.852 10.938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits outfile=/scratch/kocevski/46360/cmap_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.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.852 yref=10.938 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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits outfile=/scratch/kocevski/46360/cmap_HighResolution_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.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.852 yref=10.938 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46360/Model_4FGL_J2035.4+1056_daily_bin385.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/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits.....................!
real 188.39
user 185.71
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits', '/scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits', expMap='/scratch/kocevski/46360/expmap_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits', expCube='/scratch/kocevski/46360/ltcube_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46360/Model_4FGL_J2035.4+1056_daily_bin385.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2035.4+1056'

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.431e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.315e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
482         beta:  1.236e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/46360/ft1_filtered_4FGL_J2035.4+1056_daily_bin385.fits
Spacecraft file(s): /scratch/kocevski/46360/ft2_4FGL_J2035.4+1056_daily_bin385.fits
Exposure map: /scratch/kocevski/46360/expmap_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits
Exposure cube: /scratch/kocevski/46360/ltcube_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46360/Model_4FGL_J2035.4+1056_daily_bin385.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) = 9591.81219451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .87312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2222       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.561       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.217       1.0000         .10000E-03   10000.    
     8 'norm      '    .73772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    144.83       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.308       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24468E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.947       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9591.778     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1946 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.085        39.153        .17414E-05    .21107E-03
   2  Prefactor     .10000E-03    14.503        .19358E-06** at limit **
   3  norm          .84064        3.0721       -.10187E-05    .10813E-02
   4  Prefactor     8.2188        11.003        .10593E-06   -.19671E-04
   5  norm          .10000E-03    2.7890       -.11621E-07** at limit **
   6  Prefactor     20.562        19.149       -.62894E-06   -.12569E-03
   7  Prefactor     10.241        28.015       -.26200E-05   -.14128E-04
   8  norm          .73572        .90162        .10537E-05    .84528E-03
   9  Prefactor     144.86        68.807       -.52993E-06   -.47280E-04
  10  norm          .10000E-03    5.2366        .45236E-06** at limit **
  11  norm          .10000E-03    31.619       -.88915E-06** at limit **
  12  Prefactor     16.475        19.900        .30839E-06   -.79349E-05
  13  Prefactor     .10000E-03    12.472       -.65876E-07** at limit **
  14  Prefactor     28.299        17.481        .10932E-06   -.50672E-04
  15  Prefactor     .10000E-03    57.141       -.18147E-05** at limit **
  16  Prefactor     28.939        29.273       -.41057E-06    .46304E-04
  17  Prefactor     .10000E-03    42.261        .23660E-05** at limit **
  18  Normalizat    1.1624        .28780       -.42527E-06    .43382E-04
  19  Prefactor     .88864        .75875E-01   -.37313E-06    .52881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.085
  Prefactor  = 0.0001
  norm       = 0.840643
  Prefactor  = 8.21884
  norm       = 0.0001
  Prefactor  = 20.5619
  Prefactor  = 10.2411
  norm       = 0.735724
  Prefactor  = 144.857
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.4748
  Prefactor  = 0.0001
  Prefactor  = 28.2986
  Prefactor  = 0.000100001
  Prefactor  = 28.9391
  Prefactor  = 0.0001
  Normalizat = 1.16235
  Prefactor  = 0.888641
 **********
 **   18 **HESSE 
 **********

 FCN=   9591.778     FROM HESSE     STATUS=OK           272 CALLS     2218 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.085        39.550        .64982E-04   -1.4473    
   2  Prefactor     .10000E-03    14.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .84064        9.6307        .28713E-02   -1.5525    
   4  Prefactor     8.2188        10.999        .13981E-03   -1.5135    
   5  norm          .10000E-03    2.7908        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.562        19.064        .88330E-04   -1.4801    
   7  Prefactor     10.241        27.777        .12536E-03   -1.5068    
   8  norm          .73572        .91017        .91065E-03   -1.5536    
   9  Prefactor     144.86        68.832        .16741E-03   -1.3295    
  10  norm          .10000E-03    5.2428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    31.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.475        19.925        .98713E-04   -1.4896    
  13  Prefactor     .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.299        17.556        .75298E-04   -1.4644    
  15  Prefactor     .10000E-03    57.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.939        29.117        .74465E-04   -1.4632    
  17  Prefactor     .10000E-03    42.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1624        .32729        .47478E-03   -.87774    
  19  Prefactor     .88864        .86568E-01    .14557E-03   -.96539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96508e-09
Minuit parameter uncertainties:
  1  39.5775
  2  5.91397e-07
  3  5.6915
  4  11.0016
  5  1.37193e-06
  6  19.0699
  7  27.812
  8  0.910183
  9  68.8703
  10  2.8278e-05
  11  3.93511e-05
  12  19.9335
  13  1.039e-05
  14  17.5592
  15  0.000340533
  16  29.1312
  17  2.95805e-05
  18  0.327866
  19  0.0865813
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  7.357e-01  9.102e-01  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.315e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
482         beta:  1.236e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
780    Prefactor:  8.886e-01  8.658e-02  0.000e+00  1.000e+01 ( 1.000e+00)
781        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
782        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
776   Normalization:  1.162e+00  3.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 308.852 10.938
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 2.03e-05

TS (Fixed Index): 1.36
Ra Dec: 308.852 10.938
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46360/likelihoodResults_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.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) = 9591.52988593
delta logL = 0.248233255566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9591.51056112
delta logL = 0.267558068343

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9591.511     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58096        7.2194        .11601E-01    .15980E-02
   2  alpha         2.9195        3.9320        .41908        .71433E-04
   3  Normalizat    1.1289        .62919E-01    .10838        .30573E-04
   4  Prefactor     .89354        .17116E-01    .32851E-01   -.14304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58096
  alpha      = 2.91952
  Normalizat = 1.12887
  Prefactor  = 0.893542
 **********
 **   18 **HESSE 
 **********

 FCN=   9591.511     FROM HESSE     STATUS=OK            35 CALLS      254 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58096        .83648        .63106E-03   -1.5556    
   2  alpha         2.9195        .99011        .17938E-01    .16861    
   3  Normalizat    1.1289        .30625        .48044E-03   -.88830    
   4  Prefactor     .89354        .82927E-01    .14516E-03   -.96367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86605e-09
Minuit parameter uncertainties:
  1  0.836499
  2  1.01888
  3  0.306731
  4  0.0829386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46360': 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) = 9591.51055746
delta logL = 0.26756172257

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  5.810e-01  8.365e-01  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.920e+00  1.019e+00  0.000e+00  5.000e+00 ( 1.000e+00)
482         beta:  1.236e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
780    Prefactor:  8.935e-01  8.294e-02  0.000e+00  1.000e+01 ( 1.000e+00)
781        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
782        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
776   Normalization:  1.129e+00  3.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 308.852 10.938
Photon Index (Free Index): 2.92 +/- 1.02
Photon Flux (Free Index): 8.06e-08 +/- 7.32e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.61e-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/46360/cmap_HighResolution_339120001_339379201_4FGL_J2035.4+1056_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.81e-05', photon_flux_error='5.70e-08', dlogl='2.68e-01', energy_flux='1.64e-05', photon_flux2='8.06e-08', job_status='DONE', time_completed='2021-09-25 12:26:47.739922', photon_index_error2='1.02', photon_index2='2.92', ts='1.36', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.61e-05', EG='1.16', time_epoch_completed='1632598007.74', return_code='0', job_id='46360', GAL2='0.89', EG2='1.13', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='7.32e-08', ts2='1.93', photon_index='2.31' WHERE bin_id='385' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 46360: <4FGL_J2035.4+1056_daily_bin385> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin385> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 12:10:40 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:11:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 12:11:54 2021
Terminated at Sat Sep 25 12:26:48 2021
Results reported at Sat Sep 25 12:26:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin385 308.852 10.938 339120001 339379201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2035.4+1056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             369.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            968 sec.

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

