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


Performing analysis on: 4FGL_J1934.3+6541_daily_bin1171
RA = 293.595, Dec = 65.6888
tmin = 542851201, tmax = 543110401
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='16909', job_status='RUN', time_executed='2021-09-23 04:09:07.557104', time_epoch_executed='1632395347.56' WHERE source_name='4FGL J1934.3+6541' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16909

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16909/ft1_4FGL_J1934.3+6541_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16909/ft1_4FGL_J1934.3+6541_daily_bin1171.fits outfile=/scratch/kocevski/16909/ft1_filteredMKT_4FGL_J1934.3+6541_daily_bin1171.fits ra=293.595 dec=65.6888 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.61
sys 0.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.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/16909/ft1_filteredMKT_4FGL_J1934.3+6541_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.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.46
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/16909/ltcube_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.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/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits
.....................!
real 1.85
user 1.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/16909/ltcube_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits outfile=/scratch/kocevski/16909/expmap_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.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/16909/ltcube_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits
.....................!
real 190.56
user 185.96
sys 4.25

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 178 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1934.3+6541 @ 293.595 65.6888

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits outfile=/scratch/kocevski/16909/cmap_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.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=293.595 yref=65.6888 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits outfile=/scratch/kocevski/16909/cmap_HighResolution_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.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=293.595 yref=65.6888 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/16909/Model_4FGL_J1934.3+6541_daily_bin1171.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits......................!
real 24.88
user 23.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits', '/scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits', expMap='/scratch/kocevski/16909/expmap_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits', expCube='/scratch/kocevski/16909/ltcube_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/16909/Model_4FGL_J1934.3+6541_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1934.3+6541'

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  6.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/16909/ft1_filtered_4FGL_J1934.3+6541_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/16909/ft2_4FGL_J1934.3+6541_daily_bin1171.fits
Exposure map: /scratch/kocevski/16909/expmap_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits
Exposure cube: /scratch/kocevski/16909/ltcube_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/16909/Model_4FGL_J1934.3+6541_daily_bin1171.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) = 1006.15272459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.564       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11613E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8604       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41353E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    34.883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.411       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6027       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85884       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1006.138     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3037 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.577       -.37027E-07** at limit **
   2  Prefactor     39.554        42.508        .41626E-06   -.16821E-05
   3  norm          .10000E-03    11.493        .11819E-06** at limit **
   4  Prefactor     .10000E-03    48.372       -.50581E-06** at limit **
   5  Prefactor     .10000E-03    270.79       -.39604E-06** at limit **
   6  Prefactor     .10000E-03    9.2303        .10889E-06** at limit **
   7  Prefactor     .10000E-03    23.276       -.34761E-06** at limit **
   8  Prefactor     .10000E-03    34.849        .96552E-06** at limit **
   9  Prefactor     .10000E-03    380.98        .75688E-05** at limit **
  10  Prefactor     .10000E-03    174.53       -.33478E-05** at limit **
  11  norm          .10000E-03    5.2183        .13431E-06** at limit **
  12  norm          5.8612        7.3482        .88415E-07    .57835E-05
  13  norm          .10000E-03    14.265        .27488E-06** at limit **
  14  norm          .10000E-03    85.972        .41230E-05** at limit **
  15  Prefactor     33.924        70.668        .19354E-05   -.33796E-04
  16  Prefactor     .10000E-03    211.02        .16699E-04** at limit **
  17  norm          .10000E-03    4.8798        .18067E-05** at limit **
  18  norm          .10000E-03    120.92       -.24586E-06** at limit **
  19  norm          34.900        70.647       -.73117E-06   -.15361E-04
  20  Prefactor     46.378        87.514       -.53902E-06   -.35313E-04
  21  norm          .10000E-03    9.0397        .14989E-06** at limit **
  22  Prefactor     .10000E-03    46.509       -.51893E-06** at limit **
  23  norm          .10000E-03    19.524        .40341E-06** at limit **
  24  Prefactor     8.6564        76.546       -.22947E-05    .44147E-05
  25  Normalizat    .85922        .70191       -.11638E-04   -.34884E-04
  26  Prefactor     .94912        .21248        .24403E-05   -.20086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 39.5544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.86124
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 33.9236
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 34.8997
  Prefactor  = 46.3776
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.65639
  Normalizat = 0.859224
  Prefactor  = 0.949121
 **********
 **   18 **HESSE 
 **********

 FCN=   1006.138     FROM HESSE     STATUS=OK           440 CALLS     3477 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.722        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.554        42.503        .63724E-04   -1.4449    
   3  norm          .10000E-03    11.508        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    270.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2335        .94154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.279        .14954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    383.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    174.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2210        .70789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8612        7.3466        .93994E-04   -1.5224    
  13  norm          .10000E-03    14.275        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    87.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.924        70.635        .68793E-04   -1.4542    
  16  Prefactor     .10000E-03    209.33        .34355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9336        .68654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    120.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          34.900        70.613        .67852E-04   -1.4526    
  20  Prefactor     46.378        87.578        .58855E-04   -1.4345    
  21  norm          .10000E-03    9.0478        .93165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.533        .13698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6564        75.752        .13667E-03   -1.5119    
  25  Normalizat    .85922        .70566        .49039E-03   -.97908    
  26  Prefactor     .94912        .21692        .14470E-03   -.94445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50149e-10
