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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin961
RA = 233.983, Dec = 37.7249
tmin = 488419201, tmax = 488678401
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='619039', job_status='RUN', time_executed='2021-09-12 08:21:02.299112', time_epoch_executed='1631460062.3' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/619039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/619039/ft1_4FGL_J1535.9+3743_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/619039/ft1_4FGL_J1535.9+3743_daily_bin961.fits outfile=/scratch/kocevski/619039/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin961.fits ra=233.983 dec=37.7249 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.27
user 6.94
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.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/619039/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin961.fits evtable="EVENTS" outfile="/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.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/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/619039/ltcube_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.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/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits
.....................!
real 13.67
user 13.26
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/619039/ltcube_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits outfile=/scratch/kocevski/619039/expmap_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.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/619039/ltcube_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits
.....................!
real 191.78
user 186.21
sys 5.08

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
Added 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1535.9+3743 @ 233.983 37.7249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits outfile=/scratch/kocevski/619039/cmap_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.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=233.983 yref=37.7249 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits outfile=/scratch/kocevski/619039/cmap_HighResolution_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.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=233.983 yref=37.7249 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/619039/Model_4FGL_J1535.9+3743_daily_bin961.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits.....................!
real 41.39
user 40.08
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits', '/scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits', expMap='/scratch/kocevski/619039/expmap_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits', expCube='/scratch/kocevski/619039/ltcube_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/619039/Model_4FGL_J1535.9+3743_daily_bin961.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1535.9+3743'

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  5.210e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/619039/ft1_filtered_4FGL_J1535.9+3743_daily_bin961.fits
Spacecraft file(s): /scratch/kocevski/619039/ft2_4FGL_J1535.9+3743_daily_bin961.fits
Exposure map: /scratch/kocevski/619039/expmap_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits
Exposure cube: /scratch/kocevski/619039/ltcube_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/619039/Model_4FGL_J1535.9+3743_daily_bin961.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) = 4580.10173359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31318E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6348       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    100.13       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1443       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23770E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5253       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.378       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3163       1.0000         .10000E-03   10000.    
    25 'norm      '    .24701       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8141       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4580.101     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3501 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3660        7.0995        .95250E-06    .16754E-04
   2  Prefactor     .10000E-03    22.964       -.95862E-06** at limit **
   3  norm          .10000E-03    4.7188       -.10610E-06** at limit **
   4  Prefactor     35.498        19.805       -.81670E-06   -.64184E-03
   5  Prefactor     9.0378        7.3362        .83123E-08   -.47970E-04
   6  Prefactor     .10003E-03    10.243        .54399E-05** at limit **
   7  norm          1.6348        1.5396        .24811E-07   -.40004E-04
   8  norm          1.8720        2.6721        .11362E-06   -.89821E-04
   9  Prefactor     .10000E-03    5.5742        .15805E-08** at limit **
  10  Prefactor     100.14        88.924        .87856E-06    .96796E-04
  11  Prefactor     5.9651        9.3815        .42243E-05    .26013E-03
  12  Prefactor     .10001E-03    16.888        .16398E-05** at limit **
  13  Prefactor     7.1461        11.402        .44318E-06   -.50929E-05
  14  norm          1.9354        1.1533       -.30971E-07   -.80182E-03
  15  Prefactor     .10006E-03    7.7882        .11155E-05** at limit **
  16  Prefactor     .10000E-03    14.731       -.10949E-05** at limit **
  17  Prefactor     .10000E-03    6.2060        .30501E-07** at limit **
  18  norm          5.2145        7.8758        .77558E-07   -.41531E-05
  19  Prefactor     .10000E-03    .65531        .70973E-08** at limit **
  20  Prefactor     .10000E-03    8.9668       -.39491E-07** at limit **
  21  Prefactor     1.5279        3.1914        .42640E-06    .67180E-04
  22  Prefactor     17.401        25.620        .19929E-05    .37315E-04
  23  Prefactor     29.351        73.290       -.49090E-05   -.20280E-03
  24  Prefactor     3.3176        3.4249        .11078E-06    .11998E-04
  25  norm          .24729        .18751       -.11545E-07   -.39284E-03
  26  Prefactor     2.7200        126.91       -.27978E-06   -.31408E-04
  27  Normalizat    1.1148        .21353        .13022E-05   -.32872E-03
  28  Prefactor     .66114        .18293       -.20719E-05   -.18425E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36605
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 35.4982
  Prefactor  = 9.0378
  Prefactor  = 0.000100032
  norm       = 1.63481
  norm       = 1.87197
  Prefactor  = 0.0001
  Prefactor  = 100.142
  Prefactor  = 5.96513
  Prefactor  = 0.000100006
  Prefactor  = 7.14607
  norm       = 1.93543
  Prefactor  = 0.000100057
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 5.21451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52791
  Prefactor  = 17.4013
  Prefactor  = 29.3513
  Prefactor  = 3.31765
  norm       = 0.247294
  Prefactor  = 2.71997
  Normalizat = 1.11482
  Prefactor  = 0.661141
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.101     FROM HESSE     STATUS=OK           521 CALLS     4022 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3660        7.1019        .26643E-03   -1.5400    
   2  Prefactor     .10000E-03    23.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7237        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.498        20.028        .67267E-04   -1.4516    
   5  Prefactor     9.0378        7.3294        .13332E-03   -1.5107    
   6  Prefactor     .10003E-03    15.194        .33193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6348        1.5309        .76501E-04   -1.5452    
   8  norm          1.8720        2.6464        .12717E-03   -1.5434    
   9  Prefactor     .10000E-03    5.5988        .15572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.14        89.094        .40176E-04   -1.3703    
  11  Prefactor     5.9651        9.9506        .82200E-03   -1.5219    
  12  Prefactor     .10001E-03    17.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1461        11.416        .15008E-03   -1.5173    
  14  norm          1.9354        1.1013        .51446E-04   -1.5430    
  15  Prefactor     .10006E-03    43.363        .34063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2073        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2145        7.8688        .17604E-03   -1.5251    
  19  Prefactor     .10000E-03    .65722        .53496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5279        3.1566        .16457E-03   -1.5461    
  22  Prefactor     17.401        26.188        .96020E-04   -1.4873    
  23  Prefactor     29.351        75.407        .73918E-04   -1.4624    
  24  Prefactor     3.3176        3.4156        .12088E-03   -1.5344    
  25  norm          .24729        .18176        .21242E-04   -1.5609    
  26  Prefactor     2.7200        121.12        .24247E-03   -1.5378    
  27  Normalizat    1.1148        .24682        .22168E-03   -.89277    
  28  Prefactor     .66114        .21159        .25880E-03   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.576e-09
