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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1337
RA = 140.885, Dec = 38.8743
tmin = 585878401, tmax = 586137601
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='202496', job_status='RUN', time_executed='2021-08-31 10:34:09.541519', time_epoch_executed='1630431249.54' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202496/ft1_4FGL_J0923.5+3852_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202496/ft1_4FGL_J0923.5+3852_daily_bin1337.fits outfile=/scratch/kocevski/202496/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1337.fits ra=140.885 dec=38.8743 rad=12.0 tmin=585878401.0 tmax=586137601.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 2.84
user 2.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.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/202496/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1337.fits evtable="EVENTS" outfile="/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/202496/ltcube_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.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/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits
.....................!
real 12.40
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/202496/ltcube_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits outfile=/scratch/kocevski/202496/expmap_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.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/202496/ltcube_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits
.....................!
real 191.43
user 186.65
sys 4.31

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

Setting source of interest to:
4FGL J0923.5+3852 @ 140.885 38.8743

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits outfile=/scratch/kocevski/202496/cmap_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.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=140.885 yref=38.8743 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.71
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits outfile=/scratch/kocevski/202496/cmap_HighResolution_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.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=140.885 yref=38.8743 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 1.07
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/202496/Model_4FGL_J0923.5+3852_daily_bin1337.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/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits......................!
real 31.11
user 28.94
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits', '/scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits', expMap='/scratch/kocevski/202496/expmap_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits', expCube='/scratch/kocevski/202496/ltcube_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/202496/Model_4FGL_J0923.5+3852_daily_bin1337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+3852'

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/202496/ft1_filtered_4FGL_J0923.5+3852_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/202496/ft2_4FGL_J0923.5+3852_daily_bin1337.fits
Exposure map: /scratch/kocevski/202496/expmap_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits
Exposure cube: /scratch/kocevski/202496/ltcube_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/202496/Model_4FGL_J0923.5+3852_daily_bin1337.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) = 2507.00525071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    42.449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20951E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.530       1.0000         .10000E-03   10000.    
    13 'norm      '    .12186E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5785       1.0000         .10000E-03   10000.    
    15 'norm      '    22.431       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .38777E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.480       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.479       1.0000         .10000E-03   10000.    
    24 'norm      '    .10791E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7583       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.7009       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .60349       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2506.991     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     3294 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    21.516       -.25135E-04** at limit **
   2  Prefactor     .10000E-03    3.2996       -.34126E-05** at limit **
   3  Prefactor     39.168        1.0564        .28171E-06   -.32790E-03
   4  Prefactor     .10065E-03    21.353        .41704E-04** at limit **
   5  norm          42.447        1.0140       -.42568E-07    .47413E-04
   6  Prefactor     .10000E-03    2.1096       -.92578E-07** at limit **
   7  Prefactor     .67842E-03    25.258       -.52459E-04** at limit **
   8  Prefactor     10.861        1.0348        .23263E-06    .15179E-03
   9  Prefactor     .10707E-03    81.426       -.12926E-04** at limit **
  10  Prefactor     .10000E-03    4.4081        .21460E-05** at limit **
  11  norm          .10000E-03    1.9883       -.26360E-06** at limit **
  12  Prefactor     64.545        3.9119        .25043E-05   -.56787E-02
  13  norm          .10000E-03    3.5268       -.12080E-05** at limit **
  14  Prefactor     6.5718        5.1769        .16428E-06   -.46902E-03
  15  norm          22.433        1.3948       -.11695E-05    .67008E-03
  16  Prefactor     .62720        7.9914       -.55752E-05   -.20281E-03
  17  Prefactor     .10000E-03    4.1888        .10508E-05** at limit **
  18  Prefactor     .10031E-03    14.716       -.24712E-04** at limit **
  19  Prefactor     .10036E-03    14.498       -.64082E-05** at limit **
  20  norm          .10007E-03    43.166       -.29396E-04** at limit **
  21  Prefactor     .10048E-03    22.468        .22609E-04** at limit **
  22  Prefactor     23.445        8.3608       -.89088E-05    .67319E-02
  23  Prefactor     15.477        1.0639        .17959E-07    .14091E-04
  24  norm          .10041E-03    23.926        .26061E-04** at limit **
  25  Prefactor     3.7594        5.6617       -.49374E-05   -.20786E-03
  26  Prefactor     .10004E-03    13.962       -.22308E-04** at limit **
  27  Prefactor     .10001E-03    1.8993        .15119E-05** at limit **
  28  norm          6.7013        1.0082       -.12545E-06   -.24416E-04
  29  Normalizat    .60363        .32982        .52205E-05   -.47354E-04
  30  Prefactor     1.4225        .37984       -.77859E-06   -.41249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Prefactor  = 0.000100004
  Prefactor  = 39.1677
  Prefactor  = 0.000100652
  norm       = 42.4473
  Prefactor  = 0.0001
  Prefactor  = 0.000678423
  Prefactor  = 10.8614
  Prefactor  = 0.000107074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.5454
  norm       = 0.000100001
  Prefactor  = 6.57176
  norm       = 22.4334
  Prefactor  = 0.627204
  Prefactor  = 0.0001
  Prefactor  = 0.000100306
  Prefactor  = 0.000100359
  norm       = 0.000100074
  Prefactor  = 0.000100478
  Prefactor  = 23.4446
  Prefactor  = 15.4773
  norm       = 0.000100413
  Prefactor  = 3.75935
  Prefactor  = 0.000100042
  Prefactor  = 0.000100007
  norm       = 6.70128
  Normalizat = 0.603632
  Prefactor  = 1.42254
 **********
 **   18 **HESSE 
 **********

 FCN=   2506.991     FROM HESSE     STATUS=OK           658 CALLS     3952 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    22.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.168        63.898        .16011E-02   -1.4455    
   4  Prefactor     .10065E-03    24.342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          42.447        21.295        .15382E-02   -1.4404    
   6  Prefactor     .10000E-03    2.1001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .67842E-03    679.18        .10093E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.861        10.499        .30393E-02   -1.5049    
   9  Prefactor     .10707E-03    115.40        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.545        65.503        .12489E-02   -1.4099    
  13  norm          .10000E-03    .84621        .21209E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5718        6.1725        .39115E-02   -1.5195    
  15  norm          22.433        21.861        .21143E-02   -1.4760    
  16  Prefactor     .62720        9.0120        .11800E-01   -1.5550    
  17  Prefactor     .10000E-03    4.1717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10031E-03    33.908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10036E-03    31.380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10007E-03    39.884        .97663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10048E-03    51.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.445        56.492        .20666E-02   -1.4739    
  23  Prefactor     15.477        15.986        .25450E-02   -1.4921    
  24  norm          .10041E-03    10.351        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7594        5.7872        .52065E-02   -1.5320    
  26  Prefactor     .10004E-03    40.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    4.6264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.7013        11.220        .38753E-02   -1.5190    
  29  Normalizat    .60363        .29458        .71336E-01   -1.0783    
  30  Prefactor     1.4225        .32772        .57236E-01   -.79733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78961e-06
