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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1393
RA = 140.885, Dec = 38.8743
tmin = 600393601, tmax = 600652801
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='202585', job_status='RUN', time_executed='2021-08-31 10:31:35.901178', time_epoch_executed='1630431095.9' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202585/ft1_4FGL_J0923.5+3852_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202585/ft1_4FGL_J0923.5+3852_daily_bin1393.fits outfile=/scratch/kocevski/202585/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1393.fits ra=140.885 dec=38.8743 rad=12.0 tmin=600393601.0 tmax=600652801.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 6.94
user 3.44
sys 1.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202585/ft1_filtered_4FGL_J0923.5+3852_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/202585/ltcube_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.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/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits
.....................!
real 13.78
user 11.79
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202585/ft1_filtered_4FGL_J0923.5+3852_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/202585/ltcube_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.fits outfile=/scratch/kocevski/202585/expmap_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.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/202585/ltcube_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.fits
.....................!
real 192.54
user 185.51
sys 6.16

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/202585/ft1_filtered_4FGL_J0923.5+3852_daily_bin1393.fits scfile=/scratch/kocevski/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits outfile=/scratch/kocevski/202585/cmap_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.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 1.67
user 0.39
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202585/ft1_filtered_4FGL_J0923.5+3852_daily_bin1393.fits scfile=/scratch/kocevski/202585/ft2_4FGL_J0923.5+3852_daily_bin1393.fits outfile=/scratch/kocevski/202585/cmap_HighResolution_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.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.67
user 0.41
sys 1.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.162       1.0000         .10000E-03   10000.    
    13 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1489       1.0000         .10000E-03   10000.    
    15 'norm      '    14.040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8236       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6791       1.0000         .10000E-03   10000.    
    24 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.6149       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90132       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=   6191.185     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3942 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9362        9.4775       -.53909E-06   -.16508E-03
   2  Prefactor     7.2134        3.7671        .16177E-05    .51188E-04
   3  Prefactor     .10000E-03    50.385       -.11879E-04** at limit **
   4  Prefactor     .10000E-03    8.6101        .21442E-06** at limit **
   5  norm          21.381        9.4250       -.68241E-07   -.25324E-04
   6  Prefactor     1.1578        1.8747       -.28045E-06   -.75098E-03
   7  Prefactor     .10000E-03    28.043        .17417E-04** at limit **
   8  Prefactor     .10000E-03    1.4193       -.57994E-07** at limit **
   9  Prefactor     80.457        58.445        .37411E-05    .27823E-05
  10  Prefactor     .10000E-03    2.5547       -.98516E-07** at limit **
  11  norm          4.5446        2.3080        .79861E-08   -.30497E-04
  12  Prefactor     15.164        24.138       -.30552E-06   -.15891E-04
  13  norm          .10000E-03    .29343        .12099E-06** at limit **
  14  Prefactor     2.1515        3.0153       -.31212E-06   -.11962E-02
  15  norm          14.040        10.423       -.21000E-06   -.50420E-04
  16  Prefactor     .10000E-03    1.1257       -.11067E-06** at limit **
  17  Prefactor     .10000E-03    3.5344       -.55122E-08** at limit **
  18  Prefactor     9.8234        9.3114       -.15436E-06   -.69092E-04
  19  Prefactor     .10000E-03    7.1530        .25561E-05** at limit **
  20  norm          .10000E-03    7.9610       -.55464E-05** at limit **
  21  Prefactor     .10000E-03    13.595        .10691E-04** at limit **
  22  Prefactor     14.108        27.117       -.75933E-05   -.30048E-04
  23  Prefactor     1.6834        6.4338       -.15666E-05   -.62729E-03
  24  norm          .10000E-03    14.348        .80793E-06** at limit **
  25  Prefactor     .10000E-03    2.0831        .16569E-06** at limit **
  26  Prefactor     .10000E-03    17.218       -.18335E-04** at limit **
  27  Prefactor     .10000E-03    4.6285        .83689E-07** at limit **
  28  norm          8.6135        11.311        .23828E-07    .41638E-04
  29  Normalizat    1.1291        .17881        .54106E-06   -.30878E-04
  30  Prefactor     .90113        .19386       -.41215E-06    .44008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93619
  Prefactor  = 7.21335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.3807
  Prefactor  = 1.15784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.4573
  Prefactor  = 0.0001
  norm       = 4.54462
  Prefactor  = 15.1637
  norm       = 0.000100001
  Prefactor  = 2.15151
  norm       = 14.04
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82338
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1079
  Prefactor  = 1.68342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.61353
  Normalizat = 1.12909
  Prefactor  = 0.901131
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.185     FROM HESSE     STATUS=OK           594 CALLS     4536 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9362        9.4565        .23699E-03   -1.5365    
   2  Prefactor     7.2134        3.7608        .10513E-03   -1.5171    
   3  Prefactor     .10000E-03    51.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.381        9.4063        .86622E-04   -1.4783    
   6  Prefactor     1.1578        1.8267        .13128E-03   -1.5493    
   7  Prefactor     .10000E-03    27.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4260        .91526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     80.457        58.310        .44777E-04   -1.3912    
  10  Prefactor     .10000E-03    2.6264        .24484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5446        2.3075        .82188E-04   -1.5282    
  12  Prefactor     15.164        24.068        .10286E-03   -1.4929    
  13  norm          .10000E-03    .76656        .11722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1515        3.3231        .12531E-03   -1.5415    
  15  norm          14.040        10.412        .10689E-03   -1.4958    
  16  Prefactor     .10000E-03    1.1433        .81355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6280        .28854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8234        9.3117        .12785E-03   -1.5081    
  19  Prefactor     .10000E-03    7.1572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.9366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.108        27.185        .10661E-03   -1.4957    
  23  Prefactor     1.6834        6.4756        .32513E-03   -1.5448    
  24  norm          .10000E-03    14.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1110        .11085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.7612        .33037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.6135        11.315        .13657E-03   -1.5121    
  29  Normalizat    1.1291        .21966        .23402E-03   -.88823    
  30  Prefactor     .90113        .23699        .28653E-03   -.96102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89564e-09
