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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin981
RA = 180.187, Dec = 20.1354
tmin = 493603201, tmax = 493862401
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='260734', job_status='RUN', time_executed='2021-09-04 20:41:15.578291', time_epoch_executed='1630813275.58' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260734

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260734/ft1_4FGL_J1200.7+2008_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260734/ft1_4FGL_J1200.7+2008_daily_bin981.fits outfile=/scratch/kocevski/260734/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin981.fits ra=180.187 dec=20.1354 rad=12.0 tmin=493603201.0 tmax=493862401.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.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/260734/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/260734/ltcube_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.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/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits
.....................!
real 11.59
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/260734/ltcube_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.fits outfile=/scratch/kocevski/260734/expmap_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.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/260734/ltcube_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.fits
.....................!
real 191.16
user 186.26
sys 4.51

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/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits outfile=/scratch/kocevski/260734/cmap_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits outfile=/scratch/kocevski/260734/cmap_HighResolution_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.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/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/260734/ft2_4FGL_J1200.7+2008_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260734/Model_4FGL_J1200.7+2008_daily_bin981.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/260734/ft1_filtered_4FGL_J1200.7+2008_daily_bin981.fits.....................!
real 53.10
user 51.77
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7908       1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.196       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7067       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5943       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5066       1.0000         .10000E-03   10000.    
    20 'norm      '    .18306       1.0000         .10000E-03   10000.    
    21 'norm      '    10.105       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.695       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2276       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62910       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=   5577.827     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2597 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7904        1.5357       -.64816E-05   -.52526E-02
   2  norm          .10000E-03    10.609        .32406E-05** at limit **
   3  Prefactor     .10000E-03    13.011       -.48154E-05** at limit **
   4  Prefactor     38.566        1.3423       -.84632E-06    .12209E-02
   5  Prefactor     .10000E-03    3.1122       -.75556E-06** at limit **
   6  Prefactor     24.051        6.9756       -.94086E-05    .46258E-02
   7  Prefactor     16.469        1.7242       -.25156E-05   -.91314E-03
   8  Prefactor     .10000E-03    2.6384        .25910E-06** at limit **
   9  Prefactor     22.182        12.410        .18965E-04   -.30684E-03
  10  norm          1.2922        .97378        .20200E-06    .19624E-04
  11  Prefactor     .10000E-03    6.7753       -.74649E-06** at limit **
  12  Prefactor     .10000E-03    1.0208        .12072E-06** at limit **
  13  Prefactor     .10009E-03    130.80       -.30551E-04** at limit **
  14  Prefactor     1.1376        1.9117        .16966E-06   -.90393E-06
  15  Prefactor     1.7078        2.7390       -.29256E-07   -.13654E-03
  16  norm          .10000E-03    .73460       -.27846E-07** at limit **
  17  Prefactor     2.5942        1.7511       -.21904E-07   -.18217E-04
  18  Prefactor     13.012        3.1783        .59423E-06    .14477E-02
  19  Prefactor     3.5062        1.2212       -.22151E-05   -.45898E-02
  20  norm          .18303        .15578        .20443E-07   -.31353E-03
  21  norm          10.105        1.1331       -.83851E-06   -.45509E-02
  22  Prefactor     12.695        1.3827        .19445E-05    .15655E-02
  23  Prefactor     .10000E-03    3.2206        .91001E-06** at limit **
  24  Prefactor     11.148        1.1736        .93176E-06   -.13291E-04
  25  Normalizat    1.2276        .20593        .29390E-05   -.32727E-03
  26  Prefactor     .62918        .20807       -.51369E-05   -.18372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.79038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5658
  Prefactor  = 0.0001
  Prefactor  = 24.0511
  Prefactor  = 16.469
  Prefactor  = 0.0001
  Prefactor  = 22.1815
  norm       = 1.29221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 1.13756
  Prefactor  = 1.7078
  norm       = 0.0001
  Prefactor  = 2.59425
  Prefactor  = 13.012
  Prefactor  = 3.50625
  norm       = 0.183029
  norm       = 10.1049
  Prefactor  = 12.6954
  Prefactor  = 0.0001
  Prefactor  = 11.1484
  Normalizat = 1.22761
  Prefactor  = 0.629183
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.827     FROM HESSE     STATUS=OK           524 CALLS     3121 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7904        4.5858        .78138E-02   -1.5440    
   2  norm          .10000E-03    10.352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.566        39.243        .16134E-02   -1.4465    
   5  Prefactor     .10000E-03    3.1125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.051        19.010        .20429E-02   -1.4727    
   7  Prefactor     16.469        12.462        .24674E-02   -1.4896    
   8  Prefactor     .10000E-03    1.2630        .27611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.182        14.565        .21255E-02   -1.4766    
  10  norm          1.2922        .99318        .97353E-02   -1.5481    
  11  Prefactor     .10000E-03    6.7689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    132.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1376        1.9916        .10896E-01   -1.5495    
  15  Prefactor     1.7078        2.8108        .80464E-02   -1.5447    
  16  norm          .10000E-03    .73088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5942        1.7470        .63331E-02   -1.5386    
  18  Prefactor     13.012        3.2543        .27761E-02   -1.4986    
  19  Prefactor     3.5062        4.3011        .53975E-02   -1.5333    
  20  norm          .18303        .15803        .59417E-02   -1.5622    
  21  norm          10.105        4.8139        .31513E-02   -1.5072    
  22  Prefactor     12.695        10.269        .28106E-02   -1.4995    
  23  Prefactor     .10000E-03    3.2214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.148        22.909        .29992E-02   -1.5040    
  25  Normalizat    1.2276        .18396        .50360E-01   -.85754    
  26  Prefactor     .62918        .18108        .69552E-01   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22046e-08
