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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin783
RA = 140.885, Dec = 38.8743
tmin = 442281601, tmax = 442540801
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='196500', job_status='RUN', time_executed='2021-08-31 10:16:07.819583', time_epoch_executed='1630430167.82' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196500

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196500/ft1_4FGL_J0923.5+3852_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196500/ft1_4FGL_J0923.5+3852_daily_bin783.fits outfile=/scratch/kocevski/196500/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin783.fits ra=140.885 dec=38.8743 rad=12.0 tmin=442281601.0 tmax=442540801.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 3.48
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.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/196500/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/196500/ft1_filtered_4FGL_J0923.5+3852_daily_bin783.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196500/ft1_filtered_4FGL_J0923.5+3852_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/196500/ltcube_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.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/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits
.....................!
real 11.68
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196500/ft1_filtered_4FGL_J0923.5+3852_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/196500/ltcube_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.fits outfile=/scratch/kocevski/196500/expmap_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.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/196500/ltcube_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.fits
.....................!
real 189.11
user 184.99
sys 3.76

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/196500/ft1_filtered_4FGL_J0923.5+3852_daily_bin783.fits scfile=/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits outfile=/scratch/kocevski/196500/cmap_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196500/ft1_filtered_4FGL_J0923.5+3852_daily_bin783.fits scfile=/scratch/kocevski/196500/ft2_4FGL_J0923.5+3852_daily_bin783.fits outfile=/scratch/kocevski/196500/cmap_HighResolution_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11984E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1431       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74007       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9225       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .54219       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7840       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.913       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.958       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    29.414       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7720       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65383       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0844       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=   5419.735     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     4070 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7335        17.034       -.24353E-06    .23004E-04
   2  Prefactor     .10000E-03    2.4513       -.14800E-07** at limit **
   3  Prefactor     18.904        26.662       -.13288E-06    .43806E-04
   4  Prefactor     2.1444        6.6629        .18949E-05   -.34466E-04
   5  norm          .10000E-03    2.6408        .20294E-07** at limit **
   6  Prefactor     .10000E-03    .72402       -.19995E-07** at limit **
   7  Prefactor     93.771        71.538       -.12363E-05   -.56317E-04
   8  Prefactor     4.0037        3.1551        .29300E-07    .35660E-04
   9  Prefactor     14.747        34.472        .41417E-06   -.67155E-05
  10  Prefactor     .73694        4.1198       -.18287E-05   -.14335E-03
  11  norm          .10000E-03    .50917       -.21171E-08** at limit **
  12  Prefactor     .10000E-03    39.123       -.22584E-05** at limit **
  13  norm          .10000E-03    .22220       -.99376E-08** at limit **
  14  Prefactor     6.9210        3.0778       -.10978E-06   -.32342E-03
  15  norm          .10000E-03    2.5538       -.18616E-06** at limit **
  16  Prefactor     .54314        3.6628        .18769E-05   -.10828E-03
  17  Prefactor     1.7605        2.5446        .95200E-10   -.28745E-05
  18  Prefactor     4.7832        9.3905        .54467E-06   -.11187E-05
  19  Prefactor     .10000E-03    6.4727       -.11571E-06** at limit **
  20  norm          .10000E-03    6.9652        .28075E-06** at limit **
  21  Prefactor     18.896        30.212       -.23402E-06   -.24380E-04
  22  Prefactor     38.960        34.536       -.43121E-06   -.51813E-04
  23  Prefactor     .10000E-03    2.9432       -.20880E-07** at limit **
  24  norm          29.414        13.798       -.29371E-07   -.12679E-04
  25  Prefactor     .10000E-03    3.3477        .30732E-07** at limit **
  26  Prefactor     .10000E-03    9.8630       -.31370E-08** at limit **
  27  Prefactor     2.7719        3.8736        .80813E-08   -.21065E-04
  28  norm          .10000E-03    3.0319       -.54092E-07** at limit **
  29  Normalizat    .65402        .17215        .18056E-06   -.81693E-05
  30  Prefactor     1.0841        .18429       -.47654E-07   -.11494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73351
  Prefactor  = 0.0001
  Prefactor  = 18.9035
  Prefactor  = 2.14436
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.7708
  Prefactor  = 4.00373
  Prefactor  = 14.7471
  Prefactor  = 0.736937
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.92103
  norm       = 0.0001
  Prefactor  = 0.543138
  Prefactor  = 1.76054
  Prefactor  = 4.78316
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.8962
  Prefactor  = 38.9603
  Prefactor  = 0.0001
  norm       = 29.414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77185
  norm       = 0.0001
  Normalizat = 0.654022
  Prefactor  = 1.08413
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.735     FROM HESSE     STATUS=OK           598 CALLS     4668 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7335        16.042        .14412E-03   -1.5152    
   2  Prefactor     .10000E-03    4.6652        .20882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.904        26.635        .92104E-04   -1.4838    
   4  Prefactor     2.1444        6.6624        .14076E-02   -1.5415    
   5  norm          .10000E-03    2.6637        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .73561        .61111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     93.771        71.638        .20754E-03   -1.3768    
   8  Prefactor     4.0037        3.1555        .11203E-03   -1.5308    
   9  Prefactor     14.747        34.322        .10435E-03   -1.4940    
  10  Prefactor     .73694        5.0328        .20422E-02   -1.5536    
  11  norm          .10000E-03    .51235        .51285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25810        .62017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9210        2.8420        .71938E-04   -1.5182    
  15  norm          .10000E-03    2.5629        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54314        4.4485        .18603E-02   -1.5561    
  17  Prefactor     1.7605        2.5226        .13603E-03   -1.5443    
  18  Prefactor     4.7832        9.3784        .91972E-03   -1.5271    
  19  Prefactor     .10000E-03    6.4773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.896        30.131        .92098E-04   -1.4838    
  22  Prefactor     38.960        34.621        .64216E-04   -1.4459    
  23  Prefactor     .10000E-03    2.9556        .12333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.414        13.798        .73873E-04   -1.4623    
  25  Prefactor     .10000E-03    3.4670        .26168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.8793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.7719        3.8528        .16339E-03   -1.5375    
  28  norm          .10000E-03    3.0385        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .65402        .19772        .24779E-03   -1.0574    
  30  Prefactor     1.0841        .21276        .22780E-03   -.89975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45128e-08
