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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1015
RA = 180.187, Dec = 20.1354
tmin = 502416001, tmax = 502675201
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='262030', job_status='RUN', time_executed='2021-09-04 20:47:48.362837', time_epoch_executed='1630813668.36' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262030/ft1_4FGL_J1200.7+2008_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262030/ft1_4FGL_J1200.7+2008_daily_bin1015.fits outfile=/scratch/kocevski/262030/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1015.fits ra=180.187 dec=20.1354 rad=12.0 tmin=502416001.0 tmax=502675201.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.53
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.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/262030/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.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/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/262030/ltcube_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.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/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits
.....................!
real 12.02
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/262030/ltcube_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits outfile=/scratch/kocevski/262030/expmap_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.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/262030/ltcube_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits
.....................!
real 190.69
user 185.10
sys 5.08

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/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits outfile=/scratch/kocevski/262030/cmap_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits outfile=/scratch/kocevski/262030/cmap_HighResolution_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262030/Model_4FGL_J1200.7+2008_daily_bin1015.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/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits.....................!
real 60.46
user 58.74
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits', '/scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits', expMap='/scratch/kocevski/262030/expmap_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits', expCube='/scratch/kocevski/262030/ltcube_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262030/Model_4FGL_J1200.7+2008_daily_bin1015.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/262030/ft1_filtered_4FGL_J1200.7+2008_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/262030/ft2_4FGL_J1200.7+2008_daily_bin1015.fits
Exposure map: /scratch/kocevski/262030/expmap_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits
Exposure cube: /scratch/kocevski/262030/ltcube_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262030/Model_4FGL_J1200.7+2008_daily_bin1015.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) = 6474.15459735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.353       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2248       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7902       1.0000         .10000E-03   10000.    
    16 'norm      '    12.895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95243       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13971       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0946       1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.651       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.440       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6474.112     FROM MIGRAD    STATUS=CONVERGED     62 CALLS     2120 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8073       -.74088E-07** at limit **
   2  norm          .10000E-03    4.6383       -.93558E-05** at limit **
   3  Prefactor     1.7322        1.0581        .98679E-06    .36934E-03
   4  Prefactor     2.9185        1.4189       -.59222E-05    .20590E-02
   5  Prefactor     19.690        1.0127       -.36447E-06    .58079E-03
   6  Prefactor     11.353        1.0020       -.13157E-06    .13071E-03
   7  Prefactor     9.4385        1.0032       -.19699E-06   -.89124E-04
   8  Prefactor     .10000E-03    .52009        .86250E-06** at limit **
   9  Prefactor     .10000E-03    21.235       -.87579E-04** at limit **
  10  norm          4.2248        1.4117       -.23533E-06    .13183E-03
  11  Prefactor     24.692        1.0198        .40563E-06   -.70046E-03
  12  Prefactor     .10000E-03    .98995       -.24713E-05** at limit **
  13  Prefactor     20.245        1.0509        .72695E-06   -.19308E-02
  14  Prefactor     27.191        1.0003       -.18560E-07    .21102E-03
  15  Prefactor     1.7901        1.0459        .11674E-07    .20971E-03
  16  norm          12.895        1.0404        .20936E-06   -.30250E-03
  17  Prefactor     1.7561        1.9938        .44142E-05    .55901E-04
  18  Prefactor     .95247        1.7896       -.12809E-05    .38619E-04
  19  Prefactor     .10000E-03    3.2897        .25164E-05** at limit **
  20  norm          .13969        .21051       -.17785E-05    .68856E-03
  21  norm          5.0944        1.0141        .48534E-06    .19342E-02
  22  Prefactor     46.652        1.0106        .21586E-06   -.85828E-03
  23  Prefactor     14.441        1.0021        .14775E-06    .35196E-04
  24  Prefactor     .10000E-03    17.409        .34905E-04** at limit **
  25  Normalizat    1.0081        .20888        .43077E-05    .22702E-03
  26  Prefactor     .93700        .21520       -.32045E-05    .25509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73219
  Prefactor  = 2.91845
  Prefactor  = 19.6903
  Prefactor  = 11.3525
  Prefactor  = 9.43854
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.22477
  Prefactor  = 24.6922
  Prefactor  = 0.0001
  Prefactor  = 20.2446
  Prefactor  = 27.1905
  Prefactor  = 1.79005
  norm       = 12.8946
  Prefactor  = 1.75609
  Prefactor  = 0.952468
  Prefactor  = 0.0001
  norm       = 0.139693
  norm       = 5.09445
  Prefactor  = 46.6515
  Prefactor  = 14.4414
  Prefactor  = 0.000100001
  Normalizat = 1.0081
  Prefactor  = 0.936997
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.112     FROM HESSE     STATUS=OK           518 CALLS     2638 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7322        6.4820        .79711E-02   -1.5445    
   4  Prefactor     2.9185        89.796        .59412E-02   -1.5366    
   5  Prefactor     19.690        15.315        .22565E-02   -1.4820    
   6  Prefactor     11.353        14.996        .29725E-02   -1.5034    
   7  Prefactor     9.4385        8.2885        .32611E-02   -1.5093    
   8  Prefactor     .10000E-03    .51293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2248        1.4235        .49012E-02   -1.5297    
  11  Prefactor     24.692        16.033        .20154E-02   -1.4714    
  12  Prefactor     .10000E-03    .98505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.245        79.170        .22255E-02   -1.4808    
  14  Prefactor     27.191        5.1171        .19207E-02   -1.4665    
  15  Prefactor     1.7901        3.1676        .78156E-02   -1.5440    
  16  norm          12.895        4.1298        .27887E-02   -1.4990    
  17  Prefactor     1.7561        2.1451        .79072E-02   -1.5443    
  18  Prefactor     .95247        1.8904        .12996E-01   -1.5513    
  19  Prefactor     .10000E-03    3.2481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .13969        .22003        .96989E-02   -1.5633    
  21  norm          5.0944        4.0249        .44533E-02   -1.5257    
  22  Prefactor     46.652        17.578        .14676E-02   -1.4341    
  23  Prefactor     14.441        12.008        .26350E-02   -1.4948    
  24  Prefactor     .10000E-03    17.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0081        .19193        .46269E-01   -.92760    
  26  Prefactor     .93700        .19002        .45474E-01   -.94860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64814e-07
