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


Performing analysis on: 4FGL_J1704.1+7647_monthly_bin128
RA = 256.037, Dec = 76.7923
tmin = 568771201, tmax = 571363201
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='196001', job_status='RUN', time_executed='2021-10-29 23:46:31.438652', time_epoch_executed='1635576391.44' WHERE source_name='4FGL J1704.1+7647' and cadence='monthly' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196001

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196001/ft1_4FGL_J1704.1+7647_monthly_bin128.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196001/ft1_4FGL_J1704.1+7647_monthly_bin128.fits outfile=/scratch/kocevski/196001/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin128.fits ra=256.037 dec=76.7923 rad=12.0 tmin=568771201.0 tmax=571363201.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 23.14
user 22.46
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.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/196001/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.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.70
user 0.54
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/196001/ltcube_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.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/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits
.....................!
real 85.61
user 85.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/196001/ltcube_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits outfile=/scratch/kocevski/196001/expmap_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.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/196001/ltcube_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits
.....................!
real 148.51
user 144.95
sys 3.29

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

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits outfile=/scratch/kocevski/196001/cmap_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.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=256.037 yref=76.7923 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.68
user 0.51
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits outfile=/scratch/kocevski/196001/cmap_HighResolution_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.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=256.037 yref=76.7923 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.69
user 0.51
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196001/Model_4FGL_J1704.1+7647_monthly_bin128.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/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits.....................!
real 1027.46
user 1013.05
sys 11.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits', '/scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits', expMap='/scratch/kocevski/196001/expmap_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits', expCube='/scratch/kocevski/196001/ltcube_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/196001/Model_4FGL_J1704.1+7647_monthly_bin128.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/196001/ft1_filtered_4FGL_J1704.1+7647_monthly_bin128.fits
Spacecraft file(s): /scratch/kocevski/196001/ft2_4FGL_J1704.1+7647_monthly_bin128.fits
Exposure map: /scratch/kocevski/196001/expmap_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits
Exposure cube: /scratch/kocevski/196001/ltcube_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/196001/Model_4FGL_J1704.1+7647_monthly_bin128.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) = 125441.276408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9436       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.468       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0994       1.0000         .10000E-03   10000.    
    11 'norm      '    .44665       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5718       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4623       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5376       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4570       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3168       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4808       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1610       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4037       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92831       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   125441.1     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3042 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9435        4.8223         .0000       -.42586E-02
   2  Prefactor     .10000E-03    2.3696         .0000    ** at limit **
   3  Prefactor     .60516        2.9614         .0000        .55002E-02
   4  Prefactor     .10000E-03    4.1425         .0000    ** at limit **
   5  Prefactor     .10001E-03    4.8603         .0000    ** at limit **
   6  Prefactor     5.6744        6.0558         .0000        .46192E-02
   7  Prefactor     12.468        9.1893         .0000       -.30580E-03
   8  norm          5.3528        2.9866         .0000        .41691E-02
   9  Prefactor     .10000E-03    3.1864         .0000    ** at limit **
  10  Prefactor     4.0992        4.6564         .0000        .12785E-01
  11  norm          .44676        .18411         .0000        .26105E-01
  12  Prefactor     2.7804        1.8284         .0000        .59134E-02
  13  Prefactor     .10000E-03    .87188E-01     .0000    ** at limit **
  14  Prefactor     6.5712        3.1688         .0000        .17339E-01
  15  Prefactor     16.199        6.2036         .0000        .29202E-03
  16  Prefactor     3.4612        8.6244         .0000        .43691E-03
  17  norm          2.5376        .54872         .0000        .11918E-02
  18  norm          1.4571        .18052         .0000        .29980E-02
  19  norm          6.0942        1.1277         .0000        .79776E-01
  20  Prefactor     .10000E-03    5.9290         .0000    ** at limit **
  21  Prefactor     3.3163        1.6210         .0000        .18626    
  22  Prefactor     .29589        1.0376         .0000        .48458E-02
  23  Prefactor     .10000E-03    8.1958         .0000    ** at limit **
  24  Prefactor     2.4810        1.3451         .0000        .30100    
  25  norm          1.1611        .54812         .0000        .74526E-02
  26  Prefactor     3.4037        2.3086         .0000        .51571E-01
  27  Normalizat    .92829        .44305E-01     .0000       -.11562E-02
  28  Prefactor     1.0465        .27291E-01     .0000       -.28027E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.9435
  Prefactor  = 0.0001
  Prefactor  = 0.605159
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 5.67438
  Prefactor  = 12.468
  norm       = 5.3528
  Prefactor  = 0.0001
  Prefactor  = 4.09916
  norm       = 0.446762
  Prefactor  = 2.7804
  Prefactor  = 0.0001
  Prefactor  = 6.57122
  Prefactor  = 16.1991
  Prefactor  = 3.46121
  norm       = 2.5376
  norm       = 1.45705
  norm       = 6.09415
  Prefactor  = 0.000100002
  Prefactor  = 3.31634
  Prefactor  = 0.295891
  Prefactor  = 0.0001
  Prefactor  = 2.48099
  norm       = 1.16105
  Prefactor  = 3.40372
  Normalizat = 0.928292
  Prefactor  = 1.0465
 **********
 **   18 **HESSE 
 **********

 FCN=   125441.1     FROM HESSE     STATUS=OK           545 CALLS     3587 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9435        4.8252        .90443E-03   -1.5263    
   2  Prefactor     .10000E-03    2.4682        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60516        3.0767        .46765E-03   -1.5552    
   4  Prefactor     .10000E-03    4.1573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    5.0102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6744        6.0538        .84315E-03   -1.5232    
   7  Prefactor     12.468        9.1926        .11345E-03   -1.5002    
   8  norm          5.3528        2.9757        .17371E-03   -1.5245    
   9  Prefactor     .10000E-03    3.1871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0992        4.6295        .99556E-03   -1.5303    
  11  norm          .44676        .15496        .84528E-03   -1.5574    
  12  Prefactor     2.7804        1.7952        .24404E-03   -1.5374    
  13  Prefactor     .10000E-03    .54514        .18780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5712        3.0972        .78271E-03   -1.5195    
  15  Prefactor     16.199        5.8653        .99513E-04   -1.4903    
  16  Prefactor     3.4612        8.6212        .21734E-03   -1.5336    
  17  norm          2.5376        .54714        .11625E-03   -1.5389    
  18  norm          1.4571        .17910        .50054E-04   -1.5467    
  19  norm          6.0942        1.1220        .74199E-03   -1.5214    
  20  Prefactor     .10000E-03    5.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3163        1.6064        .11114E-02   -1.5344    
  22  Prefactor     .29589        1.0610        .99222E-01   -1.5599    
  23  Prefactor     .10000E-03    8.2403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4810        1.3442        .12978E-02   -1.5393    
  25  norm          1.1611        .54639        .17338E-03   -1.5492    
  26  Prefactor     3.4037        2.3077        .10964E-02   -1.5339    
  27  Normalizat    .92829        .49860E-01    .30595E-03   -.95473    
  28  Prefactor     1.0465        .31127E-01    .18350E-03   -.91195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72613e-08
