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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1513
RA = 140.895, Dec = 41.4283
tmin = 631497601, tmax = 631756801
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='214329', job_status='RUN', time_executed='2021-08-31 11:09:39.212024', time_epoch_executed='1630433379.21' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214329/ft1_4FGL_J0923.5+4125_daily_bin1513.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214329/ft1_4FGL_J0923.5+4125_daily_bin1513.fits outfile=/scratch/kocevski/214329/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1513.fits ra=140.895 dec=41.4283 rad=12.0 tmin=631497601.0 tmax=631756801.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.92
user 2.36
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.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/214329/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1513.fits evtable="EVENTS" outfile="/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.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 3.35
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits" evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits sctable="SC_DATA" outfile=/scratch/kocevski/214329/ltcube_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.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/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits
.....................!
real 14.20
user 12.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits sctable="SC_DATA" expcube=/scratch/kocevski/214329/ltcube_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits outfile=/scratch/kocevski/214329/expmap_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.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/214329/ltcube_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits
.....................!
real 196.04
user 186.63
sys 5.27

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

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits outfile=/scratch/kocevski/214329/cmap_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.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.895 yref=41.4283 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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits outfile=/scratch/kocevski/214329/cmap_HighResolution_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.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.895 yref=41.4283 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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214329/Model_4FGL_J0923.5+4125_daily_bin1513.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/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits.....................!
real 27.28
user 25.43
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits', '/scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits', expMap='/scratch/kocevski/214329/expmap_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits', expCube='/scratch/kocevski/214329/ltcube_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214329/Model_4FGL_J0923.5+4125_daily_bin1513.xml', optimizer='MINUIT')

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

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/214329/ft1_filtered_4FGL_J0923.5+4125_daily_bin1513.fits
Spacecraft file(s): /scratch/kocevski/214329/ft2_4FGL_J0923.5+4125_daily_bin1513.fits
Exposure map: /scratch/kocevski/214329/expmap_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits
Exposure cube: /scratch/kocevski/214329/ltcube_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214329/Model_4FGL_J0923.5+4125_daily_bin1513.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) = 2013.96796616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12848E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    92.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    91.518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5754       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1966       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0504       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    73.225       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11698E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5806       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.318       1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.685       1.0000         .10000E-03   10000.    
    31 'norm      '    12.502       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .72829       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2013.910     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4606 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.700        .21188E-06** at limit **
   2  Prefactor     .10000E-03    9.7959        .40756E-07** at limit **
   3  Prefactor     .10000E-03    59.837       -.17941E-06** at limit **
   4  Prefactor     .10000E-03    23.086        .14630E-07** at limit **
   5  norm          .10001E-03    52.725        .11290E-04** at limit **
   6  norm          .10000E-03    20.429        .42526E-05** at limit **
   7  Prefactor     .10000E-03    2.6802        .85668E-06** at limit **
   8  Prefactor     .10000E-03    40.794        .39878E-05** at limit **
   9  Prefactor     92.376        184.00       -.64649E-06   -.25058E-04
  10  Prefactor     8.9827        19.036        .26445E-06   -.13787E-04
  11  Prefactor     91.610        125.52        .35189E-06    .10704E-04
  12  Prefactor     .10000E-03    5.0443        .84459E-06** at limit **
  13  norm          .10000E-03    9.8586       -.13160E-06** at limit **
  14  Prefactor     .10000E-03    101.62        .71332E-05** at limit **
  15  norm          .10000E-03    .45155        .77731E-07** at limit **
  16  Prefactor     .10000E-03    2.9934        .16081E-06** at limit **
  17  norm          .10000E-03    12.026        .55168E-06** at limit **
  18  Prefactor     4.5792        5.6458        .32141E-07   -.83107E-04
  19  Prefactor     2.1938        20.434        .18464E-05    .23014E-04
  20  Prefactor     5.2702        6.2570       -.16354E-07   -.60229E-04
  21  Prefactor     2.0482        62.706        .69357E-06   -.34798E-05
  22  norm          .10000E-03    19.532       -.65631E-06** at limit **
  23  Prefactor     .10000E-03    55.039       -.20637E-05** at limit **
  24  Prefactor     .10000E-03    4.8180       -.25075E-07** at limit **
  25  Prefactor     73.162        75.813        .18044E-07   -.67530E-04
  26  Prefactor     .11248E-03    41.568        .51150E-05** at limit **
  27  norm          1.5672        58.516        .14454E-05    .48216E-05
  28  Prefactor     .10000E-03    3.8309       -.92454E-07** at limit **
  29  Prefactor     12.323        12.130        .43036E-06   -.16469E-03
  30  Prefactor     11.570        92.082        .33495E-06   -.32171E-04
  31  norm          12.508        18.441       -.12970E-06   -.29370E-04
  32  Normalizat    .72915        .38892       -.78826E-06   -.20343E-03
  33  Prefactor     1.5642        .40214        .35839E-06   -.21633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 92.376
  Prefactor  = 8.98274
  Prefactor  = 91.6096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.57919
  Prefactor  = 2.1938
  Prefactor  = 5.27018
  Prefactor  = 2.04825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.1623
  Prefactor  = 0.000112483
  norm       = 1.56723
  Prefactor  = 0.0001
  Prefactor  = 12.3227
  Prefactor  = 11.5698
  norm       = 12.508
  Normalizat = 0.729149
  Prefactor  = 1.56423
 **********
 **   18 **HESSE 
 **********

 FCN=   2013.910     FROM HESSE     STATUS=OK           697 CALLS     5303 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7978        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    53.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6840        .71714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     92.376        185.73        .20924E-03   -1.3783    
  10  Prefactor     8.9827        19.027        .13374E-03   -1.5108    
  11  Prefactor     91.610        125.28        .21003E-03   -1.3791    
  12  Prefactor     .10000E-03    5.0674        .98337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.8888        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    101.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .49829        .58468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0137        .75747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.036        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5792        5.6260        .11180E-03   -1.5280    
  19  Prefactor     2.1938        19.973        .27764E-03   -1.5412    
  20  Prefactor     5.2702        6.2465        .11749E-03   -1.5249    
  21  Prefactor     2.0482        61.326        .28870E-03   -1.5422    
  22  norm          .10000E-03    19.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    55.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.8276        .96184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     73.162        76.270        .23459E-03   -1.3995    
  26  Prefactor     .11248E-03    48.263        .69229E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5672        58.329        .33782E-03   -1.5458    
  28  Prefactor     .10000E-03    3.8515        .85759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.323        12.158        .11413E-03   -1.5006    
  30  Prefactor     11.570        93.978        .11719E-03   -1.5028    
  31  norm          12.508        18.385        .11329E-03   -1.5000    
  32  Normalizat    .72915        .46546        .31310E-03   -1.0275    
  33  Prefactor     1.5642        .48616        .26788E-03   -.75756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54126e-09
