/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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1233.7-0144_daily_bin375
RA = 188.434, Dec = -1.7428
tmin = 336528001, tmax = 336787201
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='782929', job_status='RUN', time_executed='2021-09-05 22:46:12.448484', time_epoch_executed='1630907172.45' WHERE source_name='4FGL J1233.7-0144' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782929/ft1_4FGL_J1233.7-0144_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782929/ft1_4FGL_J1233.7-0144_daily_bin375.fits outfile=/scratch/kocevski/782929/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin375.fits ra=188.434 dec=-1.7428 rad=12.0 tmin=336528001.0 tmax=336787201.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 6.42
user 5.54
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/782929/ltcube_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.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/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits
.....................!
real 14.92
user 14.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/782929/ltcube_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits outfile=/scratch/kocevski/782929/expmap_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.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/782929/ltcube_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits
.....................!
real 192.95
user 186.76
sys 5.55

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/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits scfile=/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits outfile=/scratch/kocevski/782929/cmap_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits scfile=/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits outfile=/scratch/kocevski/782929/cmap_HighResolution_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782929/Model_4FGL_J1233.7-0144_daily_bin375.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/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits....................!
real 41.30
user 39.49
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits', '/scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits', expMap='/scratch/kocevski/782929/expmap_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits', expCube='/scratch/kocevski/782929/ltcube_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/782929/Model_4FGL_J1233.7-0144_daily_bin375.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/782929/ft1_filtered_4FGL_J1233.7-0144_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/782929/ft2_4FGL_J1233.7-0144_daily_bin375.fits
Exposure map: /scratch/kocevski/782929/expmap_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits
Exposure cube: /scratch/kocevski/782929/ltcube_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/782929/Model_4FGL_J1233.7-0144_daily_bin375.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) = 4141.40200074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5092       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    147.93       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .77510E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.7374       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4269       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    20.852       1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.142       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4075       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77328       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=   4141.396     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3691 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.859        .17957E-04** at limit **
   2  Prefactor     28.082        42.082        .15806E-05   -.54218E-04
   3  Prefactor     12.759        11.274       -.10191E-05   -.23557E-03
   4  Prefactor     .10000E-03    8.2244        .91721E-08** at limit **
   5  Prefactor     .10000E-03    50.833        .17946E-04** at limit **
   6  Prefactor     .10000E-03    18.758       -.43560E-05** at limit **
   7  Prefactor     4.2011        76.944        .10163E-03   -.27685E-04
   8  Prefactor     28.772        37.674       -.41037E-05   -.38175E-04
   9  Prefactor     .10000E-03    10.706        .47473E-05** at limit **
  10  norm          5.5088        3.6097       -.14831E-05   -.62982E-03
  11  norm          .10000E-03    2.4964       -.55226E-07** at limit **
  12  Prefactor     .10000E-03    25.030       -.36646E-05** at limit **
  13  norm          .10000E-03    19.500        .42679E-05** at limit **
  14  Prefactor     147.97        207.81        .31374E-04   -.74805E-05
  15  Prefactor     .10000E-03    8.4204        .12133E-05** at limit **
  16  norm          1.3863        .83973        .20031E-07   -.17327E-02
  17  Prefactor     .10000E-03    3.8325        .21195E-06** at limit **
  18  Prefactor     .10000E-03    10.746       -.43190E-05** at limit **
  19  norm          11.694        3.5695        .37285E-06   -.29883E-03
  20  Prefactor     .10000E-03    6.4436        .28655E-06** at limit **
  21  Prefactor     .10000E-03    18.767       -.42147E-05** at limit **
  22  Prefactor     .10000E-03    22.309        .11133E-04** at limit **
  23  norm          8.7458        25.530        .45062E-05   -.16134E-04
  24  norm          2.4270        .52481        .12089E-06   -.10831E-02
  25  Prefactor     .10000E-03    39.766       -.29348E-04** at limit **
  26  norm          20.852        18.050       -.43740E-07   -.42134E-05
  27  Prefactor     53.173        41.825        .23085E-04   -.24372E-04
  28  Normalizat    1.4074        .31202       -.13884E-04    .35897E-04
  29  Prefactor     .77325        .21192        .84540E-06   -.49770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.082
  Prefactor  = 12.7595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20112
  Prefactor  = 28.772
  Prefactor  = 0.000100001
  norm       = 5.50878
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 147.966
  Prefactor  = 0.000100003
  norm       = 1.38629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74584
  norm       = 2.42697
  Prefactor  = 0.0001
  norm       = 20.8519
  Prefactor  = 53.1726
  Normalizat = 1.40741
  Prefactor  = 0.773254
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.396     FROM HESSE     STATUS=OK           545 CALLS     4236 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.082        42.070        .75602E-04   -1.4648    
   3  Prefactor     12.759        11.286        .11214E-03   -1.4993    
   4  Prefactor     .10000E-03    8.2439        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2011        76.358        .19790E-03   -1.5298    
   8  Prefactor     28.772        37.707        .74683E-04   -1.4635    
   9  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5088        3.6075        .94459E-04   -1.5239    
  11  norm          .10000E-03    2.5167        .99142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    19.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     147.97        207.81        .16567E-03   -1.3269    
  15  Prefactor     .10000E-03    89.439        .36197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3863        .83261        .42615E-04   -1.5472    
  17  Prefactor     .10000E-03    3.8345        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.694        3.5741        .63101E-04   -1.5024    
  20  Prefactor     .10000E-03    6.4861        .15952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.7458        25.533        .13561E-03   -1.5116    
  24  norm          2.4270        .52611        .20275E-04   -1.5396    
  25  Prefactor     .10000E-03    39.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          20.852        18.044        .87714E-04   -1.4794    
  27  Prefactor     53.173        41.849        .55020E-04   -1.4248    
  28  Normalizat    1.4074        .36814        .30873E-03   -.80415    
  29  Prefactor     .77325        .24855        .28927E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17707e-09
