/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 63 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1158
RA = 180.173, Dec = 12.4922
tmin = 539481601, tmax = 539740801
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='253838', job_status='RUN', time_executed='2021-09-04 20:22:32.357124', time_epoch_executed='1630812152.36' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253838/ft1_4FGL_J1200.6+1229_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253838/ft2_4FGL_J1200.6+1229_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253838/ft1_4FGL_J1200.6+1229_daily_bin1158.fits outfile=/scratch/kocevski/253838/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1158.fits ra=180.173 dec=12.4922 rad=12.0 tmin=539481601.0 tmax=539740801.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.17
user 4.89
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253838/ft1_filtered_4FGL_J1200.6+1229_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/253838/ft2_4FGL_J1200.6+1229_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/253838/ltcube_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.fits outfile=/scratch/kocevski/253838/expmap_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.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/253838/ltcube_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.fits
.....................!
real 189.43
user 184.98
sys 3.96

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/253838/ft1_filtered_4FGL_J1200.6+1229_daily_bin1158.fits scfile=/scratch/kocevski/253838/ft2_4FGL_J1200.6+1229_daily_bin1158.fits outfile=/scratch/kocevski/253838/cmap_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.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.83
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253838/ft1_filtered_4FGL_J1200.6+1229_daily_bin1158.fits scfile=/scratch/kocevski/253838/ft2_4FGL_J1200.6+1229_daily_bin1158.fits outfile=/scratch/kocevski/253838/cmap_HighResolution_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.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.81
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7692       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1067       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49833       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4872       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95164       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1104       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=   3699.172     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2593 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.034        27.639        .34580E-05    .57887E-04
   2  Prefactor     1.1413        17.158        .48609E-05   -.77245E-03
   3  Prefactor     48.225        66.897       -.17755E-04   -.98134E-04
   4  Prefactor     .10000E-03    11.911        .59552E-05** at limit **
   5  Prefactor     .10000E-03    402.82       -.16064E-05** at limit **
   6  Prefactor     .10000E-03    5.0558       -.15975E-06** at limit **
   7  Prefactor     .10000E-03    3.0024        .23742E-07** at limit **
   8  Prefactor     .10000E-03    62.679        .12568E-04** at limit **
   9  Prefactor     2.7986        4.7075        .37125E-06   -.12039E-02
  10  Prefactor     59.407        116.45        .16478E-04   -.18184E-05
  11  Prefactor     .10000E-03    16.197        .47995E-06** at limit **
  12  Prefactor     1.7686        4.2531       -.74075E-06   -.19016E-03
  13  Prefactor     2.4613        5.8416        .11686E-05   -.37272E-04
  14  Prefactor     .10000E-03    9.8224       -.51553E-06** at limit **
  15  norm          5.1066        4.4154        .77683E-07    .32369E-03
  16  Prefactor     .10000E-03    12.030       -.62140E-05** at limit **
  17  norm          .49830        .39048       -.22946E-07   -.13984E-03
  18  norm          .10000E-03    58.387       -.17730E-04** at limit **
  19  Prefactor     .10000E-03    50.873        .35201E-05** at limit **
  20  Prefactor     23.016        20.694        .48925E-06    .11721E-04
  21  Prefactor     6.4758        82.020       -.30494E-05   -.91658E-05
  22  Normalizat    .95184        .26489        .51032E-06   -.67673E-04
  23  Prefactor     1.1103        .23163       -.64840E-06   -.10428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.0343
  Prefactor  = 1.14129
  Prefactor  = 48.2254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.79857
  Prefactor  = 59.4071
  Prefactor  = 0.0001
  Prefactor  = 1.76859
  Prefactor  = 2.46135
  Prefactor  = 0.0001
  norm       = 5.10661
  Prefactor  = 0.0001
  norm       = 0.498303
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.0162
  Prefactor  = 6.4758
  Normalizat = 0.95184
  Prefactor  = 1.11028
 **********
 **   18 **HESSE 
 **********

 FCN=   3699.172     FROM HESSE     STATUS=OK           366 CALLS     2959 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.034        27.683        .60415E-04   -1.4380    
   2  Prefactor     1.1413        68.658        .21642E-02   -1.5494    
   3  Prefactor     48.225        67.341        .57722E-04   -1.4318    
   4  Prefactor     .10000E-03    11.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    405.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0624        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0126        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    63.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7986        4.8352        .84768E-03   -1.5373    
  10  Prefactor     59.407        115.79        .52062E-04   -1.4165    
  11  Prefactor     .10000E-03    16.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7686        4.1431        .16637E-03   -1.5442    
  13  Prefactor     2.4613        5.7112        .19211E-03   -1.5394    
  14  Prefactor     .10000E-03    9.8264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1066        4.4103        .11201E-03   -1.5256    
  16  Prefactor     .10000E-03    12.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49830        .38779        .32269E-04   -1.5567    
  18  norm          .10000E-03    58.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.016        20.508        .83499E-04   -1.4748    
  21  Prefactor     6.4758        80.497        .15757E-03   -1.5199    
  22  Normalizat    .95184        .31863        .29422E-03   -.94662    
  23  Prefactor     1.1103        .27703        .24971E-03   -.89139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7501e-08
Minuit parameter uncertainties:
  1  27.6913
  2  17.7246
  3  67.447
  4  0.00010375
  5  0.000671002
  6  2.48349e-05
  7  3.09668e-07
  8  0.000797684
  9  4.8359
  10  116.231
  11  3.23285e-06
  12  4.14378
  13  5.71248
  14  1.00332e-05
  15  4.41055
  16  0.00011008
  17  0.387787
  18  0.000624087
  19  0.000122726
  20  20.5146
  21  45.7391
  22  0.319268
  23  0.277391
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  7.977e-04  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.110e+00  2.774e-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.518e-01  3.193e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253838/likelihoodResults_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.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) = 3699.1722632
delta logL = -7.52010864744e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3699.17218864
delta logL = -6.4404503064e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5838       1.0000          .0000       10.000    
     3 'Normalizat'    .95184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       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=   3699.172     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      297 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11176E-03    139.14        .36285E-02** at limit **
   2  Index         2.4398        5.1585        .50000        .13662E-04
   3  Normalizat    .95184        .10419E-01    .29422E-03    .29371E-03
   4  Prefactor     1.1103        .95238E-02    .24971E-03    .27175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111761
  Index      = 2.43976
  Normalizat = 0.951845
  Prefactor  = 1.11028
 **********
 **   18 **HESSE 
 **********

 FCN=   3699.172     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11176E-03    637.87        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4398        6.1961        .50000       -.53757    
   3  Normalizat    .95184        .22670E-01    .58844E-04   -.94662    
   4  Prefactor     1.1103        .20722E-01    .49941E-04   -.89139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14665e-08
Minuit parameter uncertainties:
  1  0.175127
  2  483.564
  3  0.0226706
  4  0.0207223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253838': 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) = 3699.17218824
delta logL = -2.45142018684e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.118e-04  1.751e-01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.440e+00  4.836e+02  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.110e+00  2.072e-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:  9.518e-01  2.267e-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/253838/cmap_HighResolution_539481601_539740801_4FGL_J1200.6+1229_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-04 20:31:44.825461', job_id='253838', GAL2='1.11', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630812704.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1158' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 253838: <4FGL_J1200.6+1229_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1158> 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) <bullet0065>, 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:31:45 2021
Results reported at Sat Sep  4 20:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1158 180.173 12.4922 539481601 539740801 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 :                                   547.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

