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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin905
RA = 145.45, Dec = 41.4216
tmin = 473904001, tmax = 474163201
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='428200', job_status='RUN', time_executed='2021-08-31 22:15:50.748775', time_epoch_executed='1630473350.75' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428200/ft1_4FGL_J0941.7+4125_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428200/ft1_4FGL_J0941.7+4125_daily_bin905.fits outfile=/scratch/kocevski/428200/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin905.fits ra=145.45 dec=41.4216 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.06
user 4.83
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.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/428200/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/428200/ltcube_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.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/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits
.....................!
real 12.40
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/428200/ltcube_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits outfile=/scratch/kocevski/428200/expmap_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.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/428200/ltcube_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits
.....................!
real 192.13
user 187.22
sys 4.47

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

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits outfile=/scratch/kocevski/428200/cmap_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.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=145.45 yref=41.4216 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits outfile=/scratch/kocevski/428200/cmap_HighResolution_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.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=145.45 yref=41.4216 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428200/Model_4FGL_J0941.7+4125_daily_bin905.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/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits.....................!
real 58.73
user 57.41
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits', '/scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits', expMap='/scratch/kocevski/428200/expmap_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits', expCube='/scratch/kocevski/428200/ltcube_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428200/Model_4FGL_J0941.7+4125_daily_bin905.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428200/ft1_filtered_4FGL_J0941.7+4125_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/428200/ft2_4FGL_J0941.7+4125_daily_bin905.fits
Exposure map: /scratch/kocevski/428200/expmap_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits
Exposure cube: /scratch/kocevski/428200/ltcube_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428200/Model_4FGL_J0941.7+4125_daily_bin905.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) = 6896.06426543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    116.57       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.423       1.0000         .10000E-03   10000.    
     8 'norm      '    .54509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14158E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1040       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1368       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0085       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10558       1.0000         .10000E-03   10000.    
    26 'norm      '    22.189       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.242       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94752       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83371       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6896.050     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4409 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2438        6.5774        .23809E-05   -.24125E-03
   2  Prefactor     2.5087        2.2726        .65441E-07   -.23384E-03
   3  Prefactor     116.56        64.619       -.26697E-05   -.31519E-03
   4  Prefactor     4.9834        3.3269        .11266E-06    .12044E-04
   5  Prefactor     16.696        39.947        .12069E-05    .54479E-04
   6  Prefactor     5.7364        3.7185        .16324E-06    .36096E-03
   7  Prefactor     13.421        22.626       -.55096E-06    .98993E-05
   8  norm          .54466        .37626        .12119E-07   -.38959E-03
   9  Prefactor     .10000E-03    1.2557       -.14624E-07** at limit **
  10  norm          3.9649        9.3602        .48263E-06   -.55061E-05
  11  Prefactor     1.1030        2.4392        .39932E-06   -.33309E-03
  12  Prefactor     .10000E-03    5.9448       -.76859E-07** at limit **
  13  Prefactor     10.071        4.6917       -.60560E-07   -.26128E-03
  14  Prefactor     .10000E-03    8.7395        .77771E-06** at limit **
  15  norm          16.823        14.961        .19828E-06    .63155E-05
  16  Prefactor     44.934        27.263       -.54135E-06   -.15654E-03
  17  Prefactor     .10000E-03    2.9918       -.90706E-07** at limit **
  18  Prefactor     .10000E-03    25.474       -.47058E-07** at limit **
  19  Prefactor     .10000E-03    6.7708        .48125E-06** at limit **
  20  norm          4.1918        15.146       -.27570E-06   -.64345E-04
  21  Prefactor     1.1055        5.3095        .22602E-05   -.23271E-03
  22  Prefactor     5.1664        4.4328        .15771E-06    .54665E-03
  23  Prefactor     .10000E-03    8.3007       -.98213E-06** at limit **
  24  norm          7.0083        3.2133       -.28387E-07   -.61008E-04
  25  Prefactor     .53075E-01    3.2697       -.10398E-06    .12444E-03
  26  norm          22.195        11.596        .46911E-07    .71140E-04
  27  Prefactor     11.248        17.810       -.16642E-06   -.21811E-04
  28  Prefactor     .10000E-03    5.6218       -.53075E-07** at limit **
  29  Prefactor     .10000E-03    3.3186       -.29054E-07** at limit **
  30  Prefactor     .10000E-03    48.492        .49034E-06** at limit **
  31  Normalizat    .94760        .16578       -.79665E-06   -.88377E-04
  32  Prefactor     .83365        .17851       -.69591E-07   -.10312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24381
  Prefactor  = 2.5087
  Prefactor  = 116.56
  Prefactor  = 4.9834
  Prefactor  = 16.6956
  Prefactor  = 5.73635
  Prefactor  = 13.4205
  norm       = 0.544659
  Prefactor  = 0.0001
  norm       = 3.9649
  Prefactor  = 1.10297
  Prefactor  = 0.0001
  Prefactor  = 10.0711
  Prefactor  = 0.0001
  norm       = 16.8229
  Prefactor  = 44.9344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.1918
  Prefactor  = 1.10551
  Prefactor  = 5.16643
  Prefactor  = 0.0001
  norm       = 7.00832
  Prefactor  = 0.0530746
  norm       = 22.1952
  Prefactor  = 11.2481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.947604
  Prefactor  = 0.83365
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.050     FROM HESSE     STATUS=OK           675 CALLS     5084 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2438        6.8232        .40206E-03   -1.5485    
   2  Prefactor     2.5087        2.2416        .10988E-03   -1.5391    
   3  Prefactor     116.56        67.098        .37266E-04   -1.3544    
   4  Prefactor     4.9834        3.3256        .11876E-03   -1.5261    
   5  Prefactor     16.696        39.828        .98033E-04   -1.4891    
   6  Prefactor     5.7364        3.6554        .10855E-03   -1.5229    
   7  Prefactor     13.421        22.272        .10933E-03   -1.4975    
   8  norm          .54466        .34696        .37133E-04   -1.5560    
   9  Prefactor     .10000E-03    4.8376        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9649        9.1032        .20254E-03   -1.5310    
  11  Prefactor     1.1030        2.3368        .16036E-03   -1.5498    
  12  Prefactor     .10000E-03    6.0145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.071        4.6922        .11831E-03   -1.5073    
  14  Prefactor     .10000E-03    8.8862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.823        14.983        .97652E-04   -1.4887    
  16  Prefactor     44.934        27.389        .59806E-04   -1.4366    
  17  Prefactor     .10000E-03    3.0138        .14017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1918        15.032        .19670E-03   -1.5298    
  21  Prefactor     1.1055        5.4453        .35754E-03   -1.5498    
  22  Prefactor     5.1664        4.9881        .13671E-03   -1.5253    
  23  Prefactor     .10000E-03    8.4386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0083        3.2087        .96986E-04   -1.5178    
  25  Prefactor     .53075E-01    8.7153        .43096E-01   -1.5662    
  26  norm          22.195        11.604        .85032E-04   -1.4765    
  27  Prefactor     11.248        17.633        .11949E-03   -1.5037    
  28  Prefactor     .10000E-03    5.7695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.3288        .14614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    49.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .94760        .19641        .23458E-03   -.94807    
  32  Prefactor     .83365        .21095        .29007E-03   -.98500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48902e-09
