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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1324
RA = 180.173, Dec = 12.4922
tmin = 582508801, tmax = 582768001
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='255416', job_status='RUN', time_executed='2021-09-04 20:25:49.730200', time_epoch_executed='1630812349.73' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255416/ft1_4FGL_J1200.6+1229_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255416/ft1_4FGL_J1200.6+1229_daily_bin1324.fits outfile=/scratch/kocevski/255416/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1324.fits ra=180.173 dec=12.4922 rad=12.0 tmin=582508801.0 tmax=582768001.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.69
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.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/255416/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.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.68
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/255416/ltcube_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.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/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits
.....................!
real 11.87
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/255416/ltcube_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits outfile=/scratch/kocevski/255416/expmap_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.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/255416/ltcube_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits
.....................!
real 189.95
user 185.46
sys 3.78

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits outfile=/scratch/kocevski/255416/cmap_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.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.173 yref=12.4922 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits outfile=/scratch/kocevski/255416/cmap_HighResolution_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.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.173 yref=12.4922 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/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255416/Model_4FGL_J1200.6+1229_daily_bin1324.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/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits.....................!
real 57.08
user 55.26
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits', '/scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits', expMap='/scratch/kocevski/255416/expmap_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits', expCube='/scratch/kocevski/255416/ltcube_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255416/Model_4FGL_J1200.6+1229_daily_bin1324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255416/ft1_filtered_4FGL_J1200.6+1229_daily_bin1324.fits
Spacecraft file(s): /scratch/kocevski/255416/ft2_4FGL_J1200.6+1229_daily_bin1324.fits
Exposure map: /scratch/kocevski/255416/expmap_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits
Exposure cube: /scratch/kocevski/255416/ltcube_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255416/Model_4FGL_J1200.6+1229_daily_bin1324.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) = 5938.23056887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10969E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34423E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.269       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11912E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9528       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16161E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.597       1.0000         .10000E-03   10000.    
    17 'norm      '    .83068E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    25.854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50074E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.642       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .65769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5938.132     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2711 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.028       -.24833E-06** at limit **
   2  Prefactor     .10000E-03    6.7887        .18375E-07** at limit **
   3  Prefactor     .10000E-03    23.557        .27019E-07** at limit **
   4  Prefactor     .10003E-03    16.201        .77269E-05** at limit **
   5  Prefactor     .10001E-03    187.20       -.14287E-05** at limit **
   6  Prefactor     16.260        13.245        .67362E-06    .43184E-03
   7  Prefactor     13.578        8.0889       -.34318E-07    .52386E-05
   8  Prefactor     .10116E-03    147.72       -.66403E-06** at limit **
   9  Prefactor     4.8550        4.0183       -.26265E-06   -.19639E-03
  10  Prefactor     9.4374        354.19       -.74700E-05    .11576E-04
  11  Prefactor     .10000E-03    28.533       -.18112E-06** at limit **
  12  Prefactor     .10000E-03    2.9136        .24707E-05** at limit **
  13  Prefactor     .10000E-03    1.6892       -.33793E-07** at limit **
  14  Prefactor     .10000E-03    7.3932       -.14410E-07** at limit **
  15  norm          .10000E-03    1.8310       -.70707E-07** at limit **
  16  Prefactor     18.591        19.820       -.40302E-06   -.58211E-04
  17  norm          .83026E-01    .18428        .11759E-06    .23468E-02
  18  norm          25.857        26.918       -.40323E-06   -.61989E-04
  19  Prefactor     17.485        67.849        .33766E-06    .10042E-04
  20  Prefactor     .16963        168.41       -.17289E-04    .25946E-03
  21  Prefactor     52.428        41.675        .29281E-05    .31189E-03
  22  Normalizat    1.3392        .22366       -.15388E-05    .56131E-03
  23  Prefactor     .65767        .19427        .22696E-05    .39179E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.000100008
  Prefactor  = 16.2599
  Prefactor  = 13.5775
  Prefactor  = 0.000101162
  Prefactor  = 4.85497
  Prefactor  = 9.43738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.591
  norm       = 0.0830263
  norm       = 25.857
  Prefactor  = 17.4853
  Prefactor  = 0.169627
  Prefactor  = 52.4283
  Normalizat = 1.33916
  Prefactor  = 0.657674
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.132     FROM HESSE     STATUS=OK           386 CALLS     3097 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    21.569        .37977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    189.22        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.260        13.285        .99298E-04   -1.4901    
   7  Prefactor     13.578        8.0886        .10870E-03   -1.4971    
   8  Prefactor     .10116E-03    41.242        .90337E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8550        3.9889        .66592E-03   -1.5267    
  10  Prefactor     9.4374        527.34        .13395E-03   -1.5093    
  11  Prefactor     .10000E-03    28.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9048        .17815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7225        .97603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8906        .20349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.591        19.815        .92874E-04   -1.4845    
  17  norm          .83026E-01    .17348        .48390E-03   -1.5650    
  18  norm          25.857        26.888        .78784E-04   -1.4691    
  19  Prefactor     17.485        67.858        .95557E-04   -1.4871    
  20  Prefactor     .16963        22.738        .68728E-01   -1.5626    
  21  Prefactor     52.428        45.534        .55279E-04   -1.4259    
  22  Normalizat    1.3392        .22495        .22908E-03   -.82405    
  23  Prefactor     .65767        .19466        .28229E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38616e-09
