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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1027
RA = 140.885, Dec = 38.8743
tmin = 505526401, tmax = 505785601
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='198660', job_status='RUN', time_executed='2021-08-31 10:22:30.638589', time_epoch_executed='1630430550.64' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198660/ft1_4FGL_J0923.5+3852_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198660/ft2_4FGL_J0923.5+3852_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198660/ft1_4FGL_J0923.5+3852_daily_bin1027.fits outfile=/scratch/kocevski/198660/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1027.fits ra=140.885 dec=38.8743 rad=12.0 tmin=505526401.0 tmax=505785601.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.59
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198660/ft2_4FGL_J0923.5+3852_daily_bin1027.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/198660/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/198660/ft1_filtered_4FGL_J0923.5+3852_daily_bin1027.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.92
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198660/ft1_filtered_4FGL_J0923.5+3852_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/198660/ft2_4FGL_J0923.5+3852_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/198660/ltcube_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.fits outfile=/scratch/kocevski/198660/expmap_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.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/198660/ltcube_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.fits
.....................!
real 192.64
user 187.92
sys 3.64

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/198660/ft1_filtered_4FGL_J0923.5+3852_daily_bin1027.fits scfile=/scratch/kocevski/198660/ft2_4FGL_J0923.5+3852_daily_bin1027.fits outfile=/scratch/kocevski/198660/cmap_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198660/ft1_filtered_4FGL_J0923.5+3852_daily_bin1027.fits scfile=/scratch/kocevski/198660/ft2_4FGL_J0923.5+3852_daily_bin1027.fits outfile=/scratch/kocevski/198660/cmap_HighResolution_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9348       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57491E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2225       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31025E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69410E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.426       1.0000         .10000E-03   10000.    
    20 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8629       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47179       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89614       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=   5635.346     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     3516 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9289        11.075       -.43152E-06   -.13653E-03
   2  Prefactor     .10000E-03    .85964        .53834E-09** at limit **
   3  Prefactor     34.818        25.204        .67817E-06    .13944E-03
   4  Prefactor     .10000E-03    4.6726       -.38509E-07** at limit **
   5  norm          .10000E-03    1.8216       -.41303E-07** at limit **
   6  Prefactor     3.9343        2.5527        .95717E-06   -.16735E-02
   7  Prefactor     .10001E-03    59.556       -.83882E-06** at limit **
   8  Prefactor     .10000E-03    3.2775        .36024E-07** at limit **
   9  Prefactor     .10000E-03    13.096        .29862E-07** at limit **
  10  Prefactor     5.2203        3.7987       -.73496E-07   -.15242E-03
  11  norm          .10000E-03    .67419        .46431E-07** at limit **
  12  Prefactor     .10000E-03    7.1815       -.21978E-06** at limit **
  13  norm          1.3344        .50662       -.16689E-07   -.24858E-03
  14  Prefactor     .10000E-03    2.3043       -.99033E-07** at limit **
  15  norm          .10000E-03    7.1286       -.17714E-06** at limit **
  16  Prefactor     .36680        2.4697        .45578E-06   -.36035E-03
  17  Prefactor     5.5380        4.2576        .12151E-05    .13873E-02
  18  Prefactor     .10001E-03    7.4785       -.10578E-06** at limit **
  19  Prefactor     30.421        24.333       -.10546E-05   -.37322E-03
  20  norm          .10000E-03    6.0627        .25743E-06** at limit **
  21  Prefactor     .10000E-03    9.6575       -.92066E-07** at limit **
  22  Prefactor     .10000E-03    152.86        .11695E-05** at limit **
  23  Prefactor     .10000E-03    8.2615        .19764E-06** at limit **
  24  norm          6.8659        11.360       -.77890E-06   -.29723E-03
  25  Prefactor     .48930        2.7875        .11571E-05   -.76844E-03
  26  Prefactor     .10000E-03    13.077       -.36012E-07** at limit **
  27  Prefactor     .10000E-03    2.7322       -.25730E-07** at limit **
  28  norm          .10000E-03    4.8623        .29855E-07** at limit **
  29  Normalizat    1.0437        .18143       -.80129E-06   -.20912E-03
  30  Prefactor     .89588        .19086       -.57079E-07   -.16348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92892
  Prefactor  = 0.0001
  Prefactor  = 34.8181
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.93433
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22027
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3344
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.366799
  Prefactor  = 5.53797
  Prefactor  = 0.000100007
  Prefactor  = 30.4214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.86593
  Prefactor  = 0.489301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04366
  Prefactor  = 0.895881
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.346     FROM HESSE     STATUS=OK           594 CALLS     4110 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9289        11.105        .15244E-03   -1.5181    
   2  Prefactor     .10000E-03    .86269        .67954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.818        25.276        .67917E-04   -1.4527    
   4  Prefactor     .10000E-03    4.6868        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8231        .98955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9343        2.8472        .51137E-03   -1.5311    
   7  Prefactor     .10001E-03    55.519        .17227       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4314        .26519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2203        3.7060        .10911E-03   -1.5251    
  11  norm          .10000E-03    .68164        .60154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3344        .50049        .31091E-04   -1.5477    
  14  Prefactor     .10000E-03    2.3633        .22034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    69.089        .36706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36680        3.9784        .19461E-02   -1.5587    
  17  Prefactor     5.5380        4.4550        .13597E-03   -1.5237    
  18  Prefactor     .10001E-03    24.223        .38741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.421        24.278        .72637E-04   -1.4604    
  20  norm          .10000E-03    6.0732        .18062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    159.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.4160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8659        11.483        .15315E-03   -1.5184    
  25  Prefactor     .48930        8.6842        .22404E-02   -1.5568    
  26  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7469        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.8838        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0437        .20939        .22713E-03   -.91582    
  30  Prefactor     .89588        .22243        .26865E-03   -.96285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69194e-09
