/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1033
RA = 180.173, Dec = 12.4922
tmin = 507081601, tmax = 507340801
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='253658', job_status='RUN', time_executed='2021-09-04 20:22:28.002067', time_epoch_executed='1630812148.0' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253658/ft1_4FGL_J1200.6+1229_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253658/ft1_4FGL_J1200.6+1229_daily_bin1033.fits outfile=/scratch/kocevski/253658/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1033.fits ra=180.173 dec=12.4922 rad=12.0 tmin=507081601.0 tmax=507340801.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 4.56
user 4.29
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.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/253658/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/253658/ft1_filtered_4FGL_J1200.6+1229_daily_bin1033.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253658/ft1_filtered_4FGL_J1200.6+1229_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/253658/ltcube_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.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/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits
.....................!
real 12.27
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253658/ft1_filtered_4FGL_J1200.6+1229_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/253658/ltcube_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.fits outfile=/scratch/kocevski/253658/expmap_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.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/253658/ltcube_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.fits
.....................!
real 190.20
user 185.63
sys 4.20

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/253658/ft1_filtered_4FGL_J1200.6+1229_daily_bin1033.fits scfile=/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits outfile=/scratch/kocevski/253658/cmap_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.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.70
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253658/ft1_filtered_4FGL_J1200.6+1229_daily_bin1033.fits scfile=/scratch/kocevski/253658/ft2_4FGL_J1200.6+1229_daily_bin1033.fits outfile=/scratch/kocevski/253658/cmap_HighResolution_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.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.66
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.004       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .66706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
    17 'norm      '    .24238       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57633       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4977       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=   5530.260     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2594 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7537        10.274        .17379E-05   -.17607E-04
   2  Prefactor     17.753        15.480        .17823E-06   -.19089E-05
   3  Prefactor     50.004        36.828        .71115E-07   -.10061E-04
   4  Prefactor     .10000E-03    9.2711        .14147E-06** at limit **
   5  Prefactor     66.241        88.786       -.73429E-06   -.78909E-04
   6  Prefactor     .10000E-03    6.0018       -.20086E-06** at limit **
   7  Prefactor     9.9590        9.5483        .10982E-05   -.80606E-04
   8  Prefactor     16.098        13.420        .78753E-07   -.52672E-05
   9  Prefactor     6.7350        4.8327        .14436E-06   -.42502E-04
  10  Prefactor     .10000E-03    39.279       -.35056E-07** at limit **
  11  Prefactor     .10000E-03    17.928       -.20276E-06** at limit **
  12  Prefactor     11.336        3.8897       -.38041E-07   -.64198E-04
  13  Prefactor     1.6238        2.6690        .27555E-06   -.28581E-04
  14  Prefactor     .10000E-03    10.349       -.55194E-07** at limit **
  15  norm          .66434        2.6208        .13424E-05   -.53437E-04
  16  Prefactor     16.261        31.232        .41423E-07   -.80777E-05
  17  norm          .24241        .26871        .93846E-07    .10645E-03
  18  norm          .10000E-03    33.576       -.28348E-06** at limit **
  19  Prefactor     .10000E-03    207.66        .10066E-06** at limit **
  20  Prefactor     8.4923        10.775        .18044E-06   -.14829E-04
  21  Prefactor     .10000E-03    10.741        .49470E-07** at limit **
  22  Normalizat    .57620        .22336       -.10220E-05   -.59539E-04
  23  Prefactor     1.4978        .20673       -.24837E-06   -.61512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75372
  Prefactor  = 17.7532
  Prefactor  = 50.0043
  Prefactor  = 0.0001
  Prefactor  = 66.2407
  Prefactor  = 0.0001
  Prefactor  = 9.95902
  Prefactor  = 16.0977
  Prefactor  = 6.73499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3362
  Prefactor  = 1.62378
  Prefactor  = 0.0001
  norm       = 0.664343
  Prefactor  = 16.2611
  norm       = 0.242413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49225
  Prefactor  = 0.0001
  Normalizat = 0.576199
  Prefactor  = 1.49779
 **********
 **   18 **HESSE 
 **********

 FCN=   5530.260     FROM HESSE     STATUS=OK           376 CALLS     2970 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7537        10.258        .31658E-03   -1.5443    
   2  Prefactor     17.753        15.498        .95048E-04   -1.4865    
   3  Prefactor     50.004        36.824        .56711E-04   -1.4293    
   4  Prefactor     .10000E-03    9.3521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.241        89.292        .24646E-03   -1.4078    
   6  Prefactor     .10000E-03    6.0160        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9590        9.5076        .63487E-03   -1.5077    
   8  Prefactor     16.098        13.432        .99823E-04   -1.4905    
   9  Prefactor     6.7350        4.8371        .12749E-03   -1.5189    
  10  Prefactor     .10000E-03    39.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.336        3.8696        .77886E-04   -1.5034    
  13  Prefactor     1.6238        2.6299        .14481E-03   -1.5453    
  14  Prefactor     .10000E-03    10.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66434        2.6201        .22977E-03   -1.5545    
  16  Prefactor     16.261        31.216        .99305E-04   -1.4901    
  17  norm          .24241        .25929        .38264E-03   -1.5610    
  18  norm          .10000E-03    33.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    208.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4923        10.775        .13757E-03   -1.5125    
  21  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .57620        .25398        .35061E-03   -1.0900    
  23  Prefactor     1.4978        .23808        .22652E-03   -.77602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13151e-11