Minuit parameter uncertainties:
  1  4.82555
  2  7.10345e-06
  3  2.729
  4  0.000173484
  5  0.000430558
  6  6.05446
  7  9.19364
  8  2.97582
  9  3.87778e-05
  10  4.62992
  11  0.154958
  12  1.79519
  13  5.98287e-06
  14  3.09728
  15  5.86552
  16  8.62425
  17  0.547137
  18  0.179103
  19  1.12199
  20  0.000192797
  21  1.60644
  22  1.06103
  23  2.66998e-05
  24  1.34422
  25  0.54639
  26  2.30778
  27  0.0498626
  28  0.0311272
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  5.983e-06  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.046e+00  3.113e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.283e-01  4.986e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 1.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196001/likelihoodResults_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.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) = 125441.127977
delta logL = -0.00877923284133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 125441.119196
delta logL = 1.05555227492e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   125441.1     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      259 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22819E-02    .53887E-01** at limit **
   2  Index         2.7633        6.3813        .50000        .15305E-05
   3  Normalizat    .92829        .23136E-03    .69156E-01    .10585E-03
   4  Prefactor     1.0465        .14717E-03    .40119E-01   -.20610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.76328
  Normalizat = 0.928291
  Prefactor  = 1.0465
 **********
 **   18 **HESSE 
 **********

 FCN=   125441.1     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7151        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7633        7.1651        .50000       -.46379    
   3  Normalizat    .92829        .32487E-02    .30595E-03   -.95473    
   4  Prefactor     1.0465        .20695E-02    .18350E-03   -.91195    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25927e-09
Minuit parameter uncertainties:
  1  1.37714e-05
  2  70.1009
  3  0.00324866
  4  0.00206945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196001': 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) = 125441.11919
delta logL = 7.29304156266e-06

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.377e-05  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.763e+00  7.010e+01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.046e+00  2.069e-03  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.283e-01  3.249e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.037 76.792

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/196001/cmap_HighResolution_568771201_571363201_4FGL_J1704.1+7647_monthly_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-03', job_status='DONE', photon_flux_upper_limit='1.29e-08', time_completed='2021-10-30 02:24:35.965572', job_id='196001', GAL2='1.05', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1635585875.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='128' AND source_name='4FGL J1704.1+7647' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 30 02:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 196001: <4FGL_J1704.1+7647_monthly_bin128> in cluster <slac> Done

Job <4FGL_J1704.1+7647_monthly_bin128> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Oct 29 23:35:23 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 23:46:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 23:46:15 2021
Terminated at Sat Oct 30 02:24:36 2021
Results reported at Sat Oct 30 02:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_monthly_bin128 256.037 76.7923 568771201 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1704.1+7647 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9325.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             493.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   9501 sec.
    Turnaround time :                            10153 sec.

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

