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


Performing analysis on: 4FGL_J1233.7-0144_daily_bin1425
RA = 188.434, Dec = -1.7428
tmin = 608688001, tmax = 608947201
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='790772', job_status='RUN', time_executed='2021-09-05 23:10:08.648761', time_epoch_executed='1630908608.65' WHERE source_name='4FGL J1233.7-0144' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790772/ft1_4FGL_J1233.7-0144_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790772/ft1_4FGL_J1233.7-0144_daily_bin1425.fits outfile=/scratch/kocevski/790772/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin1425.fits ra=188.434 dec=-1.7428 rad=12.0 tmin=608688001.0 tmax=608947201.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.06
user 2.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/790772/ltcube_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.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/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits
.....................!
real 13.60
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/790772/ltcube_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.fits outfile=/scratch/kocevski/790772/expmap_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.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/790772/ltcube_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.fits
.....................!
real 191.36
user 184.87
sys 5.48

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/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits scfile=/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits outfile=/scratch/kocevski/790772/cmap_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits scfile=/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits outfile=/scratch/kocevski/790772/cmap_HighResolution_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/790772/ft2_4FGL_J1233.7-0144_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790772/Model_4FGL_J1233.7-0144_daily_bin1425.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/790772/ft1_filtered_4FGL_J1233.7-0144_daily_bin1425.fits......................!
real 32.09
user 30.33
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    123.07       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    121.22       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8743       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    46.080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18730       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14475       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8192       1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.173       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.878       1.0000         .10000E-03   10000.    
    23 'norm      '    .12985E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0443       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89099       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=   2596.450     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     3773 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.163        .76727E-06** at limit **
   2  Prefactor     123.07        1.0062       -.53904E-08    .17764E-03
   3  Prefactor     4.3986        8.6210        .98084E-07   -.26693E-04
   4  Prefactor     121.22        1.0267       -.12076E-07    .25806E-03
   5  Prefactor     .10067E-03    39.659        .92675E-06** at limit **
   6  Prefactor     .10008E-03    176.50        .98914E-05** at limit **
   7  Prefactor     56.463        1.3417       -.67385E-08    .73920E-03
   8  Prefactor     .10009E-03    47.032        .17987E-05** at limit **
   9  Prefactor     1.8734        1.0578        .26550E-07   -.76407E-05
  10  norm          .10000E-03    1.9678        .20761E-06** at limit **
  11  norm          1.6059        3.3604        .16480E-06   -.23471E-05
  12  Prefactor     .10000E-03    26.503        .21787E-05** at limit **
  13  norm          46.076        1.1213       -.62497E-08   -.31293E-03
  14  Prefactor     .10075E-03    59.835        .54044E-05** at limit **
  15  Prefactor     .10050E-03    37.715       -.34792E-05** at limit **
  16  norm          .18777        .49383       -.22099E-06   -.14915E-04
  17  Prefactor     .10000E-03    13.356       -.16617E-05** at limit **
  18  Prefactor     .10009E-03    1775.9       -.29250E-04** at limit **
  19  norm          4.9451        2.9117        .73864E-06   -.12506E-05
  20  Prefactor     4.8047        1.3757        .18514E-06   -.50763E-05
  21  Prefactor     95.187        1.8809        .56563E-07    .20826E-04
  22  Prefactor     55.885        1.3481        .52752E-07   -.38411E-03
  23  norm          .10034E-03    60.413        .85620E-05** at limit **
  24  norm          4.0445        1.2497       -.24525E-06   -.28931E-04
  25  Prefactor     .10021E-03    48.918        .62682E-05** at limit **
  26  norm          .10000E-03    21.089       -.14122E-05** at limit **
  27  Prefactor     .10000E-03    28.107        .10358E-05** at limit **
  28  Normalizat    .87562        .38159        .16639E-04   -.20103E-05
  29  Prefactor     .89090        .29606       -.16960E-04   -.61649E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 123.072
  Prefactor  = 4.39858
  Prefactor  = 121.216
  Prefactor  = 0.000100667
  Prefactor  = 0.000100075
  Prefactor  = 56.463
  Prefactor  = 0.000100085
  Prefactor  = 1.87336
  norm       = 0.0001
  norm       = 1.60587
  Prefactor  = 0.0001
  norm       = 46.0763
  Prefactor  = 0.000100748
  Prefactor  = 0.000100503
  norm       = 0.187768
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  norm       = 4.9451
  Prefactor  = 4.80474
  Prefactor  = 95.1866
  Prefactor  = 55.8847
  norm       = 0.000100342
  norm       = 4.04449
  Prefactor  = 0.000100214
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875625
  Prefactor  = 0.890898
 **********
 **   18 **HESSE 
 **********

 FCN=   2596.450     FROM HESSE     STATUS=OK           617 CALLS     4390 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     123.07        168.67        .90701E-03   -1.3485    
   3  Prefactor     4.3986        8.6845        .48008E-02   -1.5288    
   4  Prefactor     121.22        64.968        .91384E-03   -1.3502    
   5  Prefactor     .10067E-03    63.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10008E-03    177.59        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.463        52.108        .13347E-02   -1.4204    
   8  Prefactor     .10009E-03    49.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8734        44.606        .76044E-02   -1.5434    
  10  norm          .10000E-03    1.9675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6059        3.4670        .83564E-02   -1.5455    
  12  Prefactor     .10000E-03    26.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          46.076        46.694        .14766E-02   -1.4349    
  14  Prefactor     .10075E-03    112.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10050E-03    54.327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18777        .56583        .99195E-02   -1.5621    
  17  Prefactor     .10000E-03    13.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    119.53        .17058       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9451        2.9591        .45215E-02   -1.5263    
  20  Prefactor     4.8047        20.852        .45814E-02   -1.5270    
  21  Prefactor     95.187        94.755        .10300E-02   -1.3754    
  22  Prefactor     55.885        176.79        .13416E-02   -1.4211    
  23  norm          .10034E-03    79.461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0445        1.3328        .50126E-02   -1.5306    
  25  Prefactor     .10021E-03    104.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    21.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87562        .34835        .75940E-01   -.97322    
  29  Prefactor     .89090        .27050        .44890E-01   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80511e-07