Minuit parameter uncertainties:
  1  9.46127
  2  3.76088
  3  4.2517e-05
  4  8.12928e-06
  5  9.40692
  6  1.82678
  7  8.59617e-07
  8  9.18763e-07
  9  58.3517
  10  1.37445e-05
  11  2.30755
  12  24.0829
  13  6.57434e-05
  14  3.32337
  15  10.4135
  16  1.12599e-06
  17  1.74395e-06
  18  9.3131
  19  6.23323e-07
  20  3.31248e-05
  21  7.40386e-05
  22  27.2086
  23  6.47834
  24  2.28578e-06
  25  2.35764e-06
  26  3.96304e-05
  27  4.84386e-06
  28  11.3181
  29  0.219838
  30  0.23726
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.404e+01  1.041e+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:  9.011e-01  2.373e-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.129e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/202585/likelihoodResults_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.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) = 6190.95103471
delta logL = 0.234091089088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.92819508
delta logL = 0.256930721268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.355       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1130       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88289       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6190.928     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.354        11.483        .96140E-04    .21508E-02
   2  alpha         2.1127        .66022        .17344E-01    .25606E-03
   3  Normalizat    1.1490        .21161        .23226E-03   -.16432E-03
   4  Prefactor     .88293        .23318        .28898E-03   -.16751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3543
  alpha      = 2.11275
  Normalizat = 1.14902
  Prefactor  = 0.882931
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.928     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.354        11.458        .19228E-04   -1.4875    
   2  alpha         2.1127        .65872        .69375E-03   -.15553    
   3  Normalizat    1.1490        .21181        .46452E-04   -.88193    
   4  Prefactor     .88293        .23338        .11559E-04   -.96740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08693e-09
Minuit parameter uncertainties:
  1  11.4598
  2  0.666794
  3  0.211971
  4  0.23364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202585': 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) = 6190.92819483
delta logL = 0.256930969264

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.735e+01  1.146e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.113e+00  6.668e-01  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:  8.829e-01  2.336e-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.149e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 140.885 38.874
Photon Index (Free Index): 2.11 +/- 0.67
Photon Flux (Free Index): 4.53e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.21e-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/202585/cmap_HighResolution_600393601_600652801_4FGL_J0923.5+3852_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='1.78e-05', photon_flux_error='4.26e-08', dlogl='2.57e-01', energy_flux='1.53e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-08-31 10:47:22.868869', photon_index_error2='0.67', photon_index2='2.11', ts='3.39', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.21e-05', EG='1.13', time_epoch_completed='1630432042.87', return_code='0', job_id='202585', GAL2='0.88', EG2='1.15', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.72e-08', ts2='3.92', photon_index='2.61' WHERE bin_id='1393' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 202585: <4FGL_J0923.5+3852_daily_bin1393> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1393> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:30:49 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:30:52 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:52 2021
Terminated at Tue Aug 31 10:47:23 2021
Results reported at Tue Aug 31 10:47:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1393 140.885 38.8743 600393601 600652801 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 :                                   945.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