Minuit parameter uncertainties:
  1  0.00012063
  2  6.24374e-06
  3  0.000188855
  4  2.49247e-05
  5  0.00118554
  6  0.00033299
  7  1.91406e-05
  8  0.000317164
  9  186.918
  10  19.0393
  11  125.643
  12  2.57684e-05
  13  1.36479e-05
  14  0.00112007
  15  7.12948e-07
  16  1.04685e-06
  17  2.50078e-05
  18  5.62667
  19  13.2445
  20  6.24729
  21  22.4401
  22  8.61024e-05
  23  0.000239458
  24  3.24056e-06
  25  76.3719
  26  0.0491304
  27  19.1417
  28  4.9978e-06
  29  12.1599
  30  66.0908
  31  18.3934
  32  0.468023
  33  0.48762
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  4.579e+00  5.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.564e+00  4.876e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  7.291e-01  4.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 7.83e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.73e-05

TS (Fixed Index): 1.21
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 2.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214329/likelihoodResults_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.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) = 2013.47099126
delta logL = 0.439168897509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2013.25012788
delta logL = 0.660032271264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5288       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5078       1.0000          .0000       10.000    
     3 'Normalizat'    .76257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2013.250     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5288        8.1829        .32456E-02    .23127E-02
   2  Index         1.5078        .43779        .12895       -.73262E-04
   3  Normalizat    .76255        .32870        .69245E-01    .30079E-04
   4  Prefactor     1.5079        .39642        .61330E-01   -.42272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52883
  Index      = 1.50776
  Normalizat = 0.762554
  Prefactor  = 1.50794
 **********
 **   18 **HESSE 
 **********

 FCN=   2013.250     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5288        8.3721        .11292E-03   -1.5090    
   2  Index         1.5078        .48481        .52786E-02   -.77323    
   3  Normalizat    .76255        .39340        .30642E-03   -1.0147    
   4  Prefactor     1.5079        .47552        .27121E-03   -.77318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79691e-09
Minuit parameter uncertainties:
  1  8.37315
  2  0.486302
  3  0.394874
  4  0.476935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214329': 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) = 2013.25012788
delta logL = 0.660032273868

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  9.529e+00  8.373e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.508e+00  4.863e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.508e+00  4.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  7.626e-01  3.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 140.895 41.428
Photon Index (Free Index): 1.51 +/- 0.49
Photon Flux (Free Index): 5.21e-08 +/- 5.04e-08
Energy Flux (Free Index): 1.61e-04 +/- 2.31e-04

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/214329/cmap_HighResolution_631497601_631756801_4FGL_J0923.5+4125_daily_bin1513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-02', comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='1.61e-04', photon_flux_error='7.83e-08', dlogl='6.60e-01', energy_flux='2.22e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-08-31 11:19:06.393705', photon_index_error2='0.49', photon_index2='1.51', ts='1.21', fit_tolerance='1e-08', GAL='1.56', photon_index_error='0.00', photon_flux_upper_limit='2.72e-07', energy_flux_error2='2.31e-04', EG='0.73', time_epoch_completed='1630433946.39', return_code='0', job_id='214329', GAL2='1.51', EG2='0.76', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='5.04e-08', ts2='2.55', photon_index='2.36' WHERE bin_id='1513' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 214329: <4FGL_J0923.5+4125_daily_bin1513> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1513> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 11:06:05 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:06:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:06:06 2021
Terminated at Tue Aug 31 11:19:07 2021
Results reported at Tue Aug 31 11:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1513 140.895 41.4283 631497601 631756801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   544.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

