/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 1 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin478
RA = 180.187, Dec = 20.1354
tmin = 363225601, tmax = 363484801
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='258550', job_status='RUN', time_executed='2021-09-04 20:35:40.594337', time_epoch_executed='1630812940.59' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258550/ft1_4FGL_J1200.7+2008_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258550/ft1_4FGL_J1200.7+2008_daily_bin478.fits outfile=/scratch/kocevski/258550/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin478.fits ra=180.187 dec=20.1354 rad=12.0 tmin=363225601.0 tmax=363484801.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 6.97
user 6.62
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/258550/ltcube_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.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/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/258550/ltcube_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.fits outfile=/scratch/kocevski/258550/expmap_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.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/258550/ltcube_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.fits
.....................!
real 190.72
user 185.19
sys 5.21

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/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits scfile=/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits outfile=/scratch/kocevski/258550/cmap_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits scfile=/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits outfile=/scratch/kocevski/258550/cmap_HighResolution_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/258550/ft2_4FGL_J1200.7+2008_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258550/Model_4FGL_J1200.7+2008_daily_bin478.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/258550/ft1_filtered_4FGL_J1200.7+2008_daily_bin478.fits......................!
real 29.86
user 28.59
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.375       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7434       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11383E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    102.24       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3646       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8566       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11507E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6629       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2122       1.0000         .10000E-03   10000.    
    24 'Prefactor '    61.303       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51395       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=   2196.898     FROM MIGRAD    STATUS=CONVERGED   1097 CALLS     3704 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.362        14.021        .10215E-03    .78855E-04
   2  norm          2.7589        37.403        .24580E-03   -.17275E-04
   3  Prefactor     .10000E-03    20.326        .18142E-02** at limit **
   4  Prefactor     102.25        106.24        .39763E-04   -.94351E-06
   5  Prefactor     .10000E-03    25.717        .18142E-02** at limit **
   6  Prefactor     45.406        43.864        .59514E-04    .48692E-04
   7  Prefactor     .10000E-03    7.8831        .12849E-02** at limit **
   8  Prefactor     .10000E-03    2.3338        .69607E-03** at limit **
   9  Prefactor     .10000E-03    64.801        .18142E-02** at limit **
  10  norm          2.7445        1.8929        .51426E-04    .20648E-03
  11  Prefactor     .10000E-03    10.761        .15018E-02** at limit **
  12  Prefactor     1.3681        9.2854        .26717E-03   -.17502E-03
  13  Prefactor     .10000E-03    51.418        .18142E-02** at limit **
  14  Prefactor     2.2190        6.0787        .16043E-03   -.82699E-04
  15  Prefactor     9.8581        9.2906        .11431E-03    .10010E-03
  16  norm          6.6937        8.0776        .96974E-04    .13190E-02
  17  Prefactor     .10953E-03    24.963        .30024E-01** at limit **
  18  Prefactor     7.1807        4.7930        .77432E-04    .10006E-02
  19  Prefactor     .10074E-03    149.29        .35746E-02** at limit **
  20  norm          1.6629        .63998        .21767E-04    .26313E-02
  21  norm          3.7126        10.770        .20958E-03    .37782E-03
  22  Prefactor     .10000E-03    17.324        .18142E-02** at limit **
  23  Prefactor     6.2478        20.875        .16106E-03    .13528E-03
  24  Prefactor     61.291        56.741        .25623E-03    .39776E-04
  25  Normalizat    1.2969        .41402        .24447E-03    .18820E-03
  26  Prefactor     .51377        .36584        .35860E-03    .17280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3619
  norm       = 2.75891
  Prefactor  = 0.0001
  Prefactor  = 102.251
  Prefactor  = 0.0001
  Prefactor  = 45.4055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.74453
  Prefactor  = 0.0001
  Prefactor  = 1.36807
  Prefactor  = 0.000100002
  Prefactor  = 2.219
  Prefactor  = 9.85811
  norm       = 6.69369
  Prefactor  = 0.000109535
  Prefactor  = 7.18067
  Prefactor  = 0.000100744
  norm       = 1.66291
  norm       = 3.71257
  Prefactor  = 0.0001
  Prefactor  = 6.24782
  Prefactor  = 61.2911
  Normalizat = 1.29686
  Prefactor  = 0.513766
 **********
 **   18 **HESSE 
 **********

 FCN=   2196.898     FROM HESSE     STATUS=OK           440 CALLS     4144 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.362        14.021        .40858E-05   -1.4924    
   2  norm          2.7589        37.378        .98321E-05   -1.5376    
   3  Prefactor     .10000E-03    20.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     102.25        106.24        .79526E-05   -1.3682    
   5  Prefactor     .10000E-03    25.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.406        43.867        .11903E-04   -1.4359    
   7  Prefactor     .10000E-03    7.8832        .25697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3339        .13921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7445        1.8929        .20570E-05   -1.5377    
  11  Prefactor     .10000E-03    10.761        .30035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3681        9.2784        .10687E-04   -1.5474    
  13  Prefactor     .10000E-03    51.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2190        6.0764        .64172E-05   -1.5410    
  15  Prefactor     9.8581        9.2884        .45724E-05   -1.5080    
  16  norm          6.6937        7.7055        .19395E-04   -1.5190    
  17  Prefactor     .10953E-03    15.290        .38294E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1807        4.7884        .15486E-04   -1.5172    
  19  Prefactor     .10074E-03    150.74        .71491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6629        .63980        .43535E-05   -1.5450    
  21  norm          3.7126        10.745        .83831E-05   -1.5323    
  22  Prefactor     .10000E-03    17.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2478        20.874        .64425E-05   -1.5208    
  24  Prefactor     61.291        56.738        .10249E-04   -1.4141    
  25  Normalizat    1.2969        .41428        .48894E-04   -.83660    
  26  Prefactor     .51377        .36609        .14344E-04   -1.1135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79234e-09
