/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 5 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 = 7686
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin347
RA = 180.187, Dec = 20.1354
tmin = 329270401, tmax = 329529601
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='257334', job_status='RUN', time_executed='2021-09-04 20:31:24.348856', time_epoch_executed='1630812684.35' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257334/ft1_4FGL_J1200.7+2008_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257334/ft1_4FGL_J1200.7+2008_daily_bin347.fits outfile=/scratch/kocevski/257334/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin347.fits ra=180.187 dec=20.1354 rad=12.0 tmin=329270401.0 tmax=329529601.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.62
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/257334/ltcube_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.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/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits
.....................!
real 11.94
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/257334/ltcube_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.fits outfile=/scratch/kocevski/257334/expmap_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.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/257334/ltcube_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.fits
.....................!
real 192.20
user 187.25
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/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits scfile=/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits outfile=/scratch/kocevski/257334/cmap_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits scfile=/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits outfile=/scratch/kocevski/257334/cmap_HighResolution_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/257334/ft2_4FGL_J1200.7+2008_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257334/Model_4FGL_J1200.7+2008_daily_bin347.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/257334/ft1_filtered_4FGL_J1200.7+2008_daily_bin347.fits.....................!
real 59.11
user 57.69
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2747       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21709E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9057       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .98303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3348       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0976       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5378       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4293       1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.598       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.290       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69014       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=   6272.496     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3220 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2750        3.5107        .68067E-02    .76290E-03
   2  norm          .10000E-03    2.8748        .90712E-02** at limit **
   3  Prefactor     4.8992        8.8819        .45428E-02    .20456E-03
   4  Prefactor     34.225        34.850        .17124E-02    .33606E-03
   5  Prefactor     16.889        14.434        .24365E-02    .60145E-04
   6  Prefactor     .10000E-03    21.088        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.6816        .10077    ** at limit **
   8  Prefactor     .74592        2.2755        .12236E-01    .15841E-02
   9  Prefactor     .10000E-03    8.2667        .90712E-02** at limit **
  10  norm          2.6443        1.5424        .62682E-02    .78415E-03
  11  Prefactor     2.9021        30.616        .59591E-02    .75287E-04
  12  Prefactor     .98006        3.8012        .48088E-01    .11575E-02
  13  Prefactor     .10002E-03    80.361        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.1529        .37043E-01** at limit **
  15  Prefactor     2.3342        3.8903        .67090E-02    .21156E-02
  16  norm          .10000E-03    2.1771        .90712E-02** at limit **
  17  Prefactor     7.3158        3.2652        .37075E-02   -.68230E-03
  18  Prefactor     1.0969        2.4462        .11361E-01    .31678E-03
  19  Prefactor     1.5392        5.5169        .85978E-02    .10005E-02
  20  norm          2.4293        .42718        .45909E-02   -.48515E-02
  21  norm          .10000E-03    2.1977        .90712E-02** at limit **
  22  Prefactor     17.598        10.227        .23869E-02    .10396E-03
  23  Prefactor     33.293        15.533        .17363E-02    .45880E-04
  24  Prefactor     .10000E-03    17.059        .90712E-02** at limit **
  25  Normalizat    1.2511        .19662        .55844E-01    .64005E-03
  26  Prefactor     .69013        .17907        .70750E-01    .60022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27497
  norm       = 0.0001
  Prefactor  = 4.89921
  Prefactor  = 34.2255
  Prefactor  = 16.8889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.745921
  Prefactor  = 0.000100002
  norm       = 2.64434
  Prefactor  = 2.90215
  Prefactor  = 0.980055
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 2.33418
  norm       = 0.000100001
  Prefactor  = 7.31575
  Prefactor  = 1.0969
  Prefactor  = 1.53918
  norm       = 2.42927
  norm       = 0.0001
  Prefactor  = 17.5983
  Prefactor  = 33.2928
  Prefactor  = 0.0001
  Normalizat = 1.25107
  Prefactor  = 0.690127
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.496     FROM HESSE     STATUS=OK           458 CALLS     3678 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2750        3.4909        .17928E-03   -1.5406    
   2  norm          .10000E-03    2.8768        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8992        8.8784        .18171E-03   -1.5265    
   4  Prefactor     34.225        34.929        .68497E-04   -1.4537    
   5  Prefactor     16.889        14.450        .97459E-04   -1.4886    
   6  Prefactor     .10000E-03    21.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.212        .38141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .74592        2.2550        .18947E-03   -1.5535    
   9  Prefactor     .10000E-03    8.3165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6443        1.5399        .70720E-04   -1.5383    
  11  Prefactor     2.9021        30.543        .23836E-03   -1.5367    
  12  Prefactor     .98006        5.5752        .26335E-02   -1.5510    
  13  Prefactor     .10002E-03    80.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7508        .21004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3342        3.6964        .17886E-03   -1.5402    
  16  norm          .10000E-03    2.2076        .11370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3158        3.2458        .90311E-04   -1.5167    
  18  Prefactor     1.0969        2.3698        .16808E-03   -1.5499    
  19  Prefactor     1.5392        5.4705        .33436E-03   -1.5460    
  20  norm          2.4293        .42749        .20293E-04   -1.5396    
  21  norm          .10000E-03    2.2057        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.598        10.223        .95475E-04   -1.4869    
  23  Prefactor     33.293        15.429        .69450E-04   -1.4553    
  24  Prefactor     .10000E-03    17.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2511        .22950        .24694E-03   -.85039    
  26  Prefactor     .69013        .20716        .31312E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72059e-09