Minuit parameter uncertainties:
  1  1.75311e-06
  2  169.339
  3  8.68694
  4  65.006
  5  0.0130579
  6  0.00732512
  7  52.1503
  8  0.00411869
  9  18.2974
  10  5.28012e-07
  11  3.4674
  12  3.39696e-05
  13  46.7312
  14  0.0183976
  15  0.0104665
  16  0.565841
  17  1.38873e-06
  18  0.00656283
  19  2.95915
  20  20.0305
  21  94.9064
  22  178.494
  23  0.0104433
  24  1.33284
  25  0.00945479
  26  2.30704e-06
  27  6.30297e-05
  28  0.349249
  29  0.270909
Done.

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

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.389e-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:  8.909e-01  2.709e-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:  8.756e-01  3.492e-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: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790772/likelihoodResults_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.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) = 2596.45018601
delta logL = -0.000356200761871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2596.4498298
delta logL = 6.55836629448e-09

Fit tolerance = 1e-08

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

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

 FCN=   2596.450     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      206 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6430.7        .90712E-02** at limit **
   2  Index         2.0410        7.3720        .50000        .60686E-05
   3  Normalizat    .87562        .26801        .75940E-01    .84574E-05
   4  Prefactor     .89090        .21254        .44889E-01    .43400E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04103
  Normalizat = 0.875625
  Prefactor  = 0.890898
 **********
 **   18 **HESSE 
 **********

 FCN=   2596.450     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6180.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0410        5.8618        .50000       -.63328    
   3  Normalizat    .87562        .17629        .33611E-03   -.97322    
   4  Prefactor     .89090        .13967        .26200E-03   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.54624e-09
Minuit parameter uncertainties:
  1  8.67632e-05
  2  55.8706
  3  0.176407
  4  0.139729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790772': 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) = 2596.44982978
delta logL = 3.12170413963e-08

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  8.676e-05  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.041e+00  5.587e+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:  8.909e-01  1.397e-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:  8.756e-01  1.764e-01  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/790772/cmap_HighResolution_608688001_608947201_4FGL_J1233.7-0144_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.67e-07', time_completed='2021-09-05 23:20:10.302749', job_id='790772', GAL2='0.89', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630909210.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1425' AND source_name='4FGL J1233.7-0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 23:20:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 790772: <4FGL_J1233.7-0144_daily_bin1425> in cluster <slac> Done

Job <4FGL_J1233.7-0144_daily_bin1425> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 23:06:29 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 23:07:48 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:07:48 2021
Terminated at Sun Sep  5 23:20:11 2021
Results reported at Sun Sep  5 23:20:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1233.7-0144_daily_bin1425 188.434 -1.7428 608688001 608947201 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            822 sec.

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

