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


Performing analysis on: 4FGL_J1318.7-1234_monthly_bin135
RA = 199.694, Dec = -12.581
tmin = 586915201, tmax = 589507201
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='162757', job_status='RUN', time_executed='2021-10-24 14:59:01.705809', time_epoch_executed='1635112741.71' WHERE source_name='4FGL J1318.7-1234' and cadence='monthly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162757

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162757/ft1_4FGL_J1318.7-1234_monthly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162757/ft1_4FGL_J1318.7-1234_monthly_bin135.fits outfile=/scratch/kocevski/162757/ft1_filteredMKT_4FGL_J1318.7-1234_monthly_bin135.fits ra=199.694 dec=-12.581 rad=12.0 tmin=586915201.0 tmax=589507201.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 36.78
user 30.12
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.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/162757/ft1_filteredMKT_4FGL_J1318.7-1234_monthly_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.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.84
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/162757/ltcube_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.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/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits
.....................!
real 163.29
user 117.34
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/162757/ltcube_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits outfile=/scratch/kocevski/162757/expmap_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.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/162757/ltcube_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits
.....................!
real 237.86
user 188.07
sys 5.85

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

Setting source of interest to:
4FGL J1318.7-1234 @ 199.694 -12.581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits outfile=/scratch/kocevski/162757/cmap_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.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=199.694 yref=-12.581 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 1.68
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits outfile=/scratch/kocevski/162757/cmap_HighResolution_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.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=199.694 yref=-12.581 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.78
user 0.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/162757/Model_4FGL_J1318.7-1234_monthly_bin135.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/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits.....................!
real 691.72
user 486.45
sys 5.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits', '/scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits', expMap='/scratch/kocevski/162757/expmap_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits', expCube='/scratch/kocevski/162757/ltcube_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162757/Model_4FGL_J1318.7-1234_monthly_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/162757/ft1_filtered_4FGL_J1318.7-1234_monthly_bin135.fits
Spacecraft file(s): /scratch/kocevski/162757/ft2_4FGL_J1318.7-1234_monthly_bin135.fits
Exposure map: /scratch/kocevski/162757/expmap_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits
Exposure cube: /scratch/kocevski/162757/ltcube_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162757/Model_4FGL_J1318.7-1234_monthly_bin135.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) = 77114.4152276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6505       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.779       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3081       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7157       1.0000         .10000E-03   10000.    
     7 'norm      '    .46053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15260       1.0000         .10000E-03   10000.    
    11 'norm      '    13.074       1.0000         .10000E-03   10000.    
    12 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44737       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3816       1.0000         .10000E-03   10000.    
    19 'norm      '    15.210       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11877E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .76811       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9945       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .77612E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .13816E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4145       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   77114.32     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3016 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8338        .80929        .59466E-08    .21699E-04
   2  Prefactor     1.6502        2.6781       -.12127E-06    .38959E-04
   3  Prefactor     11.002        9.1180       -.67277E-06    .66420E-04
   4  Prefactor     67.790        20.534        .51119E-05    .30734E-04
   5  norm          2.3081        .12333        .62582E-08   -.41162E-03
   6  norm          2.7148        1.7808       -.23743E-07    .15585E-03
   7  norm          .46281        .76849       -.74448E-06   -.13429E-02
   8  Prefactor     2.7641        1.2089       -.76542E-07    .10745E-02
   9  Prefactor     .10000E-03    3.6090       -.34715E-06** at limit **
  10  norm          .15223        .42046        .22904E-07    .14785E-03
  11  norm          13.075        3.5681       -.12226E-06    .10473E-03
  12  norm          .10000E-03    .64820        .28178E-07** at limit **
  13  Prefactor     .60866        .98658        .58404E-08    .62146E-04
  14  Prefactor     1.0531        6.5422       -.27311E-06    .20968E-04
  15  Prefactor     .57539        .16908        .30762E-07   -.31009E-03
  16  Prefactor     .10000E-03    1.3849       -.26896E-08** at limit **
  17  norm          .44741        .39120        .21496E-07    .19712E-03
  18  norm          1.3817        .90036       -.33482E-07   -.46692E-04
  19  norm          15.211        2.5694        .11012E-06   -.39450E-04
  20  Prefactor     .10000E-03    .77632        .96270E-07** at limit **
  21  Prefactor     .10000E-03    2.5325        .16821E-05** at limit **
  22  norm          .76855        .82322        .87208E-09   -.17929E-03
  23  Prefactor     2.9956        1.5975        .51085E-07    .76830E-03
  24  Prefactor     .10000E-03    3.0987        .96462E-07** at limit **
  25  norm          .10001E-03    .46194       -.31550E-06** at limit **
  26  Normalizat    1.4145        .75450E-01   -.26818E-07    .38791E-03
  27  Prefactor     .93509        .39740E-01   -.13705E-06    .68578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8338
  Prefactor  = 1.65021
  Prefactor  = 11.0022
  Prefactor  = 67.7902
  norm       = 2.30809
  norm       = 2.7148
  norm       = 0.462812
  Prefactor  = 2.76414
  Prefactor  = 0.0001
  norm       = 0.152228
  norm       = 13.0753
  norm       = 0.0001
  Prefactor  = 0.608658
  Prefactor  = 1.05314
  Prefactor  = 0.57539
  Prefactor  = 0.0001
  norm       = 0.447411
  norm       = 1.38172
  norm       = 15.2115
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.768555
  Prefactor  = 2.99563
  Prefactor  = 0.000100001
  norm       = 0.000100008
  Normalizat = 1.4145
  Prefactor  = 0.935089
 **********
 **   18 **HESSE 
 **********

 FCN=   77114.32     FROM HESSE     STATUS=OK           530 CALLS     3546 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8338        .80904        .90456E-04   -1.5225    
   2  Prefactor     1.6502        2.6728        .32864E-03   -1.5451    
   3  Prefactor     11.002        9.1312        .12079E-03   -1.5044    
   4  Prefactor     67.790        20.678        .48753E-04   -1.4059    
   5  norm          2.3081        .12409        .21157E-04   -1.5404    
   6  norm          2.7148        1.7777        .24714E-03   -1.5378    
   7  norm          .46281        .89520        .28306E-02   -1.5572    
   8  Prefactor     2.7641        1.1871        .18851E-03   -1.5375    
   9  Prefactor     .10000E-03    3.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .15223        .42643        .28877E-03   -1.5630    
  11  norm          13.075        3.5658        .11078E-03   -1.4985    
  12  norm          .10000E-03    .71742        .81499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60866        1.0621        .33611E-02   -1.5552    
  14  Prefactor     1.0531        6.7474        .48065E-03   -1.5503    
  15  Prefactor     .57539        1.9336        .23157E-02   -1.5556    
  16  Prefactor     .10000E-03    1.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44741        .37737        .15318E-03   -1.5574    
  18  norm          1.3817        .87717        .19256E-03   -1.5473    
  19  norm          15.211        2.5397        .10270E-03   -1.4928    
  20  Prefactor     .10000E-03    3.2469        .46462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5961        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .76855        .97793        .24584E-02   -1.5533    
  23  Prefactor     2.9956        1.5378        .23360E-03   -1.5362    
  24  Prefactor     .10000E-03    3.0636        .15023       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    2.5987        .34922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4145        .88458E-01    .33129E-03   -.80210    
  27  Prefactor     .93509        .46521E-01    .21549E-03   -.94926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7317e-07
