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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin377
RA = 308.852, Dec = 10.938
tmin = 337046401, tmax = 337305601
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='46347', job_status='RUN', time_executed='2021-09-25 12:14:18.450109', time_epoch_executed='1632597258.45' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46347/ft1_4FGL_J2035.4+1056_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46347/ft1_4FGL_J2035.4+1056_daily_bin377.fits outfile=/scratch/kocevski/46347/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin377.fits ra=308.852 dec=10.938 rad=12.0 tmin=337046401.0 tmax=337305601.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 10.90
user 10.47
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.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/46347/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin377.fits evtable="EVENTS" outfile="/scratch/kocevski/46347/ft1_filtered_4FGL_J2035.4+1056_daily_bin377.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46347/ft1_filtered_4FGL_J2035.4+1056_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/46347/ltcube_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.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/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits
.....................!
real 12.61
user 12.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46347/ft1_filtered_4FGL_J2035.4+1056_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/46347/ltcube_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.fits outfile=/scratch/kocevski/46347/expmap_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.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/46347/ltcube_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.fits
.....................!
real 190.24
user 185.68
sys 4.10

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/46347/ft1_filtered_4FGL_J2035.4+1056_daily_bin377.fits scfile=/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits outfile=/scratch/kocevski/46347/cmap_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46347/ft1_filtered_4FGL_J2035.4+1056_daily_bin377.fits scfile=/scratch/kocevski/46347/ft2_4FGL_J2035.4+1056_daily_bin377.fits outfile=/scratch/kocevski/46347/cmap_HighResolution_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.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.42
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4395       1.0000         .10000E-03   10000.    
     3 'norm      '    10.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.317       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18332E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.253       1.0000         .10000E-03   10000.    
     8 'norm      '    .66972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10265E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    96.542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95280       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=   4900.220     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1894 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.830        .36242E-06** at limit **
   2  Prefactor     7.5212        114.77        .19556E-05    .10475E-04
   3  norm          10.905        8.0252        .13911E-06   -.70074E-04
   4  Prefactor     29.347        32.768       -.43553E-06   -.22758E-03
   5  norm          .10000E-03    3.6951        .17439E-07** at limit **
   6  Prefactor     .10000E-03    45.045       -.47241E-06** at limit **
   7  Prefactor     30.259        41.285       -.31733E-06   -.18831E-04
   8  norm          .66926        1.5456       -.36253E-07    .15047E-04
   9  Prefactor     .10002E-03    694.87       -.42668E-05** at limit **
  10  norm          .10000E-03    14.490        .75146E-07** at limit **
  11  norm          96.559        177.20        .14346E-05   -.38646E-05
  12  Prefactor     7.3796        57.405       -.30166E-05   -.50987E-04
  13  Prefactor     .10000E-03    25.469        .98347E-06** at limit **
  14  Prefactor     3.1503        54.398        .17271E-04   -.33692E-04
  15  Prefactor     12.103        36.490       -.18364E-05   -.35801E-04
  16  Prefactor     .10000E-03    26.358       -.12709E-05** at limit **
  17  Prefactor     .10000E-03    18.754       -.88641E-07** at limit **
  18  Normalizat    1.0443        .45370       -.57450E-07   -.26459E-04
  19  Prefactor     .95283        .11165       -.56771E-06   -.10640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.52123
  norm       = 10.9051
  Prefactor  = 29.3466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2592
  norm       = 0.66926
  Prefactor  = 0.000100023
  norm       = 0.0001
  norm       = 96.5585
  Prefactor  = 7.37964
  Prefactor  = 0.000100002
  Prefactor  = 3.15033
  Prefactor  = 12.1031
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.04427
  Prefactor  = 0.952831
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.220     FROM HESSE     STATUS=OK           268 CALLS     2162 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5212        115.58        .14704E-03   -1.5159    
   3  norm          10.905        8.0525        .12132E-03   -1.5047    
   4  Prefactor     29.347        32.824        .73994E-04   -1.4624    
   5  norm          .10000E-03    3.6954        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.259        37.456        .72844E-04   -1.4607    
   8  norm          .66926        1.2207        .97688E-03   -1.5544    
   9  Prefactor     .10002E-03    708.12        .18149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          96.559        175.40        .40909E-04   -1.3740    
  12  Prefactor     7.3796        56.253        .14787E-03   -1.5165    
  13  Prefactor     .10000E-03    25.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1503        55.059        .11528E-02   -1.5353    
  15  Prefactor     12.103        36.810        .11520E-03   -1.5012    
  16  Prefactor     .10000E-03    26.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0443        .50543        .53371E-03   -.91562    
  19  Prefactor     .95283        .12564        .14571E-03   -.94319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81414e-10
