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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin20
RA = 180.173, Dec = 12.4922
tmin = 244512001, tmax = 244771201
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='247679', job_status='RUN', time_executed='2021-09-04 20:04:51.073264', time_epoch_executed='1630811091.07' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247679/ft1_4FGL_J1200.6+1229_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247679/ft1_4FGL_J1200.6+1229_daily_bin20.fits outfile=/scratch/kocevski/247679/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin20.fits ra=180.173 dec=12.4922 rad=12.0 tmin=244512001.0 tmax=244771201.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.43
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.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/247679/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/247679/ltcube_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.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/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits
.....................!
real 12.49
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/247679/ltcube_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.fits outfile=/scratch/kocevski/247679/expmap_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.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/247679/ltcube_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.fits
.....................!
real 190.69
user 186.47
sys 3.84

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/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits outfile=/scratch/kocevski/247679/cmap_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits outfile=/scratch/kocevski/247679/cmap_HighResolution_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.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/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/247679/ft2_4FGL_J1200.6+1229_daily_bin20.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247679/Model_4FGL_J1200.6+1229_daily_bin20.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/247679/ft1_filtered_4FGL_J1200.6+1229_daily_bin20.fits.....................!
real 50.21
user 48.81
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6042       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    99.129       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31489       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21545       1.0000         .10000E-03   10000.    
    18 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    180.31       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0731       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29410E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94149       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0473       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=   5270.675     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2943 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67352        9.6853        .33308E-05    .23214E-03
   2  Prefactor     .10000E-03    6.1257       -.20724E-06** at limit **
   3  Prefactor     .10000E-03    14.342       -.19581E-06** at limit **
   4  Prefactor     .10000E-03    1.9376       -.36938E-07** at limit **
   5  Prefactor     8.6654        334.65        .43328E-05    .29534E-04
   6  Prefactor     .10000E-03    7.8077       -.11183E-05** at limit **
   7  Prefactor     .10000E-03    2.5097        .43174E-06** at limit **
   8  Prefactor     21.736        16.929       -.14622E-06    .14062E-03
   9  Prefactor     2.5362        3.6773       -.16564E-06    .15567E-03
  10  Prefactor     .10000E-03    26.149       -.14642E-06** at limit **
  11  Prefactor     99.021        48.006       -.93376E-06    .11697E-03
  12  Prefactor     .10000E-03    1.3748       -.42570E-07** at limit **
  13  Prefactor     .31553        3.2612       -.58180E-06   -.13905E-03
  14  Prefactor     .10000E-03    21.334       -.66923E-07** at limit **
  15  norm          10.854        5.1898       -.23820E-06    .14565E-03
  16  Prefactor     .10000E-03    12.647       -.69661E-06** at limit **
  17  norm          .21546        .19777       -.13992E-08    .83553E-03
  18  norm          .10000E-03    79.967        .93466E-07** at limit **
  19  Prefactor     180.48        160.17        .11297E-05   -.80062E-04
  20  Prefactor     2.0866        10.100       -.62763E-06    .17466E-03
  21  Prefactor     .10006E-03    243.57        .79195E-04** at limit **
  22  Normalizat    .94186        .20202        .55735E-06    .88678E-03
  23  Prefactor     1.0467        .18267        .19497E-05    .11437E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.673522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66543
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.7358
  Prefactor  = 2.53618
  Prefactor  = 0.0001
  Prefactor  = 99.0215
  Prefactor  = 0.0001
  Prefactor  = 0.315528
  Prefactor  = 0.0001
  norm       = 10.8542
  Prefactor  = 0.000100001
  norm       = 0.215459
  norm       = 0.0001
  Prefactor  = 180.476
  Prefactor  = 2.08661
  Prefactor  = 0.000100057
  Normalizat = 0.941865
  Prefactor  = 1.04674
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.675     FROM HESSE     STATUS=OK           370 CALLS     3313 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67352        35.786        .42124E-02   -1.5544    
   2  Prefactor     .10000E-03    6.1558        .17550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9380        .98694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6654        331.10        .13666E-03   -1.5119    
   6  Prefactor     .10000E-03    7.9020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5177        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.736        16.943        .85903E-04   -1.4775    
   9  Prefactor     2.5362        3.6566        .15951E-03   -1.5389    
  10  Prefactor     .10000E-03    26.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     99.021        48.085        .20188E-03   -1.3714    
  12  Prefactor     .10000E-03    1.3890        .82854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .31553        3.2799        .24831E-03   -1.5596    
  14  Prefactor     .10000E-03    21.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.854        5.1765        .53333E-03   -1.5049    
  16  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21546        .19113        .29730E-03   -1.5615    
  18  norm          .10000E-03    80.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     180.48        160.03        .15030E-03   -1.3013    
  20  Prefactor     2.0866        10.227        .14344E-02   -1.5419    
  21  Prefactor     .10006E-03    238.33        .66193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94186        .22721        .26502E-03   -.95004    
  23  Prefactor     1.0467        .20787        .24158E-03   -.91187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3736e-09