Minuit parameter uncertainties:
  1  2.29183e-05
  2  1.82807e-05
  3  6.48461
  4  32.4297
  5  15.3176
  6  15.0013
  7  8.28949
  8  2.99215e-06
  9  0.00050846
  10  1.42351
  11  16.0355
  12  1.86947e-06
  13  79.5856
  14  5.11718
  15  3.16788
  16  4.12992
  17  2.14519
  18  1.89052
  19  3.18751e-05
  20  0.220032
  21  4.02509
  22  17.5795
  23  12.0105
  24  0.000214325
  25  0.192058
  26  0.19015
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.869e-06  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:  9.370e-01  1.902e-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:  1.008e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262030/likelihoodResults_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.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) = 6474.11622839
delta logL = -0.00467182750253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6474.11155633
delta logL = 2.34739673033e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5084       1.0000          .0000       10.000    
     3 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93703       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.112     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.831        .78445E-02** at limit **
   2  Index         2.0314        5.1087        .50000        .13847E-06
   3  Normalizat    1.0081        .14741E-01    .26504E-03   -.25864E-03
   4  Prefactor     .93700        .15425E-01    .28510E-03   -.22877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03145
  Normalizat = 1.0081
  Prefactor  = 0.936996
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.112     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.22        .83639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0314        5.3594        .50000       -.63566    
   3  Normalizat    1.0081        .52988E-01    .53009E-04   -.92760    
   4  Prefactor     .93700        .55445E-01    .11404E-04   -.94860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00922e-08
Minuit parameter uncertainties:
  1  0.000285433
  2  739.858
  3  0.0529904
  4  0.0554486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262030': 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) = 6474.11155016
delta logL = 6.40833786747e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.854e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.031e+00  7.399e+02  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:  9.370e-01  5.545e-02  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:  1.008e+00  5.299e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/262030/cmap_HighResolution_502416001_502675201_4FGL_J1200.7+2008_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-04 20:59:56.191568', job_id='262030', GAL2='0.94', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630814396.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1015' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:59:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 262030: <4FGL_J1200.7+2008_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1015> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:21 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:23 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:45:23 2021
Terminated at Sat Sep  4 20:59:56 2021
Results reported at Sat Sep  4 20:59:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1015 180.187 20.1354 502416001 502675201 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

