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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1062
RA = 183.001, Dec = -23.4494
tmin = 514598401, tmax = 514857601
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='408787', job_status='RUN', time_executed='2021-09-05 03:59:08.032037', time_epoch_executed='1630839548.03' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408787/ft1_4FGL_J1212.0-2326_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408787/ft1_4FGL_J1212.0-2326_daily_bin1062.fits outfile=/scratch/kocevski/408787/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1062.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=514598401.0 tmax=514857601.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 4.11
user 3.80
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.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/408787/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1062.fits evtable="EVENTS" outfile="/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/408787/ltcube_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.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/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits
.....................!
real 11.94
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/408787/ltcube_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits outfile=/scratch/kocevski/408787/expmap_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.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/408787/ltcube_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits
.....................!
real 189.31
user 183.77
sys 4.80

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits outfile=/scratch/kocevski/408787/cmap_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.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=183.001 yref=-23.4494 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.66
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits outfile=/scratch/kocevski/408787/cmap_HighResolution_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.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=183.001 yref=-23.4494 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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408787/Model_4FGL_J1212.0-2326_daily_bin1062.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/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits....................!
real 65.44
user 63.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits', '/scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits', expMap='/scratch/kocevski/408787/expmap_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits', expCube='/scratch/kocevski/408787/ltcube_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408787/Model_4FGL_J1212.0-2326_daily_bin1062.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408787/ft1_filtered_4FGL_J1212.0-2326_daily_bin1062.fits
Spacecraft file(s): /scratch/kocevski/408787/ft2_4FGL_J1212.0-2326_daily_bin1062.fits
Exposure map: /scratch/kocevski/408787/expmap_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits
Exposure cube: /scratch/kocevski/408787/ltcube_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408787/Model_4FGL_J1212.0-2326_daily_bin1062.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) = 7532.49270359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .85271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11433E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.5284       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.8862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5597       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.259       1.0000         .10000E-03   10000.    
    21 'norm      '    .11305E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.286       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7532.474     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2772 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6843        7.5378       -.32630E-07   -.86858E-05
   2  Prefactor     .10000E-03    14.975       -.46114E-06** at limit **
   3  norm          .85281        1.1406       -.35355E-07   -.10491E-03
   4  Prefactor     .10000E-03    59.686        .56455E-06** at limit **
   5  Prefactor     3.5020        6.1623        .53295E-06    .20714E-03
   6  Prefactor     .10000E-03    22.069       -.16636E-06** at limit **
   7  norm          8.5288        24.642        .11372E-05    .10462E-03
   8  Prefactor     .10000E-03    10.565       -.29989E-07** at limit **
   9  norm          5.8847        3.8544        .17342E-07    .53065E-04
  10  Prefactor     12.584        8.0452       -.11016E-06    .95314E-04
  11  Prefactor     22.100        36.391        .13713E-07    .10314E-04
  12  Prefactor     52.096        47.452        .92187E-06    .70541E-04
  13  Prefactor     .10000E-03    6.6869       -.17608E-07** at limit **
  14  Prefactor     .10000E-03    23.269       -.23514E-05** at limit **
  15  Prefactor     36.874        21.976       -.19828E-06   -.16287E-04
  16  Prefactor     4.3585        4.7315        .10535E-05    .12434E-02
  17  Prefactor     5.5597        2.4217       -.91328E-07    .31296E-04
  18  Prefactor     .10000E-03    3.3244        .23998E-08** at limit **
  19  norm          3.2454        1.1960        .20868E-07    .58427E-03
  20  Prefactor     47.287        77.256       -.56447E-05    .32840E-04
  21  norm          .10005E-03    12.873       -.45538E-05** at limit **
  22  Prefactor     13.285        7.9034        .66636E-06    .13135E-02
  23  Normalizat    1.0602        .22578        .22954E-07    .18340E-03
  24  Prefactor     .92222        .11166       -.15824E-06    .26053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.68429
  Prefactor  = 0.0001
  norm       = 0.852812
  Prefactor  = 0.0001
  Prefactor  = 3.50205
  Prefactor  = 0.0001
  norm       = 8.52879
  Prefactor  = 0.0001
  norm       = 5.88467
  Prefactor  = 12.584
  Prefactor  = 22.0995
  Prefactor  = 52.0956
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 36.8735
  Prefactor  = 4.35853
  Prefactor  = 5.55972
  Prefactor  = 0.0001
  norm       = 3.24543
  Prefactor  = 47.2872
  norm       = 0.000100047
  Prefactor  = 13.2849
  Normalizat = 1.06017
  Prefactor  = 0.922223
 **********
 **   18 **HESSE 
 **********

 FCN=   7532.474     FROM HESSE     STATUS=OK           401 CALLS     3173 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6843        7.5391        .15519E-03   -1.5191    
   2  Prefactor     .10000E-03    14.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .85281        1.0330        .10331E-02   -1.5523    
   4  Prefactor     .10000E-03    59.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5020        6.1754        .21597E-03   -1.5334    
   6  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.5288        24.777        .68633E-03   -1.5124    
   8  Prefactor     .10000E-03    10.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.8847        3.8483        .13154E-03   -1.5223    
  10  Prefactor     12.584        8.0256        .11291E-03   -1.4998    
  11  Prefactor     22.100        36.369        .85205E-04   -1.4767    
  12  Prefactor     52.096        47.422        .55564E-04   -1.4263    
  13  Prefactor     .10000E-03    6.6903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.874        21.976        .66003E-04   -1.4493    
  16  Prefactor     4.3585        5.0096        .96461E-03   -1.5290    
  17  Prefactor     5.5597        2.4282        .84743E-04   -1.5236    
  18  Prefactor     .10000E-03    3.3325        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2454        1.1945        .55190E-04   -1.5348    
  20  Prefactor     47.287        73.870        .58327E-04   -1.4332    
  21  norm          .10005E-03    20.180        .35636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.285        7.5832        .10989E-03   -1.4979    
  23  Normalizat    1.0602        .26436        .34679E-03   -.91041    
  24  Prefactor     .92222        .13172        .18806E-03   -.95369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7429e-09
