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


Performing analysis on: 4FGL_J1233.7-0144_daily_bin1207
RA = 188.434, Dec = -1.7428
tmin = 552182401, tmax = 552441601
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='790361', job_status='RUN', time_executed='2021-09-05 23:09:47.240793', time_epoch_executed='1630908587.24' WHERE source_name='4FGL J1233.7-0144' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790361

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790361/ft1_4FGL_J1233.7-0144_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790361/ft1_4FGL_J1233.7-0144_daily_bin1207.fits outfile=/scratch/kocevski/790361/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin1207.fits ra=188.434 dec=-1.7428 rad=12.0 tmin=552182401.0 tmax=552441601.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.42
user 3.57
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.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/790361/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.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.74
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/790361/ltcube_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.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/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits
.....................!
real 14.12
user 13.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/790361/ltcube_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits outfile=/scratch/kocevski/790361/expmap_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.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/790361/ltcube_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits
.....................!
real 192.03
user 185.54
sys 4.75

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

Setting source of interest to:
4FGL J1233.7-0144 @ 188.434 -1.7428

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits outfile=/scratch/kocevski/790361/cmap_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.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=188.434 yref=-1.7428 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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits outfile=/scratch/kocevski/790361/cmap_HighResolution_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.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=188.434 yref=-1.7428 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790361/Model_4FGL_J1233.7-0144_daily_bin1207.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/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits............................!
real 19.15
user 17.87
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits', '/scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits', expMap='/scratch/kocevski/790361/expmap_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits', expCube='/scratch/kocevski/790361/ltcube_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790361/Model_4FGL_J1233.7-0144_daily_bin1207.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1233.7-0144'

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  3.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.061e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.780e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790361/ft1_filtered_4FGL_J1233.7-0144_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/790361/ft2_4FGL_J1233.7-0144_daily_bin1207.fits
Exposure map: /scratch/kocevski/790361/expmap_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits
Exposure cube: /scratch/kocevski/790361/ltcube_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790361/Model_4FGL_J1233.7-0144_daily_bin1207.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 688.025603638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 681.832199031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29094E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    274.83       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    116.62       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82078E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .77187E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    82.634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42147E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .76163E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12204E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13225E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    150.03       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8276       1.0000         .10000E-03   10000.    
    25 'Prefactor '    319.14       1.0000         .10000E-03   10000.    
    26 'norm      '    .25814E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23461E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    2.1598       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .11945E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   681.8137     FROM MIGRAD    STATUS=CONVERGED    250 CALLS      684 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.397        .16639E-05** at limit **
   2  Prefactor     277.91        219.03        .31378E-04   -.95004E-02
   3  Prefactor     .10000E-03    57.909        .47299E-05** at limit **
   4  Prefactor     16.391        103.08       -.45852E-04    .12575E-03
   5  Prefactor     .23103E-03    967.49        .35506E-03** at limit **
   6  Prefactor     .23732E-03    1030.4        .54058E-05** at limit **
   7  Prefactor     115.61        60.272        .27928E-04    .12436E-01
   8  Prefactor     .90983E-02    298.55        .13334E-03    .14014E-02
   9  Prefactor     .10000E-03    77.196       -.29434E-05** at limit **
  10  norm          .10000E-03    13.634       -.80138E-06** at limit **
  11  norm          .10000E-03    107.52       -.34100E-06** at limit **
  12  Prefactor     2.2426        1.0273         .0000         .0000    
  13  norm          .10073E-03    721.37       -.72986E-04** at limit **
  14  Prefactor     6.9720        1.0026         .0000         .0000    
  15  Prefactor     .10000E-03    17.727       -.76823E-05** at limit **
  16  norm          .10000E-03    3.8802       -.76975E-06** at limit **
  17  Prefactor     81.523        62.730        .21587E-04   -.10960E-01
  18  Prefactor     .10000E-03    13.042       -.31281E-05** at limit **
  19  norm          .10000E-03    84.700       -.16018E-04** at limit **
  20  Prefactor     .10000E-03    22.648       -.29126E-05** at limit **
  21  Prefactor     .10000E-03    281.99       -.78426E-05** at limit **
  22  Prefactor     .10000E-03    87.893        .26400E-06** at limit **
  23  norm          149.13        52.742        .19123E-04    .11480E-01
  24  norm          1.8289        1.1486        .16353E-06   -.31229E-05
  25  Prefactor     320.52        38.641        .19665E-05   -.99628E-02
  26  norm          .10000E-03    23.825       -.29007E-05** at limit **
  27  Prefactor     .10000E-03    120.46        .12001E-04** at limit **
  28  Normalizat    2.1540        .49247       -.11757E-04    .14576E-04
  29  Prefactor      .0000        .30532        .21455E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 277.913
  Prefactor  = 0.0001
  Prefactor  = 16.3914
  Prefactor  = 0.00023103
  Prefactor  = 0.000237315
  Prefactor  = 115.609
  Prefactor  = 0.00909835
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24259
  norm       = 0.000100728
  Prefactor  = 6.97203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 149.132
  norm       = 1.82893
  Prefactor  = 320.517
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.15397
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   681.8137     FROM HESSE     STATUS=FAILED        53 CALLS      737 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.359        .91675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     277.91        210.39        .61167E-03   -1.2358    
   3  Prefactor     .10000E-03    57.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.391        76.411        .34710E-02   -1.4898    
   5  Prefactor     .23103E-03    978.66        .23811E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23732E-03    1045.8        .99285E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     115.61        151.12        .93148E-03   -1.3553    
   8  Prefactor     .90983E-02    6505.4        .97801E-02   -1.5689    
   9  Prefactor     .10000E-03    77.093        .92163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    107.58        .10462E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     565.14        562.78         .0000       -1.5408    
  13  norm          .10073E-03    .59591E-01   -.72986E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9720        1.0026         .0000       -1.5180    
  15  Prefactor     .10000E-03    .20571       -.76823E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571       -.76975E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     81.523        .99333        .21587E-04   -1.3900    
  18  Prefactor     .10000E-03    .21306       -.31281E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .27382       -.16018E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571       -.29126E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571       -.78426E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .26438        .26400E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          149.13        .99707        .19123E-04   -1.3259    
  24  norm          1.8289        1.0438        .16353E-06   -1.5437    
  25  Prefactor     320.52        1.0021        .19665E-05   -1.2108    
  26  norm          .10000E-03    .20937       -.29007E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20571        .12001E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    2.1540        1.0150       -.11757E-04   -.60745    
  29  Prefactor      .0000        .25504        .21455E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.06348e-10