Minuit parameter uncertainties:
  1  0.809038
  2  2.67299
  3  9.13231
  4  20.6804
  5  0.124089
  6  1.77776
  7  0.895227
  8  1.18711
  9  5.63436e-06
  10  0.426437
  11  3.56582
  12  1.30186e-06
  13  1.06212
  14  5.33203
  15  1.93381
  16  1.60366e-07
  17  0.377377
  18  0.877174
  19  2.53967
  20  9.9267e-05
  21  3.19358e-05
  22  0.97795
  23  1.53778
  24  8.94283e-05
  25  0.000295133
  26  0.0884679
  27  0.0465227
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  6.087e-01  1.062e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.351e-01  4.652e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.415e+00  8.847e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 1.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162757/likelihoodResults_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.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): 0
logL (Free Index) = 77114.2568216
delta logL = 0.0676595235273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 77114.252796
delta logL = 0.0716851362376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70777       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7802       1.0000          .0000       10.000    
     3 'Normalizat'    1.4155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   77114.25     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      266 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70744        1.1451        .38865E-02    .88247E-03
   2  Index         1.7802        .86242        .18793E-01   -.14422E-05
   3  Normalizat    1.4155        .82589E-01    .33119E-03    .42840E-05
   4  Prefactor     .93481        .45075E-01    .21552E-03    .33761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.707444
  Index      = 1.78023
  Normalizat = 1.41553
  Prefactor  = 0.934814
 **********
 **   18 **HESSE 
 **********

 FCN=   77114.25     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70744        1.1427        .15546E-03   -1.5540    
   2  Index         1.7802        .86648        .75173E-03   -.69966    
   3  Normalizat    1.4155        .82646E-01    .66238E-04   -.80181    
   4  Prefactor     .93481        .45109E-01    .43103E-04   -.94935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35214e-13
Minuit parameter uncertainties:
  1  1.14278
  2  0.874063
  3  0.0826539
  4  0.0451108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162757': 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) = 77114.2527959
delta logL = 0.0716851806355

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  7.074e-01  1.143e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.780e+00  8.741e-01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.348e-01  4.511e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.416e+00  8.265e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
Ra Dec: 199.694 -12.581

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/162757/cmap_HighResolution_586915201_589507201_4FGL_J1318.7-1234_monthly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-03', job_status='DONE', photon_flux_upper_limit='1.53e-08', time_completed='2021-10-24 18:43:23.874012', job_id='162757', GAL2='0.93', fit_tolerance='1e-08', EG2='1.42', EG='1.41', time_epoch_completed='1635126203.87', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.17e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='135' AND source_name='4FGL J1318.7-1234' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 24 18:43:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 162757: <4FGL_J1318.7-1234_monthly_bin135> in cluster <slac> Done

Job <4FGL_J1318.7-1234_monthly_bin135> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Oct 24 14:55:14 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 24 14:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 24 14:55:19 2021
Terminated at Sun Oct 24 18:43:25 2021
Results reported at Sun Oct 24 18:43:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_monthly_bin135 199.694 -12.581 586915201 589507201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.7-1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5958.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             379.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13685 sec.
    Turnaround time :                            13691 sec.

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

