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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1506
RA = 180.173, Dec = 12.4922
tmin = 629683201, tmax = 629942401
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='255680', job_status='RUN', time_executed='2021-09-04 20:29:05.129933', time_epoch_executed='1630812545.13' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255680/ft1_4FGL_J1200.6+1229_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255680/ft1_4FGL_J1200.6+1229_daily_bin1506.fits outfile=/scratch/kocevski/255680/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1506.fits ra=180.173 dec=12.4922 rad=12.0 tmin=629683201.0 tmax=629942401.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.56
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.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/255680/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/255680/ltcube_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.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/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits
.....................!
real 11.58
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/255680/ltcube_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits outfile=/scratch/kocevski/255680/expmap_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.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/255680/ltcube_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits
.....................!
real 189.78
user 184.75
sys 4.65

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/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits scfile=/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits outfile=/scratch/kocevski/255680/cmap_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits scfile=/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits outfile=/scratch/kocevski/255680/cmap_HighResolution_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits', '/scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits', expMap='/scratch/kocevski/255680/expmap_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits', expCube='/scratch/kocevski/255680/ltcube_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255680/Model_4FGL_J1200.6+1229_daily_bin1506.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/255680/ft1_filtered_4FGL_J1200.6+1229_daily_bin1506.fits
Spacecraft file(s): /scratch/kocevski/255680/ft2_4FGL_J1200.6+1229_daily_bin1506.fits
Exposure map: /scratch/kocevski/255680/expmap_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits
Exposure cube: /scratch/kocevski/255680/ltcube_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255680/Model_4FGL_J1200.6+1229_daily_bin1506.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) = 5543.57698286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14156E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.412       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86598       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0941       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=   5543.527     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2197 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6580       -.95501E-07** at limit **
   2  Prefactor     .10000E-03    18.691       -.74603E-05** at limit **
   3  Prefactor     .10000E-03    9.3282       -.56642E-05** at limit **
   4  Prefactor     .10000E-03    2.6397       -.40977E-07** at limit **
   5  Prefactor     .10000E-03    55.406        .37435E-05** at limit **
   6  Prefactor     .10000E-03    5.8643       -.89912E-07** at limit **
   7  Prefactor     7.2541        5.8436       -.23500E-06   -.26558E-05
   8  Prefactor     6.6998        9.1263       -.12497E-06    .40728E-04
   9  Prefactor     1.5196        2.3037       -.15667E-06   -.37464E-03
  10  Prefactor     .10000E-03    212.63       -.38878E-04** at limit **
  11  Prefactor     .10000E-03    20.047        .78027E-05** at limit **
  12  Prefactor     .10000E-03    1.3133       -.20601E-07** at limit **
  13  Prefactor     .10000E-03    1.5367        .31845E-07** at limit **
  14  Prefactor     .10000E-03    33.692        .52339E-05** at limit **
  15  norm          9.5010        4.0788       -.90624E-07   -.90992E-03
  16  Prefactor     .10000E-03    11.139        .10418E-05** at limit **
  17  norm          .10000E-03    .88842E-01   -.11859E-07** at limit **
  18  norm          .10000E-03    192.26        .36032E-04** at limit **
  19  Prefactor     .10000E-03    35.566       -.91599E-05** at limit **
  20  Prefactor     21.415        13.498       -.32634E-08   -.73500E-04
  21  Prefactor     .10000E-03    9.2132        .47372E-05** at limit **
  22  Normalizat    .86594        .17578        .25781E-06    .52152E-04
  23  Prefactor     1.0941        .17059        .49920E-08    .40079E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.25408
  Prefactor  = 6.69984
  Prefactor  = 1.51964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.50098
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.4151
  Prefactor  = 0.0001
  Normalizat = 0.865944
  Prefactor  = 1.09407
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.527     FROM HESSE     STATUS=OK           362 CALLS     2559 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6439        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9038        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2541        5.8445        .14892E-03   -1.5169    
   8  Prefactor     6.6998        9.1212        .15500E-03   -1.5190    
   9  Prefactor     1.5196        2.2768        .13416E-03   -1.5461    
  10  Prefactor     .10000E-03    213.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3621        .16641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5903        .18006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.5010        4.0735        .94493E-04   -1.5091    
  16  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .12781        .43043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    194.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.415        13.501        .86560E-04   -1.4782    
  21  Prefactor     .10000E-03    9.2226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86594        .19940        .25572E-03   -.97667    
  23  Prefactor     1.0941        .19469        .22530E-03   -.89656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36835e-10
