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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin3
RA = 180.173, Dec = 12.4922
tmin = 240105601, tmax = 240364801
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='247648', job_status='RUN', time_executed='2021-09-04 20:04:34.144438', time_epoch_executed='1630811074.14' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247648/ft1_4FGL_J1200.6+1229_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247648/ft2_4FGL_J1200.6+1229_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247648/ft1_4FGL_J1200.6+1229_daily_bin3.fits outfile=/scratch/kocevski/247648/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin3.fits ra=180.173 dec=12.4922 rad=12.0 tmin=240105601.0 tmax=240364801.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.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247648/ft1_filtered_4FGL_J1200.6+1229_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/247648/ft2_4FGL_J1200.6+1229_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/247648/ltcube_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.fits outfile=/scratch/kocevski/247648/expmap_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.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/247648/ltcube_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.fits
.....................!
real 191.73
user 186.63
sys 4.73

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/247648/ft1_filtered_4FGL_J1200.6+1229_daily_bin3.fits scfile=/scratch/kocevski/247648/ft2_4FGL_J1200.6+1229_daily_bin3.fits outfile=/scratch/kocevski/247648/cmap_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.173 yref=12.4922 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247648/ft1_filtered_4FGL_J1200.6+1229_daily_bin3.fits scfile=/scratch/kocevski/247648/ft2_4FGL_J1200.6+1229_daily_bin3.fits outfile=/scratch/kocevski/247648/cmap_HighResolution_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.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/247648/ft1_filtered_4FGL_J1200.6+1229_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/247648/ft2_4FGL_J1200.6+1229_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247648/Model_4FGL_J1200.6+1229_daily_bin3.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/247648/ft1_filtered_4FGL_J1200.6+1229_daily_bin3.fits.....................!
real 48.98
user 47.67
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11578E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0953       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21809       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    130.49       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.140       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82357       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0727       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=   4900.679     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2579 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2321        .36804E-08** at limit **
   2  Prefactor     .10000E-03    5.4525        .32078E-06** at limit **
   3  Prefactor     33.053        38.926       -.47109E-07    .15691E-05
   4  Prefactor     .10000E-03    8.1084       -.24157E-06** at limit **
   5  Prefactor     .10000E-03    35.226        .14466E-05** at limit **
   6  Prefactor     .10000E-03    3.5302       -.66424E-06** at limit **
   7  Prefactor     .10000E-03    4.9675       -.28298E-06** at limit **
   8  Prefactor     2.8669        32.692       -.23702E-04    .33434E-04
   9  Prefactor     .10001E-03    2.5668        .40325E-06** at limit **
  10  Prefactor     3.9243        604.38        .71405E-04    .12510E-04
  11  Prefactor     .10000E-03    11.545        .45225E-06** at limit **
  12  Prefactor     3.0952        3.1769        .19507E-06   -.30068E-03
  13  Prefactor     .10000E-03    2.6044        .11028E-06** at limit **
  14  Prefactor     .10000E-03    14.406       -.30039E-06** at limit **
  15  norm          12.768        4.6235       -.23251E-06    .85754E-04
  16  Prefactor     .10000E-03    21.087        .34257E-06** at limit **
  17  norm          .21811        .18416       -.81895E-08   -.25599E-03
  18  norm          .10000E-03    43.495       -.10803E-05** at limit **
  19  Prefactor     130.74        118.22        .12520E-04    .24759E-04
  20  Prefactor     25.449        14.751        .26075E-06    .12950E-06
  21  Prefactor     21.119        33.259       -.16075E-05   -.13404E-04
  22  Normalizat    .82362        .20579        .13334E-05   -.87303E-04
  23  Prefactor     1.0728        .18815       -.83025E-06    .50304E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86692
  Prefactor  = 0.000100008
  Prefactor  = 3.92432
  Prefactor  = 0.0001
  Prefactor  = 3.09521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7681
  Prefactor  = 0.0001
  norm       = 0.218105
  norm       = 0.0001
  Prefactor  = 130.735
  Prefactor  = 25.4493
  Prefactor  = 21.1193
  Normalizat = 0.823619
  Prefactor  = 1.07275
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.679     FROM HESSE     STATUS=OK           372 CALLS     2951 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2344        .12291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4601        .15964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.053        38.983        .69697E-04   -1.4557    
   4  Prefactor     .10000E-03    8.1927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5346        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0316        .15236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8669        33.041        .23935E-03   -1.5369    
   9  Prefactor     .10001E-03    9.2164        .20957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9243        624.50        .19997E-03   -1.5312    
  11  Prefactor     .10000E-03    11.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0952        3.0125        .11397E-03   -1.5356    
  13  Prefactor     .10000E-03    4.3979        .20921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.768        4.6200        .86008E-04   -1.4993    
  16  Prefactor     .10000E-03    21.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21811        .18856        .26636E-03   -1.5615    
  18  norm          .10000E-03    43.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     130.74        118.51        .17623E-03   -1.3416    
  20  Prefactor     25.449        14.742        .79410E-04   -1.4699    
  21  Prefactor     21.119        33.234        .87115E-04   -1.4789    
  22  Normalizat    .82362        .23211        .26993E-03   -.99198    
  23  Prefactor     1.0728        .21483        .23048E-03   -.90342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50497e-10
Minuit parameter uncertainties:
  1  6.73506e-07
  2  1.35967e-06
  3  39.0132
  4  7.86611e-06
  5  2.34115e-05
  6  1.87887e-05
  7  1.37534e-06
  8  19.4785
  9  0.000533577
  10  100.09
  11  3.60306e-06
  12  3.01267
  13  1.48483e-05
  14  1.78734e-05
  15  4.62009
  16  8.56792e-05
  17  0.188558
  18  1.86174e-05
  19  118.725
  20  14.7446
  21  33.2631
  22  0.232395
  23  0.215003
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.867e+00  1.948e+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.073e+00  2.150e-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.236e-01  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/247648/likelihoodResults_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.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) = 4900.44925886
delta logL = 0.229321321974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4900.39869685
delta logL = 0.279883323742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0120       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8249       1.0000          .0000       10.000    
     3 'Normalizat'    .78856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0925       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=   4900.399     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      227 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0085        35.237        .13095E-01    .68190E-03
   2  Index         3.8264        3.8667        .12435        .10973E-03
   3  Normalizat    .78861        .43901E-01    .62283E-01    .25172E-05
   4  Prefactor     1.0924        .42316E-01    .37878E-01   -.17661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00852
  Index      = 3.82636
  Normalizat = 0.788607
  Prefactor  = 1.09245
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.399     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0085        102.57        .97589E-04   -1.5507    
   2  Index         3.8264        6.3013        .75558E-02   -.23694    
   3  Normalizat    .78861        .19777        .27550E-03   -1.0049    
   4  Prefactor     1.0924        .18955        .22860E-03   -.89708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.14637e-07
Minuit parameter uncertainties:
  1  20.3769
  2  9.9569
  3  0.197949
  4  0.189663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247648': 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) = 4900.39869645
delta logL = 0.279883728249

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.009e+00  2.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.826e+00  9.957e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.092e+00  1.897e-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.886e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/247648/cmap_HighResolution_240105601_240364801_4FGL_J1200.6+1229_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-09-04 20:14:48.555821', job_id='247648', GAL2='1.09', fit_tolerance='1e-08', EG2='0.79', EG='0.82', time_epoch_completed='1630811688.56', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.80e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='3' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 247648: <4FGL_J1200.6+1229_daily_bin3> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin3> 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) <bullet0231>, 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:14:49 2021
Results reported at Sat Sep  4 20:14:49 2021

Your job looked like:

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

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

