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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1540
RA = 140.885, Dec = 38.8743
tmin = 638496001, tmax = 638755201
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='203939', job_status='RUN', time_executed='2021-08-31 10:35:39.995277', time_epoch_executed='1630431340.0' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203939/ft1_4FGL_J0923.5+3852_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203939/ft1_4FGL_J0923.5+3852_daily_bin1540.fits outfile=/scratch/kocevski/203939/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1540.fits ra=140.885 dec=38.8743 rad=12.0 tmin=638496001.0 tmax=638755201.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.73
user 4.19
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.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/203939/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.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.79
user 0.31
sys 0.38

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/203939/ltcube_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits outfile=/scratch/kocevski/203939/expmap_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.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/203939/ltcube_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits
.....................!
real 194.50
user 188.39
sys 5.15

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/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.fits scfile=/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits outfile=/scratch/kocevski/203939/cmap_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.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.75
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.fits scfile=/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits outfile=/scratch/kocevski/203939/cmap_HighResolution_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.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 0.79
user 0.37
sys 0.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.fits', '/scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits', expMap='/scratch/kocevski/203939/expmap_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits', expCube='/scratch/kocevski/203939/ltcube_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203939/Model_4FGL_J0923.5+3852_daily_bin1540.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/203939/ft1_filtered_4FGL_J0923.5+3852_daily_bin1540.fits
Spacecraft file(s): /scratch/kocevski/203939/ft2_4FGL_J0923.5+3852_daily_bin1540.fits
Exposure map: /scratch/kocevski/203939/expmap_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits
Exposure cube: /scratch/kocevski/203939/ltcube_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203939/Model_4FGL_J0923.5+3852_daily_bin1540.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) = 6019.41232888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7910       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7068       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28259       1.0000         .10000E-03   10000.    
    15 'norm      '    .46308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7297       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8068       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5556       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.556       1.0000         .10000E-03   10000.    
    28 'norm      '    6.1124       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97140       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6019.363     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3370 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6493       -.26001E-06** at limit **
   2  Prefactor     2.3888        2.5419       -.23318E-06   -.80488E-04
   3  Prefactor     .10000E-03    22.189       -.81579E-06** at limit **
   4  Prefactor     .10000E-03    4.3848       -.39752E-07** at limit **
   5  norm          .10000E-03    1.9091       -.30041E-07** at limit **
   6  Prefactor     2.2629        2.2659       -.48787E-09   -.12498E-03
   7  Prefactor     .10000E-03    48.238       -.69803E-07** at limit **
   8  Prefactor     4.7904        3.6736        .10788E-07   -.49989E-04
   9  Prefactor     .10000E-03    8.9784       -.77068E-07** at limit **
  10  Prefactor     3.7074        2.4759       -.26628E-07   -.17584E-03
  11  norm          .10000E-03    .44431       -.43541E-07** at limit **
  12  Prefactor     .10000E-03    6.0719       -.11259E-06** at limit **
  13  norm          .36774        .51674       -.80901E-07   -.11945E-02
  14  Prefactor     .28151        2.5912        .15832E-06   -.51943E-04
  15  norm          .43429        4.1348       -.32202E-06    .43656E-04
  16  Prefactor     .10000E-03    .62993        .42694E-07** at limit **
  17  Prefactor     .10000E-03    1.3303       -.94927E-07** at limit **
  18  Prefactor     2.7290        5.9265        .37162E-06    .16728E-04
  19  Prefactor     .10000E-03    7.6826        .17041E-06** at limit **
  20  norm          3.0443        19.737        .38309E-05    .34812E-04
  21  Prefactor     .10000E-03    19.457        .17956E-05** at limit **
  22  Prefactor     6.7748        40.844       -.80791E-06   -.53652E-05
  23  Prefactor     .10000E-03    13.446        .39751E-06** at limit **
  24  norm          .10000E-03    4.2617       -.20803E-07** at limit **
  25  Prefactor     1.5500        5.0270        .13494E-05   -.20940E-04
  26  Prefactor     .10000E-03    8.8524        .24778E-06** at limit **
  27  Prefactor     23.562        8.4569       -.13428E-06   -.20720E-05
  28  norm          6.1097        9.1296        .23678E-06   -.19529E-05
  29  Normalizat    1.0039        .17751       -.21166E-05   -.35314E-04
  30  Prefactor     .97121        .18962        .19061E-05   -.17668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.38875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.26288
  Prefactor  = 0.0001
  Prefactor  = 4.79045
  Prefactor  = 0.0001
  Prefactor  = 3.70741
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.367736
  Prefactor  = 0.281512
  norm       = 0.434293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72905
  Prefactor  = 0.0001
  norm       = 3.04428
  Prefactor  = 0.0001
  Prefactor  = 6.7748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.54996
  Prefactor  = 0.0001
  Prefactor  = 23.5617
  norm       = 6.10973
  Normalizat = 1.00389
  Prefactor  = 0.971211
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.363     FROM HESSE     STATUS=OK           592 CALLS     3962 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3888        2.5281        .12305E-03   -1.5399    
   3  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4650        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9125        .10468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2629        2.2551        .11047E-03   -1.5407    
   7  Prefactor     .10000E-03    48.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7904        3.6730        .12543E-03   -1.5270    
   9  Prefactor     .10000E-03    8.9793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7074        2.4733        .47472E-03   -1.5323    
  11  norm          .10000E-03    .44579        .50499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .36774        .67841        .45585E-03   -1.5587    
  14  Prefactor     .28151        21.940        .16149E-02   -1.5602    
  15  norm          .43429        24.266        .28660E-02   -1.5576    
  16  Prefactor     .10000E-03    .63312        .60050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3513        .87348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7290        5.9041        .24646E-03   -1.5378    
  19  Prefactor     .10000E-03    7.7004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0443        20.215        .23235E-03   -1.5359    
  21  Prefactor     .10000E-03    19.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7748        41.271        .15379E-03   -1.5187    
  23  Prefactor     .10000E-03    13.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.2771        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5500        5.1094        .13121E-02   -1.5459    
  26  Prefactor     .10000E-03    8.8619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.562        8.5194        .82532E-04   -1.4737    
  28  norm          6.1097        9.1330        .16239E-03   -1.5214    
  29  Normalizat    1.0039        .20125        .22520E-03   -.92900    
  30  Prefactor     .97121        .20962        .25909E-03   -.93695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1528e-08
