/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 175 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin2
RA = 180.173, Dec = 12.4922
tmin = 239846401, tmax = 240105601
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='247646', job_status='RUN', time_executed='2021-09-04 20:04:30.112559', time_epoch_executed='1630811070.11' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247646/ft1_4FGL_J1200.6+1229_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247646/ft1_4FGL_J1200.6+1229_daily_bin2.fits outfile=/scratch/kocevski/247646/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin2.fits ra=180.173 dec=12.4922 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.47
user 1.28
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247646/ft1_filtered_4FGL_J1200.6+1229_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/247646/ltcube_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.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/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits
.....................!
real 12.50
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247646/ft1_filtered_4FGL_J1200.6+1229_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/247646/ltcube_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.fits outfile=/scratch/kocevski/247646/expmap_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.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/247646/ltcube_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.fits
.....................!
real 189.20
user 184.87
sys 3.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/247646/ft1_filtered_4FGL_J1200.6+1229_daily_bin2.fits scfile=/scratch/kocevski/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits outfile=/scratch/kocevski/247646/cmap_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247646/ft1_filtered_4FGL_J1200.6+1229_daily_bin2.fits scfile=/scratch/kocevski/247646/ft2_4FGL_J1200.6+1229_daily_bin2.fits outfile=/scratch/kocevski/247646/cmap_HighResolution_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.715       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.396       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12542E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11297E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .82010E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    13.087       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14439E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4967       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86016       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99847       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=   5466.691     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2555 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.715        12.497        .17499E-06   -.58237E-04
   2  Prefactor     .10000E-03    26.219        .11644E-04** at limit **
   3  Prefactor     .10000E-03    20.969        .77091E-05** at limit **
   4  Prefactor     .10000E-03    4.7665        .10380E-07** at limit **
   5  Prefactor     .10000E-03    27.381        .81263E-05** at limit **
   6  Prefactor     27.390        13.882        .36134E-06    .32244E-03
   7  Prefactor     5.0538        6.5450        .27278E-05   -.14894E-03
   8  Prefactor     34.534        22.425       -.62015E-07    .36472E-03
   9  Prefactor     6.0109        4.4680       -.91746E-07   -.24135E-03
  10  Prefactor     .10000E-03    141.31       -.11160E-03** at limit **
  11  Prefactor     .10000E-03    15.266        .28354E-05** at limit **
  12  Prefactor     1.7084        3.0261       -.14505E-06   -.81259E-03
  13  Prefactor     .10000E-03    2.1330        .18528E-06** at limit **
  14  Prefactor     .10000E-03    38.309       -.37272E-04** at limit **
  15  norm          8.2712        3.8493       -.30966E-06    .35441E-03
  16  Prefactor     .10000E-03    18.993       -.13917E-04** at limit **
  17  norm          .82018E-01    .15474       -.25020E-07   -.25476E-02
  18  norm          13.119        29.504        .11401E-04    .15891E-04
  19  Prefactor     .10000E-03    81.399        .81019E-04** at limit **
  20  Prefactor     .10000E-03    4.1374       -.92400E-08** at limit **
  21  Prefactor     1.3808        96.530        .21787E-04   -.72734E-04
  22  Normalizat    .86007        .19057       -.56092E-07   -.83756E-04
  23  Prefactor     .99860        .17417       -.15427E-05    .45709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.7152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3901
  Prefactor  = 5.05382
  Prefactor  = 34.5339
  Prefactor  = 6.01094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.27124
  Prefactor  = 0.0001
  norm       = 0.082018
  norm       = 13.1194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3808
  Normalizat = 0.860071
  Prefactor  = 0.998603
 **********
 **   18 **HESSE 
 **********

 FCN=   5466.691     FROM HESSE     STATUS=OK           370 CALLS     2925 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.715        12.502        .85955E-04   -1.4776    
   2  Prefactor     .10000E-03    26.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7915        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.390        13.881        .76539E-04   -1.4661    
   7  Prefactor     5.0538        6.5323        .17887E-03   -1.5258    
   8  Prefactor     34.534        22.456        .68197E-04   -1.4532    
   9  Prefactor     6.0109        4.4494        .12470E-03   -1.5218    
  10  Prefactor     .10000E-03    141.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7084        2.8521        .14962E-03   -1.5447    
  13  Prefactor     .10000E-03    3.4972        .19752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2712        3.8472        .92783E-04   -1.5133    
  16  Prefactor     .10000E-03    19.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .82018E-01    .13120        .38480E-03   -1.5651    
  18  norm          13.119        29.503        .11072E-03   -1.4983    
  19  Prefactor     .10000E-03    81.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1426        .14678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3808        96.722        .35018E-03   -1.5473    
  22  Normalizat    .86007        .21800        .26457E-03   -.97878    
  23  Prefactor     .99860        .20016        .23611E-03   -.92776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72327e-10