Minuit parameter uncertainties:
  1  0.000402187
  2  3.44378e-05
  3  0.000119569
  4  0.00167699
  5  0.00243989
  6  13.2873
  7  8.08922
  8  0.0138565
  9  3.98911
  10  142.43
  11  0.000172312
  12  6.26367e-05
  13  1.48252e-05
  14  1.50555e-05
  15  2.64704e-05
  16  19.8217
  17  0.173477
  18  26.9009
  19  68.1596
  20  3.92818
  21  45.5647
  22  0.225116
  23  0.194864
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.012e-04  1.386e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  6.577e-01  1.949e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.339e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255416/likelihoodResults_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.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) = 5938.1319631
delta logL = -1.99754531423e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5938.13196309
delta logL = -1.996417177e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3874       1.0000          .0000       10.000    
     3 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5937.911     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      300 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3423        98.440        .90713E-02   -.45086E-03
   2  Index         3.5232        3.7853        .14287       -.57222E-04
   3  Normalizat    1.2946        .43846E-01    .52538E-01   -.61009E-03
   4  Prefactor     .67850        .39484E-01    .62881E-01   -.52603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3423
  Index      = 3.52321
  Normalizat = 1.29463
  Prefactor  = 0.678505
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.911     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      329 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3423        268.49        .17389E-03   -1.5402    
   2  Index         3.5232        5.9231        .80009E-02   -.29983    
   3  Normalizat    1.2946        .19779        .23230E-03   -.83727    
   4  Prefactor     .67850        .18064        .27818E-03   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83021e-09
Minuit parameter uncertainties:
  1  50.3875
  2  10.1022
  3  0.197907
  4  0.180796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255416': 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) = 5937.91092648
delta logL = 0.221016643775

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.342e+00  5.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.523e+00  1.010e+01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  6.785e-01  1.808e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.295e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

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/255416/cmap_HighResolution_582508801_582768001_4FGL_J1200.6+1229_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-04 20:37:22.898892', job_id='255416', GAL2='0.68', fit_tolerance='1e-08', EG2='1.29', EG='1.34', time_epoch_completed='1630813042.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.21e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1324' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:37:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 255416: <4FGL_J1200.6+1229_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1324> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:37 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:38 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:25:38 2021
Terminated at Sat Sep  4 20:37:23 2021
Results reported at Sat Sep  4 20:37:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1324 180.173 12.4922 582508801 582768001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