Minuit parameter uncertainties:
  1  9.82439
  2  4.66838e-05
  3  7.4221e-05
  4  4.83824e-06
  5  107.776
  6  0.000262765
  7  5.34424e-05
  8  16.9469
  9  3.65693
  10  7.99296e-05
  11  48.1036
  12  4.77409e-06
  13  2.03443
  14  2.01212e-05
  15  5.17673
  16  0.000201443
  17  0.191129
  18  0.000205107
  19  160.421
  20  9.24129
  21  0.00739094
  22  0.22744
  23  0.208032
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.174e+01  1.695e+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.047e+00  2.080e-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:  9.419e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/247679/likelihoodResults_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.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) = 5270.35529222
delta logL = 0.319614115797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5270.29091877
delta logL = 0.383987559824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.124       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8321       1.0000          .0000       10.000    
     3 'Normalizat'    .96779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5270.291     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.122        22.455        .74239E-04    .21439E-04
   2  Index         1.8320        .56213        .41418E-01   -.16055E-04
   3  Normalizat    .96790        .21585        .26175E-03   -.19936E-04
   4  Prefactor     1.0312        .20632        .24304E-03   -.21471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1224
  Index      = 1.832
  Normalizat = 0.967905
  Prefactor  = 1.03123
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.291     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.122        22.277        .29696E-05   -1.4628    
   2  Index         1.8320        .55961        .10152E-02   -.68620    
   3  Normalizat    .96790        .21574        .10470E-04   -.94114    
   4  Prefactor     1.0312        .20639        .97216E-05   -.91696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5957e-12
Minuit parameter uncertainties:
  1  22.2832
  2  0.561582
  3  0.215937
  4  0.206544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247679': 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) = 5270.29091861
delta logL = 0.383987720891

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.912e+01  2.228e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.832e+00  5.616e-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.031e+00  2.065e-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:  9.679e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.83 +/- 0.56
Photon Flux (Free Index): 2.77e-08 +/- 2.84e-08
Energy Flux (Free Index): 3.01e-05 +/- 3.69e-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/247679/cmap_HighResolution_244512001_244771201_4FGL_J1200.6+1229_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='3.01e-05', photon_flux_error='3.65e-08', dlogl='3.84e-01', energy_flux='1.56e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-04 20:15:52.221822', photon_index_error2='0.56', photon_index2='1.83', ts='3.05', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='3.69e-05', EG='0.94', time_epoch_completed='1630811752.22', return_code='0', job_id='247679', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.84e-08', ts2='3.81', photon_index='2.39' WHERE bin_id='20' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 247679: <4FGL_J1200.6+1229_daily_bin20> in cluster <slac> Done

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

Your job looked like:

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

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

