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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1482
RA = 37.9616, Dec = 13.3692
tmin = 623462401, tmax = 623721601
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='500021', job_status='RUN', time_executed='2021-08-16 04:01:14.654612', time_epoch_executed='1629111674.65' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500021/ft1_4FGL_J0231.8+1322_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500021/ft1_4FGL_J0231.8+1322_daily_bin1482.fits outfile=/scratch/kocevski/500021/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1482.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=623462401.0 tmax=623721601.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 7.16
user 2.50
sys 4.57

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.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/500021/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.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 4.92
user 0.33
sys 4.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/500021/ltcube_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.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/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits
.....................!
real 20.15
user 14.82
sys 5.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/500021/ltcube_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits outfile=/scratch/kocevski/500021/expmap_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.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/500021/ltcube_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits
.....................!
real 200.72
user 188.33
sys 10.91

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

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits outfile=/scratch/kocevski/500021/cmap_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.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=37.9616 yref=13.3692 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 4.77
user 0.38
sys 4.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits outfile=/scratch/kocevski/500021/cmap_HighResolution_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.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=37.9616 yref=13.3692 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 4.89
user 0.39
sys 4.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500021/Model_4FGL_J0231.8+1322_daily_bin1482.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/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits......................!
real 51.78
user 44.59
sys 6.93

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits', '/scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits', expMap='/scratch/kocevski/500021/expmap_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits', expCube='/scratch/kocevski/500021/ltcube_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500021/Model_4FGL_J0231.8+1322_daily_bin1482.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/500021/ft1_filtered_4FGL_J0231.8+1322_daily_bin1482.fits
Spacecraft file(s): /scratch/kocevski/500021/ft2_4FGL_J0231.8+1322_daily_bin1482.fits
Exposure map: /scratch/kocevski/500021/expmap_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits
Exposure cube: /scratch/kocevski/500021/ltcube_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500021/Model_4FGL_J0231.8+1322_daily_bin1482.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) = 2516.51018768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3169       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16750E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14634E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.487       1.0000         .10000E-03   10000.    
    16 'norm      '    .11358E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.930       1.0000         .10000E-03   10000.    
    19 'norm      '    18.093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    103.32       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3117       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.051       1.0000         .10000E-03   10000.    
    27 'norm      '    .13366E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.6080       1.0000         .10000E-03   10000.    
    29 'Prefactor '    275.92       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .16485       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .27099       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2516.469     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4399 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    47.954        .81807E-07** at limit **
   2  Prefactor     .10000E-03    23.045        .85066E-07** at limit **
   3  Prefactor     4.3175        15.446        .52895E-06    .26774E-03
   4  norm          .10000E-03    13.444        .38203E-07** at limit **
   5  Prefactor     .10000E-03    12.842        .81124E-07** at limit **
   6  Prefactor     .10000E-03    6.2844        .92006E-07** at limit **
   7  Prefactor     .10000E-03    68.543        .11971E-06** at limit **
   8  Prefactor     .10000E-03    40.074        .37492E-07** at limit **
   9  Prefactor     .10001E-03    122.80        .54975E-06** at limit **
  10  Prefactor     27.860        146.92       -.60230E-07   -.34227E-04
  11  Prefactor     .10000E-03    71.495       -.14463E-07** at limit **
  12  Prefactor     .10000E-03    9.8701        .42685E-07** at limit **
  13  Prefactor     .10000E-03    109.82        .21612E-06** at limit **
  14  Prefactor     .10000E-03    11.417        .19355E-07** at limit **
  15  Prefactor     35.462        35.924       -.31130E-06   -.12034E-03
  16  norm          .10000E-03    2.9958       -.77057E-06** at limit **
  17  Prefactor     .10000E-03    55.604        .85985E-07** at limit **
  18  Prefactor     62.923        49.450        .13955E-05    .38024E-04
  19  norm          18.087        26.386        .47264E-06    .66346E-05
  20  Prefactor     103.27        65.478       -.22118E-06   -.98774E-04
  21  Prefactor     .10000E-03    70.855        .88123E-07** at limit **
  22  Prefactor     1.3386        108.37        .34501E-05    .30279E-04
  23  Prefactor     .10000E-03    97.972        .76807E-07** at limit **
  24  Prefactor     .10000E-03    12.853        .11743E-06** at limit **
  25  norm          .10000E-03    21.944       -.51845E-07** at limit **
  26  norm          12.023        21.106        .21301E-06   -.90963E-04
  27  norm          .10002E-03    15.474        .26430E-05** at limit **
  28  norm          3.5957        13.019        .18237E-06    .25912E-04
  29  Prefactor     275.67        294.86        .81510E-06    .26842E-04
  30  Prefactor     .20600        6.6605       -.21546E-06   -.95697E-05
  31  Normalizat    .27074        .49616       -.13510E-04   -.65535E-04
  32  Prefactor     1.2382        .19811        .20037E-05   -.21512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.31747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 27.8597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.4618
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.9229
  norm       = 18.0869
  Prefactor  = 103.273
  Prefactor  = 0.0001
  Prefactor  = 1.33862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.0233
  norm       = 0.000100024
  norm       = 3.5957
  Prefactor  = 275.667
  Prefactor  = 0.206001
  Normalizat = 0.27074
  Prefactor  = 1.23821
 **********
 **   18 **HESSE 
 **********

 FCN=   2516.469     FROM HESSE     STATUS=OK           649 CALLS     5048 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3175        16.579        .96942E-03   -1.5292    
   4  norm          .10000E-03    13.491        .17971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.872        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4676        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    127.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.860        146.62        .38125E-03   -1.4652    
  11  Prefactor     .10000E-03    71.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8807        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    110.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.426        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.462        36.032        .67273E-04   -1.4516    
  16  norm          .10000E-03    4.7157        .13246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     62.923        50.177        .50585E-04   -1.4120    
  19  norm          18.087        26.486        .94159E-04   -1.4857    
  20  Prefactor     103.27        65.833        .19779E-03   -1.3672    
  21  Prefactor     .10000E-03    70.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3386        115.27        .38490E-03   -1.5477    
  23  Prefactor     .10000E-03    98.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.095        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    22.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.023        20.232        .11540E-03   -1.5014    
  27  norm          .10002E-03    27.243        .24678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.5957        12.980        .21272E-03   -1.5329    
  29  Prefactor     275.67        295.89        .12210E-03   -1.2372    
  30  Prefactor     .20600        44.646        .24432E-02   -1.5617    
  31  Normalizat    .27074        .51004        .80829E-03   -1.2463    
  32  Prefactor     1.2382        .20017        .15654E-03   -.85163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15397e-08
