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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1157
RA = 180.173, Dec = 12.4922
tmin = 539222401, tmax = 539481601
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='253836', job_status='RUN', time_executed='2021-09-04 20:24:53.461393', time_epoch_executed='1630812293.46' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253836/ft1_4FGL_J1200.6+1229_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253836/ft1_4FGL_J1200.6+1229_daily_bin1157.fits outfile=/scratch/kocevski/253836/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1157.fits ra=180.173 dec=12.4922 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.57
user 5.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253836/ft1_filtered_4FGL_J1200.6+1229_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/253836/ltcube_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.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/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits
.....................!
real 11.71
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253836/ft1_filtered_4FGL_J1200.6+1229_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/253836/ltcube_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.fits outfile=/scratch/kocevski/253836/expmap_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.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/253836/ltcube_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.fits
.....................!
real 191.49
user 186.05
sys 5.13

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/253836/ft1_filtered_4FGL_J1200.6+1229_daily_bin1157.fits scfile=/scratch/kocevski/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits outfile=/scratch/kocevski/253836/cmap_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253836/ft1_filtered_4FGL_J1200.6+1229_daily_bin1157.fits scfile=/scratch/kocevski/253836/ft2_4FGL_J1200.6+1229_daily_bin1157.fits outfile=/scratch/kocevski/253836/cmap_HighResolution_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50958       1.0000         .10000E-03   10000.    
    18 'norm      '    25.655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62381       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=   2519.811     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2525 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.270       -.68040E-05** at limit **
   2  Prefactor     .10000E-03    15.952        .44747E-05** at limit **
   3  Prefactor     33.937        74.284        .12273E-04   -.98539E-05
   4  Prefactor     65.820        48.549        .12203E-04   -.24547E-04
   5  Prefactor     74.242        151.97        .21986E-04   -.18186E-04
   6  Prefactor     10.731        16.610        .16064E-06   -.11813E-04
   7  Prefactor     18.618        16.214       -.84765E-05   -.15711E-03
   8  Prefactor     .10000E-03    10.055       -.55940E-05** at limit **
   9  Prefactor     .10000E-03    6.2359       -.22850E-05** at limit **
  10  Prefactor     .10000E-03    71.471       -.72373E-04** at limit **
  11  Prefactor     76.086        96.149        .60245E-04   -.34195E-04
  12  Prefactor     .10000E-03    2.3789        .24279E-07** at limit **
  13  Prefactor     .10000E-03    6.1123        .22210E-05** at limit **
  14  Prefactor     .10000E-03    9.8168       -.30115E-05** at limit **
  15  norm          8.2425        6.8681       -.14082E-05   -.30269E-03
  16  Prefactor     .10000E-03    20.648       -.14598E-04** at limit **
  17  norm          .50964        .63069        .16829E-06   -.62714E-03
  18  norm          25.651        41.274       -.41389E-05   -.12319E-04
  19  Prefactor     .10000E-03    52.016        .62141E-04** at limit **
  20  Prefactor     .10000E-03    9.2497        .93567E-05** at limit **
  21  Prefactor     .10000E-03    12.716        .92521E-05** at limit **
  22  Normalizat    1.2211        .34709       -.17143E-04    .24756E-03
  23  Prefactor     .62416        .26197        .28705E-05   -.29149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9371
  Prefactor  = 65.8199
  Prefactor  = 74.2418
  Prefactor  = 10.7313
  Prefactor  = 18.6175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.0857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.24248
  Prefactor  = 0.0001
  norm       = 0.509639
  norm       = 25.6509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22106
  Prefactor  = 0.624159
 **********
 **   18 **HESSE 
 **********

 FCN=   2519.811     FROM HESSE     STATUS=OK           360 CALLS     2885 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.272        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.937        74.333        .68795E-04   -1.4542    
   4  Prefactor     65.820        48.651        .49473E-04   -1.4084    
   5  Prefactor     74.242        152.43        .46604E-04   -1.3983    
   6  Prefactor     10.731        16.635        .12232E-03   -1.5053    
   7  Prefactor     18.618        16.212        .92823E-04   -1.4845    
   8  Prefactor     .10000E-03    10.056        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2438        .12242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     76.086        96.416        .46051E-04   -1.3961    
  12  Prefactor     .10000E-03    2.3824        .75611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1896        .12117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8189        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2425        6.9148        .99524E-04   -1.5134    
  16  Prefactor     .10000E-03    20.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50964        .60187        .42934E-03   -1.5565    
  18  norm          25.651        41.348        .79089E-04   -1.4695    
  19  Prefactor     .10000E-03    52.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2994        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.723        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2211        .41938        .26939E-03   -.85954    
  23  Prefactor     .62416        .31293        .29982E-03   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99788e-09
Minuit parameter uncertainties:
  1  1.05433e-05
  2  7.65355e-07
  3  74.5365
  4  48.6804
  5  153.246
  6  16.6417
  7  16.2155
  8  9.40391e-06
  9  2.89369e-05
  10  2.27959e-05
  11  96.6149
  12  1.68733e-06
  13  4.97524e-05
  14  2.75818e-05
  15  6.91544
  16  4.65084e-05
  17  0.60188
  18  41.3944
  19  3.34453e-05
  20  2.6798e-05
  21  1.95798e-05
  22  0.420547
  23  0.313805
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  9.404e-06  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:  6.242e-01  3.138e-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.221e+00  4.205e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253836/likelihoodResults_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.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) = 2519.81097954
delta logL = -0.000451451811841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2519.81052883
delta logL = -7.47224021325e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11648E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3699       1.0000          .0000       10.000    
     3 'Normalizat'    1.2211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62414       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=   2519.811     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      261 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.402        .15771E-01** at limit **
   2  Index         1.7830        6.2109        .50000        .18716E-06
   3  Normalizat    1.2210        .15723E-01    .26940E-03   -.46814E-03
   4  Prefactor     .62418        .12968E-01    .29981E-03   -.41172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78295
  Normalizat = 1.22104
  Prefactor  = 0.624177
 **********
 **   18 **HESSE 
 **********

 FCN=   2519.811     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    432.99        .17788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7830        5.8556        .50000       -.69894    
   3  Normalizat    1.2210        .47911E-01    .53880E-04   -.85955    
   4  Prefactor     .62418        .39515E-01    .59962E-04   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56855e-09
Minuit parameter uncertainties:
  1  8.5502e-05
  2  1302.66
  3  0.0479126
  4  0.0395163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253836': 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) = 2519.81052691
delta logL = 1.17510944619e-06

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  8.550e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.783e+00  1.303e+03  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:  6.242e-01  3.952e-02  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.221e+00  4.791e-02  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/253836/cmap_HighResolution_539222401_539481601_4FGL_J1200.6+1229_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-04 20:32:53.838494', job_id='253836', GAL2='0.62', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630812773.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1157' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:32:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 253836: <4FGL_J1200.6+1229_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1157 180.173 12.4922 539222401 539481601 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 :                                   475.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

