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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1336
RA = 352.629, Dec = 11.0479
tmin = 585619201, tmax = 585878401
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='1572', job_status='RUN', time_executed='2021-09-29 22:38:12.380894', time_epoch_executed='1632980292.38' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1572/ft1_4FGL_J2330.5+1102_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1572/ft1_4FGL_J2330.5+1102_daily_bin1336.fits outfile=/scratch/kocevski/1572/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1336.fits ra=352.629 dec=11.0479 rad=12.0 tmin=585619201.0 tmax=585878401.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 2.69
user 2.49
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.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/1572/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1336.fits evtable="EVENTS" outfile="/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/1572/ltcube_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.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/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits
.....................!
real 12.05
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/1572/ltcube_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits outfile=/scratch/kocevski/1572/expmap_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.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/1572/ltcube_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits
.....................!
real 190.93
user 185.81
sys 4.82

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

Setting source of interest to:
4FGL J2330.5+1102 @ 352.629 11.0479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits outfile=/scratch/kocevski/1572/cmap_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.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=352.629 yref=11.0479 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits outfile=/scratch/kocevski/1572/cmap_HighResolution_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.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=352.629 yref=11.0479 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/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1572/Model_4FGL_J2330.5+1102_daily_bin1336.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/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits.....................!
real 109.84
user 108.47
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits', '/scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits', expMap='/scratch/kocevski/1572/expmap_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits', expCube='/scratch/kocevski/1572/ltcube_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1572/Model_4FGL_J2330.5+1102_daily_bin1336.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.5+1102'

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1572/ft1_filtered_4FGL_J2330.5+1102_daily_bin1336.fits
Spacecraft file(s): /scratch/kocevski/1572/ft2_4FGL_J2330.5+1102_daily_bin1336.fits
Exposure map: /scratch/kocevski/1572/expmap_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits
Exposure cube: /scratch/kocevski/1572/ltcube_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1572/Model_4FGL_J2330.5+1102_daily_bin1336.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) = 10327.6049737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    1.1907       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2235       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1649       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .88628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3088       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10327.57     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2031 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.135        .82080E-07** at limit **
   2  Prefactor     1.1940        20.981       -.58225E-06   -.11129E-04
   3  Prefactor     1.0746        .17027        .27798E-07    .10523E-02
   4  Prefactor     .10000E-03    13.747       -.30985E-06** at limit **
   5  Prefactor     .10000E-03    1.2913       -.12708E-06** at limit **
   6  Prefactor     5.2227        7.8276        .18771E-06   -.10825E-05
   7  Prefactor     .10000E-03    6.2485        .77156E-07** at limit **
   8  Prefactor     3.1011        5.0186        .27483E-06    .14440E-04
   9  Prefactor     .43651        3.9626        .56344E-06   -.12616E-03
  10  Prefactor     20.601        19.294        .67086E-06   -.44531E-05
  11  Prefactor     .10000E-03    33.799        .16986E-05** at limit **
  12  norm          3.1593        6.9093        .18923E-06   -.89189E-04
  13  Prefactor     .10000E-03    3.6277       -.35582E-07** at limit **
  14  Prefactor     .10000E-03    7.9753        .50463E-06** at limit **
  15  norm          .88781        18.569        .19682E-05   -.74729E-04
  16  Prefactor     46.516        47.794        .48711E-05    .18751E-03
  17  Prefactor     11.556        20.588        .13703E-05    .82509E-04
  18  Prefactor     .10000E-03    2.2058       -.36957E-06** at limit **
  19  Normalizat    1.3096        .20660       -.51721E-05    .26200E-04
  20  Prefactor     .86313        .11791        .27651E-05   -.28583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.19403
  Prefactor  = 1.07463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22271
  Prefactor  = 0.0001
  Prefactor  = 3.10111
  Prefactor  = 0.436513
  Prefactor  = 20.6014
  Prefactor  = 0.0001
  norm       = 3.15929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.887806
  Prefactor  = 46.5156
  Prefactor  = 11.5562
  Prefactor  = 0.0001
  Normalizat = 1.30961
  Prefactor  = 0.863132
 **********
 **   18 **HESSE 
 **********

 FCN=   10327.57     FROM HESSE     STATUS=OK           293 CALLS     2324 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1940        21.170        .41743E-03   -1.5489    
   3  Prefactor     1.0746        .17003        .15862E-04   -1.5501    
   4  Prefactor     .10000E-03    13.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2946        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2227        7.8212        .17588E-03   -1.5251    
   7  Prefactor     .10000E-03    6.2564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1011        4.9668        .23015E-03   -1.5356    
   9  Prefactor     .43651        11.788        .37669E-02   -1.5576    
  10  Prefactor     20.601        19.150        .88223E-04   -1.4800    
  11  Prefactor     .10000E-03    33.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1593        6.7696        .22782E-03   -1.5352    
  13  Prefactor     .10000E-03    3.6646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .88781        18.714        .25515E-02   -1.5520    
  16  Prefactor     46.516        48.862        .58739E-04   -1.4343    
  17  Prefactor     11.556        20.601        .11777E-03   -1.5028    
  18  Prefactor     .10000E-03    2.2285        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3096        .21009        .29341E-03   -.83280    
  20  Prefactor     .86313        .12157        .21444E-03   -.97442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6933e-08
