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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin818
RA = 180.187, Dec = 20.1354
tmin = 451353601, tmax = 451612801
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='260509', job_status='RUN', time_executed='2021-09-04 20:40:56.275836', time_epoch_executed='1630813256.28' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260509/ft1_4FGL_J1200.7+2008_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260509/ft1_4FGL_J1200.7+2008_daily_bin818.fits outfile=/scratch/kocevski/260509/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin818.fits ra=180.187 dec=20.1354 rad=12.0 tmin=451353601.0 tmax=451612801.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 3.80
user 3.60
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.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/260509/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin818.fits evtable="EVENTS" outfile="/scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/260509/ltcube_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.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/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits
.....................!
real 11.92
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/260509/ltcube_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits outfile=/scratch/kocevski/260509/expmap_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.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/260509/ltcube_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits
.....................!
real 191.85
user 185.59
sys 5.50

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits outfile=/scratch/kocevski/260509/cmap_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.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.187 yref=20.1354 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/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits outfile=/scratch/kocevski/260509/cmap_HighResolution_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.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.187 yref=20.1354 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/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260509/Model_4FGL_J1200.7+2008_daily_bin818.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/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits.....................!
real 57.10
user 55.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits', '/scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits', expMap='/scratch/kocevski/260509/expmap_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits', expCube='/scratch/kocevski/260509/ltcube_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260509/Model_4FGL_J1200.7+2008_daily_bin818.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/260509/ft1_filtered_4FGL_J1200.7+2008_daily_bin818.fits
Spacecraft file(s): /scratch/kocevski/260509/ft2_4FGL_J1200.7+2008_daily_bin818.fits
Exposure map: /scratch/kocevski/260509/expmap_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits
Exposure cube: /scratch/kocevski/260509/ltcube_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260509/Model_4FGL_J1200.7+2008_daily_bin818.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) = 6198.93761782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1461       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    108.30       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9808       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6044       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6817       1.0000         .10000E-03   10000.    
    21 'norm      '    16.218       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76073       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2639       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6198.931     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3059 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0496       -.39520E-07** at limit **
   2  norm          11.665        12.049        .44166E-06    .73923E-04
   3  Prefactor     10.191        12.477        .51366E-06    .14835E-04
   4  Prefactor     .10000E-03    39.993       -.41213E-06** at limit **
   5  Prefactor     .10000E-03    9.8772       -.26694E-06** at limit **
   6  Prefactor     .10000E-03    9.7184       -.39091E-06** at limit **
   7  Prefactor     1.4994        24.859        .13727E-04   -.17282E-03
   8  Prefactor     1.1463        1.5443        .91416E-08   -.10874E-03
   9  Prefactor     .10000E-03    5.0528        .12267E-05** at limit **
  10  norm          5.6407        1.5923        .89658E-07    .67424E-03
  11  Prefactor     .10001E-03    10.350        .29313E-05** at limit **
  12  Prefactor     2.7909        4.1032       -.24367E-06    .67416E-04
  13  Prefactor     108.34        90.114       -.23176E-05   -.11298E-03
  14  Prefactor     .10000E-03    .82719       -.51380E-07** at limit **
  15  Prefactor     .10000E-03    1.6320       -.29379E-07** at limit **
  16  norm          3.9808        3.0521        .58913E-07    .13850E-03
  17  Prefactor     5.6840        2.8651        .16856E-07    .12547E-03
  18  Prefactor     .44560        1.9245        .12420E-06   -.27017E-03
  19  Prefactor     9.6045        7.5721        .22715E-06    .43837E-04
  20  norm          1.6817        .36887        .37047E-07    .15772E-02
  21  norm          16.218        6.3510        .94573E-07    .11963E-03
  22  Prefactor     12.158        9.5288        .18143E-06    .94183E-04
  23  Prefactor     .10000E-03    3.6861       -.45613E-07** at limit **
  24  Prefactor     .10000E-03    12.855       -.31361E-06** at limit **
  25  Normalizat    .76074        .19381       -.30220E-05    .20872E-04
  26  Prefactor     1.2638        .18946        .11412E-05    .20742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.6653
  Prefactor  = 10.1907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49943
  Prefactor  = 1.1463
  Prefactor  = 0.000100002
  norm       = 5.64069
  Prefactor  = 0.000100008
  Prefactor  = 2.79088
  Prefactor  = 108.341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.98083
  Prefactor  = 5.68404
  Prefactor  = 0.4456
  Prefactor  = 9.60454
  norm       = 1.68168
  norm       = 16.2179
  Prefactor  = 12.1575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.760743
  Prefactor  = 1.26381
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.931     FROM HESSE     STATUS=OK           458 CALLS     3517 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0522        .11007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.665        12.079        .11730E-03   -1.5025    
   3  Prefactor     10.191        12.478        .62760E-03   -1.5069    
   4  Prefactor     .10000E-03    40.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.9600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4994        25.619        .17487E-02   -1.5463    
   8  Prefactor     1.1463        1.5073        .10859E-03   -1.5494    
   9  Prefactor     .10000E-03    5.1743        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6407        1.5946        .50354E-04   -1.5233    
  11  Prefactor     .10001E-03    10.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7909        4.0886        .18009E-03   -1.5374    
  13  Prefactor     108.34        90.574        .19323E-03   -1.3622    
  14  Prefactor     .10000E-03    .83209        .69851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0137        .19355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9808        3.0603        .10898E-03   -1.5309    
  17  Prefactor     5.6840        2.8801        .86060E-04   -1.5231    
  18  Prefactor     .44560        1.8879        .20455E-03   -1.5574    
  19  Prefactor     9.6045        7.5637        .64654E-03   -1.5088    
  20  norm          1.6817        .36942        .20975E-04   -1.5449    
  21  norm          16.218        6.3432        .49727E-03   -1.4902    
  22  Prefactor     12.158        9.5355        .11489E-03   -1.5010    
  23  Prefactor     .10000E-03    3.7006        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76074        .22112        .29936E-03   -1.0154    
  26  Prefactor     1.2638        .22135        .25626E-03   -.84390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85067e-09