Minuit parameter uncertainties:
  1  12.5031
  2  5.58603e-05
  3  8.60344e-06
  4  6.05526e-06
  5  1.76644e-06
  6  13.8824
  7  6.53318
  8  22.4615
  9  4.44961
  10  0.000403621
  11  1.2545e-05
  12  2.85236
  13  1.85192e-05
  14  0.000240103
  15  3.8473
  16  2.6141e-05
  17  0.131204
  18  29.5354
  19  1.58052e-06
  20  3.08364e-05
  21  23.1514
  22  0.218225
  23  0.200311
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.453e+01  2.246e+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:  9.986e-01  2.003e-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.601e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.43e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/247646/likelihoodResults_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.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) = 5465.41038436
delta logL = 1.28071476476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5465.39439399
delta logL = 1.29670513803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7752       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3731       1.0000          .0000       10.000    
     3 'Normalizat'    .79429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0400       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=   5465.394     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7569        82.127        .32042E-02    .19791E-03
   2  Index         3.3741        2.6038        .83671E-01    .16066E-03
   3  Normalizat    .79424        .80521E-01    .43536E-01    .17764E-04
   4  Prefactor     1.0400        .73527E-01    .40535E-01    .22211E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.75688
  Index      = 3.37412
  Normalizat = 0.794242
  Prefactor  = 1.03996
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.394     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7569        20.721        .10634E-03   -1.5083    
   2  Index         3.3741        1.0922        .34055E-02   -.33120    
   3  Normalizat    .79424        .21425        .27366E-03   -1.0028    
   4  Prefactor     1.0400        .20176        .23177E-03   -.91409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51679e-11
Minuit parameter uncertainties:
  1  20.7358
  2  1.10218
  3  0.214473
  4  0.201911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247646': 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) = 5465.39439269
delta logL = 1.29670643641

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  9.757e+00  2.074e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.374e+00  1.102e+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.040e+00  2.019e-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:  7.942e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 180.173 12.492
Photon Index (Free Index): 3.37 +/- 1.10
Photon Flux (Free Index): 1.30e-07 +/- 6.53e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.23e-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/247646/cmap_HighResolution_239846401_240105601_4FGL_J1200.6+1229_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='7.43e-08', energy_flux2='2.24e-05', photon_flux_error='4.83e-08', dlogl='1.30e+00', energy_flux='2.48e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-04 20:15:17.088673', photon_index_error2='1.10', photon_index2='3.37', ts='3.58', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.23e-05', EG='0.86', time_epoch_completed='1630811717.09', return_code='0', job_id='247646', GAL2='1.04', EG2='0.79', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.53e-08', ts2='6.40', photon_index='2.39' WHERE bin_id='2' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 247646: <4FGL_J1200.6+1229_daily_bin2> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin2> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:01:07 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:01:08 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:01:08 2021
Terminated at Sat Sep  4 20:15:18 2021
Results reported at Sat Sep  4 20:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin2 180.173 12.4922 239846401 240105601 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