Minuit parameter uncertainties:
  1  9.18803e-05
  2  42.5357
  3  2.63727e-05
  4  1.99339e-05
  5  3.58192e-05
  6  1.08876e-05
  7  5.07042e-07
  8  6.03868e-05
  9  0.00122758
  10  0.00032503
  11  4.45818e-06
  12  7.34772
  13  1.50154e-05
  14  0.000452045
  15  70.8094
  16  0.000233643
  17  1.09552e-05
  18  2.18029e-05
  19  70.7826
  20  87.8224
  21  3.31607e-06
  22  2.13314e-05
  23  1.57735e-05
  24  51.3018
  25  0.713427
  26  0.217118
Done.

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

Extracting fit parameters...

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  3.392e+01  7.081e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.491e-01  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.592e-01  7.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 293.595 65.689
Photon Flux Upper Limit: 6.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16909/likelihoodResults_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.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) = 1005.05135813
delta logL = 1.08632895458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1004.82982573
delta logL = 1.30786135132

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1004.830     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      341 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20555E-01    .43580E-01    .91250E-03   -.55352E-03
   2  Index        10.0000        7.4701        .50000    ** at limit **
   3  Normalizat    .65596        .65578        .12369        .23564E-05
   4  Prefactor     .98383        .20284        .32143E-01   -.66856E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0205555
  Index      = 10
  Normalizat = 0.655957
  Prefactor  = 0.983829
 **********
 **   18 **HESSE 
 **********

 FCN=   1004.830     FROM HESSE     STATUS=OK            33 CALLS      374 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20555E-01    .19350E-01    .39878E-05   -1.5679    
   2  Index        10.0000        9.1211        .20427E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65596        .67071        .54894E-03   -1.0566    
   4  Prefactor     .98383        .20875        .14205E-03   -.93271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68845e-10
Minuit parameter uncertainties:
  1  0.01935
  2  0.000419966
  3  0.679332
  4  0.208919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16909': 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) = 1004.82980917
delta logL = 1.30787791314

Extracting fit parameters...

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  2.056e-02  1.935e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.000e+01  4.200e-04  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.838e-01  2.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.560e-01  6.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 293.595 65.689
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.94e-07 +/- 2.68e-07
Energy Flux (Free Index): 3.28e-05 +/- 3.01e-05

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/16909/cmap_HighResolution_542851201_543110401_4FGL_J1934.3+6541_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-02', comment='SUCCESS', energy_flux2='3.28e-05', dlogl='1.31e+00', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-09-23 04:15:19.685004', photon_index_error2='0.00', photon_index2='10.00', ts='0.36', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.53e-07', energy_flux_error2='3.01e-05', EG='0.86', time_epoch_completed='1632395719.69', return_code='0', job_id='16909', GAL2='0.98', EG2='0.66', return_code2='0', photon_flux_error2='2.68e-07', ts2='3.24', photon_index='2.86' WHERE bin_id='1171' AND source_name='4FGL J1934.3+6541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 04:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 16909: <4FGL_J1934.3+6541_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1934.3+6541_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 04:06:48 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 04:06:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 04:06:50 2021
Terminated at Thu Sep 23 04:15:20 2021
Results reported at Thu Sep 23 04:15:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1934.3+6541_daily_bin1171 293.595 65.6888 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1934.3+6541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   376.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            512 sec.

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