Minuit parameter uncertainties:
  1  4.9096e-06
  2  12.0814
  3  12.4811
  4  0.000189053
  5  5.61388e-05
  6  4.43511e-05
  7  12.4016
  8  1.50731
  9  0.000202207
  10  1.59461
  11  0.000605857
  12  4.08899
  13  90.6897
  14  3.20971e-06
  15  2.30811e-08
  16  3.06038
  17  2.88019
  18  1.83431
  19  7.56442
  20  0.369421
  21  6.34351
  22  9.53667
  23  6.37009e-06
  24  1.40613e-05
  25  0.221382
  26  0.221509
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.791e+00  4.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.264e+00  2.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  7.607e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260509/likelihoodResults_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.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) = 6198.77512029
delta logL = 0.155878068508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6198.7378754
delta logL = 0.193122959944

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6198.738     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      272 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43049        8.4770        .11004E-01    .14004E-02
   2  Index         4.0573        3.5378        .15535        .11967E-03
   3  Normalizat    .72896        .38105E-01    .68990E-01    .25781E-04
   4  Prefactor     1.2916        .41188E-01    .57423E-01   -.22710E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.430489
  Index      = 4.05733
  Normalizat = 0.728955
  Prefactor  = 1.29159
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.738     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      307 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43049        26.287        .57955E-03   -1.5577    
   2  Index         4.0573        6.6775        .80054E-02   -.18967    
   3  Normalizat    .72896        .14881        .30529E-03   -1.0276    
   4  Prefactor     1.2916        .16210        .25390E-03   -.83558    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17161e-07
Minuit parameter uncertainties:
  1  6.73027
  2  9.41595
  3  0.148889
  4  0.162165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260509': 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) = 6198.73786942
delta logL = 0.193128942812

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.305e-01  6.730e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  4.057e+00  9.416e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.292e+00  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  7.290e-01  1.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 180.187 20.135
Photon Index (Free Index): 4.06 +/- 9.42
Photon Flux (Free Index): 4.40e-08 +/- 4.65e-08
Energy Flux (Free Index): 6.53e-06 +/- 1.20e-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/260509/cmap_HighResolution_451353601_451612801_4FGL_J1200.7+2008_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.93e-03', comment='SUCCESS', energy_flux2='6.53e-06', dlogl='1.93e-01', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-04 20:54:03.997468', photon_index_error2='9.42', photon_index2='4.06', ts='0.59', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.20e-05', EG='0.76', time_epoch_completed='1630814044.0', return_code='0', job_id='260509', GAL2='1.29', EG2='0.73', return_code2='102', photon_flux_error2='4.65e-08', ts2='1.01', photon_index='2.52' WHERE bin_id='818' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 260509: <4FGL_J1200.7+2008_daily_bin818> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin818> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:40:42 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:40:43 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:40:43 2021
Terminated at Sat Sep  4 20:54:04 2021
Results reported at Sat Sep  4 20:54:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin818 180.187 20.1354 451353601 451612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