Minuit parameter uncertainties:
  1  6.46663e-07
  2  0.000127478
  3  1.37545e-06
  4  3.03411e-07
  5  5.41548e-06
  6  4.32886e-06
  7  5.84496
  8  9.12312
  9  2.27693
  10  0.000332957
  11  1.73593e-05
  12  1.4895e-07
  13  4.77628e-07
  14  3.40697e-05
  15  4.07367
  16  9.47829e-07
  17  3.56824e-09
  18  0.000737574
  19  9.10185e-07
  20  13.5028
  21  2.74293e-06
  22  0.199566
  23  0.194814
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  6.700e+00  9.123e+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

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.094e+00  1.948e-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.659e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 4.81e-06 +/- 6.55e-06

TS (Fixed Index): 1.04
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255680/likelihoodResults_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.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) = 5543.51283391
delta logL = 0.014252690361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.50686653
delta logL = 0.020220070096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8905       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1499       1.0000          .0000       10.000    
     3 'Normalizat'    .86959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0919       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=   5543.507     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      191 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8922        11.638        .63075E-05   -.38146E-03
   2  Index         2.1497        1.0817       -.23228E-04   -.97853E-04
   3  Normalizat    .86968        .17312        .45453E-07    .56206E-05
   4  Prefactor     1.0919        .16968       -.20306E-06    .21310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89223
  Index      = 2.1497
  Normalizat = 0.869675
  Prefactor  = 1.09187
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.507     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8922        11.684        .14274E-03   -1.5146    
   2  Index         2.1497        1.1178        .99968E-03   -.60658    
   3  Normalizat    .86968        .19749        .25522E-03   -.97534    
   4  Prefactor     1.0919        .19368        .22549E-03   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47344e-10
Minuit parameter uncertainties:
  1  11.6877
  2  1.13204
  3  0.19765
  4  0.193805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255680': 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) = 5543.50686643
delta logL = 0.0202201739712

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  7.892e+00  1.169e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.150e+00  1.132e+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:  1.092e+00  1.938e-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.697e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 180.173 12.492
Photon Index (Free Index): 2.15 +/- 1.13
Photon Flux (Free Index): 1.16e-08 +/- 2.07e-08
Energy Flux (Free Index): 5.75e-06 +/- 1.02e-05

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/255680/cmap_HighResolution_629683201_629942401_4FGL_J1200.6+1229_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='5.75e-06', photon_flux_error='1.96e-08', dlogl='2.02e-02', energy_flux='4.81e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-04 20:41:04.760525', photon_index_error2='1.13', photon_index2='2.15', ts='1.04', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.48e-08', energy_flux_error2='1.02e-05', EG='0.87', time_epoch_completed='1630813264.76', return_code='0', job_id='255680', GAL2='1.09', EG2='0.87', return_code2='0', energy_flux_error='6.55e-06', photon_flux_error2='2.07e-08', ts2='1.08', photon_index='2.39' WHERE bin_id='1506' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 255680: <4FGL_J1200.6+1229_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1506> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:55 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:56 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:56 2021
Terminated at Sat Sep  4 20:41:05 2021
Results reported at Sat Sep  4 20:41:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1506 180.173 12.4922 629683201 629942401 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 :                                   621.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