Minuit parameter uncertainties:
  1  16.0514
  2  5.7307e-06
  3  26.6515
  4  6.66472
  5  9.68539e-06
  6  2.35134e-06
  7  71.7046
  8  3.15561
  9  34.3679
  10  3.85188
  11  1.95759e-07
  12  0.000463747
  13  5.15067e-07
  14  2.84201
  15  3.01896e-06
  16  3.10883
  17  2.52272
  18  9.3813
  19  5.96362e-06
  20  1.3874e-05
  21  30.1556
  22  34.6387
  23  1.62561e-06
  24  13.7998
  25  2.892e-06
  26  4.21156e-06
  27  3.85318
  28  2.84725e-06
  29  0.197933
  30  0.212927
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  3.019e-06  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.084e+00  2.129e-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.540e-01  1.979e-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: 4.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196500/likelihoodResults_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.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) = 5419.73684053
delta logL = -0.00184900366094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5419.73499151
delta logL = 2.07000994124e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6003       1.0000          .0000       5.0000    
     3 'Normalizat'    .65402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0841       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=   5419.735     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    134.16        .11523E-01** at limit **
   2  alpha         2.2551        2.9492        .16477       -.22769E-08
   3  Normalizat    .65402        .28157E-01    .24779E-03    .61617E-04
   4  Prefactor     1.0841        .32809E-01    .22780E-03    .76807E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25512
  Normalizat = 0.654022
  Prefactor  = 1.08413
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.735     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7307        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2551        3.3636        .65910E-02   -.98110E-01
   3  Normalizat    .65402        .17801        .99117E-05   -1.0574    
   4  Prefactor     1.0841        .20750        .91118E-05   -.89975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24895e-12
Minuit parameter uncertainties:
  1  2.61002e-06
  2  236.504
  3  0.178167
  4  0.207656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196500': 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) = 5419.73499035
delta logL = 1.17752460937e-06

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  2.610e-06  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.255e+00  2.365e+02  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.084e+00  2.077e-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.540e-01  1.782e-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/196500/cmap_HighResolution_442281601_442540801_4FGL_J0923.5+3852_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-05', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-08-31 10:30:30.964325', job_id='196500', GAL2='1.08', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630431030.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='783' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 196500: <4FGL_J0923.5+3852_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin783 140.885 38.8743 442281601 442540801 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 :                                   859.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