Minuit parameter uncertainties:
  1  6.92751e-06
  2  2.52823
  3  6.77902e-05
  4  7.30828e-07
  5  7.47581e-08
  6  2.2552
  7  1.44304e-05
  8  3.67319
  9  4.35964e-06
  10  2.47339
  11  1.77838e-07
  12  3.044e-06
  13  0.678427
  14  4.97149
  15  6.49462
  16  7.20924e-07
  17  1.08584e-07
  18  5.90532
  19  1.77412e-05
  20  15.6967
  21  4.07134e-05
  22  33.477
  23  4.01832e-05
  24  1.5456e-06
  25  5.11086
  26  8.5485e-06
  27  8.51979
  28  9.13509
  29  0.201401
  30  0.209793
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  4.343e-01  6.495e+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

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  9.712e-01  2.098e-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:  1.004e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203939/likelihoodResults_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.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): 102
logL (Free Index) = 6019.28604271
delta logL = 0.076991657269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6019.24546327
delta logL = 0.117571096285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3285       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6434       1.0000          .0000       5.0000    
     3 'Normalizat'    .98432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98245       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=   6019.245     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3269        119.91        .95288E-02    .98535E-03
   2  alpha         3.6421        3.1789        .48637        .37233E-04
   3  Normalizat    .98422        .41304E-01    .45970E-01    .67204E-05
   4  Prefactor     .98253        .47285E-01    .46047E-01    .72235E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32695
  alpha      = 3.64207
  Normalizat = 0.984216
  Prefactor  = 0.982533
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.245     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3269        5.0643        .17957E-03   -1.5478    
   2  alpha         3.6421        3.8078        .42381E-01    .47443    
   3  Normalizat    .98422        .18115        .22716E-03   -.93561    
   4  Prefactor     .98253        .20191        .25773E-03   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8865e-08
Minuit parameter uncertainties:
  1  5.06597
  2  2.45676
  3  0.181262
  4  0.202064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203939': 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) = 6019.24546173
delta logL = 0.117572640582

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.327e+00  5.066e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  3.642e+00  2.457e+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:  9.825e-01  2.021e-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:  9.842e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 140.885 38.874

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/203939/cmap_HighResolution_638496001_638755201_4FGL_J0923.5+3852_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-08-31 10:51:27.130232', job_id='203939', GAL2='0.98', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1630432287.13', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.18e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1540' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 203939: <4FGL_J0923.5+3852_daily_bin1540> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1540> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:20 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:22 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:35:22 2021
Terminated at Tue Aug 31 10:51:29 2021
Results reported at Tue Aug 31 10:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1540 140.885 38.8743 638496001 638755201 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 :                                   876.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            969 sec.

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

