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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin990
RA = 308.852, Dec = 10.938
tmin = 495936001, tmax = 496195201
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='51666', job_status='RUN', time_executed='2021-09-25 12:30:38.971964', time_epoch_executed='1632598238.97' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51666/ft1_4FGL_J2035.4+1056_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51666/ft1_4FGL_J2035.4+1056_daily_bin990.fits outfile=/scratch/kocevski/51666/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin990.fits ra=308.852 dec=10.938 rad=12.0 tmin=495936001.0 tmax=496195201.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 2.92
user 2.69
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.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/51666/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.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.45
user 0.27
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/51666/ltcube_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits outfile=/scratch/kocevski/51666/expmap_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.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/51666/ltcube_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits
.....................!
real 156.35
user 150.69
sys 4.97

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/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.fits scfile=/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits outfile=/scratch/kocevski/51666/cmap_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.fits scfile=/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits outfile=/scratch/kocevski/51666/cmap_HighResolution_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.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.49
user 0.31
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.fits', '/scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits', expMap='/scratch/kocevski/51666/expmap_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits', expCube='/scratch/kocevski/51666/ltcube_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/51666/Model_4FGL_J2035.4+1056_daily_bin990.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/51666/ft1_filtered_4FGL_J2035.4+1056_daily_bin990.fits
Spacecraft file(s): /scratch/kocevski/51666/ft2_4FGL_J2035.4+1056_daily_bin990.fits
Exposure map: /scratch/kocevski/51666/expmap_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits
Exposure cube: /scratch/kocevski/51666/ltcube_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/51666/Model_4FGL_J2035.4+1056_daily_bin990.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) = 10069.8247934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.259       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74334       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.926       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.100       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29489E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3431       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83471       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=   10069.82     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1823 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.619       -.92654E-05** at limit **
   2  Prefactor     .10000E-03    27.081       -.24418E-04** at limit **
   3  norm          .10000E-03    .97434        .37205E-07** at limit **
   4  Prefactor     .10000E-03    10.694       -.29366E-06** at limit **
   5  norm          .10000E-03    5.9001       -.40702E-07** at limit **
   6  Prefactor     10.263        9.4888       -.11946E-05   -.30130E-04
   7  Prefactor     .10000E-03    8.1758        .95612E-07** at limit **
   8  norm          .74350        .57449        .12426E-07   -.40152E-03
   9  Prefactor     .10000E-03    22.842        .11656E-04** at limit **
  10  norm          16.928        8.5530       -.49047E-06   -.64930E-04
  11  norm          .10000E-03    37.176        .20526E-04** at limit **
  12  Prefactor     7.3093        15.430       -.15820E-05   -.93498E-04
  13  Prefactor     18.198        15.931       -.38386E-06   -.63237E-05
  14  Prefactor     .10000E-03    4.9322       -.10757E-06** at limit **
  15  Prefactor     16.076        23.816       -.10801E-04   -.17357E-03
  16  Prefactor     .10003E-03    63.274        .12411E-04** at limit **
  17  Prefactor     19.119        19.737        .46435E-06   -.21804E-05
  18  Normalizat    1.3430        .25992        .30632E-05   -.11161E-03
  19  Prefactor     .83476        .68566E-01   -.28450E-06    .27578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2629
  Prefactor  = 0.0001
  norm       = 0.743503
  Prefactor  = 0.0001
  norm       = 16.9278
  norm       = 0.0001
  Prefactor  = 7.30925
  Prefactor  = 18.1977
  Prefactor  = 0.0001
  Prefactor  = 16.076
  Prefactor  = 0.000100028
  Prefactor  = 19.1188
  Normalizat = 1.34296
  Prefactor  = 0.834759
 **********
 **   18 **HESSE 
 **********

 FCN=   10069.82     FROM HESSE     STATUS=OK           262 CALLS     2085 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .97734        .96725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.263        9.4628        .12510E-03   -1.5067    
   7  Prefactor     .10000E-03    8.1988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .74350        .57214        .63291E-04   -1.5536    
   9  Prefactor     .10000E-03    22.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.928        8.5573        .97351E-04   -1.4885    
  11  norm          .10000E-03    37.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3093        15.469        .14839E-03   -1.5167    
  13  Prefactor     18.198        15.938        .93890E-04   -1.4855    
  14  Prefactor     .10000E-03    4.9555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.076        24.071        .99819E-04   -1.4906    
  16  Prefactor     .10003E-03    65.224        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.119        19.748        .91603E-04   -1.4833    
  18  Normalizat    1.3430        .29820        .42296E-03   -.82293    
  19  Prefactor     .83476        .78943E-01    .14430E-03   -.98460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73706e-10
Minuit parameter uncertainties:
  1  7.13045e-05
  2  3.67914e-05
  3  4.34503e-07
  4  1.89532e-05
  5  3.9775e-06
  6  9.46415
  7  6.89555e-06
  8  0.572144
  9  1.96247e-06
  10  8.55792
  11  9.432e-06
  12  15.4779
  13  15.9419
  14  9.6941e-07
  15  24.0854
  16  0.00269703
  17  19.7545
  18  0.298587
  19  0.0789539
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  7.435e-01  5.721e-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.348e-01  7.895e-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.343e+00  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 308.852 10.938
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.27e-05

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) = 10069.4532335
delta logL = 0.367209008757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10069.4528838
delta logL = 0.367558755159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49487       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4394       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82971       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=   10069.45     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      221 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49486        .41418        .11250E-01    .45959E-03
   2  alpha         1.4394        .53812        .47231       -.81183E-04
   3  Normalizat    1.3817        .24527        .94384E-01    .37421E-04
   4  Prefactor     .82970        .68007E-01    .32755E-01   -.31867E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.494864
  alpha      = 1.43936
  Normalizat = 1.38168
  Prefactor  = 0.829704
 **********
 **   18 **HESSE 
 **********

 FCN=   10069.45     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49486        .55740        .56998E-03   -1.5567    
   2  alpha         1.4394        .79433        .23191E-01   -.43814    
   3  Normalizat    1.3817        .27986        .41806E-03   -.81160    
   4  Prefactor     .82970        .77866E-01    .14473E-03   -.98643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63694e-11
Minuit parameter uncertainties:
  1  0.55741
  2  0.811599
  3  0.28017
  4  0.0778762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51666': 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) = 10069.4528838
delta logL = 0.367558755281

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  4.949e-01  5.574e-01  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  1.439e+00  8.116e-01  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.297e-01  7.788e-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.382e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 308.852 10.938
Photon Index (Free Index): 1.44 +/- 0.81
Photon Flux (Free Index): 1.51e-08 +/- 1.99e-08
Energy Flux (Free Index): 2.35e-05 +/- 2.86e-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/51666/cmap_HighResolution_495936001_496195201_4FGL_J2035.4+1056_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='2.35e-05', photon_flux_error='3.58e-08', dlogl='3.68e-01', energy_flux='1.66e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-25 12:43:41.601589', photon_index_error2='0.81', photon_index2='1.44', ts='5.18', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.34', time_epoch_completed='1632599021.6', return_code='0', job_id='51666', GAL2='0.83', EG2='1.38', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='1.99e-08', ts2='5.92', photon_index='2.31' WHERE bin_id='990' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 51666: <4FGL_J2035.4+1056_daily_bin990> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin990> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 12:30:20 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:30:27 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:30:27 2021
Terminated at Sat Sep 25 12:43:42 2021
Results reported at Sat Sep 25 12:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin990 308.852 10.938 495936001 496195201 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 :                                   779.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             401.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            802 sec.

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