Minuit parameter uncertainties:
  1  0.000173935
  2  59.1047
  3  8.05332
  4  32.8445
  5  4.41639e-08
  6  2.91469e-05
  7  37.4855
  8  1.22074
  9  0.00821386
  10  9.47203e-06
  11  176.354
  12  40.8026
  13  0.000415412
  14  26.3685
  15  36.8789
  16  0.000495062
  17  2.36271e-05
  18  0.507782
  19  0.125683
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  6.693e-01  1.221e+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:  9.528e-01  1.257e-01  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.044e+00  5.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/46347/likelihoodResults_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.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) = 4899.80150749
delta logL = 0.418419576224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4899.71368737
delta logL = 0.506239689905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33411       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0173       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94872       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=   4899.714     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      220 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33403        .50798        .10574E-01   -.21823E-03
   2  alpha         1.0172        .67177        .49914       -.33805E-04
   3  Normalizat    1.0772        .40520        .11873        .23521E-04
   4  Prefactor     .94873        .10691        .33034E-01   -.46513E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.334035
  alpha      = 1.01715
  Normalizat = 1.07723
  Prefactor  = 0.948727
 **********
 **   18 **HESSE 
 **********

 FCN=   4899.714     FROM HESSE     STATUS=OK            35 CALLS      255 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33403        .60694        .53936E-03   -1.5592    
   2  alpha         1.0172        .91433        .20883E-01   -.63495    
   3  Normalizat    1.0772        .44790        .52664E-03   -.90486    
   4  Prefactor     .94873        .11873        .14597E-03   -.94459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53358e-11
Minuit parameter uncertainties:
  1  0.606956
  2  0.949115
  3  0.449487
  4  0.118764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46347': 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) = 4899.71368736
delta logL = 0.506239703456

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  3.340e-01  6.070e-01  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  1.017e+00  9.491e-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:  9.487e-01  1.188e-01  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.077e+00  4.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 308.852 10.938
Photon Index (Free Index): 1.02 +/- 0.95
Photon Flux (Free Index): 1.04e-08 +/- 1.58e-08
Energy Flux (Free Index): 4.51e-05 +/- 8.60e-05

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/46347/cmap_HighResolution_337046401_337305601_4FGL_J2035.4+1056_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-05', comment='SUCCESS', energy_flux2='4.51e-05', dlogl='5.06e-01', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-25 12:26:13.546791', photon_index_error2='0.95', photon_index2='1.02', ts='0.62', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='8.60e-05', EG='1.04', time_epoch_completed='1632597973.55', return_code='0', job_id='46347', GAL2='0.95', EG2='1.08', return_code2='0', photon_flux_error2='1.58e-08', ts2='1.63', photon_index='2.31' WHERE bin_id='377' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 46347: <4FGL_J2035.4+1056_daily_bin377> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin377> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 12:10:39 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:11:50 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:50 2021
Terminated at Sat Sep 25 12:26:14 2021
Results reported at Sat Sep 25 12:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin377 308.852 10.938 337046401 337305601 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 :                                   712.52 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             296.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            935 sec.

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