Minuit parameter uncertainties:
  1  14.0237
  2  20.325
  3  8.79695e-05
  4  106.44
  5  0.000176395
  6  43.8986
  7  3.00683e-06
  8  1.41845e-05
  9  0.000987164
  10  1.89293
  11  1.81912e-06
  12  7.12692
  13  0.000580046
  14  6.07809
  15  9.28975
  16  7.70669
  17  0.0241542
  18  4.78866
  19  0.0212319
  20  0.639807
  21  10.7501
  22  2.97771e-05
  23  20.8983
  24  56.7883
  25  0.415349
  26  0.367788
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.368e+00  7.127e+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:  5.138e-01  3.678e-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.297e+00  4.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258550/likelihoodResults_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.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) = 2196.29773191
delta logL = 0.600297355774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2196.14402259
delta logL = 0.754006673041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1733       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3656       1.0000          .0000       10.000    
     3 'Normalizat'    1.3257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47289       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=   2196.144     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1746        6.7830        .16591E-05   -.55747E-04
   2  Index         1.3657        .70764        .20442E-04    .46019E-05
   3  Normalizat    1.3257        .32410       -.20868E-06    .21075E-05
   4  Prefactor     .47288        .31240        .81317E-07    .18181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17464
  Index      = 1.36569
  Normalizat = 1.3257
  Prefactor  = 0.472884
 **********
 **   18 **HESSE 
 **********

 FCN=   2196.144     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1746        6.6134        .11635E-03   -1.5299    
   2  Index         1.3657        .68825        .67082E-02   -.81374    
   3  Normalizat    1.3257        .36601        .24181E-03   -.82802    
   4  Prefactor     .47288        .35175        .37139E-03   -1.1324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02892e-10
Minuit parameter uncertainties:
  1  6.61458
  2  0.692946
  3  0.36673
  4  0.353377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258550': 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): 0
logL (Free Index) = 2196.14402256
delta logL = 0.754006703609

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.175e+00  6.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.366e+00  6.929e-01  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:  4.729e-01  3.534e-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.326e+00  3.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.37 +/- 0.69
Photon Flux (Free Index): 1.57e-08 +/- 2.40e-08
Energy Flux (Free Index): 7.79e-05 +/- 1.46e-04

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/258550/cmap_HighResolution_363225601_363484801_4FGL_J1200.7+2008_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', energy_flux2='7.79e-05', dlogl='7.54e-01', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-09-04 20:44:15.809441', photon_index_error2='0.69', photon_index2='1.37', ts='0.04', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.46e-04', EG='1.30', time_epoch_completed='1630813455.81', return_code='0', job_id='258550', GAL2='0.47', EG2='1.33', return_code2='0', photon_flux_error2='2.40e-08', ts2='1.57', photon_index='2.52' WHERE bin_id='478' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:44:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 258550: <4FGL_J1200.7+2008_daily_bin478> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin478> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:27 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:29 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:35:29 2021
Terminated at Sat Sep  4 20:44:16 2021
Results reported at Sat Sep  4 20:44:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin478 180.187 20.1354 363225601 363484801 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 :                                   509.51 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             338.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            529 sec.

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

