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


Performing analysis on: 4FGL_J1233.7-0144_daily_bin972
RA = 188.434, Dec = -1.7428
tmin = 491270401, tmax = 491529601
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='788702', job_status='RUN', time_executed='2021-09-05 23:02:54.121591', time_epoch_executed='1630908174.12' WHERE source_name='4FGL J1233.7-0144' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788702/ft1_4FGL_J1233.7-0144_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788702/ft1_4FGL_J1233.7-0144_daily_bin972.fits outfile=/scratch/kocevski/788702/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin972.fits ra=188.434 dec=-1.7428 rad=12.0 tmin=491270401.0 tmax=491529601.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.69
user 3.39
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.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/788702/ft1_filteredMKT_4FGL_J1233.7-0144_daily_bin972.fits evtable="EVENTS" outfile="/scratch/kocevski/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.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.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/788702/ltcube_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.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/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits
.....................!
real 17.41
user 16.92
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/788702/ltcube_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.fits outfile=/scratch/kocevski/788702/expmap_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.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/788702/ltcube_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.fits
.....................!
real 193.18
user 186.66
sys 4.49

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/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.fits scfile=/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits outfile=/scratch/kocevski/788702/cmap_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/788702/ft2_4FGL_J1233.7-0144_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788702/Model_4FGL_J1233.7-0144_daily_bin972.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/788702/ft1_filtered_4FGL_J1233.7-0144_daily_bin972.fits.....................!
real 61.06
user 59.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7834       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3405       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9140       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0348       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10748E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.622       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6497       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.755       1.0000         .10000E-03   10000.    
    23 'norm      '    .38035E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4529       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-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'    1.4257       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69858       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=   7246.504     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3708 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7842        52.912        .21911E-06   -.64103E-04
   2  Prefactor     .10000E-03    30.435        .17186E-04** at limit **
   3  Prefactor     1.9930        5.8370       -.27479E-05   -.60826E-03
   4  Prefactor     .10000E-03    5.3450       -.27559E-07** at limit **
   5  Prefactor     57.753        45.489        .37393E-05   -.10351E-03
   6  Prefactor     .10000E-03    19.221        .21867E-05** at limit **
   7  Prefactor     7.3413        14.370        .40601E-06    .19809E-04
   8  Prefactor     6.7050        18.590       -.12623E-05   -.22860E-04
   9  Prefactor     .10000E-03    21.558       -.61029E-05** at limit **
  10  norm          1.9143        1.8621        .12074E-06    .40435E-03
  11  norm          2.0339        3.4392       -.13867E-05   -.53964E-03
  12  Prefactor     .10002E-03    64.460        .20030E-04** at limit **
  13  norm          .10000E-03    112.82       -.22918E-04** at limit **
  14  Prefactor     26.690        118.08        .11949E-03   -.52488E-05
  15  Prefactor     .10000E-03    1.9665       -.27532E-08** at limit **
  16  norm          1.9014        .66314        .62363E-07    .11739E-02
  17  Prefactor     6.6496        6.1485        .55000E-06    .71873E-04
  18  Prefactor     .10000E-03    3.9312        .30575E-07** at limit **
  19  norm          2.6907        1.6825       -.16536E-06   -.13152E-03
  20  Prefactor     .10000E-03    5.4862        .76840E-08** at limit **
  21  Prefactor     .10000E-03    38.867       -.11227E-04** at limit **
  22  Prefactor     21.753        33.246       -.45495E-06   -.15633E-04
  23  norm          .10037E-03    10.516        .15709E-05** at limit **
  24  norm          1.4528        .28332        .20129E-07   -.71240E-03
  25  Prefactor     .10000E-03    56.657        .31517E-05** at limit **
  26  norm          .10000E-03    2.5567        .11422E-07** at limit **
  27  Prefactor     .10000E-03    39.854       -.14745E-04** at limit **
  28  Normalizat    1.4258        .20562       -.10740E-06    .10956E-03
  29  Prefactor     .69853        .14331       -.16362E-05    .10632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78425
  Prefactor  = 0.0001
  Prefactor  = 1.993
  Prefactor  = 0.0001
  Prefactor  = 57.7529
  Prefactor  = 0.0001
  Prefactor  = 7.34133
  Prefactor  = 6.70502
  Prefactor  = 0.0001
  norm       = 1.91428
  norm       = 2.03391
  Prefactor  = 0.000100019
  norm       = 0.000100002
  Prefactor  = 26.6899
  Prefactor  = 0.0001
  norm       = 1.90136
  Prefactor  = 6.64959
  Prefactor  = 0.0001
  norm       = 2.69065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7532
  norm       = 0.00010037
  norm       = 1.45284
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.42576
  Prefactor  = 0.698533
 **********
 **   18 **HESSE 
 **********

 FCN=   7246.504     FROM HESSE     STATUS=OK           549 CALLS     4257 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7842        53.032        .31334E-03   -1.5441    
   2  Prefactor     .10000E-03    30.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9930        5.8163        .29345E-03   -1.5426    
   4  Prefactor     .10000E-03    5.3569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.753        45.399        .52792E-04   -1.4187    
   6  Prefactor     .10000E-03    19.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3413        14.376        .14804E-03   -1.5166    
   8  Prefactor     6.7050        18.535        .15498E-03   -1.5190    
   9  Prefactor     .10000E-03    22.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9143        1.8571        .11006E-03   -1.5431    
  11  norm          2.0339        3.3896        .18198E-03   -1.5423    
  12  Prefactor     .10002E-03    65.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    113.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.690        117.65        .77643E-04   -1.4674    
  15  Prefactor     .10000E-03    1.9725        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9014        .65776        .36208E-04   -1.5432    
  17  Prefactor     6.6496        6.1496        .15561E-03   -1.5192    
  18  Prefactor     .10000E-03    3.9518        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6907        1.6801        .82138E-04   -1.5380    
  20  Prefactor     .10000E-03    5.5458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.753        33.329        .85876E-04   -1.4775    
  23  norm          .10037E-03    107.81        .53497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4528        .28467        .18673E-04   -1.5467    
  25  Prefactor     .10000E-03    56.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5615        .13293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4258        .24270        .26589E-03   -.79886    
  29  Prefactor     .69853        .16770        .26215E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66885e-09