Minuit parameter uncertainties:
  1  7.50237e-05
  2  5.46814e-05
  3  16.5967
  4  6.92075e-05
  5  2.69713e-05
  6  0.000115194
  7  0.000398576
  8  1.7175e-05
  9  0.00186269
  10  128.322
  11  2.98374e-05
  12  2.88523e-05
  13  0.00049342
  14  2.60055e-05
  15  36.0546
  16  6.38827e-05
  17  0.000116253
  18  50.2109
  19  26.5028
  20  65.8798
  21  9.21851e-05
  22  24.8919
  23  5.26187e-06
  24  4.1679e-06
  25  3.3538e-05
  26  20.2437
  27  0.00162861
  28  12.9899
  29  297.526
  30  6.06846
  31  0.519189
  32  0.20029
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.885e-05  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.238e+00  2.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  2.707e-01  5.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 2.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500021/likelihoodResults_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.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) = 2516.46927009
delta logL = -0.000471095233479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2516.46880092
delta logL = -1.9222429728e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12723E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6627       1.0000          .0000       10.000    
     3 'Normalizat'    .27126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   2516.469     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      253 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.14        .15570E-01** at limit **
   2  Index         2.0152        5.9984        .50000        .23373E-06
   3  Normalizat    .27074        .33916E-01    .80830E-03    .81647E-05
   4  Prefactor     1.2382        .13506E-01    .15654E-03    .46263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0152
  Normalizat = 0.270744
  Prefactor  = 1.23821
 **********
 **   18 **HESSE 
 **********

 FCN=   2516.469     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    815.03        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0152        8.2814        .50000       -.63971    
   3  Normalizat    .27074        .10217        .32332E-04   -1.2463    
   4  Prefactor     1.2382        .40708E-01    .62615E-05   -.85163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.91459e-09
Minuit parameter uncertainties:
  1  0.000648609
  2  1500.28
  3  0.102237
  4  0.0407086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500021': 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) = 2516.46879777
delta logL = 1.220332706e-06

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  6.486e-04  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.015e+00  1.500e+03  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.238e+00  4.071e-02  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  2.707e-01  1.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.962 13.369

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/500021/cmap_HighResolution_623462401_623721601_4FGL_J0231.8+1322_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-02', job_status='DONE', photon_flux_upper_limit='2.91e-07', time_completed='2021-08-16 04:11:24.439092', job_id='500021', GAL2='1.24', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1629112284.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1482' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 500021: <4FGL_J0231.8+1322_daily_bin1482> in cluster <slac> Done

Job <4FGL_J0231.8+1322_daily_bin1482> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 03:55:44 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:57:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 03:57:05 2021
Terminated at Mon Aug 16 04:11:25 2021
Results reported at Mon Aug 16 04:11:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1482 37.9616 13.3692 623462401 623721601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            941 sec.

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

