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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin559
RA = 308.852, Dec = 10.938
tmin = 384220801, tmax = 384480001
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='47848', job_status='RUN', time_executed='2021-09-25 12:19:34.188968', time_epoch_executed='1632597574.19' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47848/ft1_4FGL_J2035.4+1056_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47848/ft1_4FGL_J2035.4+1056_daily_bin559.fits outfile=/scratch/kocevski/47848/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin559.fits ra=308.852 dec=10.938 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.79
user 13.29
sys 0.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.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/47848/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/47848/ft1_filtered_4FGL_J2035.4+1056_daily_bin559.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47848/ft1_filtered_4FGL_J2035.4+1056_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/47848/ltcube_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.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/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits
.....................!
real 12.22
user 11.62
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47848/ft1_filtered_4FGL_J2035.4+1056_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/47848/ltcube_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.fits outfile=/scratch/kocevski/47848/expmap_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.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/47848/ltcube_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.fits
.....................!
real 191.93
user 185.81
sys 5.21

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/47848/ft1_filtered_4FGL_J2035.4+1056_daily_bin559.fits scfile=/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits outfile=/scratch/kocevski/47848/cmap_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47848/ft1_filtered_4FGL_J2035.4+1056_daily_bin559.fits scfile=/scratch/kocevski/47848/ft2_4FGL_J2035.4+1056_daily_bin559.fits outfile=/scratch/kocevski/47848/cmap_HighResolution_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12499E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.413       1.0000         .10000E-03   10000.    
     8 'norm      '    .85457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11331E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.509       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0951       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=   2226.245     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1887 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.206        .57624E-05** at limit **
   2  Prefactor     .10000E-03    124.40        .95229E-05** at limit **
   3  norm          .10000E-03    3.2343        .86015E-08** at limit **
   4  Prefactor     .10000E-03    24.589        .16365E-05** at limit **
   5  norm          .10000E-03    18.163        .10370E-06** at limit **
   6  Prefactor     .10000E-03    93.051       -.86600E-06** at limit **
   7  Prefactor     55.443        95.812       -.29950E-04   -.17709E-04
   8  norm          .85638        6.6456        .11724E-04   -.22410E-03
   9  Prefactor     .10000E-03    60.462       -.60226E-05** at limit **
  10  norm          .10000E-03    8.4198       -.70435E-07** at limit **
  11  norm          .10000E-03    420.90       -.42453E-04** at limit **
  12  Prefactor     .10000E-03    22.114       -.25318E-06** at limit **
  13  Prefactor     70.511        52.277       -.35784E-07   -.14051E-03
  14  Prefactor     46.279        37.405       -.26691E-06   -.18455E-03
  15  Prefactor     .10000E-03    213.78        .12545E-04** at limit **
  16  Prefactor     .10000E-03    31.905       -.26413E-05** at limit **
  17  Prefactor     .10000E-03    22.103       -.44279E-06** at limit **
  18  Normalizat    .10000E-01    .50843        .23105E-04** at limit **
  19  Prefactor     1.0952        .11199       -.22996E-05   -.77011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.4432
  norm       = 0.856384
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 70.5112
  Prefactor  = 46.279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.09524
 **********
 **   18 **HESSE 
 **********

 FCN=   2226.245     FROM HESSE     STATUS=OK           256 CALLS     2143 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    124.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2352        .82880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.443        93.243        .53886E-04   -1.4217    
   8  norm          .85638        6.0334        .12472E-03   -1.5523    
   9  Prefactor     .10000E-03    60.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.4217        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    420.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.511        51.994        .47806E-04   -1.4027    
  14  Prefactor     46.279        37.061        .58946E-04   -1.4346    
  15  Prefactor     .10000E-03    215.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .94098        .16259E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0952        .95964E-01    .65967E-03   -.89619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00531e-10
Minuit parameter uncertainties:
  1  1.39674e-05
  2  2.74665e-05
  3  8.41323e-07
  4  2.70091e-06
  5  2.05762e-05
  6  0.000363281
  7  93.4898
  8  4.54656
  9  3.01644e-05
  10  2.83669e-06
  11  0.00102334
  12  2.92726e-05
  13  52.0274
  14  37.0797
  15  0.000616882
  16  1.93413e-05
  17  6.53284e-07
  18  2.19366e-05
  19  0.095979
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  8.564e-01  4.547e+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

GAL_V02
   Spectrum: PowerLaw
780    Prefactor:  1.095e+00  9.598e-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.000e-02  2.194e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 308.852 10.938
Photon Flux Upper Limit: 4.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47848/likelihoodResults_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.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) = 2226.2398423
delta logL = 0.00484302904442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2226.23973896
delta logL = 0.00494636662734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83303       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4537       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0946       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2226.240     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      262 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83277        2.5444        .11767E-03    .10536E-03
   2  alpha         2.4533        1.3539        .21156E-01    .73778E-05
   3  Normalizat    .10000E-01    .91893        .16159E-01** at limit **
   4  Prefactor     1.0946        .91917E-01    .13195E-03   -.44241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.832765
  alpha      = 2.45332
  Normalizat = 0.01
  Prefactor  = 1.0946
 **********
 **   18 **HESSE 
 **********

 FCN=   2226.240     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83277        2.4852        .47068E-05   -1.5525    
   2  alpha         2.4533        1.3262        .84625E-03   -.18675E-01
   3  Normalizat    .10000E-01    .92020        .32317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0946        .91781E-01    .52782E-05   -.89639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93049e-11
Minuit parameter uncertainties:
  1  2.48552
  2  1.39791
  3  2.18601e-06
  4  0.091794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47848': 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) = 2226.23973848
delta logL = 0.00494684225259

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  8.328e-01  2.486e+00  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.453e+00  1.398e+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:  1.095e+00  9.179e-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.000e-02  2.186e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 308.852 10.938

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/47848/cmap_HighResolution_384220801_384480001_4FGL_J2035.4+1056_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-04', job_status='DONE', photon_flux_upper_limit='4.55e-07', time_completed='2021-09-25 12:28:30.959496', job_id='47848', GAL2='1.09', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632598110.96', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.95e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='559' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:28:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 47848: <4FGL_J2035.4+1056_daily_bin559> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin559> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 12:15:38 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:17:26 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:17:26 2021
Terminated at Sat Sep 25 12:28:31 2021
Results reported at Sat Sep 25 12:28:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin559 308.852 10.938 384220801 384480001 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 :                                   532.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             239.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            773 sec.

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