Minuit parameter uncertainties:
  1  19.4732
  2  0.000148836
  3  5.81791
  4  9.63395e-06
  5  45.4259
  6  3.77504e-05
  7  14.3827
  8  18.5507
  9  0.00016438
  10  1.85712
  11  3.38995
  12  0.00223191
  13  0.000999822
  14  112.445
  15  2.18325e-06
  16  0.65776
  17  6.15018
  18  6.98086e-06
  19  1.68016
  20  1.17091e-06
  21  7.49853e-05
  22  33.3573
  23  0.0126571
  24  0.284667
  25  4.97476e-05
  26  2.1046e-06
  27  0.000514622
  28  0.242893
  29  0.167817
Done.

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

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  6.650e+00  6.150e+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

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  6.985e-01  1.678e-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.426e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 188.434 -1.743
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.31e-05

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) = 7246.43032338
delta logL = 0.0731788181911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7246.42938949
delta logL = 0.0741127035781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5592       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6666       1.0000          .0000       10.000    
     3 'Normalizat'    1.4379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69494       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7246.429     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5592        6.8001        .78347E-03    .89734E-04
   2  Index         1.6666        .92228        .13331E-01   -.14982E-03
   3  Normalizat    1.4380        .22914        .26501E-03    .16302E-06
   4  Prefactor     .69492        .16470        .26282E-03    .92571E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5592
  Index      = 1.6666
  Normalizat = 1.43796
  Prefactor  = 0.694917
 **********
 **   18 **HESSE 
 **********

 FCN=   7246.429     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5592        6.8646        .31339E-04   -1.5196    
   2  Index         1.6666        .93085        .26661E-02   -.72974    
   3  Normalizat    1.4380        .22926        .53001E-04   -.79537    
   4  Prefactor     .69492        .16483        .52563E-04   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41918e-12
Minuit parameter uncertainties:
  1  6.86543
  2  0.940815
  3  0.229429
  4  0.164944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788702': 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) = 7246.42938948
delta logL = 0.0741127138608

Extracting fit parameters...

4FGL J1233.7-0144
   Spectrum: PowerLaw
334    Prefactor:  6.559e+00  6.865e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.667e+00  9.408e-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:  6.949e-01  1.649e-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.438e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 188.434 -1.743
Photon Index (Free Index): 1.67 +/- 0.94
Photon Flux (Free Index): 1.18e-08 +/- 2.32e-08
Energy Flux (Free Index): 2.15e-05 +/- 3.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/788702/cmap_HighResolution_491270401_491529601_4FGL_J1233.7-0144_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='2.15e-05', photon_flux_error='2.19e-08', dlogl='7.41e-02', energy_flux='1.42e-05', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-05 23:17:12.412629', photon_index_error2='0.94', photon_index2='1.67', ts='5.88', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='1.43', time_epoch_completed='1630909032.41', return_code='0', job_id='788702', GAL2='0.69', EG2='1.44', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.32e-08', ts2='6.04', photon_index='2.06' WHERE bin_id='972' AND source_name='4FGL J1233.7-0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 23:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 788702: <4FGL_J1233.7-0144_daily_bin972> in cluster <slac> Done

Job <4FGL_J1233.7-0144_daily_bin972> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 23:00:53 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 23:01:02 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:01:02 2021
Terminated at Sun Sep  5 23:17:13 2021
Results reported at Sun Sep  5 23:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1233.7-0144_daily_bin972 188.434 -1.7428 491270401 491529601 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 :                                   846.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            980 sec.

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