Minuit parameter uncertainties:
  1  4.58674
  2  0.000108933
  3  0.000156783
  4  39.2695
  5  3.6913e-05
  6  19.0147
  7  12.464
  8  3.75396e-06
  9  14.5676
  10  0.993197
  11  1.82687e-05
  12  5.37594e-09
  13  0.0070126
  14  1.99173
  15  2.81101
  16  8.83097e-07
  17  1.74701
  18  3.25432
  19  4.30148
  20  0.158035
  21  4.81404
  22  10.2702
  23  3.38885e-05
  24  22.9274
  25  0.184057
  26  0.181245
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  5.376e-09  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:  6.292e-01  1.812e-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.228e+00  1.841e-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: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260734/likelihoodResults_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.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) = 5577.83126686
delta logL = -0.00444029543087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5577.8268263
delta logL = 2.60454726231e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5070       1.0000          .0000       10.000    
     3 'Normalizat'    1.2276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62922       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=   5577.827     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      252 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.975        .74149E-02** at limit **
   2  Index         1.9999        5.9163        .50000        .32949E-06
   3  Normalizat    1.2276        .14781E-01    .22265E-03   -.88713E-03
   4  Prefactor     .62918        .15159E-01    .30783E-03   -.62922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99992
  Normalizat = 1.22761
  Prefactor  = 0.629181
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.827     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.85        .80086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9999        8.2762        .50000       -.64352    
   3  Normalizat    1.2276        .48591E-01    .44529E-04   -.85754    
   4  Prefactor     .62918        .49833E-01    .61565E-04   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74815e-09
Minuit parameter uncertainties:
  1  1.39651e-05
  2  672.839
  3  0.0485931
  4  0.0498367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260734': 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) = 5577.82681903
delta logL = 7.52809864935e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.397e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.000e+00  6.728e+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:  6.292e-01  4.984e-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.228e+00  4.859e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/260734/cmap_HighResolution_493603201_493862401_4FGL_J1200.7+2008_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-04 20:53:06.226597', job_id='260734', GAL2='0.63', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630813986.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='981' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 260734: <4FGL_J1200.7+2008_daily_bin981> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin981> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:41:03 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:41:05 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:41:05 2021
Terminated at Sat Sep  4 20:53:06 2021
Results reported at Sat Sep  4 20:53:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin981 180.187 20.1354 493603201 493862401 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 :                                   700.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