Minuit parameter uncertainties:
  1  11.1079
  2  5.37665e-07
  3  25.2834
  4  6.98364e-06
  5  2.03094e-06
  6  2.8473
  7  0.00179108
  8  1.5927e-06
  9  5.70334e-06
  10  3.70617
  11  3.91379e-06
  12  2.54104e-05
  13  0.500488
  14  5.21315e-08
  15  0.000947202
  16  2.41587
  17  4.45531
  18  0.000846503
  19  24.2859
  20  3.00229e-05
  21  8.80811e-06
  22  0.000771338
  23  1.381e-05
  24  11.4864
  25  4.123
  26  3.399e-06
  27  9.46873e-06
  28  2.62824e-06
  29  0.20956
  30  0.222655
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  9.472e-04  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:  8.959e-01  2.227e-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.044e+00  2.096e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198660/likelihoodResults_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.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) = 5635.34656308
delta logL = -6.67676440571e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5635.34656298
delta logL = -6.66631631248e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96133E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6089       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89597       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=   5635.346     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      254 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10101E-03    18.734        .58543E-01** at limit **
   2  alpha         2.4030        3.0863        .16480        .19453E-06
   3  Normalizat    1.0437        .63260E-02    .22713E-03    .23025E-05
   4  Prefactor     .89588        .70217E-02    .26865E-03    .72363E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101011
  alpha      = 2.40299
  Normalizat = 1.04366
  Prefactor  = 0.895881
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.346     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10101E-03    30.005        .62040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4030        3.6877        .65922E-02   -.38816E-01
   3  Normalizat    1.0437        .83479E-02    .90851E-05   -.91582    
   4  Prefactor     .89588        .92653E-02    .10746E-04   -.96285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20017e-11
Minuit parameter uncertainties:
  1  0.0110193
  2  646.997
  3  0.00834795
  4  0.00926534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198660': 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): 102
logL (Free Index) = 5635.34649611
delta logL = 2.05059222935e-07

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.010e-04  1.102e-02  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.403e+00  6.470e+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:  8.959e-01  9.265e-03  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.044e+00  8.348e-03  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/198660/cmap_HighResolution_505526401_505785601_4FGL_J0923.5+3852_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-08-31 10:36:24.845580', job_id='198660', GAL2='0.90', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630431384.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1027' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 198660: <4FGL_J0923.5+3852_daily_bin1027> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1027> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 10:20:46 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:21:24 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:21:24 2021
Terminated at Tue Aug 31 10:36:26 2021
Results reported at Tue Aug 31 10:36:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1027 140.885 38.8743 505526401 505785601 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 :                                   828.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            940 sec.

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