Minuit parameter uncertainties:
  1  8.48464
  2  15.5016
  3  36.8405
  4  5.2779e-06
  5  89.4733
  6  6.83763e-06
  7  9.50907
  8  13.4343
  9  4.83739
  10  4.81357e-06
  11  3.80976e-06
  12  3.86964
  13  2.63008
  14  4.90478e-06
  15  2.62052
  16  31.2471
  17  0.259287
  18  8.39408e-05
  19  4.82321e-05
  20  10.7777
  21  2.34734e-06
  22  0.254497
  23  0.238254
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.610e+01  1.343e+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:  1.498e+00  2.383e-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:  5.762e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.01
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 9.64e-06

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) = 5528.69022516
delta logL = 1.56984507268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5528.4586819
delta logL = 1.80138832939

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 'Index     '    .93359       1.0000          .0000       10.000    
     3 'Normalizat'    .61269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5528.459     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8109        6.3234        .41569E-02   -.16336E-03
   2  Index         .93254        .40334        .21720       -.47977E-04
   3  Normalizat    .61317        .20294        .76848E-01    .27597E-04
   4  Prefactor     1.4815        .20275        .51470E-01   -.66773E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81086
  Index      = 0.93254
  Normalizat = 0.613168
  Prefactor  = 1.48151
 **********
 **   18 **HESSE 
 **********

 FCN=   5528.459     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8109        9.6833        .16628E-03   -1.5226    
   2  Index         .93254        .63611        .92858E-02   -.95013    
   3  Normalizat    .61317        .23413        .34024E-03   -1.0743    
   4  Prefactor     1.4815        .23445        .22753E-03   -.78059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8221e-09
Minuit parameter uncertainties:
  1  9.68589
  2  0.641294
  3  0.234506
  4  0.234622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253658': 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) = 5528.45867629
delta logL = 1.80139394328

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  5.811e+00  9.686e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  9.325e-01  6.413e-01  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.482e+00  2.346e-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:  6.132e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.58
Ra Dec: 180.173 12.492
Photon Index (Free Index): 0.93 +/- 0.64
Photon Flux (Free Index): 4.74e-09 +/- 5.25e-09
Energy Flux (Free Index): 8.03e-05 +/- 1.12e-04

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/253658/cmap_HighResolution_507081601_507340801_4FGL_J1200.6+1229_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='8.03e-05', photon_flux_error='2.89e-08', dlogl='1.80e+00', energy_flux='1.15e-05', photon_flux2='4.74e-09', job_status='DONE', time_completed='2021-09-04 20:32:35.039536', photon_index_error2='0.64', photon_index2='0.93', ts='7.01', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='1.12e-04', EG='0.58', time_epoch_completed='1630812755.04', return_code='0', job_id='253658', GAL2='1.48', EG2='0.61', return_code2='0', energy_flux_error='9.64e-06', photon_flux_error2='5.25e-09', ts2='10.58', photon_index='2.39' WHERE bin_id='1033' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 253658: <4FGL_J1200.6+1229_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1033> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:45 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:47 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:20:47 2021
Terminated at Sat Sep  4 20:32:35 2021
Results reported at Sat Sep  4 20:32:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1033 180.173 12.4922 507081601 507340801 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