Minuit parameter uncertainties:
  1  0.000303561
  2  42.1146
  3  11.2877
  4  3.24212e-05
  5  3.14618e-06
  6  9.86317e-07
  7  35.874
  8  37.7386
  9  0.000220497
  10  3.60768
  11  3.22129e-06
  12  4.32922e-06
  13  8.95067e-07
  14  208.849
  15  0.000954487
  16  0.832621
  17  5.40053e-06
  18  9.50423e-05
  19  3.57414
  20  2.51331e-05
  21  2.36627e-05
  22  2.43631e-05
  23  25.5653
  24  0.526108
  25  1.45983e-05
  26  18.0488
  27  41.8726
  28  0.368832
  29  0.24891
Done.

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

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  5.401e-06  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:  7.733e-01  2.489e-01  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:  1.407e+00  3.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 188.434 -1.743
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782929/likelihoodResults_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.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) = 4141.39747109
delta logL = -0.00109807940316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4141.39637487
delta logL = -1.85787484952e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0405       1.0000          .0000       10.000    
     3 'Normalizat'    1.4075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77320       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4141.396     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    53.340        .12584E-02** at limit **
   2  Index         1.9703        8.1438        .50000        .42777E-04
   3  Normalizat    1.4074        .27513E-01    .30874E-03   -.10237E-04
   4  Prefactor     .77327        .19862E-01    .28927E-03    .83869E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4141.396     FROM SIMPLEX   STATUS=PROGRESS     120 CALLS      366 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    53.340        .28282E-03** at limit **
   2  Index         1.9686        8.1438        .61204E-03    .42777E-04
   3  Normalizat    1.4074        .27513E-01    .47179E-05   -.10237E-04
   4  Prefactor     .77326        .19862E-01    .45442E-05    .83869E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4141.396     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      421 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.816        .25168E-02** at limit **
   2  Index         1.5392        7.0151        .50000        .32628E-07
   3  Normalizat    1.4074        .27451E-01    .12350E-04    .20253E-05
   4  Prefactor     .77326        .19818E-01    .11571E-04   -.43625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.5392
  Normalizat = 1.40739
  Prefactor  = 0.773265
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.396     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    292.91        .50337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5392        5.1165        .50000       -.76448    
   3  Normalizat    1.4074        .61887E-01    .24699E-05   -.80415    
   4  Prefactor     .77326        .44665E-01    .23141E-05   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12142e-10
Minuit parameter uncertainties:
  1  0.000133984
  2  793.373
  3  0.0618901
  4  0.0446667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782929': 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) = 4141.39636976
delta logL = 3.2476564229e-06

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.340e-04  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.539e+00  7.934e+02  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:  7.733e-01  4.467e-02  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:  1.407e+00  6.189e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 188.434 -1.743

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/782929/cmap_HighResolution_336528001_336787201_4FGL_J1233.7-0144_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-05 22:58:10.639750', job_id='782929', GAL2='0.77', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630907890.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='375' AND source_name='4FGL J1233.7-0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:58:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 782929: <4FGL_J1233.7-0144_daily_bin375> in cluster <slac> Done

Job <4FGL_J1233.7-0144_daily_bin375> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 22:45:33 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:45:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:45:52 2021
Terminated at Sun Sep  5 22:58:11 2021
Results reported at Sun Sep  5 22:58:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1233.7-0144_daily_bin375 188.434 -1.7428 336528001 336787201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            758 sec.

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

