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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1360
RA = 180.173, Dec = 12.4922
tmin = 591840001, tmax = 592099201
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='255467', job_status='RUN', time_executed='2021-09-04 20:29:40.753515', time_epoch_executed='1630812580.75' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255467

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255467/ft1_4FGL_J1200.6+1229_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255467/ft1_4FGL_J1200.6+1229_daily_bin1360.fits outfile=/scratch/kocevski/255467/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1360.fits ra=180.173 dec=12.4922 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.24
user 4.96
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.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/255467/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/255467/ltcube_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.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/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits
.....................!
real 11.84
user 11.40
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/255467/ltcube_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits outfile=/scratch/kocevski/255467/expmap_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.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/255467/ltcube_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits
.....................!
real 190.35
user 185.06
sys 4.92

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits outfile=/scratch/kocevski/255467/cmap_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.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=180.173 yref=12.4922 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.60
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits outfile=/scratch/kocevski/255467/cmap_HighResolution_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.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=180.173 yref=12.4922 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255467/Model_4FGL_J1200.6+1229_daily_bin1360.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/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits.....................!
real 53.27
user 51.90
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits', '/scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits', expMap='/scratch/kocevski/255467/expmap_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits', expCube='/scratch/kocevski/255467/ltcube_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255467/Model_4FGL_J1200.6+1229_daily_bin1360.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255467/ft1_filtered_4FGL_J1200.6+1229_daily_bin1360.fits
Spacecraft file(s): /scratch/kocevski/255467/ft2_4FGL_J1200.6+1229_daily_bin1360.fits
Exposure map: /scratch/kocevski/255467/expmap_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits
Exposure cube: /scratch/kocevski/255467/ltcube_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255467/Model_4FGL_J1200.6+1229_daily_bin1360.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) = 5373.83870365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.866       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    121.06       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
    17 'norm      '    .40523       1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.151       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11809E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5174       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79526       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=   5373.831     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2624 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.865        16.019       -.10765E-05   -.70855E-05
   2  Prefactor     .10000E-03    7.0631       -.96433E-07** at limit **
   3  Prefactor     .10000E-03    108.60        .49933E-05** at limit **
   4  Prefactor     .10000E-03    14.948        .13081E-04** at limit **
   5  Prefactor     120.98        117.05       -.67963E-04    .85459E-05
   6  Prefactor     .10000E-03    4.4188        .12364E-06** at limit **
   7  Prefactor     .10000E-03    3.6668       -.58626E-08** at limit **
   8  Prefactor     12.686        21.835       -.22992E-05   -.39911E-03
   9  Prefactor     .10000E-03    2.5998       -.24761E-06** at limit **
  10  Prefactor     .10000E-03    40.731       -.24059E-05** at limit **
  11  Prefactor     .10000E-03    12.430        .27122E-05** at limit **
  12  Prefactor     .10000E-03    2.3264       -.22613E-06** at limit **
  13  Prefactor     .10000E-03    3.0446       -.89029E-06** at limit **
  14  Prefactor     .10000E-03    13.464       -.87454E-05** at limit **
  15  norm          6.7926        4.3924        .88178E-06    .10901E-04
  16  Prefactor     10.206        28.131        .11368E-04    .37596E-04
  17  norm          .40529        .30938       -.16122E-06   -.41039E-03
  18  norm          .10000E-03    23.777        .39745E-05** at limit **
  19  Prefactor     30.063        230.83       -.14648E-03    .59396E-05
  20  Prefactor     .10000E-03    16.996       -.98279E-05** at limit **
  21  Prefactor     .10000E-03    188.48       -.74907E-05** at limit **
  22  Normalizat    1.5174        .22474        .25355E-05    .16355E-03
  23  Prefactor     .79525        .19465        .51247E-05    .12687E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8652
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 120.975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.79263
  Prefactor  = 10.2065
  norm       = 0.40529
  norm       = 0.0001
  Prefactor  = 30.0635
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.51739
  Prefactor  = 0.795251
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.831     FROM HESSE     STATUS=OK           362 CALLS     2986 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.865        16.044        .83766E-04   -1.4751    
   2  Prefactor     .10000E-03    7.0746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    109.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     120.98        117.20        .18288E-03   -1.3504    
   6  Prefactor     .10000E-03    4.4328        .15049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6773        .13709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.686        21.904        .56232E-03   -1.4995    
   9  Prefactor     .10000E-03    2.6180        .11538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3645        .10889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8334        .24403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7926        4.3921        .11743E-03   -1.5187    
  16  Prefactor     10.206        28.107        .12526E-03   -1.5069    
  17  norm          .40529        .30372        .34028E-04   -1.5581    
  18  norm          .10000E-03    23.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.063        231.77        .72967E-04   -1.4611    
  20  Prefactor     .10000E-03    17.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    192.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5174        .26944        .24882E-03   -.77291    
  23  Prefactor     .79525        .23311        .29186E-03   -.99904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16714e-09
Minuit parameter uncertainties:
  1  16.0468
  2  2.54814e-05
  3  0.00068748
  4  0.00017076
  5  117.428
  6  3.5629e-05
  7  1.48947e-06
  8  21.9181
  9  2.39696e-05
  10  5.18053e-05
  11  5.64914e-05
  12  2.08166e-05
  13  0.000202559
  14  3.35257e-05
  15  4.39235
  16  28.1437
  17  0.303724
  18  5.64027e-06
  19  167.856
  20  7.14997e-05
  21  0.00154611
  22  0.269695
  23  0.233403
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.269e+01  2.192e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  7.953e-01  2.334e-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.517e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255467/likelihoodResults_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.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) = 5373.8271876
delta logL = 0.00340267133924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5373.82615325
delta logL = 0.00443702722714

Fit tolerance = 1e-08

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

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

 FCN=   5373.826     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      264 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.693        25.090        .11715E-03    .28239E-04
   2  Index         2.4920        1.1959        .92448E-02    .12950E-04
   3  Normalizat    1.5139        .26449        .24905E-03   -.12389E-03
   4  Prefactor     .79738        .23191        .29151E-03   -.11415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6925
  Index      = 2.492
  Normalizat = 1.51391
  Prefactor  = 0.79738
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.826     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.693        23.560        .46861E-05   -1.5024    
   2  Index         2.4920        1.1236        .36979E-03   -.52545    
   3  Normalizat    1.5139        .26449        .49811E-04   -.77388    
   4  Prefactor     .79738        .23182        .11660E-04   -.99825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00765e-11
Minuit parameter uncertainties:
  1  23.5789
  2  1.13664
  3  0.264734
  4  0.2321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255467': 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) = 5373.82615283
delta logL = 0.00443744519089

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.169e+01  2.358e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.492e+00  1.137e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  7.974e-01  2.321e-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.514e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 180.173 12.492

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/255467/cmap_HighResolution_591840001_592099201_4FGL_J1200.6+1229_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-04 20:42:10.113031', job_id='255467', GAL2='0.80', fit_tolerance='1e-08', EG2='1.51', EG='1.52', time_epoch_completed='1630813330.11', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.44e-03', ts2='0.43', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1360' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:42:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 255467: <4FGL_J1200.6+1229_daily_bin1360> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1360> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:40 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:25:42 2021
Terminated at Sat Sep  4 20:42:10 2021
Results reported at Sat Sep  4 20:42:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1360 180.173 12.4922 591840001 592099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

