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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin974
RA = 308.852, Dec = 10.938
tmin = 491788801, tmax = 492048001
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='50630', job_status='RUN', time_executed='2021-09-25 12:30:39.911487', time_epoch_executed='1632598239.91' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50630/ft1_4FGL_J2035.4+1056_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50630/ft2_4FGL_J2035.4+1056_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50630/ft1_4FGL_J2035.4+1056_daily_bin974.fits outfile=/scratch/kocevski/50630/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin974.fits ra=308.852 dec=10.938 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.28
user 4.04
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50630/ft1_filtered_4FGL_J2035.4+1056_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/50630/ft2_4FGL_J2035.4+1056_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/50630/ltcube_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.fits outfile=/scratch/kocevski/50630/expmap_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.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/50630/ltcube_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.fits
.....................!
real 190.54
user 185.40
sys 4.71

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/50630/ft1_filtered_4FGL_J2035.4+1056_daily_bin974.fits scfile=/scratch/kocevski/50630/ft2_4FGL_J2035.4+1056_daily_bin974.fits outfile=/scratch/kocevski/50630/cmap_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50630/ft1_filtered_4FGL_J2035.4+1056_daily_bin974.fits scfile=/scratch/kocevski/50630/ft2_4FGL_J2035.4+1056_daily_bin974.fits outfile=/scratch/kocevski/50630/cmap_HighResolution_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.274       1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.166       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.750       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13251E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    128.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14795E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    156.23       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91896       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88386       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=   681.4061     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1826 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    122.32       -.42667E-04** at limit **
   2  Prefactor     .10000E-03    117.82       -.56496E-04** at limit **
   3  norm          36.273        28.514       -.60565E-06    .10292E-04
   4  Prefactor     75.157        88.633       -.90766E-05    .62625E-06
   5  norm          .10000E-03    32.935       -.31638E-06** at limit **
   6  Prefactor     19.473        385.11       -.33660E-03    .23889E-04
   7  Prefactor     33.780        1209.5        .98334E-04    .71324E-04
   8  norm          5.1412        11.971        .15595E-04    .27457E-03
   9  Prefactor     .10000E-03    376.36       -.12509E-03** at limit **
  10  norm          .10000E-03    78.392       -.10153E-04** at limit **
  11  norm          .10000E-03    327.01       -.24128E-04** at limit **
  12  Prefactor     .10000E-03    56.713       -.78665E-05** at limit **
  13  Prefactor     .10000E-03    72.544        .35085E-04** at limit **
  14  Prefactor     128.58        137.06       -.17519E-04   -.35018E-04
  15  Prefactor     .10003E-03    185.55        .12204E-03** at limit **
  16  Prefactor     156.08        216.05       -.11394E-03   -.65919E-04
  17  Prefactor     .10000E-03    231.05        .12296E-03** at limit **
  18  Normalizat    .91807        1.0810        .60376E-04    .50593E-04
  19  Prefactor     .88408        .29358        .38245E-05    .66472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.2729
  Prefactor  = 75.1569
  norm       = 0.0001
  Prefactor  = 19.473
  Prefactor  = 33.7801
  norm       = 5.14115
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.578
  Prefactor  = 0.000100034
  Prefactor  = 156.077
  Prefactor  = 0.000100001
  Normalizat = 0.918068
  Prefactor  = 0.884075
 **********
 **   18 **HESSE 
 **********

 FCN=   681.4061     FROM HESSE     STATUS=OK           256 CALLS     2082 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.273        28.553        .66541E-04   -1.4503    
   4  Prefactor     75.157        88.745        .46312E-04   -1.3972    
   5  norm          .10000E-03    32.935        .14643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.473        395.49        .90249E-04   -1.4825    
   7  Prefactor     33.780        1249.4        .68977E-04   -1.4545    
   8  norm          5.1412        12.236        .78525E-04   -1.5254    
   9  Prefactor     .10000E-03    376.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    78.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    327.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    72.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     128.58        136.98        .17751E-03   -1.3435    
  15  Prefactor     .10003E-03    186.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     156.08        216.37        .16128E-03   -1.3203    
  17  Prefactor     .10000E-03    231.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91807        1.1840        .56540E-03   -.95828    
  19  Prefactor     .88408        .32798        .15696E-03   -.96700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56001e-09
Minuit parameter uncertainties:
  1  7.35154e-05
  2  4.50191e-05
  3  28.564
  4  88.9021
  5  3.21528e-05
  6  176.871
  7  420.738
  8  12.2423
  9  0.000525161
  10  4.76816e-05
  11  0.000108842
  12  7.77928e-06
  13  8.86345e-05
  14  137.322
  15  0.00506439
  16  217.481
  17  0.000846274
  18  1.22038
  19  0.32871
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  5.141e+00  1.224e+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.841e-01  3.287e-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:  9.181e-01  1.220e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 308.852 10.938
Photon Flux Upper Limit: 1.50e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50630/likelihoodResults_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.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) = 681.075830693
delta logL = 0.330272959598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 681.067158639
delta logL = 0.338945013665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5424       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2871       1.0000          .0000       5.0000    
     3 'Normalizat'    .77875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90265       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=   681.0672     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      264 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5417        5.0695        .42132E-04    .14304E-02
   2  alpha         3.2872        1.2448        .71847E-03    .83550E-04
   3  Normalizat    .77884        1.1531        .60550E-03   -.20416E-04
   4  Prefactor     .90263        .32310        .15501E-03   -.21764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5417
  alpha      = 3.28717
  Normalizat = 0.778835
  Prefactor  = 0.902633
 **********
 **   18 **HESSE 
 **********

 FCN=   681.0672     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5417        5.0170        .84264E-05   -1.5389    
   2  alpha         3.2872        1.2332        .28739E-04    .32032    
   3  Normalizat    .77884        1.1532        .24220E-04   -1.0086    
   4  Prefactor     .90263        .32315        .31003E-04   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77151e-10
Minuit parameter uncertainties:
  1  5.01781
  2  1.2968
  3  1.19274
  4  0.323838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50630': 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) = 681.067158618
delta logL = 0.338945034706

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  2.542e+00  5.018e+00  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  3.287e+00  1.297e+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:  9.026e-01  3.238e-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:  7.788e-01  1.193e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 308.852 10.938
Photon Index (Free Index): 3.29 +/- 1.30
Photon Flux (Free Index): 6.07e-07 +/- 6.79e-07
Energy Flux (Free Index): 1.16e-04 +/- 1.26e-04

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/50630/cmap_HighResolution_491788801_492048001_4FGL_J2035.4+1056_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-04', comment='SUCCESS', energy_flux2='1.16e-04', dlogl='3.39e-01', photon_flux2='6.07e-07', job_status='DONE', time_completed='2021-09-25 12:37:02.364390', photon_index_error2='1.30', photon_index2='3.29', ts='0.72', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.50e-06', energy_flux_error2='1.26e-04', EG='0.92', time_epoch_completed='1632598622.36', return_code='0', job_id='50630', GAL2='0.90', EG2='0.78', return_code2='0', photon_flux_error2='6.79e-07', ts2='1.45', photon_index='2.31' WHERE bin_id='974' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:37:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 50630: <4FGL_J2035.4+1056_daily_bin974> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin974> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 12:25:31 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:26:48 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:26:48 2021
Terminated at Sat Sep 25 12:37:03 2021
Results reported at Sat Sep 25 12:37:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin974 308.852 10.938 491788801 492048001 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 :                                   383.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             222.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            692 sec.

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

