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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin1240
RA = 308.852, Dec = 10.938
tmin = 560736001, tmax = 560995201
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='53089', job_status='RUN', time_executed='2021-09-25 12:38:13.902442', time_epoch_executed='1632598693.9' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53089/ft1_4FGL_J2035.4+1056_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53089/ft1_4FGL_J2035.4+1056_daily_bin1240.fits outfile=/scratch/kocevski/53089/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin1240.fits ra=308.852 dec=10.938 rad=12.0 tmin=560736001.0 tmax=560995201.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 3.77
user 3.57
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53089/ft1_filtered_4FGL_J2035.4+1056_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/53089/ltcube_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.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/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits
.....................!
real 15.51
user 15.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53089/ft1_filtered_4FGL_J2035.4+1056_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/53089/ltcube_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.fits outfile=/scratch/kocevski/53089/expmap_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.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/53089/ltcube_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.fits
.....................!
real 193.04
user 187.65
sys 4.90

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/53089/ft1_filtered_4FGL_J2035.4+1056_daily_bin1240.fits scfile=/scratch/kocevski/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits outfile=/scratch/kocevski/53089/cmap_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53089/ft1_filtered_4FGL_J2035.4+1056_daily_bin1240.fits scfile=/scratch/kocevski/53089/ft2_4FGL_J2035.4+1056_daily_bin1240.fits outfile=/scratch/kocevski/53089/cmap_HighResolution_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18744E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1223.2       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.580       1.0000         .10000E-03   10000.    
     5 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.648       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11735       1.0000         .10000E-03   10000.    
    11 'norm      '    75.568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23827E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16571E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15553E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10026E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0516       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=   1464.466     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2165 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    392.84       -.23552E-07** at limit **
   2  Prefactor     1223.0        610.41        .42656E-06   -.33632E-04
   3  norm          .10000E-03    43.146       -.24199E-07** at limit **
   4  Prefactor     24.576        27.542        .57830E-07   -.14253E-03
   5  norm          .10000E-03    137.34        .11698E-05** at limit **
   6  Prefactor     .10000E-03    40.241        .59556E-06** at limit **
   7  Prefactor     13.634        88.093       -.28144E-05   -.19381E-05
   8  norm          .10000E-03    2.1779        .70705E-06** at limit **
   9  Prefactor     .10000E-03    106.31        .19386E-06** at limit **
  10  norm          .23157E-03    49.959       -.31791E-05** at limit **
  11  norm          75.670        902.02        .22420E-04   -.29233E-04
  12  Prefactor     .10009E-03    738.81        .14356E-04** at limit **
  13  Prefactor     .10000E-03    416.33        .11242E-05** at limit **
  14  Prefactor     .10000E-03    48.162        .14743E-06** at limit **
  15  Prefactor     .10000E-03    16.750       -.10641E-07** at limit **
  16  Prefactor     .10000E-03    17.246       -.11184E-07** at limit **
  17  Prefactor     .10000E-03    157.00       -.14182E-05** at limit **
  18  Normalizat    .10000E-01    .41735        .18437E-04** at limit **
  19  Prefactor     1.0519        .11826       -.25211E-05   -.51441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1222.97
  norm       = 0.0001
  Prefactor  = 24.5757
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 13.6341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000231574
  norm       = 75.6697
  Prefactor  = 0.000100093
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 1.05191
 **********
 **   18 **HESSE 
 **********

 FCN=   1464.466     FROM HESSE     STATUS=OK           262 CALLS     2427 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    392.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1223.0        612.24        .61041E-04   -.85627    
   3  norm          .10000E-03    43.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.576        27.633        .80796E-04   -1.4716    
   5  norm          .10000E-03    138.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.634        89.571        .10842E-03   -1.4969    
   8  norm          .10000E-03    2.1747        .10881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    106.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .23157E-03    76.778        .70513E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          75.670        806.60        .23095E-03   -1.3966    
  12  Prefactor     .10009E-03    701.93        .40130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    416.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.757        .15301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.251        .15527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    158.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    1.0649        .13356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0519        .12470        .13628E-03   -.91019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26476e-09
Minuit parameter uncertainties:
  1  7.50879e-05
  2  615.865
  3  1.20167e-06
  4  27.6477
  5  0.0013598
  6  4.78772e-05
  7  70.0448
  8  1.02017e-05
  9  0.000150246
  10  0.201276
  11  503.032
  12  0.0163658
  13  0.00100896
  14  1.89618e-05
  15  6.22994e-06
  16  3.7995e-06
  17  0.00138094
  18  4.60631e-05
  19  0.124737
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.000e-04  1.020e-05  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.052e+00  1.247e-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.000e-02  4.606e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/53089/likelihoodResults_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.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) = 1464.46822065
delta logL = -0.00218308562626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1464.4660465
delta logL = -8.93586252459e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3159       1.0000          .0000       5.0000    
     3 'Normalizat'    .10019E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0520       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=   1464.466     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1226        .90712E-02** at limit **
   2  alpha         2.3174        3.5073        .41293       -.34695E-05
   3  Normalizat    .10000E-01    .44742        .32094    ** at limit **
   4  Prefactor     1.0519        .14168        .39794E-01   -.15865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31739
  Normalizat = 0.01
  Prefactor  = 1.05192
 **********
 **   18 **HESSE 
 **********

 FCN=   1464.466     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1732        .10880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3174        3.5071        .50000       -.73110E-01
   3  Normalizat    .10000E-01    .74663        .13356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0519        .11191        .13628E-03   -.91018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23262e-11
Minuit parameter uncertainties:
  1  2.07851e-07
  2  2.49332
  3  5.28298e-07
  4  0.11194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53089': 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) = 1464.46603756
delta logL = 4.34420144302e-09

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.000e-04  2.079e-07  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.317e+00  2.493e+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.052e+00  1.119e-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.000e-02  5.283e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/53089/cmap_HighResolution_560736001_560995201_4FGL_J2035.4+1056_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-04', job_status='DONE', photon_flux_upper_limit='4.41e-07', time_completed='2021-09-25 12:45:27.670843', job_id='53089', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632599127.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.34e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1240' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 12:45:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 53089: <4FGL_J2035.4+1056_daily_bin1240> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin1240> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 12:35:21 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 12:35:38 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:35:38 2021
Terminated at Sat Sep 25 12:45:28 2021
Results reported at Sat Sep 25 12:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin1240 308.852 10.938 560736001 560995201 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 :                                   432.45 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             278.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            607 sec.

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