Minuit parameter uncertainties:
  1  1.80209e-05
  2  210.972
  3  1.32391e-05
  4  70.9297
  5  0.728423
  6  0.771795
  7  151.628
  8  11.037
  9  1.29455e-06
  10  9.43464e-08
  11  1.29607e-05
  12  1.02731
  13  0.000416545
  14  1.00259
  15  4.78523e-07
  16  7.74036e-08
  17  0.993327
  18  2.04864e-07
  19  2.5797e-06
  20  3.97776e-07
  21  2.13099e-05
  22  5.17957e-07
  23  0.997069
  24  1.0438
  25  1.00208
  26  3.07053e-07
  27  6.19669e-06
  28  1.02571
  29  1.75042e-09
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 681.813711695

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  8.152e+01  9.933e-01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.061e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.780e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  0.000e+00  1.750e-09  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  2.154e+00  1.026e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 188.434 -1.743
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 3.54e-09
Energy Flux (Fixed Index): 1.74e-04 +/- 2.12e-06

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) = 680.623720531
delta logL = 1.18999116314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 680.564063827
delta logL = 1.2496478676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.85       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1973       1.0000          .0000       10.000    
     3 'Normalizat'    2.1736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58804E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   680.5641     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.77        96.948       -.39753E-05   -.18507E-06
   2  Index         1.1954        .49955       -.28434E-04    .11248E-04
   3  Normalizat    2.1738        .47789        .26920E-05    .10384E-03
   4  Prefactor     .16220E-11    .26892       -.60175E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.774
  Index      = 1.1954
  Normalizat = 2.17379
  Prefactor  = 1.62204e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   680.5641     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.77        96.891        .19102E-03   -1.3599    
   2  Index         1.1954        .49676        .36119E-03   -.86473    
   3  Normalizat    2.1738        .42839        .26537E-03   -.60263    
   4  Prefactor     .16220E-11    .30511        .74911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25208e-10
Minuit parameter uncertainties:
  1  97.0298
  2  0.498725
  3  0.429168
  4  1.41416e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790361': 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) = 680.564055138
delta logL = 1.24965655628

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  1.108e+02  9.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.195e+00  4.987e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.780e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.622e-12  1.414e-06  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  2.174e+00  4.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.86
Ra Dec: 188.434 -1.743
Photon Index (Free Index): 1.20 +/- 0.50
Photon Flux (Free Index): 1.31e-07 +/- 1.20e-07
Energy Flux (Free Index): 1.11e-03 +/- 1.51e-03

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/790361/cmap_HighResolution_552182401_552441601_4FGL_J1233.7-0144_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='1.11e-03', photon_flux_error='3.54e-09', dlogl='1.25e+00', energy_flux='1.74e-04', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-05 23:15:43.573074', photon_index_error2='0.50', photon_index2='1.20', ts='7.40', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.51e-03', EG='2.15', time_epoch_completed='1630908943.57', return_code='101', job_id='790361', GAL2='0.00', EG2='2.17', return_code2='0', energy_flux_error='2.12e-06', photon_flux_error2='1.20e-07', ts2='9.86', photon_index='2.06' WHERE bin_id='1207' AND source_name='4FGL J1233.7-0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 23:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 790361: <4FGL_J1233.7-0144_daily_bin1207> in cluster <slac> Done

Job <4FGL_J1233.7-0144_daily_bin1207> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 23:05:53 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 23:06:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 23:06:38 2021
Terminated at Sun Sep  5 23:15:44 2021
Results reported at Sun Sep  5 23:15:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1233.7-0144_daily_bin1207 188.434 -1.7428 552182401 552441601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1233.7-0144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   341.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            591 sec.

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

