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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1435
RA = 180.173, Dec = 12.4922
tmin = 611280001, tmax = 611539201
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='255577', job_status='RUN', time_executed='2021-09-04 20:28:39.189626', time_epoch_executed='1630812519.19' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255577/ft1_4FGL_J1200.6+1229_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255577/ft1_4FGL_J1200.6+1229_daily_bin1435.fits outfile=/scratch/kocevski/255577/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1435.fits ra=180.173 dec=12.4922 rad=12.0 tmin=611280001.0 tmax=611539201.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.47
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255577/ft1_filtered_4FGL_J1200.6+1229_daily_bin1435.fits" evtable="EVENTS" scfile=/scratch/kocevski/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits sctable="SC_DATA" outfile=/scratch/kocevski/255577/ltcube_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.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/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits
.....................!
real 12.64
user 11.89
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255577/ft1_filtered_4FGL_J1200.6+1229_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/255577/ltcube_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.fits outfile=/scratch/kocevski/255577/expmap_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.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/255577/ltcube_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.fits
.....................!
real 191.67
user 185.68
sys 5.60

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/255577/ft1_filtered_4FGL_J1200.6+1229_daily_bin1435.fits scfile=/scratch/kocevski/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits outfile=/scratch/kocevski/255577/cmap_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255577/ft1_filtered_4FGL_J1200.6+1229_daily_bin1435.fits scfile=/scratch/kocevski/255577/ft2_4FGL_J1200.6+1229_daily_bin1435.fits outfile=/scratch/kocevski/255577/cmap_HighResolution_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71428E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14868E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2456       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.684       1.0000         .10000E-03   10000.    
    17 'norm      '    .95489E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13506E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.184       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3468       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72602       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=   5123.751     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2588 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9716        .11257E-07** at limit **
   2  Prefactor     .10000E-03    23.209        .22435E-06** at limit **
   3  Prefactor     .10000E-03    77.201       -.78379E-06** at limit **
   4  Prefactor     .10000E-03    5.9718       -.64686E-07** at limit **
   5  Prefactor     24.177        90.498       -.42012E-05    .17929E-04
   6  Prefactor     1.6275        14.615        .12359E-04    .50514E-04
   7  Prefactor     .10000E-03    6.2516        .81587E-07** at limit **
   8  Prefactor     .10009E-03    11.408        .18271E-05** at limit **
   9  Prefactor     .10000E-03    2.2664        .76712E-07** at limit **
  10  Prefactor     .10000E-03    145.36        .33634E-05** at limit **
  11  Prefactor     .10000E-03    81.108       -.10667E-05** at limit **
  12  Prefactor     4.2474        2.6441        .71307E-07    .48208E-03
  13  Prefactor     .10000E-03    1.5003       -.92303E-06** at limit **
  14  Prefactor     .10000E-03    10.506       -.87955E-08** at limit **
  15  norm          1.9831        3.1868        .22157E-06    .23770E-03
  16  Prefactor     22.685        33.212        .75826E-07    .12275E-04
  17  norm          .95273E-01    .17270       -.11830E-07   -.96636E-03
  18  norm          .10000E-03    15.872       -.38268E-06** at limit **
  19  Prefactor     .10000E-03    42.587        .29141E-05** at limit **
  20  Prefactor     .10000E-03    21.199        .15352E-04** at limit **
  21  Prefactor     23.238        22.384        .24015E-05    .45080E-03
  22  Normalizat    1.3469        .19300       -.12392E-06    .39412E-03
  23  Prefactor     .72596        .17507       -.41944E-06    .24225E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.177
  Prefactor  = 1.62745
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 4.24739
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.98311
  Prefactor  = 22.6851
  norm       = 0.0952733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.2384
  Normalizat = 1.3469
  Prefactor  = 0.725958
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.751     FROM HESSE     STATUS=OK           370 CALLS     2958 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9983        .17082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0177        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.177        91.291        .81470E-04   -1.4724    
   6  Prefactor     1.6275        28.334        .16375E-02   -1.5453    
   7  Prefactor     .10000E-03    6.3067        .17477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    131.12        .45545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2725        .20728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    145.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    81.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2474        2.5539        .85017E-04   -1.5296    
  13  Prefactor     .10000E-03    13.780        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9831        3.1761        .15558E-03   -1.5426    
  16  Prefactor     22.685        33.220        .84101E-04   -1.4755    
  17  norm          .95273E-01    .15330        .38410E-03   -1.5646    
  18  norm          .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.112        .33235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.238        21.979        .83189E-04   -1.4743    
  22  Normalizat    1.3469        .22493        .22141E-03   -.82177    
  23  Prefactor     .72596        .20609        .27131E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44235e-09
Minuit parameter uncertainties:
  1  4.04008e-06
  2  0.000381256
  3  0.000285871
  4  5.82154e-06
  5  91.8254
  6  13.5882
  7  1.55497e-05
  8  0.00678466
  9  1.08669e-05
  10  0.00056055
  11  0.000764068
  12  2.55398
  13  0.000189796
  14  7.65587e-07
  15  3.17638
  16  33.2467
  17  0.153305
  18  6.63542e-07
  19  9.80207e-05
  20  0.000524336
  21  21.9866
  22  0.22509
  23  0.206303
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.001e-04  6.785e-03  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.260e-01  2.063e-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.347e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255577/likelihoodResults_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.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): 102
logL (Free Index) = 5123.75090349
delta logL = -3.52306842615e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5123.75090348
delta logL = -3.52219740307e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3874       1.0000          .0000       10.000    
     3 'Normalizat'    1.3469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72597       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=   5123.751     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      231 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    .14359        .90715E-01** at limit **
   2  Index         2.5131        5.0180        .50000       -.66513E-05
   3  Normalizat    1.3469        .56374E-03    .50081E-01    .65457E-05
   4  Prefactor     .72596        .52699E-03    .61337E-01    .66162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100156
  Index      = 2.51311
  Normalizat = 1.3469
  Prefactor  = 0.72596
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.751     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      274 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    .24055        .70827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5131        5.9590        .50000       -.52057    
   3  Normalizat    1.3469        .61257E-03    .22141E-03   -.82177    
   4  Prefactor     .72596        .57202E-03    .27131E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01683e-09
Minuit parameter uncertainties:
  1  0.000387323
  2  29.672
  3  0.000612565
  4  0.000572022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255577': 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): 102
logL (Free Index) = 5123.75086804
delta logL = 2.15478394239e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.002e-04  3.873e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.513e+00  2.967e+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:  7.260e-01  5.720e-04  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.347e+00  6.126e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/255577/cmap_HighResolution_611280001_611539201_4FGL_J1200.6+1229_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-04 20:40:30.689049', job_id='255577', GAL2='0.73', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630813230.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1435' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 255577: <4FGL_J1200.6+1229_daily_bin1435> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1435> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:47 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:49 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:49 2021
Terminated at Sat Sep  4 20:40:31 2021
Results reported at Sat Sep  4 20:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1435 180.173 12.4922 611280001 611539201 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