Minuit parameter uncertainties:
  1  5.82719
  2  2.24166
  3  67.1417
  4  3.32574
  5  39.8913
  6  3.65556
  7  22.2854
  8  0.346956
  9  3.9626e-07
  10  9.10635
  11  2.33703
  12  5.85318e-06
  13  4.69237
  14  0.000113278
  15  14.9862
  16  27.3965
  17  4.76718e-06
  18  1.59159e-05
  19  4.96594e-05
  20  15.0453
  21  4.90755
  22  4.98849
  23  0.000129379
  24  3.20874
  25  1.35916
  26  11.605
  27  17.6412
  28  2.24904e-06
  29  6.42954e-06
  30  0.000158715
  31  0.196555
  32  0.211155
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.682e+01  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.337e-01  2.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.476e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 145.450 41.422
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 7.75e-06 +/- 6.90e-06

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) = 6894.27685363
delta logL = 1.77269141782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6894.13477284
delta logL = 1.91477219877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4258       1.0000         .10000E-03   10000.    
     2 'alpha     '    .19357E-03   1.0000          .0000       5.0000    
     3 'Normalizat'    .95001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84003       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6894.135     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      245 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4538        11.207        .36794E-02   -.19182E-02
   2  alpha         .66566E-11    4.4938        .46272    ** at limit **
   3  Normalizat    .95010        .15053        .45537E-01    .72026E-05
   4  Prefactor     .83992        .17668        .65421E-01    .94678E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.45378
  alpha      = 6.65662e-12
  Normalizat = 0.950096
  Prefactor  = 0.839925
 **********
 **   18 **HESSE 
 **********

 FCN=   6894.135     FROM HESSE     STATUS=OK            35 CALLS      280 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4538        10.690        .73589E-03   -1.5162    
   2  alpha         .66566E-11    4.2516        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95010        .17707        .23443E-03   -.94722    
   4  Prefactor     .83992        .20762        .28939E-03   -.98273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86765e-12
Minuit parameter uncertainties:
  1  10.6928
  2  1.14443e-05
  3  0.177177
  4  0.207816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428200': 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) = 6894.13476246
delta logL = 1.91478258623

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  7.454e+00  1.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  6.657e-12  1.144e-05  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.399e-01  2.078e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.501e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.95
Ra Dec: 145.450 41.422
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.06e-09 +/- 4.40e-09
Energy Flux (Free Index): 1.23e-05 +/- 1.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/428200/cmap_HighResolution_473904001_474163201_4FGL_J0941.7+4125_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='1.23e-05', photon_flux_error='1.35e-08', dlogl='1.91e+00', energy_flux='7.75e-06', photon_flux2='3.06e-09', job_status='DONE', time_completed='2021-08-31 22:32:05.195800', photon_index_error2='0.00', photon_index2='0.00', ts='5.11', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.95', time_epoch_completed='1630474325.2', return_code='0', job_id='428200', GAL2='0.84', EG2='0.95', return_code2='0', energy_flux_error='6.90e-06', photon_flux_error2='4.40e-09', ts2='8.95', photon_index='2.82' WHERE bin_id='905' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 428200: <4FGL_J0941.7+4125_daily_bin905> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin905> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:15:32 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:15:33 2021
Terminated at Tue Aug 31 22:32:05 2021
Results reported at Tue Aug 31 22:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin905 145.45 41.4216 473904001 474163201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   969.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