Minuit parameter uncertainties:
  1  0.00340101
  2  0.000267356
  3  64.01
  4  0.00796849
  5  21.2986
  6  5.42417e-06
  7  1.2682
  8  10.5007
  9  0.0572531
  10  4.92888e-05
  11  3.22321e-06
  12  65.5761
  13  5.41822e-05
  14  6.17309
  15  21.8687
  16  4.75541
  17  3.55132e-05
  18  0.00644901
  19  0.0067143
  20  0.00343573
  21  0.0099263
  22  56.6216
  23  15.9906
  24  0.00413509
  25  5.78811
  26  0.00262469
  27  0.000358694
  28  11.2237
  29  0.29535
  30  0.328201
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  2.243e+01  2.187e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.423e+00  3.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  6.036e-01  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.18e-08 +/- 8.94e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.38e-05

TS (Fixed Index): 3.06
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 2.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202496/likelihoodResults_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.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) = 2506.88921731
delta logL = 0.101618933577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2506.8866578
delta logL = 0.104178449394

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2506.887     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      223 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.014        29.989        .20874E-02    .16357E-02
   2  alpha         2.1500        1.2464        .41675       -.22949E-05
   3  Normalizat    .63078        .27909        .69974E-01    .11426E-04
   4  Prefactor     1.4030        .32569        .57589E-01    .12501E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0144
  alpha      = 2.15002
  Normalizat = 0.630782
  Prefactor  = 1.40302
 **********
 **   18 **HESSE 
 **********

 FCN=   2506.887     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.014        20.434        .83496E-04   -1.4748    
   2  alpha         2.1500        .99757        .16566E-01   -.14045    
   3  Normalizat    .63078        .32279        .30971E-03   -1.0669    
   4  Prefactor     1.4030        .37859        .25464E-03   -.80293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73305e-09
Minuit parameter uncertainties:
  1  20.4406
  2  1.02676
  3  0.323757
  4  0.379346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202496': 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) = 2506.8866529
delta logL = 0.104183340582

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  2.301e+01  2.044e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.150e+00  1.027e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.403e+00  3.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  6.308e-01  3.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 140.885 38.874
Photon Index (Free Index): 2.15 +/- 1.03
Photon Flux (Free Index): 6.18e-08 +/- 8.32e-08
Energy Flux (Free Index): 2.35e-05 +/- 2.03e-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/202496/cmap_HighResolution_585878401_586137601_4FGL_J0923.5+3852_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-05', comment='SUCCESS', photon_flux='9.18e-08', energy_flux2='2.35e-05', photon_flux_error='8.94e-08', dlogl='1.04e-01', energy_flux='2.44e-05', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-08-31 10:44:38.043853', photon_index_error2='1.03', photon_index2='2.15', ts='3.06', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='2.03e-05', EG='0.60', time_epoch_completed='1630431878.04', return_code='0', job_id='202496', GAL2='1.40', EG2='0.63', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='8.32e-08', ts2='3.32', photon_index='2.61' WHERE bin_id='1337' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:44:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 202496: <4FGL_J0923.5+3852_daily_bin1337> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1337> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:30:42 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:30:43 2021
Terminated at Tue Aug 31 10:44:38 2021
Results reported at Tue Aug 31 10:44:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1337 140.885 38.8743 585878401 586137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+3852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   531.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