Minuit parameter uncertainties:
  1  8.42848e-06
  2  10.0592
  3  0.17003
  4  2.20919e-05
  5  3.01065e-06
  6  7.82269
  7  8.72584e-06
  8  4.96745
  9  4.53723
  10  19.1559
  11  0.000217368
  12  6.77121
  13  8.24426e-06
  14  3.30986e-05
  15  8.1545
  16  48.9041
  17  20.6136
  18  7.38158e-06
  19  0.210223
  20  0.121604
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  8.244e-06  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.631e-01  1.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.310e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1572/likelihoodResults_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.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) = 10327.5726242
delta logL = -0.00130075351444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10327.5713236
delta logL = -6.76445779391e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10327.57     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    139.81        .18142E-02** at limit **
   2  Index         2.8675        6.4197        .50000       -.12645E-04
   3  Normalizat    1.3096        .28349E-01    .29341E-03   -.25798E-03
   4  Prefactor     .86313        .17324E-01    .21444E-03   -.20814E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10327.57     FROM SIMPLEX   STATUS=PROGRESS     150 CALLS      390 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    139.81        .25688E-03** at limit **
   2  Index         2.8673        6.4197        .62063E-04   -.12645E-04
   3  Normalizat    1.3096        .28349E-01    .55982E-06   -.25798E-03
   4  Prefactor     .86313        .17324E-01    .20269E-06   -.20814E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10327.57     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      439 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    362.81        .36285E-03** at limit **
   2  Index         3.1630        7.8281        .50000        .50113E-07
   3  Normalizat    1.3096        .49162E-01    .11736E-04   -.61995E-05
   4  Prefactor     .86313        .30016E-01    .85775E-05    .15905E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.16303
  Normalizat = 1.30961
  Prefactor  = 0.863133
 **********
 **   18 **HESSE 
 **********

 FCN=   10327.57     FROM HESSE     STATUS=OK            29 CALLS      468 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.617        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1630        5.2921        .50000       -.37620    
   3  Normalizat    1.3096        .19688        .23473E-05   -.83280    
   4  Prefactor     .86313        .12032        .17155E-05   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9039e-11
Minuit parameter uncertainties:
  1  1.16903e-05
  2  274.652
  3  0.196998
  4  0.120356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1572': 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) = 10327.5713228
delta logL = 6.67803760734e-07

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.169e-05  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.163e+00  2.747e+02  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.631e-01  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.310e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.629 11.048

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/1572/cmap_HighResolution_585619201_585878401_4FGL_J2330.5+1102_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-29 22:51:48.131446', job_id='1572', GAL2='0.86', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632981108.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1336' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 1572: <4FGL_J2330.5+1102_daily_bin1336> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1336> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:35:48 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:35:49 2021
Terminated at Wed Sep 29 22:51:51 2021
Results reported at Wed Sep 29 22:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1336 352.629 11.0479 585619201 585878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.5+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            963 sec.

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