Minuit parameter uncertainties:
  1  3.4912
  2  3.43109e-05
  3  8.88078
  4  34.9499
  5  14.4527
  6  4.8633e-05
  7  0.000175835
  8  2.25528
  9  0.00027677
  10  1.53994
  11  18.8418
  12  4.67548
  13  0.00221616
  14  1.37795e-05
  15  3.69675
  16  9.34734e-05
  17  3.24588
  18  2.36996
  19  5.47223
  20  0.42749
  21  9.94501e-06
  22  10.2241
  23  15.4312
  24  0.000151206
  25  0.229681
  26  0.207394
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.801e-01  4.675e+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:  6.901e-01  2.074e-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.251e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/257334/likelihoodResults_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.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) = 6272.44085276
delta logL = 0.0549519210599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6272.43985051
delta logL = 0.0559541756875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0093       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1104       1.0000          .0000       10.000    
     3 'Normalizat'    1.2381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69639       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=   6272.440     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      248 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0150        42.723        .13216E-01    .12283E-02
   2  Index         3.1047        2.9211        .32432        .30853E-04
   3  Normalizat    1.2380        .26087E-01    .56095E-01    .38005E-05
   4  Prefactor     .69637        .25567E-01    .70453E-01    .22568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01499
  Index      = 3.10473
  Normalizat = 1.23797
  Prefactor  = 0.696374
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.440     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0150        3.9735        .18854E-03   -1.5506    
   2  Index         3.1047        1.9900        .98478E-02   -.38877    
   3  Normalizat    1.2380        .21711        .24805E-03   -.85437    
   4  Prefactor     .69637        .20689        .31180E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17992e-09
Minuit parameter uncertainties:
  1  3.97458
  2  2.05708
  3  0.217268
  4  0.207115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257334': 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) = 6272.43984321
delta logL = 0.055961467222

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.015e+00  3.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.105e+00  2.057e+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:  6.964e-01  2.071e-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.238e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/257334/cmap_HighResolution_329270401_329529601_4FGL_J1200.7+2008_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 20:44:22.897446', job_id='257334', GAL2='0.70', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1630813462.9', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='5.60e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='347' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:44:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 257334: <4FGL_J1200.7+2008_daily_bin347> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin347> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:31:08 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:31:10 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:31:10 2021
Terminated at Sat Sep  4 20:44:23 2021
Results reported at Sat Sep  4 20:44:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin347 180.187 20.1354 329270401 329529601 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