Minuit parameter uncertainties:
  1  7.10438
  2  0.000456435
  3  2.53845e-06
  4  20.0318
  5  7.33011
  6  0.00139018
  7  1.53098
  8  2.64659
  9  1.19837e-05
  10  89.213
  11  9.95341
  12  0.000628706
  13  11.4196
  14  1.10127
  15  0.00313475
  16  0.000427045
  17  2.21657e-06
  18  7.87033
  19  2.18408e-07
  20  1.69952e-05
  21  3.15692
  22  26.2053
  23  75.6538
  24  3.41584
  25  0.181759
  26  36.3793
  27  0.247072
  28  0.211844
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  5.215e+00  7.870e+00  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  6.611e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.115e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 233.983 37.725
Photon Flux Upper Limit: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/619039/likelihoodResults_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.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) = 4579.96525999
delta logL = 0.135810483723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4579.96520534
delta logL = 0.135865138686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6181       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7665       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4579.965     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      254 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6034        865.76        .34137E-02    .11795E-03
   2  alpha         1.7647        2.5669        .43650        .84384E-05
   3  Normalizat    1.1199        .16373        .37242E-01    .15850E-05
   4  Prefactor     .65762        .11847        .41834E-01    .15136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60336
  alpha      = 1.76469
  Normalizat = 1.11993
  Prefactor  = 0.657622
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.965     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6034        12.520        .68273E-03   -1.5121    
   2  alpha         1.7647        1.1586        .28435E-01   -.29854    
   3  Normalizat    1.1199        .22327        .22121E-03   -.89114    
   4  Prefactor     .65762        .20654        .25936E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47988e-10
Minuit parameter uncertainties:
  1  12.5236
  2  1.20961
  3  0.223455
  4  0.206782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/619039': 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) = 4579.96520277
delta logL = 0.1358677088

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  8.603e+00  1.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.765e+00  1.210e+00  0.000e+00  5.000e+00 ( 1.000e+00)
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  6.576e-01  2.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.120e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 233.983 37.725
Photon Index (Free Index): 1.76 +/- 1.21
Photon Flux (Free Index): 5.91e-09 +/- 9.47e-09
Energy Flux (Free Index): 5.73e-06 +/- 1.06e-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/619039/cmap_HighResolution_488419201_488678401_4FGL_J1535.9+3743_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', comment='SUCCESS', energy_flux2='5.73e-06', dlogl='1.36e-01', photon_flux2='5.91e-09', job_status='DONE', time_completed='2021-09-12 08:33:12.955329', photon_index_error2='1.21', photon_index2='1.76', ts='0.83', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='5.72e-08', energy_flux_error2='1.06e-05', EG='1.11', time_epoch_completed='1631460792.96', return_code='0', job_id='619039', GAL2='0.66', EG2='1.12', return_code2='0', photon_flux_error2='9.47e-09', ts2='1.10', photon_index='2.45' WHERE bin_id='961' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:33:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 619039: <4FGL_J1535.9+3743_daily_bin961> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin961> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 08:20:23 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:20:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 08:20:52 2021
Terminated at Sun Sep 12 08:33:13 2021
Results reported at Sun Sep 12 08:33:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin961 233.983 37.7249 488419201 488678401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1535.9+3743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            770 sec.

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