Minuit parameter uncertainties:
  1  7.54014
  2  4.26216e-05
  3  1.03299
  4  9.76298e-05
  5  6.17655
  6  4.69896e-05
  7  24.807
  8  7.23751e-06
  9  3.8485
  10  8.02627
  11  36.4059
  12  47.4565
  13  1.26879e-06
  14  0.000277198
  15  21.9812
  16  5.01005
  17  2.42826
  18  1.9926e-06
  19  1.19454
  20  74.013
  21  0.0019489
  22  7.58372
  23  0.264684
  24  0.131764
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.269e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.222e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.060e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408787/likelihoodResults_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.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) = 7532.4751567
delta logL = -0.000711155406862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7532.47444537
delta logL = 1.75091372512e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8705       1.0000          .0000       10.000    
     3 'Normalizat'    1.0601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   7532.474     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    52.337        .18142E-02** at limit **
   2  Index         1.8439        7.2375        .50000        .27852E-04
   3  Normalizat    1.0602        .25171        .34678E-03    .19519E-03
   4  Prefactor     .92222        .12927        .18806E-03   -.45884E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7532.474     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      390 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    52.337        .44429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8439        7.2375        .42774E-04   -.68312    
   3  Normalizat    1.0602        .25171        .94129E-05   -.91041    
   4  Prefactor     .92222        .12927        .40435E-05   -.95369    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7532.474     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      423 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.3447        .36285E-03** at limit **
   2  Index         1.8437        5.8722        .50000        .27836E-04
   3  Normalizat    1.0602        .25194        .13871E-04    .17113E-03
   4  Prefactor     .92222        .12939        .75222E-05   -.34761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.84371
  Normalizat = 1.06017
  Prefactor  = 0.922222
 **********
 **   18 **HESSE 
 **********

 FCN=   7532.474     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.1011        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8437        5.9052        .50000       -.68317    
   3  Normalizat    1.0602        .25222        .27743E-05   -.91041    
   4  Prefactor     .92222        .12951        .15044E-05   -.95369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70602e-09
Minuit parameter uncertainties:
  1  0.000403799
  2  3.88958
  3  0.252501
  4  0.129556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408787': 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) = 7532.47444513
delta logL = 4.09187123296e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.038e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.844e+00  3.890e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.222e-01  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.060e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/408787/cmap_HighResolution_514598401_514857601_4FGL_J1212.0-2326_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-05 04:12:11.147110', job_id='408787', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630840331.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1062' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 408787: <4FGL_J1212.0-2326_daily_bin1062> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1062> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:54 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:56 2021
Terminated at Sun Sep  5 04:12:11 2021
Results reported at Sun Sep  5 04:12:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1062 183.001 -23.4494 514598401 514857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

